@osdk/client 2.5.0-beta.11 → 2.5.0-beta.13
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 +20 -0
- package/build/browser/definitions/LinkDefinitions.test.js.map +1 -1
- package/build/browser/fetchMetadata.test.js +4 -0
- package/build/browser/fetchMetadata.test.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects.test.js +5 -1
- package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/browser/object/fetchPage.js +3 -2
- package/build/browser/object/fetchPage.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/cjs/{chunk-GVGP7T5P.cjs → chunk-2YVNXAHH.cjs} +4 -3
- package/build/cjs/chunk-2YVNXAHH.cjs.map +1 -0
- package/build/cjs/{chunk-3LPXQHP5.cjs → chunk-QTVK57MS.cjs} +54 -54
- package/build/cjs/{chunk-3LPXQHP5.cjs.map → chunk-QTVK57MS.cjs.map} +1 -1
- package/build/cjs/index.cjs +7 -7
- package/build/cjs/public/internal.cjs +8 -8
- package/build/cjs/public/unstable-do-not-use.cjs +31 -31
- package/build/esm/definitions/LinkDefinitions.test.js.map +1 -1
- package/build/esm/fetchMetadata.test.js +4 -0
- package/build/esm/fetchMetadata.test.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects.test.js +5 -1
- package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/esm/object/fetchPage.js +3 -2
- package/build/esm/object/fetchPage.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/package.json +5 -5
- package/build/cjs/chunk-GVGP7T5P.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2YVNXAHH_cjs = require('./chunk-2YVNXAHH.cjs');
|
|
4
4
|
var unstable = require('@osdk/api/unstable');
|
|
5
5
|
var client_unstable = require('@osdk/client.unstable');
|
|
6
6
|
var invariant = require('tiny-invariant');
|
|
@@ -446,19 +446,19 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
446
446
|
return Promise.all(promiseArray);
|
|
447
447
|
}
|
|
448
448
|
if (isAttachmentUpload(value)) {
|
|
449
|
-
const attachment = await
|
|
449
|
+
const attachment = await chunk2YVNXAHH_cjs.Attachment_exports.upload(client, value.data, {
|
|
450
450
|
filename: value.name
|
|
451
451
|
});
|
|
452
452
|
return await toDataValue(attachment.rid, client, actionMetadata);
|
|
453
453
|
}
|
|
454
454
|
if (isAttachmentFile(value)) {
|
|
455
|
-
const attachment = await
|
|
455
|
+
const attachment = await chunk2YVNXAHH_cjs.Attachment_exports.upload(client, value, {
|
|
456
456
|
filename: value.name
|
|
457
457
|
});
|
|
458
458
|
return await toDataValue(attachment.rid, client, actionMetadata);
|
|
459
459
|
}
|
|
460
460
|
if (isMediaUpload(value)) {
|
|
461
|
-
const mediaRef = await
|
|
461
|
+
const mediaRef = await chunk2YVNXAHH_cjs.MediaReferenceProperty_exports.uploadMedia(client, await client.ontologyRid, actionMetadata.apiName, value.data, {
|
|
462
462
|
mediaItemPath: value.path,
|
|
463
463
|
preview: true
|
|
464
464
|
});
|
|
@@ -473,11 +473,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
473
473
|
if (isPoint(value)) {
|
|
474
474
|
return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client, actionMetadata);
|
|
475
475
|
}
|
|
476
|
-
if (
|
|
476
|
+
if (chunk2YVNXAHH_cjs.isWireObjectSet(value)) {
|
|
477
477
|
return value;
|
|
478
478
|
}
|
|
479
|
-
if (
|
|
480
|
-
return
|
|
479
|
+
if (chunk2YVNXAHH_cjs.isObjectSet(value)) {
|
|
480
|
+
return chunk2YVNXAHH_cjs.getWireObjectSet(value);
|
|
481
481
|
}
|
|
482
482
|
if (isMediaReference(value)) {
|
|
483
483
|
return value;
|
|
@@ -500,11 +500,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
500
500
|
|
|
501
501
|
// src/actions/applyAction.ts
|
|
502
502
|
async function applyAction(client, action, parameters, options = {}) {
|
|
503
|
-
const clientWithHeaders =
|
|
503
|
+
const clientWithHeaders = chunk2YVNXAHH_cjs.addUserAgentAndRequestContextHeaders(chunk2YVNXAHH_cjs.augmentRequestContext(client, (_) => ({
|
|
504
504
|
finalMethodCall: "applyAction"
|
|
505
505
|
})), action);
|
|
506
506
|
if (Array.isArray(parameters)) {
|
|
507
|
-
const response = await
|
|
507
|
+
const response = await chunk2YVNXAHH_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
508
508
|
requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
|
|
509
509
|
options: {
|
|
510
510
|
returnEdits: options?.$returnEdits ? "ALL" : "NONE"
|
|
@@ -515,7 +515,7 @@ async function applyAction(client, action, parameters, options = {}) {
|
|
|
515
515
|
const edits = response.edits;
|
|
516
516
|
return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
|
|
517
517
|
} else {
|
|
518
|
-
const response = await
|
|
518
|
+
const response = await chunk2YVNXAHH_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
519
519
|
parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
|
|
520
520
|
options: {
|
|
521
521
|
mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
|
|
@@ -722,7 +722,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
async getLatestValue() {
|
|
725
|
-
const latestPointPromise =
|
|
725
|
+
const latestPointPromise = chunk2YVNXAHH_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
726
726
|
latestPointPromise.then(
|
|
727
727
|
(latestPoint) => this.lastFetchedValue = latestPoint,
|
|
728
728
|
// eslint-disable-next-line no-console
|
|
@@ -738,7 +738,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
738
738
|
return allPoints;
|
|
739
739
|
}
|
|
740
740
|
async *asyncIterValues(query) {
|
|
741
|
-
const streamPointsIterator = await
|
|
741
|
+
const streamPointsIterator = await chunk2YVNXAHH_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
742
742
|
range: getTimeRange(query)
|
|
743
743
|
} : {});
|
|
744
744
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -765,13 +765,13 @@ var MediaReferencePropertyImpl = class {
|
|
|
765
765
|
this.#mediaReference = mediaReference;
|
|
766
766
|
}
|
|
767
767
|
async fetchContents() {
|
|
768
|
-
return
|
|
768
|
+
return chunk2YVNXAHH_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
769
769
|
preview: true
|
|
770
770
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
773
|
async fetchMetadata() {
|
|
774
|
-
const r = await
|
|
774
|
+
const r = await chunk2YVNXAHH_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
775
775
|
preview: true
|
|
776
776
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
777
777
|
});
|
|
@@ -795,10 +795,10 @@ var TimeSeriesPropertyImpl = class {
|
|
|
795
795
|
this.#triplet = [objectApiName, primaryKey, propertyName];
|
|
796
796
|
}
|
|
797
797
|
async getFirstPoint() {
|
|
798
|
-
return
|
|
798
|
+
return chunk2YVNXAHH_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
799
799
|
}
|
|
800
800
|
async getLastPoint() {
|
|
801
|
-
return
|
|
801
|
+
return chunk2YVNXAHH_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
802
802
|
}
|
|
803
803
|
async getAllPoints(query) {
|
|
804
804
|
const allPoints = [];
|
|
@@ -808,7 +808,7 @@ var TimeSeriesPropertyImpl = class {
|
|
|
808
808
|
return allPoints;
|
|
809
809
|
}
|
|
810
810
|
async *asyncIterPoints(query) {
|
|
811
|
-
const streamPointsIterator = await
|
|
811
|
+
const streamPointsIterator = await chunk2YVNXAHH_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
812
812
|
range: getTimeRange(query)
|
|
813
813
|
} : {});
|
|
814
814
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -837,8 +837,8 @@ function get$link(holder) {
|
|
|
837
837
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
838
838
|
}).pivotTo(linkName);
|
|
839
839
|
const value = !linkDef.multiplicity ? {
|
|
840
|
-
fetchOne: (options) =>
|
|
841
|
-
fetchOneWithErrors: (options) =>
|
|
840
|
+
fetchOne: (options) => chunk2YVNXAHH_cjs.fetchSingle(client, objDef, options ?? {}, chunk2YVNXAHH_cjs.getWireObjectSet(objectSet)),
|
|
841
|
+
fetchOneWithErrors: (options) => chunk2YVNXAHH_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunk2YVNXAHH_cjs.getWireObjectSet(objectSet))
|
|
842
842
|
} : objectSet;
|
|
843
843
|
return [linkName, value];
|
|
844
844
|
})));
|
|
@@ -854,8 +854,8 @@ function get$linkForInterface(holder) {
|
|
|
854
854
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
855
855
|
})).pivotTo(linkName);
|
|
856
856
|
const value = !linkDef.multiplicity ? {
|
|
857
|
-
fetchOne: (options) =>
|
|
858
|
-
fetchOneWithErrors: (options) =>
|
|
857
|
+
fetchOne: (options) => chunk2YVNXAHH_cjs.fetchSingle(client, objDef, options ?? {}, chunk2YVNXAHH_cjs.getWireObjectSet(objectSet)),
|
|
858
|
+
fetchOneWithErrors: (options) => chunk2YVNXAHH_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunk2YVNXAHH_cjs.getWireObjectSet(objectSet))
|
|
859
859
|
} : objectSet;
|
|
860
860
|
return [linkName, value];
|
|
861
861
|
})));
|
|
@@ -863,7 +863,7 @@ function get$linkForInterface(holder) {
|
|
|
863
863
|
|
|
864
864
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
865
865
|
function createOsdkInterface(underlying, interfaceDef) {
|
|
866
|
-
const [objApiNamespace] =
|
|
866
|
+
const [objApiNamespace] = chunk2YVNXAHH_cjs.extractNamespace(interfaceDef.apiName);
|
|
867
867
|
return Object.freeze(Object.defineProperties({}, {
|
|
868
868
|
// first to minimize hidden classes
|
|
869
869
|
[UnderlyingOsdkObject]: {
|
|
@@ -918,7 +918,7 @@ function createOsdkInterface(underlying, interfaceDef) {
|
|
|
918
918
|
},
|
|
919
919
|
...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
|
|
920
920
|
const objDef = underlying[ObjectDefRef];
|
|
921
|
-
const [apiNamespace, apiName] =
|
|
921
|
+
const [apiNamespace, apiName] = chunk2YVNXAHH_cjs.extractNamespace(p);
|
|
922
922
|
const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
|
|
923
923
|
return [apiNamespace === objApiNamespace ? apiName : p, {
|
|
924
924
|
enumerable: targetPropName in underlying,
|
|
@@ -1070,9 +1070,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
|
|
|
1070
1070
|
switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
|
|
1071
1071
|
case "attachment":
|
|
1072
1072
|
if (Array.isArray(rawValue)) {
|
|
1073
|
-
return rawValue.map((a) =>
|
|
1073
|
+
return rawValue.map((a) => chunk2YVNXAHH_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1074
1074
|
} else {
|
|
1075
|
-
return
|
|
1075
|
+
return chunk2YVNXAHH_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1076
1076
|
}
|
|
1077
1077
|
default:
|
|
1078
1078
|
process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant__default.default(false) ;
|
|
@@ -1088,9 +1088,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
if (propDef.type === "attachment") {
|
|
1090
1090
|
if (Array.isArray(rawValue)) {
|
|
1091
|
-
return rawValue.map((a) =>
|
|
1091
|
+
return rawValue.map((a) => chunk2YVNXAHH_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1092
1092
|
}
|
|
1093
|
-
return
|
|
1093
|
+
return chunk2YVNXAHH_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1094
1094
|
}
|
|
1095
1095
|
if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
|
|
1096
1096
|
return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
|
|
@@ -1314,13 +1314,13 @@ function deepFreeze(obj) {
|
|
|
1314
1314
|
return Object.freeze(obj);
|
|
1315
1315
|
}
|
|
1316
1316
|
async function loadActionMetadata(client, actionType) {
|
|
1317
|
-
const r = await
|
|
1317
|
+
const r = await chunk2YVNXAHH_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType, {
|
|
1318
1318
|
branch: client.branch
|
|
1319
1319
|
});
|
|
1320
1320
|
return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
|
|
1321
1321
|
}
|
|
1322
1322
|
async function loadFullObjectMetadata(client, objectType) {
|
|
1323
|
-
const full = await
|
|
1323
|
+
const full = await chunk2YVNXAHH_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
|
|
1324
1324
|
preview: true,
|
|
1325
1325
|
branch: client.branch
|
|
1326
1326
|
});
|
|
@@ -1330,7 +1330,7 @@ async function loadFullObjectMetadata(client, objectType) {
|
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
async function loadInterfaceMetadata(client, objectType) {
|
|
1333
|
-
const r = await
|
|
1333
|
+
const r = await chunk2YVNXAHH_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
|
|
1334
1334
|
preview: true,
|
|
1335
1335
|
branch: client.branch
|
|
1336
1336
|
});
|
|
@@ -1338,7 +1338,7 @@ async function loadInterfaceMetadata(client, objectType) {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
|
|
1340
1340
|
const [apiName, version] = queryTypeApiNameAndVersion.split(":");
|
|
1341
|
-
const r = await
|
|
1341
|
+
const r = await chunk2YVNXAHH_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
|
|
1342
1342
|
version
|
|
1343
1343
|
});
|
|
1344
1344
|
return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
|
|
@@ -1395,11 +1395,11 @@ var createStandardOntologyProviderFactory = (client) => {
|
|
|
1395
1395
|
};
|
|
1396
1396
|
|
|
1397
1397
|
// src/util/UserAgent.ts
|
|
1398
|
-
var USER_AGENT = `osdk-client/${"2.5.0-beta.
|
|
1399
|
-
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.5.0-beta.
|
|
1398
|
+
var USER_AGENT = `osdk-client/${"2.5.0-beta.13"}`;
|
|
1399
|
+
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.5.0-beta.13"}`;
|
|
1400
1400
|
|
|
1401
1401
|
// src/createMinimalClient.ts
|
|
1402
|
-
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory =
|
|
1402
|
+
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunk2YVNXAHH_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
|
|
1403
1403
|
if (process.env.NODE_ENV !== "production") {
|
|
1404
1404
|
try {
|
|
1405
1405
|
new URL(baseUrl);
|
|
@@ -1466,13 +1466,13 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1466
1466
|
switch (desiredType.type) {
|
|
1467
1467
|
case "attachment": {
|
|
1468
1468
|
if (isAttachmentUpload(value)) {
|
|
1469
|
-
const attachment = await
|
|
1469
|
+
const attachment = await chunk2YVNXAHH_cjs.Attachment_exports.upload(client, value.data, {
|
|
1470
1470
|
filename: value.name
|
|
1471
1471
|
});
|
|
1472
1472
|
return attachment.rid;
|
|
1473
1473
|
}
|
|
1474
1474
|
if (isAttachmentFile(value)) {
|
|
1475
|
-
const attachment = await
|
|
1475
|
+
const attachment = await chunk2YVNXAHH_cjs.Attachment_exports.upload(client, value, {
|
|
1476
1476
|
filename: value.name
|
|
1477
1477
|
});
|
|
1478
1478
|
return attachment.rid;
|
|
@@ -1512,11 +1512,11 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
case "objectSet":
|
|
1514
1514
|
case "interfaceObjectSet": {
|
|
1515
|
-
if (
|
|
1515
|
+
if (chunk2YVNXAHH_cjs.isWireObjectSet(value)) {
|
|
1516
1516
|
return value;
|
|
1517
1517
|
}
|
|
1518
|
-
if (
|
|
1519
|
-
return
|
|
1518
|
+
if (chunk2YVNXAHH_cjs.isObjectSet(value)) {
|
|
1519
|
+
return chunk2YVNXAHH_cjs.getWireObjectSet(value);
|
|
1520
1520
|
}
|
|
1521
1521
|
break;
|
|
1522
1522
|
}
|
|
@@ -1558,7 +1558,7 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1558
1558
|
// src/queries/applyQuery.ts
|
|
1559
1559
|
async function applyQuery(client, query, params) {
|
|
1560
1560
|
const qd = await client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
|
|
1561
|
-
const response = await
|
|
1561
|
+
const response = await chunk2YVNXAHH_cjs.Query_exports.execute(chunk2YVNXAHH_cjs.addUserAgentAndRequestContextHeaders(chunk2YVNXAHH_cjs.augmentRequestContext(client, (_) => ({
|
|
1562
1562
|
finalMethodCall: "applyQuery"
|
|
1563
1563
|
})), query), await client.ontologyRid, query.apiName, {
|
|
1564
1564
|
parameters: params ? await remapQueryParams(params, client, qd.parameters) : {}
|
|
@@ -1605,7 +1605,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1605
1605
|
return responseValue;
|
|
1606
1606
|
}
|
|
1607
1607
|
case "attachment": {
|
|
1608
|
-
return
|
|
1608
|
+
return chunk2YVNXAHH_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
|
|
1609
1609
|
}
|
|
1610
1610
|
case "object": {
|
|
1611
1611
|
const def = definitions.get(responseDataType.object);
|
|
@@ -1627,7 +1627,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1627
1627
|
throw new Error(`Missing definition for ${responseDataType.objectSet}`);
|
|
1628
1628
|
}
|
|
1629
1629
|
if (typeof responseValue === "string") {
|
|
1630
|
-
return
|
|
1630
|
+
return chunk2YVNXAHH_cjs.createObjectSet(def, client, {
|
|
1631
1631
|
type: "intersect",
|
|
1632
1632
|
objectSets: [{
|
|
1633
1633
|
type: "base",
|
|
@@ -1638,7 +1638,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1638
1638
|
}]
|
|
1639
1639
|
});
|
|
1640
1640
|
}
|
|
1641
|
-
return
|
|
1641
|
+
return chunk2YVNXAHH_cjs.createObjectSet(def, client, responseValue);
|
|
1642
1642
|
}
|
|
1643
1643
|
case "struct": {
|
|
1644
1644
|
for (const [key, subtype] of Object.entries(responseDataType.struct)) {
|
|
@@ -1824,7 +1824,7 @@ function createClientInternal(objectSetFactory, transactionRid, baseUrl, ontolog
|
|
|
1824
1824
|
ontologyRid
|
|
1825
1825
|
}, baseUrl, tokenProvider, {
|
|
1826
1826
|
...options,
|
|
1827
|
-
logger: options?.logger ?? new
|
|
1827
|
+
logger: options?.logger ?? new chunk2YVNXAHH_cjs.MinimalLogger(),
|
|
1828
1828
|
transactionRid,
|
|
1829
1829
|
branch: options?.branch
|
|
1830
1830
|
}, fetchFn, objectSetFactory);
|
|
@@ -1847,7 +1847,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1847
1847
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
|
|
1848
1848
|
return {
|
|
1849
1849
|
fetchOneByRid: async (objectType, rid, options) => {
|
|
1850
|
-
return await
|
|
1850
|
+
return await chunk2YVNXAHH_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
|
|
1851
1851
|
}
|
|
1852
1852
|
};
|
|
1853
1853
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
|
|
@@ -1859,7 +1859,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1859
1859
|
objectType,
|
|
1860
1860
|
propertyType
|
|
1861
1861
|
} = args;
|
|
1862
|
-
return await
|
|
1862
|
+
return await chunk2YVNXAHH_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
|
|
1863
1863
|
mediaItemPath: fileName,
|
|
1864
1864
|
preview: true
|
|
1865
1865
|
});
|
|
@@ -1868,10 +1868,10 @@ function createClientFromContext(clientCtx) {
|
|
|
1868
1868
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
|
|
1869
1869
|
return {
|
|
1870
1870
|
fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
|
|
1871
|
-
return await
|
|
1871
|
+
return await chunk2YVNXAHH_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
|
|
1872
1872
|
},
|
|
1873
1873
|
fetchPageByRidNoType: async (rids, options) => {
|
|
1874
|
-
return await
|
|
1874
|
+
return await chunk2YVNXAHH_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
|
|
1875
1875
|
}
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
@@ -1883,13 +1883,13 @@ function createClientFromContext(clientCtx) {
|
|
|
1883
1883
|
const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
|
|
1884
1884
|
const symbolClientContext2 = "__osdkClientContext";
|
|
1885
1885
|
const client = Object.defineProperties(clientFn, {
|
|
1886
|
-
[
|
|
1886
|
+
[chunk2YVNXAHH_cjs.symbolClientContext]: {
|
|
1887
1887
|
value: clientCtx
|
|
1888
1888
|
},
|
|
1889
1889
|
[symbolClientContext2]: {
|
|
1890
1890
|
value: clientCtx
|
|
1891
1891
|
},
|
|
1892
|
-
[
|
|
1892
|
+
[chunk2YVNXAHH_cjs.additionalContext]: {
|
|
1893
1893
|
value: clientCtx
|
|
1894
1894
|
},
|
|
1895
1895
|
fetchMetadata: {
|
|
@@ -1898,8 +1898,8 @@ function createClientFromContext(clientCtx) {
|
|
|
1898
1898
|
});
|
|
1899
1899
|
return client;
|
|
1900
1900
|
}
|
|
1901
|
-
var createClient = createClientInternal.bind(void 0,
|
|
1902
|
-
var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(
|
|
1901
|
+
var createClient = createClientInternal.bind(void 0, chunk2YVNXAHH_cjs.createObjectSet, void 0);
|
|
1902
|
+
var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(chunk2YVNXAHH_cjs.createObjectSet, transactionRid, ...args);
|
|
1903
1903
|
function createWithRid(rids) {
|
|
1904
1904
|
const withRid = {
|
|
1905
1905
|
type: "static",
|
|
@@ -1918,5 +1918,5 @@ exports.createClient = createClient;
|
|
|
1918
1918
|
exports.createClientFromContext = createClientFromContext;
|
|
1919
1919
|
exports.createClientWithTransaction = createClientWithTransaction;
|
|
1920
1920
|
exports.createObjectSpecifierFromPrimaryKey = createObjectSpecifierFromPrimaryKey;
|
|
1921
|
-
//# sourceMappingURL=chunk-
|
|
1922
|
-
//# sourceMappingURL=chunk-
|
|
1921
|
+
//# sourceMappingURL=chunk-QTVK57MS.cjs.map
|
|
1922
|
+
//# sourceMappingURL=chunk-QTVK57MS.cjs.map
|