@osdk/client 2.3.1 → 2.3.3
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 +18 -0
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.js.map +1 -1
- package/build/browser/observable/internal/ActionApplication.js +1 -1
- package/build/browser/observable/internal/ActionApplication.js.map +1 -1
- package/build/browser/public-utils/hydrateObjectSetFromRid.js +4 -1
- package/build/browser/public-utils/hydrateObjectSetFromRid.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/cjs/{chunk-T5KGTBH2.cjs → chunk-ERTC3NWZ.cjs} +14 -19
- package/build/cjs/chunk-ERTC3NWZ.cjs.map +1 -0
- package/build/cjs/chunk-Q7SFCCGT.cjs +11 -0
- package/build/cjs/chunk-Q7SFCCGT.cjs.map +1 -0
- package/build/cjs/{chunk-FWYXUSCF.cjs → chunk-QJKAH6UM.cjs} +50 -50
- package/build/cjs/{chunk-FWYXUSCF.cjs.map → chunk-QJKAH6UM.cjs.map} +1 -1
- package/build/cjs/delay-QK4T7RVX.cjs +74 -0
- package/build/cjs/delay-QK4T7RVX.cjs.map +1 -0
- package/build/cjs/index.cjs +7 -6
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/public/internal.cjs +13 -9
- package/build/cjs/public/internal.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.cjs +19 -72
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/observable/internal/ActionApplication.js +1 -1
- package/build/esm/observable/internal/ActionApplication.js.map +1 -1
- package/build/esm/public-utils/hydrateObjectSetFromRid.js +4 -1
- package/build/esm/public-utils/hydrateObjectSetFromRid.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/types/Client.d.ts +1 -1
- package/build/types/observable/internal/ActionApplication.d.ts.map +1 -1
- package/package.json +8 -8
- package/build/cjs/chunk-T5KGTBH2.cjs.map +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./chunk-Q7SFCCGT.cjs');
|
|
6
|
+
|
|
7
|
+
// ../../node_modules/.pnpm/delay@6.0.0/node_modules/delay/index.js
|
|
8
|
+
var randomInteger = (minimum, maximum) => Math.floor(Math.random() * (maximum - minimum + 1) + minimum);
|
|
9
|
+
var createAbortError = () => {
|
|
10
|
+
const error = new Error("Delay aborted");
|
|
11
|
+
error.name = "AbortError";
|
|
12
|
+
return error;
|
|
13
|
+
};
|
|
14
|
+
var clearMethods = /* @__PURE__ */ new WeakMap();
|
|
15
|
+
function createDelay({
|
|
16
|
+
clearTimeout: defaultClear,
|
|
17
|
+
setTimeout: defaultSet
|
|
18
|
+
} = {}) {
|
|
19
|
+
return (milliseconds, {
|
|
20
|
+
value,
|
|
21
|
+
signal
|
|
22
|
+
} = {}) => {
|
|
23
|
+
if (signal?.aborted) {
|
|
24
|
+
return Promise.reject(createAbortError());
|
|
25
|
+
}
|
|
26
|
+
let timeoutId;
|
|
27
|
+
let settle;
|
|
28
|
+
let rejectFunction;
|
|
29
|
+
const clear = defaultClear ?? clearTimeout;
|
|
30
|
+
const signalListener = () => {
|
|
31
|
+
clear(timeoutId);
|
|
32
|
+
rejectFunction(createAbortError());
|
|
33
|
+
};
|
|
34
|
+
const cleanup = () => {
|
|
35
|
+
if (signal) {
|
|
36
|
+
signal.removeEventListener("abort", signalListener);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const delayPromise = new Promise((resolve, reject) => {
|
|
40
|
+
settle = () => {
|
|
41
|
+
cleanup();
|
|
42
|
+
resolve(value);
|
|
43
|
+
};
|
|
44
|
+
rejectFunction = reject;
|
|
45
|
+
timeoutId = (defaultSet ?? setTimeout)(settle, milliseconds);
|
|
46
|
+
});
|
|
47
|
+
if (signal) {
|
|
48
|
+
signal.addEventListener("abort", signalListener, {
|
|
49
|
+
once: true
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
clearMethods.set(delayPromise, () => {
|
|
53
|
+
clear(timeoutId);
|
|
54
|
+
timeoutId = null;
|
|
55
|
+
settle();
|
|
56
|
+
});
|
|
57
|
+
return delayPromise;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
var delay = createDelay();
|
|
61
|
+
var delay_default = delay;
|
|
62
|
+
async function rangeDelay(minimum, maximum, options = {}) {
|
|
63
|
+
return delay(randomInteger(minimum, maximum), options);
|
|
64
|
+
}
|
|
65
|
+
function clearDelay(promise) {
|
|
66
|
+
clearMethods.get(promise)?.();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
exports.clearDelay = clearDelay;
|
|
70
|
+
exports.createDelay = createDelay;
|
|
71
|
+
exports.default = delay_default;
|
|
72
|
+
exports.rangeDelay = rangeDelay;
|
|
73
|
+
//# sourceMappingURL=delay-QK4T7RVX.cjs.map
|
|
74
|
+
//# sourceMappingURL=delay-QK4T7RVX.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/delay@6.0.0/node_modules/delay/index.js"],"names":[],"mappings":";;;;;;;AACA,IAAM,aAAgB,GAAA,CAAC,OAAS,EAAA,OAAA,KAAY,IAAK,CAAA,KAAA,CAAM,IAAK,CAAA,MAAA,EAAY,IAAA,OAAA,GAAU,OAAU,GAAA,CAAA,CAAA,GAAK,OAAO,CAAA;AACxG,IAAM,mBAAmB,MAAM;AAC7B,EAAM,MAAA,KAAA,GAAQ,IAAI,KAAA,CAAM,eAAe,CAAA;AACvC,EAAA,KAAA,CAAM,IAAO,GAAA,YAAA;AACb,EAAO,OAAA,KAAA;AACT,CAAA;AACA,IAAM,YAAA,uBAAmB,OAAQ,EAAA;AAC1B,SAAS,WAAY,CAAA;AAAA,EAC1B,YAAc,EAAA,YAAA;AAAA,EACd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GACT;AACF;AACA,IAAM,QAAQ,WAAY,EAAA;AAC1B,IAAO,aAAQ,GAAA;AACf,eAAsB,UAAW,CAAA,OAAA,EAAS,OAAS,EAAA,OAAA,GAAU,EAAI,EAAA;AAC/D,EAAA,OAAO,KAAM,CAAA,aAAA,CAAc,OAAS,EAAA,OAAO,GAAG,OAAO,CAAA;AACvD;AACO,SAAS,WAAW,OAAS,EAAA;AAClC,EAAa,YAAA,CAAA,GAAA,CAAI,OAAO,CAAI,IAAA;AAC9B","file":"delay-QK4T7RVX.cjs","sourcesContent":["// From https://github.com/sindresorhus/random-int/blob/c37741b56f76b9160b0b63dae4e9c64875128146/index.js#L13-L15\nconst randomInteger = (minimum, maximum) => Math.floor(Math.random() * (maximum - minimum + 1) + minimum);\nconst createAbortError = () => {\n const error = new Error('Delay aborted');\n error.name = 'AbortError';\n return error;\n};\nconst clearMethods = new WeakMap();\nexport function createDelay({\n clearTimeout: defaultClear,\n setTimeout: defaultSet\n} = {}) {\n // We cannot use `async` here as we need the promise identity.\n return (milliseconds, {\n value,\n signal\n } = {}) => {\n // TODO: Use `signal?.throwIfAborted()` when targeting Node.js 18.\n if (signal?.aborted) {\n return Promise.reject(createAbortError());\n }\n let timeoutId;\n let settle;\n let rejectFunction;\n const clear = defaultClear ?? clearTimeout;\n const signalListener = () => {\n clear(timeoutId);\n rejectFunction(createAbortError());\n };\n const cleanup = () => {\n if (signal) {\n signal.removeEventListener('abort', signalListener);\n }\n };\n const delayPromise = new Promise((resolve, reject) => {\n settle = () => {\n cleanup();\n resolve(value);\n };\n rejectFunction = reject;\n timeoutId = (defaultSet ?? setTimeout)(settle, milliseconds);\n });\n if (signal) {\n signal.addEventListener('abort', signalListener, {\n once: true\n });\n }\n clearMethods.set(delayPromise, () => {\n clear(timeoutId);\n timeoutId = null;\n settle();\n });\n return delayPromise;\n };\n}\nconst delay = createDelay();\nexport default delay;\nexport async function rangeDelay(minimum, maximum, options = {}) {\n return delay(randomInteger(minimum, maximum), options);\n}\nexport function clearDelay(promise) {\n clearMethods.get(promise)?.();\n}"]}
|
package/build/cjs/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkQJKAH6UM_cjs = require('./chunk-QJKAH6UM.cjs');
|
|
4
|
+
require('./chunk-ERTC3NWZ.cjs');
|
|
5
|
+
require('./chunk-Q7SFCCGT.cjs');
|
|
5
6
|
var api = require('@osdk/api');
|
|
6
7
|
var shared_net_errors = require('@osdk/shared.net.errors');
|
|
7
8
|
var shared_client_impl = require('@osdk/shared.client.impl');
|
|
@@ -12,7 +13,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
12
13
|
var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
13
14
|
|
|
14
15
|
function createPlatformClient(baseUrl, tokenProvider, options = void 0, fetchFn = fetch) {
|
|
15
|
-
return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider,
|
|
16
|
+
return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkQJKAH6UM_cjs.USER_AGENT, fetchFn);
|
|
16
17
|
}
|
|
17
18
|
var isoRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
18
19
|
var extractDate = (dateTime) => {
|
|
@@ -36,15 +37,15 @@ var extractDateFromIsoString = (dateTime) => {
|
|
|
36
37
|
|
|
37
38
|
Object.defineProperty(exports, "ActionValidationError", {
|
|
38
39
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkQJKAH6UM_cjs.ActionValidationError; }
|
|
40
41
|
});
|
|
41
42
|
Object.defineProperty(exports, "createAttachmentUpload", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkQJKAH6UM_cjs.createAttachmentUpload; }
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(exports, "createClient", {
|
|
46
47
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkQJKAH6UM_cjs.createClient; }
|
|
48
49
|
});
|
|
49
50
|
Object.defineProperty(exports, "isOk", {
|
|
50
51
|
enumerable: true,
|
package/build/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/createPlatformClient.ts","../../src/util/datetimeConverters.ts"],"names":["createSharedClientContext","USER_AGENT","invariant"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/createPlatformClient.ts","../../src/util/datetimeConverters.ts"],"names":["createSharedClientContext","USER_AGENT","invariant"],"mappings":";;;;;;;;;;;;;;AA8BO,SAAS,qBAAqB,OAAS,EAAA,aAAA,EAAe,OAAU,GAAA,MAAA,EAAW,UAAU,KAAO,EAAA;AACjG,EAAA,OAAOA,4CAA0B,CAAA,OAAA,EAAS,aAAe,EAAAC,4BAAA,EAAY,OAAO,CAAA;AAC9E;ACfA,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,GAAAC,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 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,18 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkERTC3NWZ_cjs = require('../chunk-ERTC3NWZ.cjs');
|
|
4
|
+
require('../chunk-Q7SFCCGT.cjs');
|
|
4
5
|
|
|
5
6
|
// src/public-utils/createAndFetchTempObjectSetRid.ts
|
|
6
7
|
async function createAndFetchTempObjectSetRid(client, objectSet) {
|
|
7
|
-
const response = await
|
|
8
|
-
objectSet:
|
|
8
|
+
const response = await chunkERTC3NWZ_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkERTC3NWZ_cjs.additionalContext].ontologyRid, {
|
|
9
|
+
objectSet: chunkERTC3NWZ_cjs.getWireObjectSet(objectSet)
|
|
9
10
|
});
|
|
10
11
|
return response.objectSetRid;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
// src/public-utils/hydrateObjectSetFromObjectRids.ts
|
|
14
15
|
function hydrateObjectSetFromObjectRids(client, definition, rids) {
|
|
15
|
-
return
|
|
16
|
+
return chunkERTC3NWZ_cjs.createObjectSet(definition, client[chunkERTC3NWZ_cjs.additionalContext], {
|
|
16
17
|
type: "intersect",
|
|
17
18
|
objectSets: [{
|
|
18
19
|
type: "base",
|
|
@@ -26,9 +27,12 @@ function hydrateObjectSetFromObjectRids(client, definition, rids) {
|
|
|
26
27
|
|
|
27
28
|
// src/public-utils/hydrateObjectSetFromRid.ts
|
|
28
29
|
function hydrateObjectSetFromRid(client, definition, rid) {
|
|
29
|
-
return
|
|
30
|
+
return chunkERTC3NWZ_cjs.createObjectSet(definition, client[chunkERTC3NWZ_cjs.additionalContext], {
|
|
30
31
|
type: "intersect",
|
|
31
|
-
objectSets: [{
|
|
32
|
+
objectSets: [definition.type === "interface" ? {
|
|
33
|
+
type: "interfaceBase",
|
|
34
|
+
interfaceType: definition.apiName
|
|
35
|
+
} : {
|
|
32
36
|
type: "base",
|
|
33
37
|
objectType: definition.apiName
|
|
34
38
|
}, {
|
|
@@ -64,7 +68,7 @@ var levelStyles = {
|
|
|
64
68
|
color: "orange"
|
|
65
69
|
})
|
|
66
70
|
};
|
|
67
|
-
var BrowserLogger = class _BrowserLogger extends
|
|
71
|
+
var BrowserLogger = class _BrowserLogger extends chunkERTC3NWZ_cjs.BaseLogger {
|
|
68
72
|
constructor(bindings = {}, options = {}) {
|
|
69
73
|
super(bindings, {
|
|
70
74
|
...options,
|
|
@@ -90,11 +94,11 @@ var BrowserLogger = class _BrowserLogger extends chunkT5KGTBH2_cjs.BaseLogger {
|
|
|
90
94
|
|
|
91
95
|
Object.defineProperty(exports, "MinimalLogger", {
|
|
92
96
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkERTC3NWZ_cjs.MinimalLogger; }
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(exports, "hydrateAttachmentFromRid", {
|
|
96
100
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkERTC3NWZ_cjs.hydrateAttachmentFromRid; }
|
|
98
102
|
});
|
|
99
103
|
exports.BrowserLogger = BrowserLogger;
|
|
100
104
|
exports.createAndFetchTempObjectSetRid = createAndFetchTempObjectSetRid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/public-utils/createAndFetchTempObjectSetRid.ts","../../../src/public-utils/hydrateObjectSetFromObjectRids.ts","../../../src/public-utils/hydrateObjectSetFromRid.ts","../../../src/logger/BrowserLogger.ts"],"names":["OntologyObjectSet_exports","additionalContext","getWireObjectSet","createObjectSet","BaseLogger"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/public-utils/createAndFetchTempObjectSetRid.ts","../../../src/public-utils/hydrateObjectSetFromObjectRids.ts","../../../src/public-utils/hydrateObjectSetFromRid.ts","../../../src/logger/BrowserLogger.ts"],"names":["OntologyObjectSet_exports","additionalContext","getWireObjectSet","createObjectSet","BaseLogger"],"mappings":";;;;;;AA2BA,eAAsB,8BAAA,CAA+B,QAAQ,SAAW,EAAA;AACtE,EAAM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,CAAA,UAAU,CAAM,IAAA,CAAA,CAAA;AACzC,MAAO,MAAA,CAAA,IAAA,CAAK,oCAAoC,EAAE,CAAA;AAAA;AAEpD,IAAA,OAAO,IAAI,IAAS,KAAA;AAElB,MAAA,OAAA,CAAQ,IAAS,KAAA,OAAA,GAAU,OAAU,GAAA,IAAI,CAAE,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,CAAG,EAAA,GAAG,MAAQ,EAAA,GAAG,IAAI,CAAA;AAAA,KAC/E;AAAA;AAEJ","file":"internal.cjs","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 { OntologyObjectSets } from \"@osdk/foundry.ontologies\";\nimport { additionalContext } from \"../Client.js\";\nimport { getWireObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Fetches a temporary object set RID from the Foundry stack for the given object set.\n *\n * @param client - An OSDK client.\n * @param objectSet - The object set to fetch a RID for.\n * @returns A promise that resolves to the RID of the temporary object set.\n */\nexport async function createAndFetchTempObjectSetRid(client, objectSet) {\n const response = await OntologyObjectSets.createTemporary(client, await client[additionalContext].ontologyRid, {\n objectSet: getWireObjectSet(objectSet)\n });\n return response.objectSetRid;\n}","/*\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 { additionalContext } from \"../Client.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Creates an OSDK object set from object RIDs.\n * @param client - An OSDK client.\n * @param definition - An OSDK object or interface definition.\n * @param rids - An array of object RIDs.\n * @returns An OSDK object set.\n */\nexport function hydrateObjectSetFromObjectRids(client, definition, rids) {\n return createObjectSet(definition, client[additionalContext], {\n type: \"intersect\",\n objectSets: [{\n type: \"base\",\n objectType: definition.apiName\n }, {\n type: \"static\",\n objects: rids\n }]\n });\n}","/*\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 { additionalContext } from \"../Client.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Creates an OSDK object set from an object set RID.\n * @param client - An OSDK client.\n * @param definition - An OSDK object or interface definition.\n * @param rid - The RID of an object set.\n * @returns An OSDK object set.\n */\nexport function hydrateObjectSetFromRid(client, definition, rid) {\n return createObjectSet(definition, client[additionalContext], {\n type: \"intersect\",\n objectSets: [definition.type === \"interface\" ? {\n type: \"interfaceBase\",\n interfaceType: definition.apiName\n } : {\n type: \"base\",\n objectType: definition.apiName\n }, {\n type: \"reference\",\n reference: rid\n }]\n });\n}","/*\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 { BaseLogger } from \"./BaseLogger.js\";\nfunction createStyle({\n color\n}) {\n return `color: ${color}; border: 1px solid ${color}; padding: 2px; border-radius: 3px;`;\n}\nconst levelStyles = {\n debug: createStyle({\n color: \"LightBlue\"\n }),\n error: createStyle({\n color: \"red\"\n }),\n fatal: createStyle({\n color: \"red\"\n }),\n info: createStyle({\n color: \"green\"\n }),\n trace: createStyle({\n color: \"gray\"\n }),\n warn: createStyle({\n color: \"orange\"\n })\n};\nexport class BrowserLogger extends BaseLogger {\n constructor(bindings = {}, options = {}) {\n super(bindings, {\n ...options,\n level: options.level ?? \"error\"\n }, BrowserLogger);\n }\n createLogMethod(name, bindings) {\n const msgs = [`%c${name}%c`];\n const styles = [levelStyles[name], \"\"];\n if (this.options?.msgPrefix) {\n msgs.push(`%c${this.options.msgPrefix}%c`);\n styles.push(\"font-style: italic; color: gray\", \"\");\n }\n if (typeof bindings === \"object\" && \"methodName\" in bindings) {\n msgs.push(`%c.${bindings.methodName}()%c`);\n styles.push(\"font-style: italic;color: orchid\", \"\");\n }\n return (...args) => {\n // eslint-disable-next-line no-console\n console[name === \"fatal\" ? \"error\" : name](msgs.join(\" \"), ...styles, ...args);\n };\n }\n}"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQJKAH6UM_cjs = require('../chunk-QJKAH6UM.cjs');
|
|
4
|
+
var chunkERTC3NWZ_cjs = require('../chunk-ERTC3NWZ.cjs');
|
|
5
|
+
require('../chunk-Q7SFCCGT.cjs');
|
|
5
6
|
var shared_net_fetch = require('@osdk/shared.net.fetch');
|
|
6
7
|
var rxjs = require('rxjs');
|
|
7
8
|
var invariant2 = require('tiny-invariant');
|
|
@@ -32,61 +33,6 @@ var ObservableClientImpl = class {
|
|
|
32
33
|
process.env.NODE_ENV !== "production" && false;
|
|
33
34
|
var DEBUG_CACHE_KEYS = process.env.NODE_ENV !== "production" && false;
|
|
34
35
|
|
|
35
|
-
// ../../node_modules/.pnpm/delay@6.0.0/node_modules/delay/index.js
|
|
36
|
-
var createAbortError = () => {
|
|
37
|
-
const error = new Error("Delay aborted");
|
|
38
|
-
error.name = "AbortError";
|
|
39
|
-
return error;
|
|
40
|
-
};
|
|
41
|
-
var clearMethods = /* @__PURE__ */ new WeakMap();
|
|
42
|
-
function createDelay({
|
|
43
|
-
clearTimeout: defaultClear,
|
|
44
|
-
setTimeout: defaultSet
|
|
45
|
-
} = {}) {
|
|
46
|
-
return (milliseconds, {
|
|
47
|
-
value,
|
|
48
|
-
signal
|
|
49
|
-
} = {}) => {
|
|
50
|
-
if (signal?.aborted) {
|
|
51
|
-
return Promise.reject(createAbortError());
|
|
52
|
-
}
|
|
53
|
-
let timeoutId;
|
|
54
|
-
let settle;
|
|
55
|
-
let rejectFunction;
|
|
56
|
-
const clear = defaultClear ?? clearTimeout;
|
|
57
|
-
const signalListener = () => {
|
|
58
|
-
clear(timeoutId);
|
|
59
|
-
rejectFunction(createAbortError());
|
|
60
|
-
};
|
|
61
|
-
const cleanup = () => {
|
|
62
|
-
if (signal) {
|
|
63
|
-
signal.removeEventListener("abort", signalListener);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const delayPromise = new Promise((resolve, reject) => {
|
|
67
|
-
settle = () => {
|
|
68
|
-
cleanup();
|
|
69
|
-
resolve(value);
|
|
70
|
-
};
|
|
71
|
-
rejectFunction = reject;
|
|
72
|
-
timeoutId = (defaultSet ?? setTimeout)(settle, milliseconds);
|
|
73
|
-
});
|
|
74
|
-
if (signal) {
|
|
75
|
-
signal.addEventListener("abort", signalListener, {
|
|
76
|
-
once: true
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
clearMethods.set(delayPromise, () => {
|
|
80
|
-
clear(timeoutId);
|
|
81
|
-
timeoutId = null;
|
|
82
|
-
settle();
|
|
83
|
-
});
|
|
84
|
-
return delayPromise;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
var delay = createDelay();
|
|
88
|
-
var delay_default = delay;
|
|
89
|
-
|
|
90
36
|
// src/observable/internal/OptimisticId.ts
|
|
91
37
|
function createOptimisticId() {
|
|
92
38
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -138,7 +84,7 @@ var OptimisticJob = class {
|
|
|
138
84
|
return this;
|
|
139
85
|
},
|
|
140
86
|
createObject(type, pk, properties) {
|
|
141
|
-
const create = store.client[
|
|
87
|
+
const create = store.client[chunkERTC3NWZ_cjs.additionalContext].objectFactory2(store.client[chunkERTC3NWZ_cjs.additionalContext], [{
|
|
142
88
|
$primaryKey: pk,
|
|
143
89
|
$apiName: type.apiName,
|
|
144
90
|
$objectType: type.apiName,
|
|
@@ -205,7 +151,8 @@ var ActionApplication = class {
|
|
|
205
151
|
if (process.env.NODE_ENV !== "production") {
|
|
206
152
|
if (ACTION_DELAY > 0) {
|
|
207
153
|
logger?.debug("action done, pausing", actionResults);
|
|
208
|
-
await
|
|
154
|
+
const delay = (await import('../delay-QK4T7RVX.cjs')).default;
|
|
155
|
+
await delay(ACTION_DELAY);
|
|
209
156
|
logger?.debug("action done, pausing done");
|
|
210
157
|
}
|
|
211
158
|
}
|
|
@@ -618,7 +565,7 @@ var BulkObjectLoader = class {
|
|
|
618
565
|
#maxEntries;
|
|
619
566
|
constructor(client, maxWait = 25, maxEntries = 100) {
|
|
620
567
|
this.#client = client;
|
|
621
|
-
this.#logger = client[
|
|
568
|
+
this.#logger = client[chunkERTC3NWZ_cjs.additionalContext].logger;
|
|
622
569
|
this.#maxWait = maxWait;
|
|
623
570
|
this.#maxEntries = maxEntries;
|
|
624
571
|
}
|
|
@@ -688,7 +635,7 @@ var Query = class {
|
|
|
688
635
|
this.cacheKey = cacheKey;
|
|
689
636
|
this.store = store;
|
|
690
637
|
this.#subject = observable;
|
|
691
|
-
this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[
|
|
638
|
+
this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkERTC3NWZ_cjs.additionalContext].logger : store.client[chunkERTC3NWZ_cjs.additionalContext].logger?.child({}, {
|
|
692
639
|
msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
|
|
693
640
|
}));
|
|
694
641
|
}
|
|
@@ -798,7 +745,7 @@ var ObjectQuery = class extends Query {
|
|
|
798
745
|
#apiName;
|
|
799
746
|
#pk;
|
|
800
747
|
constructor(store, subject, type, pk, cacheKey, opts) {
|
|
801
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
748
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkERTC3NWZ_cjs.additionalContext].logger?.child({}, {
|
|
802
749
|
msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
803
750
|
}) : void 0);
|
|
804
751
|
this.#apiName = type;
|
|
@@ -983,7 +930,7 @@ var ListQuery = class extends BaseListQuery {
|
|
|
983
930
|
#objectSet;
|
|
984
931
|
#sortFns;
|
|
985
932
|
constructor(store, subject, apiType, apiName, whereClause, orderBy, cacheKey, opts) {
|
|
986
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
933
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkERTC3NWZ_cjs.additionalContext].logger?.child({}, {
|
|
987
934
|
msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
988
935
|
}) : void 0);
|
|
989
936
|
this.#type = apiType;
|
|
@@ -1228,7 +1175,7 @@ var ListQuery = class extends BaseListQuery {
|
|
|
1228
1175
|
}
|
|
1229
1176
|
#extractRelevantObjectsForTypeInterface(changes) {
|
|
1230
1177
|
const matchesApiName = ([, object]) => {
|
|
1231
|
-
return this.#apiName in object[
|
|
1178
|
+
return this.#apiName in object[chunkQJKAH6UM_cjs.ObjectDefRef].interfaceMap;
|
|
1232
1179
|
};
|
|
1233
1180
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.#apiName));
|
|
1234
1181
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.#apiName));
|
|
@@ -1404,7 +1351,7 @@ function createOrderBySortFns(orderBy) {
|
|
|
1404
1351
|
async function reloadDataAsFullObjects(client, data) {
|
|
1405
1352
|
const groups = groupBy__default.default(data, (x) => x.$objectType);
|
|
1406
1353
|
const objectTypeToPrimaryKeyToObject = Object.fromEntries(await Promise.all(Object.entries(groups).map(async ([apiName, objects]) => {
|
|
1407
|
-
const objectDef = objects[0][
|
|
1354
|
+
const objectDef = objects[0][chunkQJKAH6UM_cjs.UnderlyingOsdkObject][chunkQJKAH6UM_cjs.ObjectDefRef];
|
|
1408
1355
|
const where = {
|
|
1409
1356
|
[objectDef.primaryKeyApiName]: {
|
|
1410
1357
|
$in: objects.map((x) => x.$primaryKey)
|
|
@@ -1612,7 +1559,7 @@ var Store = class {
|
|
|
1612
1559
|
#finalizationRegistry;
|
|
1613
1560
|
constructor(client) {
|
|
1614
1561
|
this.client = client;
|
|
1615
|
-
this.logger = client[
|
|
1562
|
+
this.logger = client[chunkERTC3NWZ_cjs.additionalContext].logger?.child({}, {
|
|
1616
1563
|
msgPrefix: "Store"
|
|
1617
1564
|
});
|
|
1618
1565
|
this.#topLayer = this.#truthLayer;
|
|
@@ -1906,10 +1853,10 @@ var Store = class {
|
|
|
1906
1853
|
|
|
1907
1854
|
// src/observable/ObservableClient.ts
|
|
1908
1855
|
function createObservableClient(client) {
|
|
1909
|
-
const tweakedClient =
|
|
1910
|
-
...client[
|
|
1911
|
-
fetch: shared_net_fetch.createFetchHeaderMutator(client[
|
|
1912
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
1856
|
+
const tweakedClient = chunkQJKAH6UM_cjs.createClientFromContext({
|
|
1857
|
+
...client[chunkERTC3NWZ_cjs.additionalContext],
|
|
1858
|
+
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkERTC3NWZ_cjs.additionalContext].fetch, (headers) => {
|
|
1859
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkQJKAH6UM_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
|
|
1913
1860
|
return headers;
|
|
1914
1861
|
})
|
|
1915
1862
|
});
|
|
@@ -1952,11 +1899,11 @@ function getOsdkConfig(ontologyRid) {
|
|
|
1952
1899
|
|
|
1953
1900
|
Object.defineProperty(exports, "createClientWithTransaction", {
|
|
1954
1901
|
enumerable: true,
|
|
1955
|
-
get: function () { return
|
|
1902
|
+
get: function () { return chunkQJKAH6UM_cjs.createClientWithTransaction; }
|
|
1956
1903
|
});
|
|
1957
1904
|
Object.defineProperty(exports, "augment", {
|
|
1958
1905
|
enumerable: true,
|
|
1959
|
-
get: function () { return
|
|
1906
|
+
get: function () { return chunkERTC3NWZ_cjs.augment; }
|
|
1960
1907
|
});
|
|
1961
1908
|
exports.createObservableClient = createObservableClient;
|
|
1962
1909
|
exports.getMetaTagContent = getMetaTagContent;
|