@osdk/client 2.1.0-rc.32 → 2.1.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,191 @@
1
1
  # @osdk/client
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [2e827ae]
8
+ - @osdk/api@2.1.1
9
+ - @osdk/generator-converters@2.1.1
10
+ - @osdk/client.unstable@2.1.1
11
+
12
+ ## 2.1.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 966d408: Rename type for base action parameter types.
17
+ - b773513: Fix onOutOfDate handler from being fired twice
18
+ - cddc196: Try-catches handlers called during subscription
19
+ - d794c19: Adding support for struct action params.
20
+ - 05febf4: Adds Reference Update support in subscribe
21
+ - 55c05f2: Remove runtime derived properties from external types.
22
+ - a06ec35: Fixes the lastFetchedValue on a Geotime Series property from reference updates
23
+ - 0dc40b0: Switch to OSDK.Instance
24
+ - 3703d81: Changed shared context to a version less error prone
25
+ - 6f50516: Fix bug where object return types in a query were not properly mapped when wrapped in a struct.
26
+ - 25fd9f0: Updating package.json to have better entry points to support react native bundlers.
27
+ - 11a05cc: Updated subscribe api to make requesting properties optional
28
+ - 7865cb6: Add support for search on struct properties.
29
+ - e6fbd94: Export Attachment from client
30
+ - 9c4efe6: Support uploading media parameters through actions
31
+ - 0a7c747: Add support for timeseries sensors.
32
+ - 3ea2e79: Creates new export for internal helper functions
33
+ - 1812118: Add geotime support for OSDK.
34
+ - d927a1d: Throws error in createClient when passed an invalid ontology RID
35
+ - bc1761c: Update platform API dependencies.
36
+ - 656f975: Fixes attachment upload inputs sending incorrect in browser contexts
37
+ - f1145ff: Adds support for runtime derived properties
38
+ - 1c59d93: Allows interfaces to be used with subscribe
39
+ - f446d0c: Exposes $clone from OSDK Object instances
40
+ - c80ca45: Add ability to create interfaces through actions now.
41
+ - bb8b219: Use new external packages instead of the internal ones.
42
+ - 44e62f6: Updating fetch for auth and other packages.
43
+ - 03f95eb: Add support for interface params in actions.
44
+ - 91cfa3a: Fixing url parsing for client.
45
+ - 94463b6: Support objects as code
46
+ - 14624f7: Supports custom formatters in browser
47
+ - 1a89f23: Removing support for augmenting interfaces when fetching them.
48
+ - 9d35a1f: Remove unused imports
49
+ - c691c8b: Package now has experimental support for commonjs
50
+ - 749cf69: Remove experimental non null for now.
51
+ - f03e39f: Add a namespace type for listeners.
52
+ - d464009: improves interface api name mapping with api namespaces
53
+ - 11088aa: Fix where clause types so we don't accept more than one key in the clauses.
54
+ - 720218d: OSDK Client no longer uses javascript proxies for its objects. This results in a 13% increase in construction time but at 1kb per object reduction in memory
55
+ - 9298f75: Using new interface APIs for backend.
56
+ - eb27b54: Fix URL for experimental method
57
+ - 7a95618: Generate new OMS APIs
58
+ - f34b3d4: Add ability to fetch by rid, experimentally.
59
+ - d88fdb9: Adds methods to extract date strings from Dates and ISO-8601 strings
60
+ - 8eb2378: Fixes where clauses when objects have an api namespace
61
+ - acbfab9: Fixes where clauses for interfaces with no properties.
62
+ - c9da74c: Improves code quality by fixing linting errors
63
+ - 27f0f77: Interface instances are immutable just like object instances
64
+ - 015279b: Fix use of new interfaces api with preview flag.
65
+ - 62c1d63: Add support for reading media reference property in OSDK.
66
+ - 3c9ac22: Cleaning up where clause types.
67
+ - 91cfa3a: Fixing URL parsing for custom entry points.
68
+ - e86e91d: Internal property of Client is removed from output
69
+ - abfe4b3: Add support for reading struct properties.
70
+ - 27866a8: Removing interface argument for selecting object types. This is not supported in the new apis, and is not being used internally anywhere with the old apis.
71
+ - 0cd1603: Fixes AttachmentUpload for browser contexts
72
+ - a7a4aef: Removes dependency on crypto
73
+ - e5fe7c0: Adds experimental method to convert an object set into RID
74
+ - 1b2e8c9: Adds subscribe feature directly to client
75
+ - 9f3807c: Allows $in to take a readonly array
76
+ - d12c92b: Fixes process.env.NODE_ENV handling
77
+ - 0c56d21: Exposing fuzzy searching.
78
+ - e548b9b: Updates subscribe to return object updates
79
+ - 6671a39: Upgrade execa where used
80
+ - 5e78575: Fix queries that have response types with nested values, like arrays.
81
+ - ee6224b: Explicitly type aggregation types in queries.
82
+ - 1dc0228: Change experimental code style to prevent future breaks
83
+ - fa02ebf: Adds SLS dependency for object-set-watcher API
84
+ - 9af346e: Fixing proxy handlers.
85
+ - d3b3f35: Add's onSuccessfulSubscribe handler to subscribe functionality
86
+ - c682504: Locks dependency version of 3 internal libraries
87
+ - 9018dc2: Updating platform api dependencies.
88
+ - a6c320d: Internal optimization to reduce memory usage for unused interface objects
89
+ - 8026baf: Update interface support for .subscribe
90
+ - 6b6c8a1: Updates gateway endpoints and changes fetchContents for attachments to return a response
91
+ - c537e2d: Remove unused imports.
92
+ - 3fc2ee6: Include more descriptive JS docs for public utils
93
+ - 0d8ac3b: Remove attachment from exports.
94
+ - 73fa373: Exports helper method to construct object sets from RIDs from internal utils
95
+ - 8e6a5f4: Avoid type-fest's IsAny as it doesn't always work
96
+ - 09eaf24: Update to latest platform sdks
97
+ - 71dfb4c: Now export all api shapes from client, so use that dependency instead.
98
+ - 2d5e648: Remove subscribe from experimental gate.
99
+ - c4f88a8: Removes circular dependency that may upset legacy tools like react-native
100
+ - d665147: Update platform sdk deps
101
+ - f19da8e: Remove where clause from aggregate options. This option was never actually doing anything before as it was not passed to the backend for processing, so we are removing it to prevent future confusion.
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies [966d408]
106
+ - Updated dependencies [cddc196]
107
+ - Updated dependencies [d794c19]
108
+ - Updated dependencies [05febf4]
109
+ - Updated dependencies [55c05f2]
110
+ - Updated dependencies [0dc40b0]
111
+ - Updated dependencies [3703d81]
112
+ - Updated dependencies [25fd9f0]
113
+ - Updated dependencies [1b60b3d]
114
+ - Updated dependencies [11a05cc]
115
+ - Updated dependencies [7865cb6]
116
+ - Updated dependencies [9c4efe6]
117
+ - Updated dependencies [0a7c747]
118
+ - Updated dependencies [f0b519d]
119
+ - Updated dependencies [3ea2e79]
120
+ - Updated dependencies [1812118]
121
+ - Updated dependencies [bc1761c]
122
+ - Updated dependencies [656f975]
123
+ - Updated dependencies [f1145ff]
124
+ - Updated dependencies [f446d0c]
125
+ - Updated dependencies [c80ca45]
126
+ - Updated dependencies [bb8b219]
127
+ - Updated dependencies [44e62f6]
128
+ - Updated dependencies [03f95eb]
129
+ - Updated dependencies [91cfa3a]
130
+ - Updated dependencies [94463b6]
131
+ - Updated dependencies [1a89f23]
132
+ - Updated dependencies [9d35a1f]
133
+ - Updated dependencies [c691c8b]
134
+ - Updated dependencies [749cf69]
135
+ - Updated dependencies [f03e39f]
136
+ - Updated dependencies [11088aa]
137
+ - Updated dependencies [72c1905]
138
+ - Updated dependencies [9298f75]
139
+ - Updated dependencies [7a95618]
140
+ - Updated dependencies [f34b3d4]
141
+ - Updated dependencies [acbfab9]
142
+ - Updated dependencies [c9da74c]
143
+ - Updated dependencies [62c1d63]
144
+ - Updated dependencies [3c9ac22]
145
+ - Updated dependencies [1591f04]
146
+ - Updated dependencies [03e1941]
147
+ - Updated dependencies [963addb]
148
+ - Updated dependencies [abfe4b3]
149
+ - Updated dependencies [b79becf]
150
+ - Updated dependencies [27866a8]
151
+ - Updated dependencies [caf1abc]
152
+ - Updated dependencies [e5fe7c0]
153
+ - Updated dependencies [1b2e8c9]
154
+ - Updated dependencies [81b2fb2]
155
+ - Updated dependencies [9f3807c]
156
+ - Updated dependencies [ecd4aee]
157
+ - Updated dependencies [0c56d21]
158
+ - Updated dependencies [e548b9b]
159
+ - Updated dependencies [83e7ea3]
160
+ - Updated dependencies [ee6224b]
161
+ - Updated dependencies [1dc0228]
162
+ - Updated dependencies [6c60414]
163
+ - Updated dependencies [5fe2c8d]
164
+ - Updated dependencies [7d777eb]
165
+ - Updated dependencies [1132993]
166
+ - Updated dependencies [d3b3f35]
167
+ - Updated dependencies [c682504]
168
+ - Updated dependencies [785f663]
169
+ - Updated dependencies [9018dc2]
170
+ - Updated dependencies [6b6c8a1]
171
+ - Updated dependencies [c537e2d]
172
+ - Updated dependencies [73fa373]
173
+ - Updated dependencies [bf0e3b4]
174
+ - Updated dependencies [8e6a5f4]
175
+ - Updated dependencies [2b35ed4]
176
+ - Updated dependencies [09eaf24]
177
+ - Updated dependencies [2d5e648]
178
+ - Updated dependencies [06e66dc]
179
+ - Updated dependencies [31e7d70]
180
+ - Updated dependencies [d665147]
181
+ - Updated dependencies [f19da8e]
182
+ - @osdk/generator-converters@2.1.0
183
+ - @osdk/api@2.1.0
184
+ - @osdk/shared.client.impl@1.1.0
185
+ - @osdk/client.unstable@2.1.0
186
+ - @osdk/shared.net.errors@2.1.0
187
+ - @osdk/shared.net.fetch@1.1.0
188
+
3
189
  ## 2.1.0-rc.32
