@osdk/client 2.6.0-rc.15 → 2.6.0-rc.17
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 +17 -0
- package/build/browser/object/AttachmentUpload.js +1 -1
- package/build/browser/object/AttachmentUpload.js.map +1 -1
- package/build/browser/object/mediaUpload.js +1 -1
- package/build/browser/object/mediaUpload.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/cjs/{chunk-4RXBUPV7.cjs → chunk-Y6AQWL26.cjs} +6 -6
- package/build/cjs/chunk-Y6AQWL26.cjs.map +1 -0
- package/build/cjs/index.cjs +7 -7
- package/build/cjs/public/unstable-do-not-use.cjs +6 -6
- package/build/esm/object/AttachmentUpload.js +1 -1
- package/build/esm/object/AttachmentUpload.js.map +1 -1
- package/build/esm/object/mediaUpload.js +1 -1
- package/build/esm/object/mediaUpload.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/types/object/AttachmentUpload.d.ts.map +1 -1
- package/package.json +8 -8
- package/build/cjs/chunk-4RXBUPV7.cjs.map +0 -1
package/build/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkY6AQWL26_cjs = require('./chunk-Y6AQWL26.cjs');
|
|
4
4
|
require('./chunk-S3HJUSQ7.cjs');
|
|
5
5
|
var chunk6SCDLAU2_cjs = require('./chunk-6SCDLAU2.cjs');
|
|
6
6
|
var api = require('@osdk/api');
|
|
@@ -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,
|
|
21
|
+
return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkY6AQWL26_cjs.USER_AGENT, fetchFn);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// src/util/datetimeConverters.ts
|
|
@@ -45,23 +45,23 @@ var extractDateFromIsoString = (dateTime) => {
|
|
|
45
45
|
|
|
46
46
|
Object.defineProperty(exports, "ActionValidationError", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkY6AQWL26_cjs.ActionValidationError; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "createAttachmentUpload", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkY6AQWL26_cjs.createAttachmentUpload; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "createClient", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkY6AQWL26_cjs.createClient; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkY6AQWL26_cjs.createObjectSpecifierFromPrimaryKey; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkY6AQWL26_cjs.extractPrimaryKeyFromObjectSpecifier; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "isOk", {
|
|
67
67
|
enumerable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkY6AQWL26_cjs = require('../chunk-Y6AQWL26.cjs');
|
|
4
4
|
var chunkS3HJUSQ7_cjs = require('../chunk-S3HJUSQ7.cjs');
|
|
5
5
|
var chunk6SCDLAU2_cjs = require('../chunk-6SCDLAU2.cjs');
|
|
6
6
|
var trie = require('@wry/trie');
|
|
@@ -2491,7 +2491,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
extractRelevantObjects(changes) {
|
|
2493
2493
|
const matchesApiName = ([, object]) => {
|
|
2494
|
-
return this.apiName in object[
|
|
2494
|
+
return this.apiName in object[chunkY6AQWL26_cjs.ObjectDefRef].interfaceMap;
|
|
2495
2495
|
};
|
|
2496
2496
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
|
|
2497
2497
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
|
|
@@ -2512,7 +2512,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
2512
2512
|
async function reloadDataAsFullObjects(client, data) {
|
|
2513
2513
|
const groups = groupBy__default.default(data, (x) => x.$objectType);
|
|
2514
2514
|
const objectTypeToPrimaryKeyToObject = Object.fromEntries(await Promise.all(Object.entries(groups).map(async ([apiName, objects]) => {
|
|
2515
|
-
const objectDef = objects[0][
|
|
2515
|
+
const objectDef = objects[0][chunkY6AQWL26_cjs.UnderlyingOsdkObject][chunkY6AQWL26_cjs.ObjectDefRef];
|
|
2516
2516
|
const where = {
|
|
2517
2517
|
[objectDef.primaryKeyApiName]: {
|
|
2518
2518
|
$in: objects.map((x) => x.$primaryKey)
|
|
@@ -3638,10 +3638,10 @@ var Store = class {
|
|
|
3638
3638
|
|
|
3639
3639
|
// src/observable/ObservableClient.ts
|
|
3640
3640
|
function createObservableClient(client) {
|
|
3641
|
-
const tweakedClient =
|
|
3641
|
+
const tweakedClient = chunkY6AQWL26_cjs.createClientFromContext({
|
|
3642
3642
|
...client[chunkS3HJUSQ7_cjs.additionalContext],
|
|
3643
3643
|
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkS3HJUSQ7_cjs.additionalContext].fetch, (headers) => {
|
|
3644
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
3644
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkY6AQWL26_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
|
|
3645
3645
|
return headers;
|
|
3646
3646
|
})
|
|
3647
3647
|
});
|
|
@@ -3685,7 +3685,7 @@ function getOsdkConfig(ontologyRid) {
|
|
|
3685
3685
|
|
|
3686
3686
|
Object.defineProperty(exports, "createClientWithTransaction", {
|
|
3687
3687
|
enumerable: true,
|
|
3688
|
-
get: function () { return
|
|
3688
|
+
get: function () { return chunkY6AQWL26_cjs.createClientWithTransaction; }
|
|
3689
3689
|
});
|
|
3690
3690
|
Object.defineProperty(exports, "augment", {
|
|
3691
3691
|
enumerable: true,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
export function isAttachmentUpload(o) {
|
|
18
|
-
return typeof o ===
|
|
18
|
+
return typeof o === "object" && o != null && "name" in o && typeof o.name === "string" && "data" in o && o.data instanceof Blob && !("fileName" in o);
|
|
19
19
|
}
|
|
20
20
|
export function isAttachmentFile(o) {
|
|
21
21
|
return typeof o === "object" && o instanceof Blob && "name" in o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentUpload.js","names":["isAttachmentUpload","o","data","Blob","isAttachmentFile","createAttachmentUpload"
|
|
1
|
+
{"version":3,"file":"AttachmentUpload.js","names":["isAttachmentUpload","o","name","data","Blob","isAttachmentFile","createAttachmentUpload"],"sources":["AttachmentUpload.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 { AttachmentUpload } from \"@osdk/api\";\n\nexport function isAttachmentUpload(o: any): o is AttachmentUpload {\n return typeof o === \"object\"\n && o != null\n && \"name\" in o\n && typeof o.name === \"string\"\n && \"data\" in o\n && o.data instanceof Blob\n && !(\"fileName\" in o);\n}\n\nexport function isAttachmentFile(\n o: any,\n): o is Blob & { readonly name: string } {\n return typeof o === \"object\" && o instanceof Blob && \"name\" in o;\n}\n\nexport function createAttachmentUpload(\n data: Blob,\n name: string,\n): AttachmentUpload {\n return { data, name };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAO,SAASA,kBAAkBA,CAACC,CAAM,EAAyB;EAChE,OAAO,OAAOA,CAAC,KAAK,QAAQ,IACvBA,CAAC,IAAI,IAAI,IACT,MAAM,IAAIA,CAAC,IACX,OAAOA,CAAC,CAACC,IAAI,KAAK,QAAQ,IAC1B,MAAM,IAAID,CAAC,IACXA,CAAC,CAACE,IAAI,YAAYC,IAAI,IACtB,EAAE,UAAU,IAAIH,CAAC,CAAC;AACzB;AAEA,OAAO,SAASI,gBAAgBA,CAC9BJ,CAAM,EACiC;EACvC,OAAO,OAAOA,CAAC,KAAK,QAAQ,IAAIA,CAAC,YAAYG,IAAI,IAAI,MAAM,IAAIH,CAAC;AAClE;AAEA,OAAO,SAASK,sBAAsBA,CACpCH,IAAU,EACVD,IAAY,EACM;EAClB,OAAO;IAAEC,IAAI;IAAED;EAAK,CAAC;AACvB","ignoreList":[]}
|
|
@@ -18,6 +18,6 @@ export function isMediaReference(o) {
|
|
|
18
18
|
return typeof o === `object` && typeof o.mimeType === "string" && "reference" in o && typeof o.reference === "object" && o.reference.type === "mediaSetViewItem" && "mediaSetViewItem" in o.reference && typeof o.reference.mediaSetViewItem === "object" && typeof o.reference.mediaSetViewItem.mediaSetRid === "string" && typeof o.reference.mediaSetViewItem.mediaSetViewRid === "string" && typeof o.reference.mediaSetViewItem.mediaItemRid === "string";
|
|
19
19
|
}
|
|
20
20
|
export function isMediaUpload(o) {
|
|
21
|
-
return typeof o === "object" && "fileName" in o && typeof o.fileName === "string" && "data" in o && typeof o.data === "object" && o.data instanceof Blob;
|
|
21
|
+
return typeof o === "object" && o != null && "fileName" in o && typeof o.fileName === "string" && "data" in o && typeof o.data === "object" && o.data instanceof Blob;
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=mediaUpload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaUpload.js","names":["isMediaReference","o","mimeType","reference","type","mediaSetViewItem","mediaSetRid","mediaSetViewRid","mediaItemRid","isMediaUpload","fileName","data","Blob"],"sources":["mediaUpload.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { MediaReference, MediaUpload } from \"@osdk/api\";\n\nexport function isMediaReference(o: any): o is MediaReference {\n return typeof o === `object`\n && typeof o.mimeType === \"string\"\n && \"reference\" in o\n && typeof o.reference === \"object\"\n && o.reference.type === \"mediaSetViewItem\"\n && \"mediaSetViewItem\" in o.reference\n && typeof o.reference.mediaSetViewItem === \"object\"\n && typeof o.reference.mediaSetViewItem.mediaSetRid === \"string\"\n && typeof o.reference.mediaSetViewItem.mediaSetViewRid === \"string\"\n && typeof o.reference.mediaSetViewItem.mediaItemRid === \"string\";\n}\n\nexport function isMediaUpload(o: any): o is MediaUpload {\n return typeof o === \"object\"\n && \"fileName\" in o\n && typeof o.fileName === \"string\"\n && \"data\" in o\n && typeof o.data === \"object\"\n && o.data instanceof Blob;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAO,SAASA,gBAAgBA,CAACC,CAAM,EAAuB;EAC5D,OAAO,OAAOA,CAAC,KAAK,QAAQ,IACvB,OAAOA,CAAC,CAACC,QAAQ,KAAK,QAAQ,IAC9B,WAAW,IAAID,CAAC,IAChB,OAAOA,CAAC,CAACE,SAAS,KAAK,QAAQ,IAC/BF,CAAC,CAACE,SAAS,CAACC,IAAI,KAAK,kBAAkB,IACvC,kBAAkB,IAAIH,CAAC,CAACE,SAAS,IACjC,OAAOF,CAAC,CAACE,SAAS,CAACE,gBAAgB,KAAK,QAAQ,IAChD,OAAOJ,CAAC,CAACE,SAAS,CAACE,gBAAgB,CAACC,WAAW,KAAK,QAAQ,IAC5D,OAAOL,CAAC,CAACE,SAAS,CAACE,gBAAgB,CAACE,eAAe,KAAK,QAAQ,IAChE,OAAON,CAAC,CAACE,SAAS,CAACE,gBAAgB,CAACG,YAAY,KAAK,QAAQ;AACpE;AAEA,OAAO,SAASC,aAAaA,CAACR,CAAM,EAAoB;EACtD,OAAO,OAAOA,CAAC,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"mediaUpload.js","names":["isMediaReference","o","mimeType","reference","type","mediaSetViewItem","mediaSetRid","mediaSetViewRid","mediaItemRid","isMediaUpload","fileName","data","Blob"],"sources":["mediaUpload.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { MediaReference, MediaUpload } from \"@osdk/api\";\n\nexport function isMediaReference(o: any): o is MediaReference {\n return typeof o === `object`\n && typeof o.mimeType === \"string\"\n && \"reference\" in o\n && typeof o.reference === \"object\"\n && o.reference.type === \"mediaSetViewItem\"\n && \"mediaSetViewItem\" in o.reference\n && typeof o.reference.mediaSetViewItem === \"object\"\n && typeof o.reference.mediaSetViewItem.mediaSetRid === \"string\"\n && typeof o.reference.mediaSetViewItem.mediaSetViewRid === \"string\"\n && typeof o.reference.mediaSetViewItem.mediaItemRid === \"string\";\n}\n\nexport function isMediaUpload(o: any): o is MediaUpload {\n return typeof o === \"object\"\n && o != null\n && \"fileName\" in o\n && typeof o.fileName === \"string\"\n && \"data\" in o\n && typeof o.data === \"object\"\n && o.data instanceof Blob;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAO,SAASA,gBAAgBA,CAACC,CAAM,EAAuB;EAC5D,OAAO,OAAOA,CAAC,KAAK,QAAQ,IACvB,OAAOA,CAAC,CAACC,QAAQ,KAAK,QAAQ,IAC9B,WAAW,IAAID,CAAC,IAChB,OAAOA,CAAC,CAACE,SAAS,KAAK,QAAQ,IAC/BF,CAAC,CAACE,SAAS,CAACC,IAAI,KAAK,kBAAkB,IACvC,kBAAkB,IAAIH,CAAC,CAACE,SAAS,IACjC,OAAOF,CAAC,CAACE,SAAS,CAACE,gBAAgB,KAAK,QAAQ,IAChD,OAAOJ,CAAC,CAACE,SAAS,CAACE,gBAAgB,CAACC,WAAW,KAAK,QAAQ,IAC5D,OAAOL,CAAC,CAACE,SAAS,CAACE,gBAAgB,CAACE,eAAe,KAAK,QAAQ,IAChE,OAAON,CAAC,CAACE,SAAS,CAACE,gBAAgB,CAACG,YAAY,KAAK,QAAQ;AACpE;AAEA,OAAO,SAASC,aAAaA,CAACR,CAAM,EAAoB;EACtD,OAAO,OAAOA,CAAC,KAAK,QAAQ,IACvBA,CAAC,IAAI,IAAI,IACT,UAAU,IAAIA,CAAC,IACf,OAAOA,CAAC,CAACS,QAAQ,KAAK,QAAQ,IAC9B,MAAM,IAAIT,CAAC,IACX,OAAOA,CAAC,CAACU,IAAI,KAAK,QAAQ,IAC1BV,CAAC,CAACU,IAAI,YAAYC,IAAI;AAC7B","ignoreList":[]}
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export const USER_AGENT = `osdk-client/${"2.6.0-rc.
|
|
18
|
-
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.6.0-rc.
|
|
17
|
+
export const USER_AGENT = `osdk-client/${"2.6.0-rc.17"}`;
|
|
18
|
+
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.6.0-rc.17"}`;
|
|
19
19
|
//# sourceMappingURL=UserAgent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,wBAAwB,WAAY;AAElD,OAAO,iBAAS,mBAAmBA,SAAS,KAAK;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,wBAAwB,WAAY;AAElD,OAAO,iBAAS,mBAAmBA,SAAS,KAAK;AAUjD,OAAO,iBAAS,iBACdA,SACC,KAAK,OAAO;UAAW;AAAc;AAIxC,OAAO,iBAAS,uBACdC,MAAM,MACNC,eACC","names":["o: any","data: Blob","name: string"],"sources":["../../../src/object/AttachmentUpload.ts"],"version":3,"file":"AttachmentUpload.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/client",
|
|
3
|
-
"version": "2.6.0-rc.
|
|
3
|
+
"version": "2.6.0-rc.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
"tiny-invariant": "^1.3.3",
|
|
76
76
|
"type-fest": "^4.41.0",
|
|
77
77
|
"ws": "^8.18.3",
|
|
78
|
-
"@osdk/
|
|
79
|
-
"@osdk/
|
|
80
|
-
"@osdk/
|
|
81
|
-
"@osdk/shared.net.errors": "~2.6.0-rc.2",
|
|
78
|
+
"@osdk/api": "2.6.0-rc.17",
|
|
79
|
+
"@osdk/generator-converters": "2.6.0-rc.17",
|
|
80
|
+
"@osdk/client.unstable": "2.6.0-rc.17",
|
|
82
81
|
"@osdk/shared.client.impl": "~1.6.0-rc.2",
|
|
82
|
+
"@osdk/shared.net.errors": "~2.6.0-rc.2",
|
|
83
83
|
"@osdk/shared.net.fetch": "~1.6.0-rc.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"ts-expect": "^1.3.0",
|
|
102
102
|
"typescript": "~5.5.4",
|
|
103
103
|
"zod": "^3.25.76",
|
|
104
|
-
"@osdk/client.test.ontology": "~2.6.0-rc.
|
|
104
|
+
"@osdk/client.test.ontology": "~2.6.0-rc.17",
|
|
105
105
|
"@osdk/monorepo.api-extractor": "~0.5.0-beta.1",
|
|
106
|
-
"@osdk/
|
|
107
|
-
"@osdk/
|
|
106
|
+
"@osdk/monorepo.tsconfig": "~0.5.0-beta.1",
|
|
107
|
+
"@osdk/shared.test": "~2.6.0-rc.6"
|
|
108
108
|
},
|
|
109
109
|
"publishConfig": {
|
|
110
110
|
"access": "public"
|