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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/CHANGELOG.md +163 -0
  2. package/build/browser/MinimalClientContext.js.map +1 -1
  3. package/build/browser/actions/applyAction.js +0 -4
  4. package/build/browser/actions/applyAction.js.map +1 -1
  5. package/build/browser/createClient.js +1 -2
  6. package/build/browser/createClient.js.map +1 -1
  7. package/build/browser/createClient.test.js +19 -1
  8. package/build/browser/createClient.test.js.map +1 -1
  9. package/build/browser/createMinimalClient.js +2 -3
  10. package/build/browser/createMinimalClient.js.map +1 -1
  11. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js +1 -17
  12. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  13. package/build/browser/fetchMetadata.test.js +0 -11
  14. package/build/browser/fetchMetadata.test.js.map +1 -1
  15. package/build/browser/index.js +1 -1
  16. package/build/browser/index.js.map +1 -1
  17. package/build/browser/object/aggregate.js +1 -1
  18. package/build/browser/object/aggregate.js.map +1 -1
  19. package/build/browser/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  20. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  21. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +0 -4
  22. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  23. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +0 -10
  24. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  25. package/build/browser/object/convertWireToOsdkObjects.test.js +0 -12
  26. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
  27. package/build/browser/object/fetchPage.js +6 -3
  28. package/build/browser/object/fetchPage.js.map +1 -1
  29. package/build/browser/objectSet/createObjectSet.js +3 -3
  30. package/build/browser/objectSet/createObjectSet.js.map +1 -1
  31. package/build/browser/observable/ObservableClient.js.map +1 -1
  32. package/build/browser/observable/internal/base-list/BaseListQuery.js +4 -2
  33. package/build/browser/observable/internal/base-list/BaseListQuery.js.map +1 -1
  34. package/build/browser/observable/internal/getObjectTypesThatInvalidate.test.js +1 -1
  35. package/build/browser/observable/internal/getObjectTypesThatInvalidate.test.js.map +1 -1
  36. package/build/browser/observable/internal/list/ListQuery.js +7 -2
  37. package/build/browser/observable/internal/list/ListQuery.js.map +1 -1
  38. package/build/browser/observable/internal/list/ListQuery.test.js +277 -0
  39. package/build/browser/observable/internal/list/ListQuery.test.js.map +1 -0
  40. package/build/browser/observable/internal/list/ListQueryOptions.js.map +1 -1
  41. package/build/browser/observable/internal/objectset/ObjectSetQuery.js +7 -1
  42. package/build/browser/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
  43. package/build/browser/observable/internal/objectset/ObjectSetQueryOptions.js.map +1 -1
  44. package/build/browser/observable/internal/testUtils.js +3 -1
  45. package/build/browser/observable/internal/testUtils.js.map +1 -1
  46. package/build/browser/ontology/loadActionMetadata.js +1 -3
  47. package/build/browser/ontology/loadActionMetadata.js.map +1 -1
  48. package/build/browser/ontology/loadFullObjectMetadata.js +1 -2
  49. package/build/browser/ontology/loadFullObjectMetadata.js.map +1 -1
  50. package/build/browser/ontology/loadInterfaceMetadata.js +1 -2
  51. package/build/browser/ontology/loadInterfaceMetadata.js.map +1 -1
  52. package/build/browser/queries/applyQuery.js +7 -12
  53. package/build/browser/queries/applyQuery.js.map +1 -1
  54. package/build/browser/queries/types.js.map +1 -1
  55. package/build/browser/util/UserAgent.js +2 -2
  56. package/build/browser/util/UserAgent.js.map +1 -1
  57. package/build/browser/util/extractObjectOrInterfaceType.js +1 -1
  58. package/build/browser/util/extractObjectOrInterfaceType.js.map +1 -1
  59. package/build/browser/util/extractObjectOrInterfaceType.test.js +2 -2
  60. package/build/browser/util/extractObjectOrInterfaceType.test.js.map +1 -1
  61. package/build/cjs/{Client-CF85LpFu.d.cts → Client-DaUJl7jZ.d.cts} +1 -1
  62. package/build/cjs/{chunk-S4JPAF56.cjs → chunk-6P7VLXH3.cjs} +78 -482
  63. package/build/cjs/chunk-6P7VLXH3.cjs.map +1 -0
  64. package/build/cjs/{chunk-DZE6IAUU.cjs → chunk-S3HJUSQ7.cjs} +50 -49
  65. package/build/cjs/chunk-S3HJUSQ7.cjs.map +1 -0
  66. package/build/cjs/{createClient-mOlFts15.d.cts → createClient-MAHmo-Nv.d.cts} +1 -2
  67. package/build/cjs/index.cjs +8 -12
  68. package/build/cjs/index.cjs.map +1 -1
  69. package/build/cjs/index.d.cts +3 -3
  70. package/build/cjs/public/internal.cjs +8 -8
  71. package/build/cjs/public/internal.d.cts +1 -1
  72. package/build/cjs/public/unstable-do-not-use.cjs +50 -36
  73. package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
  74. package/build/cjs/public/unstable-do-not-use.d.cts +33 -2
  75. package/build/esm/MinimalClientContext.js.map +1 -1
  76. package/build/esm/actions/applyAction.js +0 -4
  77. package/build/esm/actions/applyAction.js.map +1 -1
  78. package/build/esm/createClient.js +1 -2
  79. package/build/esm/createClient.js.map +1 -1
  80. package/build/esm/createClient.test.js +19 -1
  81. package/build/esm/createClient.test.js.map +1 -1
  82. package/build/esm/createMinimalClient.js +2 -3
  83. package/build/esm/createMinimalClient.js.map +1 -1
  84. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js +1 -17
  85. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  86. package/build/esm/fetchMetadata.test.js +0 -11
  87. package/build/esm/fetchMetadata.test.js.map +1 -1
  88. package/build/esm/index.js +1 -1
  89. package/build/esm/index.js.map +1 -1
  90. package/build/esm/object/aggregate.js +1 -1
  91. package/build/esm/object/aggregate.js.map +1 -1
  92. package/build/esm/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  93. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  94. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +0 -4
  95. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  96. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +0 -10
  97. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  98. package/build/esm/object/convertWireToOsdkObjects.test.js +0 -12
  99. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
  100. package/build/esm/object/fetchPage.js +6 -3
  101. package/build/esm/object/fetchPage.js.map +1 -1
  102. package/build/esm/objectSet/createObjectSet.js +3 -3
  103. package/build/esm/objectSet/createObjectSet.js.map +1 -1
  104. package/build/esm/observable/ObservableClient.js.map +1 -1
  105. package/build/esm/observable/internal/base-list/BaseListQuery.js +4 -2
  106. package/build/esm/observable/internal/base-list/BaseListQuery.js.map +1 -1
  107. package/build/esm/observable/internal/getObjectTypesThatInvalidate.test.js +1 -1
  108. package/build/esm/observable/internal/getObjectTypesThatInvalidate.test.js.map +1 -1
  109. package/build/esm/observable/internal/list/ListQuery.js +7 -2
  110. package/build/esm/observable/internal/list/ListQuery.js.map +1 -1
  111. package/build/esm/observable/internal/list/ListQuery.test.js +277 -0
  112. package/build/esm/observable/internal/list/ListQuery.test.js.map +1 -0
  113. package/build/esm/observable/internal/list/ListQueryOptions.js.map +1 -1
  114. package/build/esm/observable/internal/objectset/ObjectSetQuery.js +7 -1
  115. package/build/esm/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
  116. package/build/esm/observable/internal/objectset/ObjectSetQueryOptions.js.map +1 -1
  117. package/build/esm/observable/internal/testUtils.js +3 -1
  118. package/build/esm/observable/internal/testUtils.js.map +1 -1
  119. package/build/esm/ontology/loadActionMetadata.js +1 -3
  120. package/build/esm/ontology/loadActionMetadata.js.map +1 -1
  121. package/build/esm/ontology/loadFullObjectMetadata.js +1 -2
  122. package/build/esm/ontology/loadFullObjectMetadata.js.map +1 -1
  123. package/build/esm/ontology/loadInterfaceMetadata.js +1 -2
  124. package/build/esm/ontology/loadInterfaceMetadata.js.map +1 -1
  125. package/build/esm/queries/applyQuery.js +7 -12
  126. package/build/esm/queries/applyQuery.js.map +1 -1
  127. package/build/esm/queries/types.js.map +1 -1
  128. package/build/esm/util/UserAgent.js +2 -2
  129. package/build/esm/util/UserAgent.js.map +1 -1
  130. package/build/esm/util/extractObjectOrInterfaceType.js +1 -1
  131. package/build/esm/util/extractObjectOrInterfaceType.js.map +1 -1
  132. package/build/esm/util/extractObjectOrInterfaceType.test.js +2 -2
  133. package/build/esm/util/extractObjectOrInterfaceType.test.js.map +1 -1
  134. package/build/types/MinimalClientContext.d.ts +2 -3
  135. package/build/types/MinimalClientContext.d.ts.map +1 -1
  136. package/build/types/actions/applyAction.d.ts.map +1 -1
  137. package/build/types/createClient.d.ts +0 -1
  138. package/build/types/createClient.d.ts.map +1 -1
  139. package/build/types/index.d.ts +1 -1
  140. package/build/types/index.d.ts.map +1 -1
  141. package/build/types/observable/ObservableClient.d.ts +16 -0
  142. package/build/types/observable/ObservableClient.d.ts.map +1 -1
  143. package/build/types/observable/internal/base-list/BaseListQuery.d.ts.map +1 -1
  144. package/build/types/observable/internal/list/ListQuery.d.ts.map +1 -1
  145. package/build/types/observable/internal/list/ListQuery.test.d.ts.map +1 -0
  146. package/build/types/observable/internal/list/ListQueryOptions.d.ts +1 -0
  147. package/build/types/observable/internal/list/ListQueryOptions.d.ts.map +1 -1
  148. package/build/types/observable/internal/objectset/ObjectSetQuery.d.ts.map +1 -1
  149. package/build/types/observable/internal/objectset/ObjectSetQueryOptions.d.ts +15 -0
  150. package/build/types/observable/internal/objectset/ObjectSetQueryOptions.d.ts.map +1 -1
  151. package/build/types/observable/internal/testUtils.d.ts +1 -1
  152. package/build/types/observable/internal/testUtils.d.ts.map +1 -1
  153. package/build/types/queries/applyQuery.d.ts.map +1 -1
  154. package/build/types/queries/types.d.ts +1 -1
  155. package/build/types/queries/types.d.ts.map +1 -1
  156. package/package.json +13 -13
  157. package/build/browser/object/formatting/applyPropertyFormatter.js +0 -58
  158. package/build/browser/object/formatting/applyPropertyFormatter.js.map +0 -1
  159. package/build/browser/object/formatting/applyPropertyFormatter.test.js +0 -726
  160. package/build/browser/object/formatting/applyPropertyFormatter.test.js.map +0 -1
  161. package/build/browser/object/formatting/formatBoolean.js +0 -23
  162. package/build/browser/object/formatting/formatBoolean.js.map +0 -1
  163. package/build/browser/object/formatting/formatDateTime.js +0 -158
  164. package/build/browser/object/formatting/formatDateTime.js.map +0 -1
  165. package/build/browser/object/formatting/formatNumber.js +0 -242
  166. package/build/browser/object/formatting/formatNumber.js.map +0 -1
  167. package/build/browser/object/formatting/propertyFormattingUtils.js +0 -39
  168. package/build/browser/object/formatting/propertyFormattingUtils.js.map +0 -1
  169. package/build/cjs/chunk-DZE6IAUU.cjs.map +0 -1
  170. package/build/cjs/chunk-S4JPAF56.cjs.map +0 -1
  171. package/build/esm/object/formatting/applyPropertyFormatter.js +0 -58
  172. package/build/esm/object/formatting/applyPropertyFormatter.js.map +0 -1
  173. package/build/esm/object/formatting/applyPropertyFormatter.test.js +0 -726
  174. package/build/esm/object/formatting/applyPropertyFormatter.test.js.map +0 -1
  175. package/build/esm/object/formatting/formatBoolean.js +0 -23
  176. package/build/esm/object/formatting/formatBoolean.js.map +0 -1
  177. package/build/esm/object/formatting/formatDateTime.js +0 -158
  178. package/build/esm/object/formatting/formatDateTime.js.map +0 -1
  179. package/build/esm/object/formatting/formatNumber.js +0 -242
  180. package/build/esm/object/formatting/formatNumber.js.map +0 -1
  181. package/build/esm/object/formatting/propertyFormattingUtils.js +0 -39
  182. package/build/esm/object/formatting/propertyFormattingUtils.js.map +0 -1
  183. package/build/types/object/formatting/applyPropertyFormatter.d.ts +0 -18
  184. package/build/types/object/formatting/applyPropertyFormatter.d.ts.map +0 -1
  185. package/build/types/object/formatting/applyPropertyFormatter.test.d.ts.map +0 -1
  186. package/build/types/object/formatting/formatBoolean.d.ts +0 -5
  187. package/build/types/object/formatting/formatBoolean.d.ts.map +0 -1
  188. package/build/types/object/formatting/formatDateTime.d.ts +0 -6
  189. package/build/types/object/formatting/formatDateTime.d.ts.map +0 -1
  190. package/build/types/object/formatting/formatNumber.d.ts +0 -15
  191. package/build/types/object/formatting/formatNumber.d.ts.map +0 -1
  192. package/build/types/object/formatting/propertyFormattingUtils.d.ts +0 -10
  193. package/build/types/object/formatting/propertyFormattingUtils.d.ts.map +0 -1
  194. /package/build/types/{object/formatting/applyPropertyFormatter.test.d.ts → observable/internal/list/ListQuery.test.d.ts} +0 -0
