@osdk/client 2.3.0-rc.11 → 2.3.0

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkLZ4GFSOQ_cjs = require('./chunk-LZ4GFSOQ.cjs');
3
+ var chunk2MTGADU5_cjs = require('./chunk-2MTGADU5.cjs');
4
4
  require('./chunk-QHPACIXZ.cjs');
5
5
  var api = require('@osdk/api');
6
6
  var shared_net_errors = require('@osdk/shared.net.errors');
@@ -12,7 +12,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
12
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
13
13
 
14
14
  function createPlatformClient(baseUrl, tokenProvider, options = void 0, fetchFn = fetch) {
15
- return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkLZ4GFSOQ_cjs.USER_AGENT, fetchFn);
15
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunk2MTGADU5_cjs.USER_AGENT, fetchFn);
16
16
  }
17
17
  var isoRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
18
18
  var extractDate = (dateTime) => {
@@ -36,15 +36,15 @@ var extractDateFromIsoString = (dateTime) => {
36
36
 
37
37
  Object.defineProperty(exports, "ActionValidationError", {
38
38
  enumerable: true,
39
- get: function () { return chunkLZ4GFSOQ_cjs.ActionValidationError; }
39
+ get: function () { return chunk2MTGADU5_cjs.ActionValidationError; }
40
40
  });
41
41
  Object.defineProperty(exports, "createAttachmentUpload", {
42
42
  enumerable: true,
43
- get: function () { return chunkLZ4GFSOQ_cjs.createAttachmentUpload; }
43
+ get: function () { return chunk2MTGADU5_cjs.createAttachmentUpload; }
44
44
  });
45
45
  Object.defineProperty(exports, "createClient", {
46
46
  enumerable: true,
47
- get: function () { return chunkLZ4GFSOQ_cjs.createClient; }
47
+ get: function () { return chunk2MTGADU5_cjs.createClient; }
48
48
  });
49
49
  Object.defineProperty(exports, "isOk", {
50
50
  enumerable: true,
@@ -1,5 +1,5 @@
1
1
  import { Logger, AttachmentUpload } from '@osdk/api';
2
- export { ActionDefinition, ActionEditResponse, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions, Attachment, CompileTimeMetadata, InterfaceDefinition, Logger, ObjectMetadata, ObjectSet, ObjectSpecifier, ObjectTypeDefinition, Osdk, OsdkObject, 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, InterfaceDefinition, Logger, 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
5
  import { C as Client } from './Client-CgL2LKN9.cjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkLZ4GFSOQ_cjs = require('../chunk-LZ4GFSOQ.cjs');
3
+ var chunk2MTGADU5_cjs = require('../chunk-2MTGADU5.cjs');
4
4
  var chunkQHPACIXZ_cjs = require('../chunk-QHPACIXZ.cjs');
5
5
  var shared_net_fetch = require('@osdk/shared.net.fetch');
6
6
  var rxjs = require('rxjs');
@@ -1228,7 +1228,7 @@ var ListQuery = class extends BaseListQuery {
1228
1228
  }
1229
1229
  #extractRelevantObjectsForTypeInterface(changes) {
1230
1230
  const matchesApiName = ([, object]) => {
1231
- return this.#apiName in object[chunkLZ4GFSOQ_cjs.ObjectDefRef].interfaceMap;
1231
+ return this.#apiName in object[chunk2MTGADU5_cjs.ObjectDefRef].interfaceMap;
1232
1232
  };
1233
1233
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.#apiName));
1234
1234
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.#apiName));
@@ -1404,7 +1404,7 @@ function createOrderBySortFns(orderBy) {
1404
1404
  async function reloadDataAsFullObjects(client, data) {
1405
1405
  const groups = groupBy__default.default(data, (x) => x.$objectType);
1406
1406
  const objectTypeToPrimaryKeyToObject = Object.fromEntries(await Promise.all(Object.entries(groups).map(async ([apiName, objects]) => {
1407
- const objectDef = objects[0][chunkLZ4GFSOQ_cjs.UnderlyingOsdkObject][chunkLZ4GFSOQ_cjs.ObjectDefRef];
1407
+ const objectDef = objects[0][chunk2MTGADU5_cjs.UnderlyingOsdkObject][chunk2MTGADU5_cjs.ObjectDefRef];
1408
1408
  const where = {
1409
1409
  [objectDef.primaryKeyApiName]: {
1410
1410
  $in: objects.map((x) => x.$primaryKey)
@@ -1906,10 +1906,10 @@ var Store = class {
1906
1906
 
1907
1907
  // src/observable/ObservableClient.ts
1908
1908
  function createObservableClient(client) {
1909
- const tweakedClient = chunkLZ4GFSOQ_cjs.createClientFromContext({
1909
+ const tweakedClient = chunk2MTGADU5_cjs.createClientFromContext({
1910
1910
  ...client[chunkQHPACIXZ_cjs.additionalContext],
1911
1911
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkQHPACIXZ_cjs.additionalContext].fetch, (headers) => {
1912
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkLZ4GFSOQ_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
1912
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk2MTGADU5_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
1913
1913
  return headers;
1914
1914
  })
1915
1915
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["isOk","PalantirApiError","ActionValidationError","createClient","createPlatformClient","createAttachmentUpload","extractDate","extractDateInLocalTime","extractDateInUTC"],"sources":["index.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 type {\n ActionDefinition,\n ActionEditResponse,\n ActionMetadata,\n ActionParam,\n ActionReturnTypeForOptions,\n ActionValidationResponse,\n ApplyActionOptions,\n ApplyBatchActionOptions,\n Attachment,\n CompileTimeMetadata,\n InterfaceDefinition,\n Logger,\n ObjectMetadata,\n ObjectSet,\n ObjectSpecifier,\n ObjectTypeDefinition,\n Osdk,\n OsdkObject,\n OsdkObjectPropertyType,\n PageResult,\n PropertyDef,\n PropertyKeys,\n PropertyValueWireToClient,\n QueryDefinition,\n QueryParam,\n QueryResult,\n Range,\n Result,\n SingleLinkAccessor,\n ThreeDimensionalAggregation,\n TwoDimensionalAggregation,\n VersionBound,\n WhereClause,\n} from \"@osdk/api\";\nexport { isOk } from \"@osdk/api\";\nexport { PalantirApiError } from \"@osdk/shared.net.errors\";\n\nexport { ActionValidationError } from \"./actions/ActionValidationError.js\";\nexport type { Client } from \"./Client.js\";\nexport { createClient } from \"./createClient.js\";\nexport { createPlatformClient } from \"./createPlatformClient.js\";\nexport type { PlatformClient } from \"./createPlatformClient.js\";\nexport { createAttachmentUpload } from \"./object/AttachmentUpload.js\";\nexport type { ResultOrError } from \"./ResultOrError.js\";\n\nexport {\n extractDate,\n extractDateInLocalTime,\n extractDateInUTC,\n} from \"./util/datetimeConverters.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAqCA,SAASA,IAAI,QAAQ,WAAW;AAChC,SAASC,gBAAgB,QAAQ,yBAAyB;AAE1D,SAASC,qBAAqB,QAAQ,oCAAoC;AAE1E,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAASC,oBAAoB,QAAQ,2BAA2B;AAEhE,SAASC,sBAAsB,QAAQ,8BAA8B;AAGrE,SACEC,WAAW,EACXC,sBAAsB,EACtBC,gBAAgB,QACX,8BAA8B","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["isOk","PalantirApiError","ActionValidationError","createClient","createPlatformClient","createAttachmentUpload","extractDate","extractDateInLocalTime","extractDateInUTC"],"sources":["index.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 type {\n ActionDefinition,\n ActionEditResponse,\n ActionMetadata,\n ActionParam,\n ActionReturnTypeForOptions,\n ActionValidationResponse,\n ApplyActionOptions,\n ApplyBatchActionOptions,\n Attachment,\n CompileTimeMetadata,\n InterfaceDefinition,\n Logger,\n ObjectMetadata,\n ObjectSet,\n ObjectSpecifier,\n ObjectTypeDefinition,\n Osdk,\n OsdkObject,\n OsdkObjectCreatePropertyType,\n OsdkObjectPropertyType,\n PageResult,\n PropertyDef,\n PropertyKeys,\n PropertyValueWireToClient,\n QueryDefinition,\n QueryParam,\n QueryResult,\n Range,\n Result,\n SingleLinkAccessor,\n ThreeDimensionalAggregation,\n TwoDimensionalAggregation,\n VersionBound,\n WhereClause,\n} from \"@osdk/api\";\nexport { isOk } from \"@osdk/api\";\nexport { PalantirApiError } from \"@osdk/shared.net.errors\";\n\nexport { ActionValidationError } from \"./actions/ActionValidationError.js\";\nexport type { Client } from \"./Client.js\";\nexport { createClient } from \"./createClient.js\";\nexport { createPlatformClient } from \"./createPlatformClient.js\";\nexport type { PlatformClient } from \"./createPlatformClient.js\";\nexport { createAttachmentUpload } from \"./object/AttachmentUpload.js\";\nexport type { ResultOrError } from \"./ResultOrError.js\";\n\nexport {\n extractDate,\n extractDateInLocalTime,\n extractDateInUTC,\n} from \"./util/datetimeConverters.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsCA,SAASA,IAAI,QAAQ,WAAW;AAChC,SAASC,gBAAgB,QAAQ,yBAAyB;AAE1D,SAASC,qBAAqB,QAAQ,oCAAoC;AAE1E,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAASC,oBAAoB,QAAQ,2BAA2B;AAEhE,SAASC,sBAAsB,QAAQ,8BAA8B;AAGrE,SACEC,WAAW,EACXC,sBAAsB,EACtBC,gBAAgB,QACX,8BAA8B","ignoreList":[]}
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.3.0-rc.11"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.3.0-rc.11"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.3.0"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.3.0"}`;
19
19
  //# sourceMappingURL=UserAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_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}`;\nexport const OBSERVABLE_USER_AGENT: string =\n `osdk-observable-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;AAC9E,OAAO,MAAMC,qBAA6B,GACxC,yCAAuD","ignoreList":[]}
1
+ {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_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}`;\nexport const OBSERVABLE_USER_AGENT: string =\n `osdk-observable-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;AAC9E,OAAO,MAAMC,qBAA6B,GACxC,mCAAuD","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- export type { ActionDefinition, ActionEditResponse, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions, Attachment, CompileTimeMetadata, InterfaceDefinition, Logger, ObjectMetadata, ObjectSet, ObjectSpecifier, ObjectTypeDefinition, Osdk, OsdkObject, OsdkObjectPropertyType, PageResult, PropertyDef, PropertyKeys, PropertyValueWireToClient, QueryDefinition, QueryParam, QueryResult, Range, Result, SingleLinkAccessor, ThreeDimensionalAggregation, TwoDimensionalAggregation, VersionBound, WhereClause } from "@osdk/api";
1
+ export type { ActionDefinition, ActionEditResponse, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions, Attachment, CompileTimeMetadata, InterfaceDefinition, Logger, ObjectMetadata, ObjectSet, ObjectSpecifier, ObjectTypeDefinition, Osdk, OsdkObject, OsdkObjectCreatePropertyType, OsdkObjectPropertyType, PageResult, PropertyDef, PropertyKeys, PropertyValueWireToClient, QueryDefinition, QueryParam, QueryResult, Range, Result, SingleLinkAccessor, ThreeDimensionalAggregation, TwoDimensionalAggregation, VersionBound, WhereClause } from "@osdk/api";
2
2
  export { isOk } from "@osdk/api";
3
3
  export { PalantirApiError } from "@osdk/shared.net.errors";
4
4
  export { ActionValidationError } from "./actions/ActionValidationError.js";
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,kBACA,oBACA,gBACA,aACA,4BACA,0BACA,oBACA,yBACA,YACA,qBACA,qBACA,QACA,gBACA,WACA,iBACA,sBACA,MACA,YACA,wBACA,YACA,aACA,cACA,2BACA,iBACA,YACA,aACA,OACA,QACA,oBACA,6BACA,2BACA,cACA,mBACK;AACP,SAAS,YAAY;AACrB,SAAS,wBAAwB;AAEjC,SAAS,6BAA6B;AACtC,cAAc,cAAc;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AACrC,cAAc,sBAAsB;AACpC,SAAS,8BAA8B;AACvC,cAAc,qBAAqB;AAEnC,SACE,aACA,wBACA,wBACK","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
1
+ {"mappings":"AAgBA,cACE,kBACA,oBACA,gBACA,aACA,4BACA,0BACA,oBACA,yBACA,YACA,qBACA,qBACA,QACA,gBACA,WACA,iBACA,sBACA,MACA,YACA,8BACA,wBACA,YACA,aACA,cACA,2BACA,iBACA,YACA,aACA,OACA,QACA,oBACA,6BACA,2BACA,cACA,mBACK;AACP,SAAS,YAAY;AACrB,SAAS,wBAAwB;AAEjC,SAAS,6BAA6B;AACtC,cAAc,cAAc;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AACrC,cAAc,sBAAsB;AACpC,SAAS,8BAA8B;AACvC,cAAc,qBAAqB;AAEnC,SACE,aACA,wBACA,wBACK","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/client",
3
- "version": "2.3.0-rc.11",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -65,12 +65,12 @@
65
65
  "tiny-invariant": "^1.3.1",
66
66
  "type-fest": "^4.18.2",
67
67
  "ws": "^8.18.0",
68
- "@osdk/api": "2.3.0-rc.11",
69
- "@osdk/client.unstable": "2.3.0-rc.11",
70
- "@osdk/generator-converters": "2.3.0-rc.11",
71
- "@osdk/shared.client.impl": "~1.3.0-beta.1",
72
- "@osdk/shared.net.fetch": "~1.3.0-beta.1",
73
- "@osdk/shared.net.errors": "~2.3.0-beta.1"
68
+ "@osdk/api": "~2.3.0",
69
+ "@osdk/shared.net.errors": "~2.3.0",
70
+ "@osdk/client.unstable": "2.3.0",
71
+ "@osdk/shared.client.impl": "~1.3.0",
72
+ "@osdk/shared.net.fetch": "~1.3.0",
73
+ "@osdk/generator-converters": "2.3.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@microsoft/api-documenter": "^7.26.5",
@@ -91,10 +91,10 @@
91
91
  "ts-expect": "^1.3.0",
92
92
  "typescript": "~5.5.4",
93
93
  "zod": "^3.23.8",
94
- "@osdk/client.test.ontology": "~2.3.0-rc.11",
95
- "@osdk/monorepo.api-extractor": "~0.2.0-beta.1",
96
- "@osdk/monorepo.tsconfig": "~0.2.0-beta.1",
97
- "@osdk/shared.test": "~2.3.0-rc.11"
94
+ "@osdk/monorepo.api-extractor": "~0.2.0",
95
+ "@osdk/client.test.ontology": "~2.3.0",
96
+ "@osdk/monorepo.tsconfig": "~0.2.0",
97
+ "@osdk/shared.test": "~2.3.0"
98
98
  },
99
99
  "publishConfig": {
100
100
  "access": "public"