4
190
 
5
191
  ### Patch Changes
@@ -21,7 +21,7 @@
21
21
  export const additionalContext = Symbol("additionalContext");
22
22
 
23
23
  // BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.
24
- const MaxOsdkVersion = "2.1.0";
24
+ const MaxOsdkVersion = "2.1.1";
25
25
  // END: THIS IS GENERATED CODE. DO NOT EDIT.
26
26
 
27
27
  const ErrorMessage = Symbol("ErrorMessage");
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"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\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> = Q extends VersionBound<infer V> ? (\n SatisfiesSemver<V, MaxOsdkVersion> extends true ? Q\n : Q & {\n [ErrorMessage]:\n `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n )\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends (InterfaceDefinition)>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends ActionDefinition<any>>(\n o: Q,\n ): ActionSignatureFromDef<Q>;\n\n <Q extends QueryDefinition<any>>(\n o: Q,\n ): QuerySignatureFromDef<Q>;\n\n <Q extends Experiment<\"2.0.8\"> | Experiment<\"2.1.0\">>(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n fetchMetadata<\n Q extends (\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>\n ),\n >(o: Q): Promise<\n Q extends ObjectTypeDefinition ? ObjectMetadata\n : Q extends InterfaceDefinition ? InterfaceMetadata\n : Q extends ActionDefinition<any> ? ActionMetadata\n : Q extends QueryDefinition<any> ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.1.0\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA0BA;;AAsDA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,OAAO;AAC9B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"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\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> = Q extends VersionBound<infer V> ? (\n SatisfiesSemver<V, MaxOsdkVersion> extends true ? Q\n : Q & {\n [ErrorMessage]:\n `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n )\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends (InterfaceDefinition)>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends ActionDefinition<any>>(\n o: Q,\n ): ActionSignatureFromDef<Q>;\n\n <Q extends QueryDefinition<any>>(\n o: Q,\n ): QuerySignatureFromDef<Q>;\n\n <Q extends Experiment<\"2.0.8\"> | Experiment<\"2.1.0\">>(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n fetchMetadata<\n Q extends (\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>\n ),\n >(o: Q): Promise<\n Q extends ObjectTypeDefinition ? ObjectMetadata\n : Q extends InterfaceDefinition ? InterfaceMetadata\n : Q extends ActionDefinition<any> ? ActionMetadata\n : Q extends QueryDefinition<any> ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.1.1\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA0BA;;AAsDA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,OAAO;AAC9B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.1.0-rc.32"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.1.1"}`;
18
18
  //# sourceMappingURL=UserAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAgent.js","names":["USER_AGENT"],"sources":["UserAgent.ts"],"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\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,8BAA4C","ignoreList":[]}
1
+ {"version":3,"file":"UserAgent.js","names":["USER_AGENT"],"sources":["UserAgent.ts"],"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\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,wBAA4C","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkFEUFIE6T_cjs = require('./chunk-FEUFIE6T.cjs');
3
+ var chunkFWVJ2AKD_cjs = require('./chunk-FWVJ2AKD.cjs');
4
4
  var shared_net_errors = require('@osdk/shared.net.errors');
5
5
  var api = require('@osdk/api');
6
6
  var invariant4 = require('tiny-invariant');
@@ -13,16 +13,16 @@ var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
13
13
 
14
14
  // src/public-utils/hydrateAttachmentFromRid.ts
15
15
  function hydrateAttachmentFromRid(client, rid) {
16
- return hydrateAttachmentFromRidInternal(client[chunkFEUFIE6T_cjs.additionalContext], rid);
16
+ return hydrateAttachmentFromRidInternal(client[chunkFWVJ2AKD_cjs.additionalContext], rid);
17
17
  }
18
18
  function hydrateAttachmentFromRidInternal(client, rid) {
19
19
  return {
20
20
  rid,
21
21
  async fetchContents() {
22
- return chunkFEUFIE6T_cjs.Attachment_exports.read(client, rid);
22
+ return chunkFWVJ2AKD_cjs.Attachment_exports.read(client, rid);
23
23
  },
24
24
  async fetchMetadata() {
25
- const r = await chunkFEUFIE6T_cjs.Attachment_exports.get(client, rid);
25
+ const r = await chunkFWVJ2AKD_cjs.Attachment_exports.get(client, rid);
26
26
  return {
27
27
  ...r,
28
28
  sizeBytes: Number(r.sizeBytes)
@@ -31,7 +31,7 @@ function hydrateAttachmentFromRidInternal(client, rid) {
31
31
  };
32
32
  }
33
33
  async function fetchSingle(client, objectType, args, objectSet) {
34
- const result = await chunkFEUFIE6T_cjs.fetchPage(client, objectType, {
34
+ const result = await chunkFWVJ2AKD_cjs.fetchPage(client, objectType, {
35
35
  ...args,
36
36
  $pageSize: 1
37
37
  }, objectSet);
@@ -323,8 +323,8 @@ function convertRange(range) {
323
323
  }
324
324
 
325
325
  // src/object/aggregate.ts
326
- async function aggregate(clientCtx, objectType, objectSet = chunkFEUFIE6T_cjs.resolveBaseObjectSetType(objectType), req) {
327
- chunkFEUFIE6T_cjs.resolveBaseObjectSetType(objectType);
326
+ async function aggregate(clientCtx, objectType, objectSet = chunkFWVJ2AKD_cjs.resolveBaseObjectSetType(objectType), req) {
327
+ chunkFWVJ2AKD_cjs.resolveBaseObjectSetType(objectType);
328
328
  const body = {
329
329
  aggregation: modernToLegacyAggregationClause(req.$select),
330
330
  groupBy: [],
@@ -333,7 +333,7 @@ async function aggregate(clientCtx, objectType, objectSet = chunkFEUFIE6T_cjs.re
333
333
  if (req.$groupBy) {
334
334
  body.groupBy = modernToLegacyGroupByClause(req.$groupBy);
335
335
  }
336
- const result = await chunkFEUFIE6T_cjs.OntologyObjectSet_exports.aggregate(chunkFEUFIE6T_cjs.addUserAgentAndRequestContextHeaders(clientCtx, objectType), await clientCtx.ontologyRid, {
336
+ const result = await chunkFWVJ2AKD_cjs.OntologyObjectSet_exports.aggregate(chunkFWVJ2AKD_cjs.addUserAgentAndRequestContextHeaders(clientCtx, objectType), await clientCtx.ontologyRid, {
337
337
  objectSet,
338
338
  groupBy: body.groupBy,
339
339
  aggregation: body.aggregation
@@ -808,15 +808,15 @@ function getWireObjectSet(objectSet) {
808
808
  return objectSetDefinitions.get(objectSet);
809
809
  }
810
810
  var objectSetDefinitions = /* @__PURE__ */ new WeakMap();
811
- function createObjectSet(objectType, clientCtx, objectSet = chunkFEUFIE6T_cjs.resolveBaseObjectSetType(objectType)) {
811
+ function createObjectSet(objectType, clientCtx, objectSet = chunkFWVJ2AKD_cjs.resolveBaseObjectSetType(objectType)) {
812
812
  const base = {
813
813
  aggregate: aggregate.bind(globalThis, augmentRequestContext(clientCtx, (_) => ({
814
814
  finalMethodCall: "aggregate"
815
815
  })), objectType, objectSet),
816
- fetchPage: chunkFEUFIE6T_cjs.fetchPageInternal.bind(globalThis, augmentRequestContext(clientCtx, (_) => ({
816
+ fetchPage: chunkFWVJ2AKD_cjs.fetchPageInternal.bind(globalThis, augmentRequestContext(clientCtx, (_) => ({
817
817
  finalMethodCall: "fetchPage"
818
818
  })), objectType, objectSet),
819
- fetchPageWithErrors: chunkFEUFIE6T_cjs.fetchPageWithErrorsInternal.bind(globalThis, augmentRequestContext(clientCtx, (_) => ({
819
+ fetchPageWithErrors: chunkFWVJ2AKD_cjs.fetchPageWithErrorsInternal.bind(globalThis, augmentRequestContext(clientCtx, (_) => ({
820
820
  finalMethodCall: "fetchPageWithErrors"
821
821
  })), objectType, objectSet),
822
822
  where: (clause) => {
@@ -850,7 +850,7 @@ function createObjectSet(objectType, clientCtx, objectSet = chunkFEUFIE6T_cjs.re
850
850
  asyncIter: async function* (args) {
851
851
  let $nextPageToken = undefined;
852
852
  do {
853
- const result = await chunkFEUFIE6T_cjs.fetchPageInternal(augmentRequestContext(clientCtx, (_) => ({
853
+ const result = await chunkFWVJ2AKD_cjs.fetchPageInternal(augmentRequestContext(clientCtx, (_) => ({
854
854
  finalMethodCall: "asyncIter"
855
855
  })), objectType, objectSet, {
856
856
  ...args,
@@ -918,5 +918,5 @@ exports.hydrateAttachmentFromRid = hydrateAttachmentFromRid;
918
918
  exports.hydrateAttachmentFromRidInternal = hydrateAttachmentFromRidInternal;
919
919
  exports.isObjectSet = isObjectSet;
920
920
  exports.isWireObjectSet = isWireObjectSet;
921
- //# sourceMappingURL=chunk-65QQ6SME.cjs.map
922
- //# sourceMappingURL=chunk-65QQ6SME.cjs.map
921
+ //# sourceMappingURL=chunk-DLSRNRTA.cjs.map
922
+ //# sourceMappingURL=chunk-DLSRNRTA.cjs.map