@@ -1,9 +1,8 @@
1
1
  import { Logger } from '@osdk/api';
2
- import { C as Client } from './Client-CF85LpFu.cjs';
2
+ import { C as Client } from './Client-DaUJl7jZ.cjs';
3
3
 
4
4
  declare const createClient: (baseUrl: string, ontologyRid: string | Promise<string>, tokenProvider: () => Promise<string>, options?: {
5
5
  logger?: Logger;
6
- branch?: string;
7
6
  } | undefined, fetchFn?: typeof fetch | undefined) => Client;
8
7
  declare const createClientWithTransaction: (transactionRid: string, ...args: Parameters<typeof createClient>) => Client;
9
8
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkS4JPAF56_cjs = require('./chunk-S4JPAF56.cjs');
4
- require('./chunk-DZE6IAUU.cjs');
3
+ var chunk6P7VLXH3_cjs = require('./chunk-6P7VLXH3.cjs');
4
+ require('./chunk-S3HJUSQ7.cjs');
5
5
  var chunk6SCDLAU2_cjs = require('./chunk-6SCDLAU2.cjs');
6
6
  var api = require('@osdk/api');
7
7
  var shared_net_errors = require('@osdk/shared.net.errors');
@@ -18,7 +18,7 @@ chunk6SCDLAU2_cjs.init_cjs_shims();
18
18
  // src/createPlatformClient.ts
19
19
  chunk6SCDLAU2_cjs.init_cjs_shims();
20
20
  function createPlatformClient(baseUrl, tokenProvider, options = void 0, fetchFn = fetch) {
21
- return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkS4JPAF56_cjs.USER_AGENT, fetchFn);
21
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunk6P7VLXH3_cjs.USER_AGENT, fetchFn);
22
22
  }
23
23
 
24
24
  // src/util/datetimeConverters.ts
@@ -45,27 +45,23 @@ var extractDateFromIsoString = (dateTime) => {
45
45
 
46
46
  Object.defineProperty(exports, "ActionValidationError", {
47
47
  enumerable: true,
48
- get: function () { return chunkS4JPAF56_cjs.ActionValidationError; }
48
+ get: function () { return chunk6P7VLXH3_cjs.ActionValidationError; }
49
49
  });
50
50
  Object.defineProperty(exports, "createAttachmentUpload", {
51
51
  enumerable: true,
52
- get: function () { return chunkS4JPAF56_cjs.createAttachmentUpload; }
52
+ get: function () { return chunk6P7VLXH3_cjs.createAttachmentUpload; }
53
53
  });
54
54
  Object.defineProperty(exports, "createClient", {
55
55
  enumerable: true,
56
- get: function () { return chunkS4JPAF56_cjs.createClient; }
56
+ get: function () { return chunk6P7VLXH3_cjs.createClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
59
59
  enumerable: true,
60
- get: function () { return chunkS4JPAF56_cjs.createObjectSpecifierFromPrimaryKey; }
60
+ get: function () { return chunk6P7VLXH3_cjs.createObjectSpecifierFromPrimaryKey; }
61
61
  });
62
62
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
63
63
  enumerable: true,
64
- get: function () { return chunkS4JPAF56_cjs.extractPrimaryKeyFromObjectSpecifier; }
65
- });
66
- Object.defineProperty(exports, "NULL_VALUE", {
67
- enumerable: true,
68
- get: function () { return api.NULL_VALUE; }
64
+ get: function () { return chunk6P7VLXH3_cjs.extractPrimaryKeyFromObjectSpecifier; }
69
65
  });
70
66
  Object.defineProperty(exports, "isOk", {
71
67
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/createPlatformClient.ts","../../src/util/datetimeConverters.ts"],"names":["init_cjs_shims","createSharedClientContext","USER_AGENT","invariant"],"mappings":";;;;;;;;;;;;;;;AAAAA,gCAAA,EAAA;;;ACAAA,gCAAA,EAAA;AA8BO,SAAS,qBAAqB,OAAS,EAAA,aAAA,EAAe,OAAU,GAAA,MAAA,EAAW,UAAU,KAAO,EAAA;AACjG,EAAA,OAAOC,4CAA0B,CAAA,OAAA,EAAS,aAAe,EAAAC,4BAAA,EAAY,OAAO,CAAA;AAC9E;;;AChCAF,gCAAA,EAAA;AAiBA,IAAM,QAAW,GAAA,uEAAA;AAQV,IAAM,cAAc,CAAY,QAAA,KAAA;AACrC,EAAA,EAAE,QAAS,CAAA,MAAA,GAAS,EAAM,CAAA,GAAA,OAAA,CAAQ,GAAI,CAAA,QAAA,KAAa,YAAe,GAAAG,0BAAA,CAAU,KAAO,EAAA,kDAAkD,CAAI,GAAAA,0BAAA,CAAU,KAAK,CAAI,GAAA,MAAA;AAC5J,EAAA,CAAC,SAAS,IAAK,CAAA,QAAQ,CAAI,GAAA,OAAA,CAAQ,IAAI,QAAa,KAAA,YAAA,GAAeA,0BAAU,CAAA,KAAA,EAAO,+DAA+D,QAAQ,CAAA,CAAE,CAAI,GAAAA,0BAAA,CAAU,KAAK,CAAI,GAAA,MAAA;AACpL,EAAA,OAAO,yBAAyB,QAAQ,CAAA;AAC1C;AAQO,IAAM,mBAAmB,CAAQ,IAAA,KAAA;AACtC,EAAO,OAAA,wBAAA,CAAyB,IAAK,CAAA,WAAA,EAAa,CAAA;AACpD;AAQO,IAAM,yBAAyB,CAAQ,IAAA,KAAA;AAC5C,EAAO,OAAA,wBAAA,CAAyB,uBAAwB,CAAA,IAAI,CAAC,CAAA;AAC/D;AAGO,IAAM,0BAA0B,CAAQ,IAAA,KAAA;AAC7C,EAAA,MAAM,QAAW,GAAA,IAAA,CAAK,iBAAkB,EAAA,GAAI,EAAK,GAAA,GAAA;AACjD,EAAA,OAAO,IAAI,IAAK,CAAA,IAAA,CAAK,SAAY,GAAA,QAAQ,EAAE,WAAY,EAAA;AACzD,CAAA;AACA,IAAM,2BAA2B,CAAY,QAAA,KAAA;AAC3C,EAAA,OAAO,QAAS,CAAA,KAAA,CAAM,GAAG,CAAA,CAAE,CAAC,CAAA;AAC9B,CAAA","file":"index.cjs","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nexport { isOk, NULL_VALUE } from \"@osdk/api\";\nexport { PalantirApiError } from \"@osdk/shared.net.errors\";\nexport { ActionValidationError } from \"./actions/ActionValidationError.js\";\nexport { createClient } from \"./createClient.js\";\nexport { createPlatformClient } from \"./createPlatformClient.js\";\nexport { createAttachmentUpload } from \"./object/AttachmentUpload.js\";\nexport { extractDate, extractDateInLocalTime, extractDateInUTC } from \"./util/datetimeConverters.js\";\nexport { createObjectSpecifierFromPrimaryKey, extractPrimaryKeyFromObjectSpecifier } from \"./util/objectSpecifierUtils.js\";","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createSharedClientContext } from \"@osdk/shared.client.impl\";\nimport { USER_AGENT } from \"./util/UserAgent.js\";\n/**\n * Creates a client that can only be used with Platform APIs.\n *\n * If you already have an OSDK Client (from `createClient`), you do not need to\n * create one of these - those clients can be used with Platform APIs as well.\n *\n * @param baseUrl\n * @param tokenProvider\n * @param options Currently unused, reserved for future use.\n * @param fetchFn\n * @returns\n */\nexport function createPlatformClient(baseUrl, tokenProvider, options = undefined, fetchFn = fetch) {\n return createSharedClientContext(baseUrl, tokenProvider, USER_AGENT, fetchFn);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport invariant from \"tiny-invariant\";\nconst isoRegex = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})?$/;\n\n/**\n * Extracts the date from a ISO 8601 formatted date time string. Throws if the input is not in the correct format.\n *\n * @param dateTime An ISO 8601 formatted date time string\n * @returns The date part of the input string\n */\nexport const extractDate = dateTime => {\n !(dateTime.length < 33) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Invalid date format. Provided input is too long.\") : invariant(false) : void 0;\n !isoRegex.test(dateTime) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Invalid date format. Expected ISO 8601 format, but received ${dateTime}`) : invariant(false) : void 0;\n return extractDateFromIsoString(dateTime);\n};\n\n/**\n * Generates a string representation of the input date (YYYY-MM-DD). The resulting date string reflects the given date in UTC time.\n *\n * @param date\n * @returns The date part of a ISO 8601 formatted date time string\n */\nexport const extractDateInUTC = date => {\n return extractDateFromIsoString(date.toISOString());\n};\n\n/**\n * Generates a string representation of the input date (YYYY-MM-DD). The resulting date string reflects the given date in the local time zone.\n *\n * @param date\n * @returns The date part of a ISO 8601 formatted date time string\n */\nexport const extractDateInLocalTime = date => {\n return extractDateFromIsoString(generateOffsetUtcString(date));\n};\n\n/** @internal */\nexport const generateOffsetUtcString = date => {\n const offsetMs = date.getTimezoneOffset() * 60 * 1000;\n return new Date(date.getTime() - offsetMs).toISOString();\n};\nconst extractDateFromIsoString = dateTime => {\n return dateTime.split(\"T\")[0];\n};"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/createPlatformClient.ts","../../src/util/datetimeConverters.ts"],"names":["init_cjs_shims","createSharedClientContext","USER_AGENT","invariant"],"mappings":";;;;;;;;;;;;;;;AAAAA,gCAAA,EAAA;;;ACAAA,gCAAA,EAAA;AA8BO,SAAS,qBAAqB,OAAS,EAAA,aAAA,EAAe,OAAU,GAAA,MAAA,EAAW,UAAU,KAAO,EAAA;AACjG,EAAA,OAAOC,4CAA0B,CAAA,OAAA,EAAS,aAAe,EAAAC,4BAAA,EAAY,OAAO,CAAA;AAC9E;;;AChCAF,gCAAA,EAAA;AAiBA,IAAM,QAAW,GAAA,uEAAA;AAQV,IAAM,cAAc,CAAY,QAAA,KAAA;AACrC,EAAA,EAAE,QAAS,CAAA,MAAA,GAAS,EAAM,CAAA,GAAA,OAAA,CAAQ,GAAI,CAAA,QAAA,KAAa,YAAe,GAAAG,0BAAA,CAAU,KAAO,EAAA,kDAAkD,CAAI,GAAAA,0BAAA,CAAU,KAAK,CAAI,GAAA,MAAA;AAC5J,EAAA,CAAC,SAAS,IAAK,CAAA,QAAQ,CAAI,GAAA,OAAA,CAAQ,IAAI,QAAa,KAAA,YAAA,GAAeA,0BAAU,CAAA,KAAA,EAAO,+DAA+D,QAAQ,CAAA,CAAE,CAAI,GAAAA,0BAAA,CAAU,KAAK,CAAI,GAAA,MAAA;AACpL,EAAA,OAAO,yBAAyB,QAAQ,CAAA;AAC1C;AAQO,IAAM,mBAAmB,CAAQ,IAAA,KAAA;AACtC,EAAO,OAAA,wBAAA,CAAyB,IAAK,CAAA,WAAA,EAAa,CAAA;AACpD;AAQO,IAAM,yBAAyB,CAAQ,IAAA,KAAA;AAC5C,EAAO,OAAA,wBAAA,CAAyB,uBAAwB,CAAA,IAAI,CAAC,CAAA;AAC/D;AAGO,IAAM,0BAA0B,CAAQ,IAAA,KAAA;AAC7C,EAAA,MAAM,QAAW,GAAA,IAAA,CAAK,iBAAkB,EAAA,GAAI,EAAK,GAAA,GAAA;AACjD,EAAA,OAAO,IAAI,IAAK,CAAA,IAAA,CAAK,SAAY,GAAA,QAAQ,EAAE,WAAY,EAAA;AACzD,CAAA;AACA,IAAM,2BAA2B,CAAY,QAAA,KAAA;AAC3C,EAAA,OAAO,QAAS,CAAA,KAAA,CAAM,GAAG,CAAA,CAAE,CAAC,CAAA;AAC9B,CAAA","file":"index.cjs","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nexport { isOk } from \"@osdk/api\";\nexport { PalantirApiError } from \"@osdk/shared.net.errors\";\nexport { ActionValidationError } from \"./actions/ActionValidationError.js\";\nexport { createClient } from \"./createClient.js\";\nexport { createPlatformClient } from \"./createPlatformClient.js\";\nexport { createAttachmentUpload } from \"./object/AttachmentUpload.js\";\nexport { extractDate, extractDateInLocalTime, extractDateInUTC } from \"./util/datetimeConverters.js\";\nexport { createObjectSpecifierFromPrimaryKey, extractPrimaryKeyFromObjectSpecifier } from \"./util/objectSpecifierUtils.js\";","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createSharedClientContext } from \"@osdk/shared.client.impl\";\nimport { USER_AGENT } from \"./util/UserAgent.js\";\n/**\n * Creates a client that can only be used with Platform APIs.\n *\n * If you already have an OSDK Client (from `createClient`), you do not need to\n * create one of these - those clients can be used with Platform APIs as well.\n *\n * @param baseUrl\n * @param tokenProvider\n * @param options Currently unused, reserved for future use.\n * @param fetchFn\n * @returns\n */\nexport function createPlatformClient(baseUrl, tokenProvider, options = undefined, fetchFn = fetch) {\n return createSharedClientContext(baseUrl, tokenProvider, USER_AGENT, fetchFn);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport invariant from \"tiny-invariant\";\nconst isoRegex = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})?$/;\n\n/**\n * Extracts the date from a ISO 8601 formatted date time string. Throws if the input is not in the correct format.\n *\n * @param dateTime An ISO 8601 formatted date time string\n * @returns The date part of the input string\n */\nexport const extractDate = dateTime => {\n !(dateTime.length < 33) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Invalid date format. Provided input is too long.\") : invariant(false) : void 0;\n !isoRegex.test(dateTime) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Invalid date format. Expected ISO 8601 format, but received ${dateTime}`) : invariant(false) : void 0;\n return extractDateFromIsoString(dateTime);\n};\n\n/**\n * Generates a string representation of the input date (YYYY-MM-DD). The resulting date string reflects the given date in UTC time.\n *\n * @param date\n * @returns The date part of a ISO 8601 formatted date time string\n */\nexport const extractDateInUTC = date => {\n return extractDateFromIsoString(date.toISOString());\n};\n\n/**\n * Generates a string representation of the input date (YYYY-MM-DD). The resulting date string reflects the given date in the local time zone.\n *\n * @param date\n * @returns The date part of a ISO 8601 formatted date time string\n */\nexport const extractDateInLocalTime = date => {\n return extractDateFromIsoString(generateOffsetUtcString(date));\n};\n\n/** @internal */\nexport const generateOffsetUtcString = date => {\n const offsetMs = date.getTimezoneOffset() * 60 * 1000;\n return new Date(date.getTime() - offsetMs).toISOString();\n};\nconst extractDateFromIsoString = dateTime => {\n return dateTime.split(\"T\")[0];\n};"]}
@@ -1,9 +1,9 @@
1
1
  import { AttachmentUpload, ObjectTypeDefinition, PrimaryKeyType, ObjectSpecifier } from '@osdk/api';
2
- export { ActionDefinition, ActionEditResponse, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions, Attachment, CompileTimeMetadata, DerivedProperty, InterfaceDefinition, InterfaceMetadata, Logger, MediaReference, MediaUpload, NULL_VALUE, ObjectMetadata, ObjectSet, ObjectSpecifier, ObjectTypeDefinition, Osdk, OsdkObject, OsdkObjectCreatePropertyType, OsdkObjectPropertyType, PageResult, PropertyDef, PropertyKeys, PropertyValueWireToClient, QueryDefinition, QueryParam, QueryResult, Range, Result, SingleLinkAccessor, ThreeDimensionalAggregation, TwoDimensionalAggregation, VersionBound, WhereClause, isOk } from '@osdk/api';
2
+ export { ActionDefinition, ActionEditResponse, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions, Attachment, CompileTimeMetadata, DerivedProperty, InterfaceDefinition, InterfaceMetadata, Logger, MediaReference, MediaUpload, ObjectMetadata, ObjectSet, ObjectSpecifier, ObjectTypeDefinition, Osdk, OsdkObject, OsdkObjectCreatePropertyType, OsdkObjectPropertyType, PageResult, PropertyDef, PropertyKeys, PropertyValueWireToClient, QueryDefinition, QueryParam, QueryResult, Range, Result, SingleLinkAccessor, ThreeDimensionalAggregation, TwoDimensionalAggregation, VersionBound, WhereClause, isOk } from '@osdk/api';
3
3
  export { PalantirApiError } from '@osdk/shared.net.errors';
4
4
  import { ValidateActionResponseV2 } from '@osdk/foundry.ontologies';
5
- export { C as Client } from './Client-CF85LpFu.cjs';
6
- export { c as createClient } from './createClient-mOlFts15.cjs';
5
+ export { C as Client } from './Client-DaUJl7jZ.cjs';
6
+ export { c as createClient } from './createClient-MAHmo-Nv.cjs';
7
7
  import { SharedClientContext } from '@osdk/shared.client2';
8
8
  import '@osdk/shared.client';
9
9
  import '@osdk/api/unstable';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkDZE6IAUU_cjs = require('../chunk-DZE6IAUU.cjs');
3
+ var chunkS3HJUSQ7_cjs = require('../chunk-S3HJUSQ7.cjs');
4
4
  var chunk6SCDLAU2_cjs = require('../chunk-6SCDLAU2.cjs');
5
5
 
6
6
  // src/public/internal.ts
@@ -9,8 +9,8 @@ chunk6SCDLAU2_cjs.init_cjs_shims();
9
9
  // src/public-utils/createAndFetchTempObjectSetRid.ts
10
10
  chunk6SCDLAU2_cjs.init_cjs_shims();
11
11
  async function createAndFetchTempObjectSetRid(client, objectSet) {
12
- const response = await chunkDZE6IAUU_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkDZE6IAUU_cjs.additionalContext].ontologyRid, {
13
- objectSet: chunkDZE6IAUU_cjs.getWireObjectSet(objectSet)
12
+ const response = await chunkS3HJUSQ7_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkS3HJUSQ7_cjs.additionalContext].ontologyRid, {
13
+ objectSet: chunkS3HJUSQ7_cjs.getWireObjectSet(objectSet)
14
14
  });
15
15
  return response.objectSetRid;
16
16
  }
@@ -18,7 +18,7 @@ async function createAndFetchTempObjectSetRid(client, objectSet) {
18
18
  // src/public-utils/hydrateObjectSetFromObjectRids.ts
19
19
  chunk6SCDLAU2_cjs.init_cjs_shims();
20
20
  function hydrateObjectSetFromObjectRids(client, definition, rids) {
21
- return chunkDZE6IAUU_cjs.createObjectSet(definition, client[chunkDZE6IAUU_cjs.additionalContext], {
21
+ return chunkS3HJUSQ7_cjs.createObjectSet(definition, client[chunkS3HJUSQ7_cjs.additionalContext], {
22
22
  type: "intersect",
23
23
  objectSets: [definition.type === "interface" ? {
24
24
  type: "interfaceBase",
@@ -39,7 +39,7 @@ function asMutableArray(array) {
39
39
  // src/public-utils/hydrateObjectSetFromRid.ts
40
40
  chunk6SCDLAU2_cjs.init_cjs_shims();
41
41
  function hydrateObjectSetFromRid(client, definition, rid) {
42
- return chunkDZE6IAUU_cjs.createObjectSet(definition, client[chunkDZE6IAUU_cjs.additionalContext], {
42
+ return chunkS3HJUSQ7_cjs.createObjectSet(definition, client[chunkS3HJUSQ7_cjs.additionalContext], {
43
43
  type: "intersect",
44
44
  objectSets: [definition.type === "interface" ? {
45
45
  type: "interfaceBase",
@@ -81,7 +81,7 @@ var levelStyles = {
81
81
  color: "orange"
82
82
  })
83
83
  };
84
- var BrowserLogger = class _BrowserLogger extends chunkDZE6IAUU_cjs.BaseLogger {
84
+ var BrowserLogger = class _BrowserLogger extends chunkS3HJUSQ7_cjs.BaseLogger {
85
85
  constructor(bindings = {}, options = {}) {
86
86
  super(bindings, {
87
87
  ...options,
@@ -107,11 +107,11 @@ var BrowserLogger = class _BrowserLogger extends chunkDZE6IAUU_cjs.BaseLogger {
107
107
 
108
108
  Object.defineProperty(exports, "MinimalLogger", {
109
109
  enumerable: true,
110
- get: function () { return chunkDZE6IAUU_cjs.MinimalLogger; }
110
+ get: function () { return chunkS3HJUSQ7_cjs.MinimalLogger; }
111
111
  });
112
112
  Object.defineProperty(exports, "hydrateAttachmentFromRid", {
113
113
  enumerable: true,
114
- get: function () { return chunkDZE6IAUU_cjs.hydrateAttachmentFromRid; }
114
+ get: function () { return chunkS3HJUSQ7_cjs.hydrateAttachmentFromRid; }
115
115
  });
116
116
  exports.BrowserLogger = BrowserLogger;
117
117
  exports.createAndFetchTempObjectSetRid = createAndFetchTempObjectSetRid;
@@ -1,5 +1,5 @@
1
1
  import { ObjectOrInterfaceDefinition, CompileTimeMetadata, ObjectSet, Attachment, Logger } from '@osdk/api';
2
- import { C as Client } from '../Client-CF85LpFu.cjs';
2
+ import { C as Client } from '../Client-DaUJl7jZ.cjs';
3
3
  import '@osdk/shared.client';
4
4
  import '@osdk/api/unstable';
5
5
  import '@osdk/shared.client2';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkS4JPAF56_cjs = require('../chunk-S4JPAF56.cjs');
4
- var chunkDZE6IAUU_cjs = require('../chunk-DZE6IAUU.cjs');
3
+ var chunk6P7VLXH3_cjs = require('../chunk-6P7VLXH3.cjs');
4
+ var chunkS3HJUSQ7_cjs = require('../chunk-S3HJUSQ7.cjs');
5
5
  var chunk6SCDLAU2_cjs = require('../chunk-6SCDLAU2.cjs');
6
6
  var trie = require('@wry/trie');
7
7
  var deepEqual = require('fast-deep-equal');
@@ -153,7 +153,7 @@ var WhereClauseCanonicalizer = class {
153
153
  var whereCanonicalizer = new WhereClauseCanonicalizer();
154
154
  var orderByCanonicalizer = new OrderByCanonicalizer();
155
155
  function computeObjectSetCacheKey(objectSet, options) {
156
- const keyParts = ["objectSet", chunkDZE6IAUU_cjs.getWireObjectSet(objectSet)];
156
+ const keyParts = ["objectSet", chunkS3HJUSQ7_cjs.getWireObjectSet(objectSet)];
157
157
  if (!options) {
158
158
  return JSON.stringify(keyParts);
159
159
  }
@@ -165,13 +165,13 @@ function computeObjectSetCacheKey(objectSet, options) {
165
165
  keyParts.push("props", propKeys);
166
166
  }
167
167
  if (options.union && options.union.length > 0) {
168
- keyParts.push("union", options.union.map((os) => chunkDZE6IAUU_cjs.getWireObjectSet(os)));
168
+ keyParts.push("union", options.union.map((os) => chunkS3HJUSQ7_cjs.getWireObjectSet(os)));
169
169
  }
170
170
  if (options.intersect && options.intersect.length > 0) {
171
- keyParts.push("intersect", options.intersect.map((os) => chunkDZE6IAUU_cjs.getWireObjectSet(os)));
171
+ keyParts.push("intersect", options.intersect.map((os) => chunkS3HJUSQ7_cjs.getWireObjectSet(os)));
172
172
  }
173
173
  if (options.subtract && options.subtract.length > 0) {
174
- keyParts.push("subtract", options.subtract.map((os) => chunkDZE6IAUU_cjs.getWireObjectSet(os)));
174
+ keyParts.push("subtract", options.subtract.map((os) => chunkS3HJUSQ7_cjs.getWireObjectSet(os)));
175
175
  }
176
176
  if (options.pivotTo) {
177
177
  keyParts.push("pivotTo", options.pivotTo);
@@ -351,7 +351,7 @@ var OptimisticJob = class {
351
351
  return this;
352
352
  },
353
353
  createObject(type, pk, properties) {
354
- const create = store.client[chunkDZE6IAUU_cjs.additionalContext].objectFactory2(store.client[chunkDZE6IAUU_cjs.additionalContext], [{
354
+ const create = store.client[chunkS3HJUSQ7_cjs.additionalContext].objectFactory2(store.client[chunkS3HJUSQ7_cjs.additionalContext], [{
355
355
  $primaryKey: pk,
356
356
  $apiName: type.apiName,
357
357
  $objectType: type.apiName,
@@ -569,7 +569,7 @@ var Query = class {
569
569
  this.store = store;
570
570
  this.cacheKeys = store.cacheKeys;
571
571
  this.#subject = observable;
572
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkDZE6IAUU_cjs.additionalContext].logger : store.client[chunkDZE6IAUU_cjs.additionalContext].logger?.child({}, {
572
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkS3HJUSQ7_cjs.additionalContext].logger : store.client[chunkS3HJUSQ7_cjs.additionalContext].logger?.child({}, {
573
573
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
574
574
  }));
575
575
  }
@@ -727,7 +727,7 @@ var Query = class {
727
727
  // src/observable/internal/aggregation/AggregationQuery.ts
728
728
  var AggregationQuery = class extends Query {
729
729
  constructor(store, subject, cacheKey, opts) {
730
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkDZE6IAUU_cjs.additionalContext].logger?.child({}, {
730
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkS3HJUSQ7_cjs.additionalContext].logger?.child({}, {
731
731
  msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
732
732
  }) : void 0);
733
733
  this.apiName = cacheKey.otherKeys[API_NAME_IDX];
@@ -1720,6 +1720,7 @@ var BaseListQuery = class extends Query {
1720
1720
  if (count >= this.minResultsToLoad || this.nextPageToken == null) {
1721
1721
  break;
1722
1722
  }
1723
+ await Promise.resolve();
1723
1724
  }
1724
1725
  this.store.batch({}, (batch) => {
1725
1726
  this.setStatus("loaded", batch);
@@ -1744,6 +1745,7 @@ var BaseListQuery = class extends Query {
1744
1745
  return void 0;
1745
1746
  }
1746
1747
  try {
1748
+ const hadPreviousPage = this.nextPageToken != null;
1747
1749
  const result = await this.fetchPageData(signal);
1748
1750
  if (signal?.aborted) {
1749
1751
  return void 0;
@@ -1751,7 +1753,7 @@ var BaseListQuery = class extends Query {
1751
1753
  const {
1752
1754
  retVal
1753
1755
  } = this.store.batch({}, (batch) => {
1754
- const append = this.nextPageToken != null;
1756
+ const append = hadPreviousPage;
1755
1757
  const finalStatus = result.nextPageToken ? status : "loaded";
1756
1758
  const objectKeys = this.store.objects.storeOsdkInstances(result.data, batch, this.rdpConfig);
1757
1759
  return this._updateList(objectKeys, finalStatus, batch, append);
@@ -1976,7 +1978,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
1976
1978
  batch.changes.modified.add(this.cacheKey);
1977
1979
  }
1978
1980
  constructor(store, subject, cacheKey, opts) {
1979
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkDZE6IAUU_cjs.additionalContext].logger?.child({}, {
1981
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkS3HJUSQ7_cjs.additionalContext].logger?.child({}, {
1980
1982
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1981
1983
  }) : void 0);
1982
1984
  [this.#sourceApiName, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -1993,7 +1995,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
1993
1995
  type: "object",
1994
1996
  apiName: this.#sourceApiName
1995
1997
  };
1996
- const sourceMetadata = await client[chunkDZE6IAUU_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
1998
+ const sourceMetadata = await client[chunkS3HJUSQ7_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
1997
1999
  const sourceQuery = client(sourceObjectDef).where({
1998
2000
  [sourceMetadata.primaryKeyApiName]: this.#sourcePk
1999
2001
  });
@@ -2057,7 +2059,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2057
2059
  return this.revalidate(true);
2058
2060
  } else {
2059
2061
  return (async () => {
2060
- const sourceMetadata = await this.store.client[chunkDZE6IAUU_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2062
+ const sourceMetadata = await this.store.client[chunkS3HJUSQ7_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2061
2063
  const linkDef = sourceMetadata.links?.[this.#linkName];
2062
2064
  if (!linkDef || linkDef.targetType !== objectType) return;
2063
2065
  const promise = this.revalidate(true);
@@ -2209,7 +2211,7 @@ var ListQuery = class extends BaseListQuery {
2209
2211
  batch.changes.registerList(this.cacheKey);
2210
2212
  }
2211
2213
  constructor(store, subject, apiName, cacheKey, opts) {
2212
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkDZE6IAUU_cjs.additionalContext].logger?.child({}, {
2214
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkS3HJUSQ7_cjs.additionalContext].logger?.child({}, {
2213
2215
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2214
2216
  }) : void 0);
2215
2217
  this.apiName = apiName;
@@ -2219,7 +2221,13 @@ var ListQuery = class extends BaseListQuery {
2219
2221
  this.#pivotInfo = cacheKey.otherKeys[PIVOT_IDX];
2220
2222
  this.#objectSet = this.createObjectSet(store);
2221
2223
  this.sortingStrategy = new OrderBySortingStrategy(this.apiName, this.#orderBy);
2222
- this.minResultsToLoad = 0;
2224
+ if (opts.autoFetchMore === true) {
2225
+ this.minResultsToLoad = Number.MAX_SAFE_INTEGER;
2226
+ } else if (typeof opts.autoFetchMore === "number") {
2227
+ this.minResultsToLoad = Math.max(0, opts.autoFetchMore);
2228
+ } else {
2229
+ this.minResultsToLoad = 0;
2230
+ }
2223
2231
  }
2224
2232
  get canonicalWhere() {
2225
2233
  return this.#whereClause;
@@ -2483,7 +2491,7 @@ var InterfaceListQuery = class extends ListQuery {
2483
2491
  }
2484
2492
  extractRelevantObjects(changes) {
2485
2493
  const matchesApiName = ([, object]) => {
2486
- return this.apiName in object[chunkS4JPAF56_cjs.ObjectDefRef].interfaceMap;
2494
+ return this.apiName in object[chunk6P7VLXH3_cjs.ObjectDefRef].interfaceMap;
2487
2495
  };
2488
2496
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
2489
2497
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -2504,7 +2512,7 @@ var InterfaceListQuery = class extends ListQuery {
2504
2512
  async function reloadDataAsFullObjects(client, data) {
2505
2513
  const groups = groupBy__default.default(data, (x) => x.$objectType);
2506
2514
  const objectTypeToPrimaryKeyToObject = Object.fromEntries(await Promise.all(Object.entries(groups).map(async ([apiName, objects]) => {
2507
- const objectDef = objects[0][chunkS4JPAF56_cjs.UnderlyingOsdkObject][chunkS4JPAF56_cjs.ObjectDefRef];
2515
+ const objectDef = objects[0][chunk6P7VLXH3_cjs.UnderlyingOsdkObject][chunk6P7VLXH3_cjs.ObjectDefRef];
2508
2516
  const where = {
2509
2517
  [objectDef.primaryKeyApiName]: {
2510
2518
  $in: objects.map((x) => x.$primaryKey)
@@ -2857,7 +2865,7 @@ var BulkObjectLoader = class {
2857
2865
  #maxEntries;
2858
2866
  constructor(client, maxWait = 25, maxEntries = 100) {
2859
2867
  this.#client = client;
2860
- this.#logger = client[chunkDZE6IAUU_cjs.additionalContext].logger;
2868
+ this.#logger = client[chunkS3HJUSQ7_cjs.additionalContext].logger;
2861
2869
  this.#maxWait = maxWait;
2862
2870
  this.#maxEntries = maxEntries;
2863
2871
  }
@@ -2925,7 +2933,7 @@ var ObjectQuery = class extends Query {
2925
2933
  #apiName;
2926
2934
  #pk;
2927
2935
  constructor(store, subject, type, pk, cacheKey, opts) {
2928
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkDZE6IAUU_cjs.additionalContext].logger?.child({}, {
2936
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkS3HJUSQ7_cjs.additionalContext].logger?.child({}, {
2929
2937
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2930
2938
  }) : void 0);
2931
2939
  this.#apiName = type;
@@ -3073,7 +3081,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3073
3081
  #composedObjectSet;
3074
3082
  #objectTypes;
3075
3083
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
3076
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkDZE6IAUU_cjs.additionalContext].logger?.child({}, {
3084
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkS3HJUSQ7_cjs.additionalContext].logger?.child({}, {
3077
3085
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3078
3086
  }) : void 0);
3079
3087
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -3084,7 +3092,13 @@ var ObjectSetQuery = class extends BaseListQuery {
3084
3092
  const firstType = Array.from(this.#objectTypes)[0];
3085
3093
  this.sortingStrategy = new OrderBySortingStrategy(firstType, operations.orderBy);
3086
3094
  }
3087
- this.minResultsToLoad = opts.pageSize || 0;
3095
+ if (opts.autoFetchMore === true) {
3096
+ this.minResultsToLoad = Number.MAX_SAFE_INTEGER;
3097
+ } else if (typeof opts.autoFetchMore === "number") {
3098
+ this.minResultsToLoad = Math.max(0, opts.autoFetchMore);
3099
+ } else {
3100
+ this.minResultsToLoad = opts.pageSize || 0;
3101
+ }
3088
3102
  }
3089
3103
  #composeObjectSet(opts) {
3090
3104
  let result = opts.baseObjectSet;
@@ -3116,7 +3130,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3116
3130
  }
3117
3131
  if (opts.union) {
3118
3132
  for (const os of opts.union) {
3119
- const wire = chunkDZE6IAUU_cjs.getWireObjectSet(os);
3133
+ const wire = chunkS3HJUSQ7_cjs.getWireObjectSet(os);
3120
3134
  if (wire.type) {
3121
3135
  types.add(wire.type);
3122
3136
  }
@@ -3124,7 +3138,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3124
3138
  }
3125
3139
  if (opts.intersect) {
3126
3140
  for (const os of opts.intersect) {
3127
- const wire = chunkDZE6IAUU_cjs.getWireObjectSet(os);
3141
+ const wire = chunkS3HJUSQ7_cjs.getWireObjectSet(os);
3128
3142
  if (wire.type) {
3129
3143
  types.add(wire.type);
3130
3144
  }
@@ -3132,7 +3146,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3132
3146
  }
3133
3147
  if (opts.subtract) {
3134
3148
  for (const os of opts.subtract) {
3135
- const wire = chunkDZE6IAUU_cjs.getWireObjectSet(os);
3149
+ const wire = chunkS3HJUSQ7_cjs.getWireObjectSet(os);
3136
3150
  if (wire.type) {
3137
3151
  types.add(wire.type);
3138
3152
  }
@@ -3213,7 +3227,7 @@ var ObjectSetHelper = class extends AbstractHelper {
3213
3227
  const {
3214
3228
  baseObjectSet
3215
3229
  } = options;
3216
- const baseObjectSetWire = JSON.stringify(chunkDZE6IAUU_cjs.getWireObjectSet(baseObjectSet));
3230
+ const baseObjectSetWire = JSON.stringify(chunkS3HJUSQ7_cjs.getWireObjectSet(baseObjectSet));
3217
3231
  const operations = this.buildCanonicalizedOperations(options);
3218
3232
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
3219
3233
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -3229,13 +3243,13 @@ var ObjectSetHelper = class extends AbstractHelper {
3229
3243
  operations.withProperties = Object.keys(options.withProperties).sort();
3230
3244
  }
3231
3245
  if (options.union && options.union.length > 0) {
3232
- operations.union = options.union.map((os) => JSON.stringify(chunkDZE6IAUU_cjs.getWireObjectSet(os)));
3246
+ operations.union = options.union.map((os) => JSON.stringify(chunkS3HJUSQ7_cjs.getWireObjectSet(os)));
3233
3247
  }
3234
3248
  if (options.intersect && options.intersect.length > 0) {
3235
- operations.intersect = options.intersect.map((os) => JSON.stringify(chunkDZE6IAUU_cjs.getWireObjectSet(os)));
3249
+ operations.intersect = options.intersect.map((os) => JSON.stringify(chunkS3HJUSQ7_cjs.getWireObjectSet(os)));
3236
3250
  }
3237
3251
  if (options.subtract && options.subtract.length > 0) {
3238
- operations.subtract = options.subtract.map((os) => JSON.stringify(chunkDZE6IAUU_cjs.getWireObjectSet(os)));
3252
+ operations.subtract = options.subtract.map((os) => JSON.stringify(chunkS3HJUSQ7_cjs.getWireObjectSet(os)));
3239
3253
  }
3240
3254
  if (options.pivotTo) {
3241
3255
  operations.pivotTo = options.pivotTo;
@@ -3307,7 +3321,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
3307
3321
  apiName: "__rdp_canonicalizer_holder__"
3308
3322
  };
3309
3323
  for (const [key, rdpFunction] of Object.entries(rdp)) {
3310
- const builder = chunkDZE6IAUU_cjs.createWithPropertiesObjectSet(
3324
+ const builder = chunkS3HJUSQ7_cjs.createWithPropertiesObjectSet(
3311
3325
  objectTypeHolder,
3312
3326
  {
3313
3327
  type: "methodInput"
@@ -3358,7 +3372,7 @@ var Store = class {
3358
3372
  subjects = this.layers.subjects;
3359
3373
  // these are hopefully temporary
3360
3374
  constructor(client) {
3361
- this.logger = client[chunkDZE6IAUU_cjs.additionalContext].logger?.child({}, {
3375
+ this.logger = client[chunkS3HJUSQ7_cjs.additionalContext].logger?.child({}, {
3362
3376
  msgPrefix: "Store"
3363
3377
  });
3364
3378
  this.client = client;
@@ -3624,10 +3638,10 @@ var Store = class {
3624
3638
 
3625
3639
  // src/observable/ObservableClient.ts
3626
3640
  function createObservableClient(client) {
3627
- const tweakedClient = chunkS4JPAF56_cjs.createClientFromContext({
3628
- ...client[chunkDZE6IAUU_cjs.additionalContext],
3629
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkDZE6IAUU_cjs.additionalContext].fetch, (headers) => {
3630
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkS4JPAF56_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
3641
+ const tweakedClient = chunk6P7VLXH3_cjs.createClientFromContext({
3642
+ ...client[chunkS3HJUSQ7_cjs.additionalContext],
3643
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkS3HJUSQ7_cjs.additionalContext].fetch, (headers) => {
3644
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk6P7VLXH3_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
3631
3645
  return headers;
3632
3646
  })
3633
3647
  });
@@ -3671,11 +3685,11 @@ function getOsdkConfig(ontologyRid) {
3671
3685
 
3672
3686
  Object.defineProperty(exports, "createClientWithTransaction", {
3673
3687
  enumerable: true,
3674
- get: function () { return chunkS4JPAF56_cjs.createClientWithTransaction; }
3688
+ get: function () { return chunk6P7VLXH3_cjs.createClientWithTransaction; }
3675
3689
  });
3676
3690
  Object.defineProperty(exports, "augment", {
3677
3691
  enumerable: true,
3678
- get: function () { return chunkDZE6IAUU_cjs.augment; }
3692
+ get: function () { return chunkS3HJUSQ7_cjs.augment; }
3679
3693
  });
3680
3694
  exports.computeObjectSetCacheKey = computeObjectSetCacheKey;
3681
3695
  exports.createObservableClient = createObservableClient;