@osdk/client 2.7.0-beta.5 → 2.7.0-beta.7
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 +27 -0
- package/build/browser/observable/ListPayload.js.map +1 -1
- package/build/browser/observable/ObjectPayload.js.map +1 -1
- package/build/browser/observable/ObservableClient.js +0 -5
- package/build/browser/observable/ObservableClient.js.map +1 -1
- package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
- package/build/browser/observable/internal/Store.test.js +54 -0
- package/build/browser/observable/internal/Store.test.js.map +1 -1
- package/build/browser/observable/internal/base-list/BaseListQuery.js +1 -1
- package/build/browser/observable/internal/base-list/BaseListQuery.js.map +1 -1
- package/build/browser/observable/internal/utils/rdpFieldOperations.js +46 -25
- package/build/browser/observable/internal/utils/rdpFieldOperations.js.map +1 -1
- package/build/browser/public/unstable-do-not-use.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/cjs/{chunk-6SCDLAU2.cjs → chunk-LDTMSHUZ.cjs} +4 -4
- package/build/cjs/{chunk-6SCDLAU2.cjs.map → chunk-LDTMSHUZ.cjs.map} +1 -1
- package/build/cjs/{chunk-HM4EXGFD.cjs → chunk-PUP56SUU.cjs} +67 -67
- package/build/cjs/{chunk-HM4EXGFD.cjs.map → chunk-PUP56SUU.cjs.map} +1 -1
- package/build/cjs/{chunk-LBXKB67X.cjs → chunk-UAJMOJN3.cjs} +117 -115
- package/build/cjs/chunk-UAJMOJN3.cjs.map +1 -0
- package/build/cjs/{delay-KIUUJ5NJ.cjs → delay-W2TSML2P.cjs} +4 -4
- package/build/cjs/{delay-KIUUJ5NJ.cjs.map → delay-W2TSML2P.cjs.map} +1 -1
- package/build/cjs/index.cjs +12 -12
- package/build/cjs/public/internal-node.cjs +219 -219
- package/build/cjs/public/internal.cjs +14 -14
- package/build/cjs/public/unstable-do-not-use.cjs +139 -123
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +6 -6
- package/build/esm/observable/ListPayload.js.map +1 -1
- package/build/esm/observable/ObjectPayload.js.map +1 -1
- package/build/esm/observable/ObservableClient.js +0 -5
- package/build/esm/observable/ObservableClient.js.map +1 -1
- package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
- package/build/esm/observable/internal/Store.test.js +54 -0
- package/build/esm/observable/internal/Store.test.js.map +1 -1
- package/build/esm/observable/internal/base-list/BaseListQuery.js +1 -1
- package/build/esm/observable/internal/base-list/BaseListQuery.js.map +1 -1
- package/build/esm/observable/internal/utils/rdpFieldOperations.js +46 -25
- package/build/esm/observable/internal/utils/rdpFieldOperations.js.map +1 -1
- package/build/esm/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/types/observable/ListPayload.d.ts +3 -2
- package/build/types/observable/ListPayload.d.ts.map +1 -1
- package/build/types/observable/ObjectPayload.d.ts +2 -2
- package/build/types/observable/ObjectPayload.d.ts.map +1 -1
- package/build/types/observable/ObservableClient.d.ts +8 -5
- package/build/types/observable/ObservableClient.d.ts.map +1 -1
- package/build/types/observable/internal/Store.test.d.ts.map +1 -1
- package/build/types/observable/internal/utils/rdpFieldOperations.d.ts.map +1 -1
- package/build/types/public/unstable-do-not-use.d.ts +1 -1
- package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
- package/package.json +7 -7
- package/build/cjs/chunk-LBXKB67X.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkPUP56SUU_cjs = require('./chunk-PUP56SUU.cjs');
|
|
4
|
+
var chunkLDTMSHUZ_cjs = require('./chunk-LDTMSHUZ.cjs');
|
|
5
5
|
var unstable = require('@osdk/api/unstable');
|
|
6
6
|
var client_unstable = require('@osdk/client.unstable');
|
|
7
7
|
var invariant = require('tiny-invariant');
|
|
@@ -14,7 +14,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
14
14
|
var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
15
15
|
|
|
16
16
|
// src/actions/ActionValidationError.ts
|
|
17
|
-
|
|
17
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
18
18
|
var ActionValidationError = class extends Error {
|
|
19
19
|
constructor(validation) {
|
|
20
20
|
super("Validation Error: " + JSON.stringify(validation, null, 2));
|
|
@@ -23,7 +23,7 @@ var ActionValidationError = class extends Error {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
// src/object/AttachmentUpload.ts
|
|
26
|
-
|
|
26
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
27
27
|
function isAttachmentUpload(o) {
|
|
28
28
|
return typeof o === "object" && o != null && "name" in o && typeof o.name === "string" && "data" in o && o.data instanceof Blob && !("fileName" in o);
|
|
29
29
|
}
|
|
@@ -38,7 +38,7 @@ function createAttachmentUpload(data, name) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
// src/util/objectSpecifierUtils.ts
|
|
41
|
-
|
|
41
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
42
42
|
function createObjectSpecifierFromPrimaryKey(objectDef, primaryKey) {
|
|
43
43
|
return `${objectDef.apiName}:${primaryKey}`;
|
|
44
44
|
}
|
|
@@ -50,13 +50,13 @@ function extractPrimaryKeyFromObjectSpecifier(ObjectSpecifier) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// src/createClient.ts
|
|
53
|
-
|
|
53
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
54
54
|
|
|
55
55
|
// src/__unstable/createBulkLinksAsyncIterFactory.ts
|
|
56
|
-
|
|
56
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
57
57
|
|
|
58
58
|
// src/objectSet/conjureUnionType.ts
|
|
59
|
-
|
|
59
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
60
60
|
function conjureUnionType(type, value) {
|
|
61
61
|
return {
|
|
62
62
|
type,
|
|
@@ -65,7 +65,7 @@ function conjureUnionType(type, value) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
// src/ontology/makeConjureContext.ts
|
|
68
|
-
|
|
68
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
69
69
|
function makeConjureContext({
|
|
70
70
|
baseUrl,
|
|
71
71
|
fetch: fetchFn,
|
|
@@ -80,7 +80,7 @@ function makeConjureContext({
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
// src/pageRequestAsAsyncIter.ts
|
|
83
|
-
|
|
83
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
84
84
|
function getResults(x) {
|
|
85
85
|
return x.results;
|
|
86
86
|
}
|
|
@@ -104,10 +104,10 @@ async function* pageRequestAsAsyncIter(call, values, nextArgs, initialPayload) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// src/__unstable/ConjureSupport.ts
|
|
107
|
-
|
|
107
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
108
108
|
|
|
109
109
|
// src/object/SimpleCache.ts
|
|
110
|
-
|
|
110
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
111
111
|
function createSimpleCache(map = /* @__PURE__ */ new Map(), fn) {
|
|
112
112
|
function get(key) {
|
|
113
113
|
const r = map.get(key);
|
|
@@ -409,17 +409,17 @@ function getPrimaryKeyOrThrow(ref) {
|
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
// src/actions/applyAction.ts
|
|
412
|
-
|
|
412
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
413
413
|
|
|
414
414
|
// src/util/toDataValue.ts
|
|
415
|
-
|
|
415
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
416
416
|
|
|
417
417
|
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.44.0/node_modules/@osdk/foundry.mediasets/build/esm/index.js
|
|
418
|
-
|
|
418
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
419
419
|
|
|
420
420
|
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.44.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
|
|
421
421
|
var MediaSet_exports = {};
|
|
422
|
-
|
|
422
|
+
chunkLDTMSHUZ_cjs.__export(MediaSet_exports, {
|
|
423
423
|
abort: () => abort,
|
|
424
424
|
calculate: () => calculate,
|
|
425
425
|
commit: () => commit,
|
|
@@ -433,58 +433,58 @@ chunk6SCDLAU2_cjs.__export(MediaSet_exports, {
|
|
|
433
433
|
upload: () => upload,
|
|
434
434
|
uploadMedia: () => uploadMedia
|
|
435
435
|
});
|
|
436
|
-
|
|
436
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
437
437
|
var _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
|
|
438
438
|
function abort($ctx, ...args) {
|
|
439
|
-
return
|
|
439
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _abort, ...args);
|
|
440
440
|
}
|
|
441
441
|
var _calculate = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/calculate", 6];
|
|
442
442
|
function calculate($ctx, ...args) {
|
|
443
|
-
return
|
|
443
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _calculate, ...args);
|
|
444
444
|
}
|
|
445
445
|
var _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
|
|
446
446
|
function commit($ctx, ...args) {
|
|
447
|
-
return
|
|
447
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _commit, ...args);
|
|
448
448
|
}
|
|
449
449
|
var _create = [1, "/v2/mediasets/{0}/transactions", 2];
|
|
450
450
|
function create($ctx, ...args) {
|
|
451
|
-
return
|
|
451
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _create, ...args);
|
|
452
452
|
}
|
|
453
453
|
var _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
|
|
454
454
|
function info($ctx, ...args) {
|
|
455
|
-
return
|
|
455
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _info, ...args);
|
|
456
456
|
}
|
|
457
457
|
var _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
|
|
458
458
|
function reference($ctx, ...args) {
|
|
459
|
-
return
|
|
459
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _reference, ...args);
|
|
460
460
|
}
|
|
461
461
|
var _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
|
|
462
462
|
function getRidByPath($ctx, ...args) {
|
|
463
|
-
return
|
|
463
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _getRidByPath, ...args);
|
|
464
464
|
}
|
|
465
465
|
var _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
|
|
466
466
|
function upload($ctx, ...args) {
|
|
467
|
-
return
|
|
467
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _upload, ...args);
|
|
468
468
|
}
|
|
469
469
|
var _read = [0, "/v2/mediasets/{0}/items/{1}/content", 6, , "*/*"];
|
|
470
470
|
function read($ctx, ...args) {
|
|
471
|
-
return
|
|
471
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _read, ...args);
|
|
472
472
|
}
|
|
473
473
|
var _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6, , "*/*"];
|
|
474
474
|
function readOriginal($ctx, ...args) {
|
|
475
|
-
return
|
|
475
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _readOriginal, ...args);
|
|
476
476
|
}
|
|
477
477
|
var _retrieve = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/retrieve", 6, , "*/*"];
|
|
478
478
|
function retrieve($ctx, ...args) {
|
|
479
|
-
return
|
|
479
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _retrieve, ...args);
|
|
480
480
|
}
|
|
481
481
|
var _uploadMedia = [2, "/v2/mediasets/media/upload", 7, "*/*"];
|
|
482
482
|
function uploadMedia($ctx, ...args) {
|
|
483
|
-
return
|
|
483
|
+
return chunkPUP56SUU_cjs.foundryPlatformFetch($ctx, _uploadMedia, ...args);
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
// src/object/mediaUpload.ts
|
|
487
|
-
|
|
487
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
488
488
|
function isMediaReference(o) {
|
|
489
489
|
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";
|
|
490
490
|
}
|
|
@@ -493,7 +493,7 @@ function isMediaUpload(o) {
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
// src/util/interfaceUtils.ts
|
|
496
|
-
|
|
496
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
497
497
|
function isInterfaceActionParam(o) {
|
|
498
498
|
return o != null && typeof o === "object" && "$objectType" in o && "$primaryKey" in o;
|
|
499
499
|
}
|
|
@@ -505,19 +505,19 @@ function isInterfaceSpecifier(o) {
|
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
// src/util/isObjectSpecifiersObject.ts
|
|
508
|
-
|
|
508
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
509
509
|
function isObjectSpecifiersObject(o) {
|
|
510
510
|
return o && typeof o === "object" && typeof o.$apiName === "string" && o.$primaryKey != null;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
// src/util/isOntologyObjectV2.ts
|
|
514
|
-
|
|
514
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
515
515
|
function isOntologyObjectV2(o) {
|
|
516
516
|
return o && typeof o === "object" && typeof o.__apiName === "string" && o.__primaryKey != null;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
// src/util/isPoint.ts
|
|
520
|
-
|
|
520
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
521
521
|
function isPoint(o) {
|
|
522
522
|
return o && typeof o === "object" && "type" in o && o.type === "Point" && "coordinates" in o && o.coordinates.length === 2;
|
|
523
523
|
}
|
|
@@ -543,13 +543,13 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
543
543
|
return Promise.all(promiseArray);
|
|
544
544
|
}
|
|
545
545
|
if (isAttachmentUpload(value)) {
|
|
546
|
-
const attachment = await
|
|
546
|
+
const attachment = await chunkPUP56SUU_cjs.Attachment_exports.upload(client, value.data, {
|
|
547
547
|
filename: value.name
|
|
548
548
|
});
|
|
549
549
|
return await toDataValue(attachment.rid, client);
|
|
550
550
|
}
|
|
551
551
|
if (isAttachmentFile(value)) {
|
|
552
|
-
const attachment = await
|
|
552
|
+
const attachment = await chunkPUP56SUU_cjs.Attachment_exports.upload(client, value, {
|
|
553
553
|
filename: value.name
|
|
554
554
|
});
|
|
555
555
|
return await toDataValue(attachment.rid, client);
|
|
@@ -570,11 +570,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
570
570
|
if (isPoint(value)) {
|
|
571
571
|
return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client);
|
|
572
572
|
}
|
|
573
|
-
if (
|
|
573
|
+
if (chunkPUP56SUU_cjs.isWireObjectSet(value)) {
|
|
574
574
|
return value;
|
|
575
575
|
}
|
|
576
|
-
if (
|
|
577
|
-
return
|
|
576
|
+
if (chunkPUP56SUU_cjs.isObjectSet(value)) {
|
|
577
|
+
return chunkPUP56SUU_cjs.getWireObjectSet(value);
|
|
578
578
|
}
|
|
579
579
|
if (isMediaReference(value)) {
|
|
580
580
|
return value;
|
|
@@ -597,11 +597,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
597
597
|
|
|
598
598
|
// src/actions/applyAction.ts
|
|
599
599
|
async function applyAction(client, action, parameters, options = {}) {
|
|
600
|
-
const clientWithHeaders =
|
|
600
|
+
const clientWithHeaders = chunkPUP56SUU_cjs.addUserAgentAndRequestContextHeaders(chunkPUP56SUU_cjs.augmentRequestContext(client, (_) => ({
|
|
601
601
|
finalMethodCall: "applyAction"
|
|
602
602
|
})), action);
|
|
603
603
|
if (Array.isArray(parameters)) {
|
|
604
|
-
const response = await
|
|
604
|
+
const response = await chunkPUP56SUU_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
605
605
|
requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
|
|
606
606
|
options: {
|
|
607
607
|
returnEdits: options?.$returnEdits ? "ALL" : "NONE"
|
|
@@ -612,7 +612,7 @@ async function applyAction(client, action, parameters, options = {}) {
|
|
|
612
612
|
const edits = response.edits;
|
|
613
613
|
return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
|
|
614
614
|
} else {
|
|
615
|
-
const response = await
|
|
615
|
+
const response = await chunkPUP56SUU_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
616
616
|
parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
|
|
617
617
|
options: {
|
|
618
618
|
mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
|
|
@@ -701,22 +701,22 @@ function remapActionResponse(response) {
|
|
|
701
701
|
}
|
|
702
702
|
|
|
703
703
|
// src/createMinimalClient.ts
|
|
704
|
-
|
|
704
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
705
705
|
|
|
706
706
|
// src/object/convertWireToOsdkObjects.ts
|
|
707
|
-
|
|
707
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
708
708
|
|
|
709
709
|
// src/object/convertWireToOsdkObjects/createOsdkObject.ts
|
|
710
|
-
|
|
710
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
711
711
|
|
|
712
712
|
// src/createGeotimeSeriesProperty.ts
|
|
713
|
-
|
|
713
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
714
714
|
|
|
715
715
|
// src/util/timeseriesUtils.ts
|
|
716
|
-
|
|
716
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
717
717
|
|
|
718
718
|
// src/util/streamutils.ts
|
|
719
|
-
|
|
719
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
720
720
|
var START_TOKEN = new Uint8Array([123, 34, 100, 97, 116, 97, 34, 58, 91]);
|
|
721
721
|
var OBJECT_OPEN_CHAR_CODE = 123;
|
|
722
722
|
var OBJECT_CLOSE_CHAR_CODE = 125;
|
|
@@ -835,7 +835,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
async getLatestValue() {
|
|
838
|
-
const latestPointPromise =
|
|
838
|
+
const latestPointPromise = chunkPUP56SUU_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
839
839
|
latestPointPromise.then(
|
|
840
840
|
(latestPoint) => this.lastFetchedValue = latestPoint,
|
|
841
841
|
// eslint-disable-next-line no-console
|
|
@@ -851,7 +851,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
851
851
|
return allPoints;
|
|
852
852
|
}
|
|
853
853
|
async *asyncIterValues(query) {
|
|
854
|
-
const streamPointsIterator = await
|
|
854
|
+
const streamPointsIterator = await chunkPUP56SUU_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
855
855
|
range: getTimeRange(query)
|
|
856
856
|
} : {});
|
|
857
857
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -861,7 +861,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
861
861
|
};
|
|
862
862
|
|
|
863
863
|
// src/createMediaReferenceProperty.ts
|
|
864
|
-
|
|
864
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
865
865
|
var MediaReferencePropertyImpl = class {
|
|
866
866
|
#mediaReference;
|
|
867
867
|
#triplet;
|
|
@@ -879,13 +879,13 @@ var MediaReferencePropertyImpl = class {
|
|
|
879
879
|
this.#mediaReference = mediaReference;
|
|
880
880
|
}
|
|
881
881
|
async fetchContents() {
|
|
882
|
-
return
|
|
882
|
+
return chunkPUP56SUU_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
883
883
|
preview: true
|
|
884
884
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
async fetchMetadata() {
|
|
888
|
-
const r = await
|
|
888
|
+
const r = await chunkPUP56SUU_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
889
889
|
preview: true
|
|
890
890
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
891
891
|
});
|
|
@@ -901,7 +901,7 @@ var MediaReferencePropertyImpl = class {
|
|
|
901
901
|
};
|
|
902
902
|
|
|
903
903
|
// src/createTimeseriesProperty.ts
|
|
904
|
-
|
|
904
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
905
905
|
var TimeSeriesPropertyImpl = class {
|
|
906
906
|
#triplet;
|
|
907
907
|
#client;
|
|
@@ -910,10 +910,10 @@ var TimeSeriesPropertyImpl = class {
|
|
|
910
910
|
this.#triplet = [objectApiName, primaryKey, propertyName];
|
|
911
911
|
}
|
|
912
912
|
async getFirstPoint() {
|
|
913
|
-
return
|
|
913
|
+
return chunkPUP56SUU_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
914
914
|
}
|
|
915
915
|
async getLastPoint() {
|
|
916
|
-
return
|
|
916
|
+
return chunkPUP56SUU_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
917
917
|
}
|
|
918
918
|
async getAllPoints(query) {
|
|
919
919
|
const allPoints = [];
|
|
@@ -923,7 +923,7 @@ var TimeSeriesPropertyImpl = class {
|
|
|
923
923
|
return allPoints;
|
|
924
924
|
}
|
|
925
925
|
async *asyncIterPoints(query) {
|
|
926
|
-
const streamPointsIterator = await
|
|
926
|
+
const streamPointsIterator = await chunkPUP56SUU_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
927
927
|
range: getTimeRange(query)
|
|
928
928
|
} : {});
|
|
929
929
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -933,19 +933,19 @@ var TimeSeriesPropertyImpl = class {
|
|
|
933
933
|
};
|
|
934
934
|
|
|
935
935
|
// src/object/formatting/applyPropertyFormatter.ts
|
|
936
|
-
|
|
936
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
937
937
|
|
|
938
938
|
// src/object/formatting/formatBoolean.ts
|
|
939
|
-
|
|
939
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
940
940
|
function formatBoolean(value, rule) {
|
|
941
941
|
return value ? rule.valueIfTrue : rule.valueIfFalse;
|
|
942
942
|
}
|
|
943
943
|
|
|
944
944
|
// src/object/formatting/formatDateTime.ts
|
|
945
|
-
|
|
945
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
946
946
|
|
|
947
947
|
// src/object/formatting/propertyFormattingUtils.ts
|
|
948
|
-
|
|
948
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
949
949
|
function resolvePropertyReference(ref, objectData) {
|
|
950
950
|
if (ref.type === "constant") {
|
|
951
951
|
return ref.value;
|
|
@@ -1095,7 +1095,7 @@ function formatRelativeToNow(date, locale, timezone) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
1097
|
// src/object/formatting/formatNumber.ts
|
|
1098
|
-
|
|
1098
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1099
1099
|
function formatNumber(value, numberType, objectData, locale) {
|
|
1100
1100
|
switch (numberType.type) {
|
|
1101
1101
|
case "standard":
|
|
@@ -1310,20 +1310,20 @@ function formatPropertyValue(value, rule, objectData, options) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
// src/object/convertWireToOsdkObjects/getDollarAs.ts
|
|
1313
|
-
|
|
1313
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1314
1314
|
|
|
1315
1315
|
// src/ontology/OntologyProvider.ts
|
|
1316
|
-
|
|
1316
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1317
1317
|
var InterfaceDefinitions = Symbol("InterfaceDefinitions" );
|
|
1318
1318
|
|
|
1319
1319
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
1320
|
-
|
|
1320
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1321
1321
|
|
|
1322
1322
|
// src/object/convertWireToOsdkObjects/getDollarLink.ts
|
|
1323
|
-
|
|
1323
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1324
1324
|
|
|
1325
1325
|
// src/object/convertWireToOsdkObjects/InternalSymbols.ts
|
|
1326
|
-
|
|
1326
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1327
1327
|
var UnderlyingOsdkObject = Symbol("Underlying Object" );
|
|
1328
1328
|
var ObjectDefRef = Symbol("ObjectDefinition" );
|
|
1329
1329
|
var InterfaceDefRef = Symbol("InterfaceDefinition" );
|
|
@@ -1340,8 +1340,8 @@ function get$link(holder) {
|
|
|
1340
1340
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
1341
1341
|
}).pivotTo(linkName);
|
|
1342
1342
|
const value = !linkDef.multiplicity ? {
|
|
1343
|
-
fetchOne: (options) =>
|
|
1344
|
-
fetchOneWithErrors: (options) =>
|
|
1343
|
+
fetchOne: (options) => chunkPUP56SUU_cjs.fetchSingle(client, objDef, options ?? {}, chunkPUP56SUU_cjs.getWireObjectSet(objectSet)),
|
|
1344
|
+
fetchOneWithErrors: (options) => chunkPUP56SUU_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkPUP56SUU_cjs.getWireObjectSet(objectSet))
|
|
1345
1345
|
} : objectSet;
|
|
1346
1346
|
return [linkName, value];
|
|
1347
1347
|
})));
|
|
@@ -1357,8 +1357,8 @@ function get$linkForInterface(holder) {
|
|
|
1357
1357
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
1358
1358
|
})).pivotTo(linkName);
|
|
1359
1359
|
const value = !linkDef.multiplicity ? {
|
|
1360
|
-
fetchOne: (options) =>
|
|
1361
|
-
fetchOneWithErrors: (options) =>
|
|
1360
|
+
fetchOne: (options) => chunkPUP56SUU_cjs.fetchSingle(client, objDef, options ?? {}, chunkPUP56SUU_cjs.getWireObjectSet(objectSet)),
|
|
1361
|
+
fetchOneWithErrors: (options) => chunkPUP56SUU_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkPUP56SUU_cjs.getWireObjectSet(objectSet))
|
|
1362
1362
|
} : objectSet;
|
|
1363
1363
|
return [linkName, value];
|
|
1364
1364
|
})));
|
|
@@ -1366,7 +1366,7 @@ function get$linkForInterface(holder) {
|
|
|
1366
1366
|
|
|
1367
1367
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
1368
1368
|
function createOsdkInterface(underlying, interfaceDef) {
|
|
1369
|
-
const [objApiNamespace] =
|
|
1369
|
+
const [objApiNamespace] = chunkPUP56SUU_cjs.extractNamespace(interfaceDef.apiName);
|
|
1370
1370
|
return Object.freeze(Object.defineProperties({}, {
|
|
1371
1371
|
// first to minimize hidden classes
|
|
1372
1372
|
[UnderlyingOsdkObject]: {
|
|
@@ -1425,7 +1425,7 @@ function createOsdkInterface(underlying, interfaceDef) {
|
|
|
1425
1425
|
},
|
|
1426
1426
|
...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
|
|
1427
1427
|
const objDef = underlying[ObjectDefRef];
|
|
1428
|
-
const [apiNamespace, apiName] =
|
|
1428
|
+
const [apiNamespace, apiName] = chunkPUP56SUU_cjs.extractNamespace(p);
|
|
1429
1429
|
const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
|
|
1430
1430
|
return [apiNamespace === objApiNamespace ? apiName : p, {
|
|
1431
1431
|
enumerable: targetPropName in underlying,
|
|
@@ -1586,9 +1586,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
|
|
|
1586
1586
|
switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
|
|
1587
1587
|
case "attachment":
|
|
1588
1588
|
if (Array.isArray(rawValue)) {
|
|
1589
|
-
return rawValue.map((a) =>
|
|
1589
|
+
return rawValue.map((a) => chunkPUP56SUU_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1590
1590
|
} else {
|
|
1591
|
-
return
|
|
1591
|
+
return chunkPUP56SUU_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1592
1592
|
}
|
|
1593
1593
|
default:
|
|
1594
1594
|
process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant__default.default(false) ;
|
|
@@ -1604,9 +1604,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
if (propDef.type === "attachment") {
|
|
1606
1606
|
if (Array.isArray(rawValue)) {
|
|
1607
|
-
return rawValue.map((a) =>
|
|
1607
|
+
return rawValue.map((a) => chunkPUP56SUU_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1608
1608
|
}
|
|
1609
|
-
return
|
|
1609
|
+
return chunkPUP56SUU_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1610
1610
|
}
|
|
1611
1611
|
if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
|
|
1612
1612
|
return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
|
|
@@ -1768,10 +1768,10 @@ function convertInterfaceToObjectTypeMappingsV2ToV1(mappingsV2) {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
|
|
1770
1770
|
// src/ontology/StandardOntologyProvider.ts
|
|
1771
|
-
|
|
1771
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1772
1772
|
|
|
1773
1773
|
// src/object/Cache.ts
|
|
1774
|
-
|
|
1774
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1775
1775
|
function createClientCache(fn) {
|
|
1776
1776
|
const cache = /* @__PURE__ */ new WeakMap();
|
|
1777
1777
|
function get(client, key) {
|
|
@@ -1828,7 +1828,7 @@ function createAsyncClientCache(fn, createCacheLocal = createClientCache) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
1830
|
// src/util/deepFreeze.ts
|
|
1831
|
-
|
|
1831
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1832
1832
|
function deepFreeze(obj) {
|
|
1833
1833
|
Object.getOwnPropertyNames(obj).forEach((name) => {
|
|
1834
1834
|
const prop = obj[name];
|
|
@@ -1840,18 +1840,18 @@ function deepFreeze(obj) {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
|
|
1842
1842
|
// src/ontology/loadActionMetadata.ts
|
|
1843
|
-
|
|
1843
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1844
1844
|
async function loadActionMetadata(client, actionType) {
|
|
1845
|
-
const r = await
|
|
1845
|
+
const r = await chunkPUP56SUU_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType, {
|
|
1846
1846
|
branch: client.branch
|
|
1847
1847
|
});
|
|
1848
1848
|
return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
|
|
1849
1849
|
}
|
|
1850
1850
|
|
|
1851
1851
|
// src/ontology/loadFullObjectMetadata.ts
|
|
1852
|
-
|
|
1852
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1853
1853
|
async function loadFullObjectMetadata(client, objectType) {
|
|
1854
|
-
const full = await
|
|
1854
|
+
const full = await chunkPUP56SUU_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
|
|
1855
1855
|
preview: true,
|
|
1856
1856
|
branch: client.branch
|
|
1857
1857
|
});
|
|
@@ -1862,9 +1862,9 @@ async function loadFullObjectMetadata(client, objectType) {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
|
|
1864
1864
|
// src/ontology/loadInterfaceMetadata.ts
|
|
1865
|
-
|
|
1865
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1866
1866
|
async function loadInterfaceMetadata(client, objectType) {
|
|
1867
|
-
const r = await
|
|
1867
|
+
const r = await chunkPUP56SUU_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
|
|
1868
1868
|
preview: true,
|
|
1869
1869
|
branch: client.branch
|
|
1870
1870
|
});
|
|
@@ -1872,10 +1872,10 @@ async function loadInterfaceMetadata(client, objectType) {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
// src/ontology/loadQueryMetadata.ts
|
|
1875
|
-
|
|
1875
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1876
1876
|
async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
|
|
1877
1877
|
const [apiName, version] = queryTypeApiNameAndVersion.split(":");
|
|
1878
|
-
const r = await
|
|
1878
|
+
const r = await chunkPUP56SUU_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
|
|
1879
1879
|
version
|
|
1880
1880
|
});
|
|
1881
1881
|
return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
|
|
@@ -1932,12 +1932,12 @@ var createStandardOntologyProviderFactory = (client) => {
|
|
|
1932
1932
|
};
|
|
1933
1933
|
|
|
1934
1934
|
// src/util/UserAgent.ts
|
|
1935
|
-
|
|
1936
|
-
var USER_AGENT = `osdk-client/${"2.7.0-beta.
|
|
1937
|
-
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.7.0-beta.
|
|
1935
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1936
|
+
var USER_AGENT = `osdk-client/${"2.7.0-beta.7"}`;
|
|
1937
|
+
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.7.0-beta.7"}`;
|
|
1938
1938
|
|
|
1939
1939
|
// src/createMinimalClient.ts
|
|
1940
|
-
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory =
|
|
1940
|
+
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkPUP56SUU_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
|
|
1941
1941
|
if (process.env.NODE_ENV !== "production") {
|
|
1942
1942
|
try {
|
|
1943
1943
|
new URL(baseUrl);
|
|
@@ -1967,7 +1967,7 @@ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fet
|
|
|
1967
1967
|
}
|
|
1968
1968
|
|
|
1969
1969
|
// src/fetchMetadata.ts
|
|
1970
|
-
|
|
1970
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1971
1971
|
var fetchMetadataInternal = async (client, definition) => {
|
|
1972
1972
|
if (definition.type === "object") {
|
|
1973
1973
|
const {
|
|
@@ -1987,10 +1987,10 @@ var fetchMetadataInternal = async (client, definition) => {
|
|
|
1987
1987
|
};
|
|
1988
1988
|
|
|
1989
1989
|
// src/queries/applyQuery.ts
|
|
1990
|
-
|
|
1990
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1991
1991
|
|
|
1992
1992
|
// src/util/toDataValueQueries.ts
|
|
1993
|
-
|
|
1993
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1994
1994
|
async function toDataValueQueries(value, client, desiredType) {
|
|
1995
1995
|
if (value == null) {
|
|
1996
1996
|
return value;
|
|
@@ -2010,13 +2010,13 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
2010
2010
|
switch (desiredType.type) {
|
|
2011
2011
|
case "attachment": {
|
|
2012
2012
|
if (isAttachmentUpload(value)) {
|
|
2013
|
-
const attachment = await
|
|
2013
|
+
const attachment = await chunkPUP56SUU_cjs.Attachment_exports.upload(client, value.data, {
|
|
2014
2014
|
filename: value.name
|
|
2015
2015
|
});
|
|
2016
2016
|
return attachment.rid;
|
|
2017
2017
|
}
|
|
2018
2018
|
if (isAttachmentFile(value)) {
|
|
2019
|
-
const attachment = await
|
|
2019
|
+
const attachment = await chunkPUP56SUU_cjs.Attachment_exports.upload(client, value, {
|
|
2020
2020
|
filename: value.name
|
|
2021
2021
|
});
|
|
2022
2022
|
return attachment.rid;
|
|
@@ -2056,11 +2056,11 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
2056
2056
|
}
|
|
2057
2057
|
case "objectSet":
|
|
2058
2058
|
case "interfaceObjectSet": {
|
|
2059
|
-
if (
|
|
2059
|
+
if (chunkPUP56SUU_cjs.isWireObjectSet(value)) {
|
|
2060
2060
|
return value;
|
|
2061
2061
|
}
|
|
2062
|
-
if (
|
|
2063
|
-
return
|
|
2062
|
+
if (chunkPUP56SUU_cjs.isObjectSet(value)) {
|
|
2063
|
+
return chunkPUP56SUU_cjs.getWireObjectSet(value);
|
|
2064
2064
|
}
|
|
2065
2065
|
break;
|
|
2066
2066
|
}
|
|
@@ -2102,7 +2102,7 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
2102
2102
|
// src/queries/applyQuery.ts
|
|
2103
2103
|
async function applyQuery(client, query, params) {
|
|
2104
2104
|
const qd = client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
|
|
2105
|
-
const response = await
|
|
2105
|
+
const response = await chunkPUP56SUU_cjs.Query_exports.execute(chunkPUP56SUU_cjs.addUserAgentAndRequestContextHeaders(chunkPUP56SUU_cjs.augmentRequestContext(client, (_) => ({
|
|
2106
2106
|
finalMethodCall: "applyQuery"
|
|
2107
2107
|
})), query), await client.ontologyRid, query.apiName, {
|
|
2108
2108
|
parameters: params ? await remapQueryParams(params, client, (await qd).parameters) : {}
|
|
@@ -2146,7 +2146,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
2146
2146
|
return responseValue;
|
|
2147
2147
|
}
|
|
2148
2148
|
case "attachment": {
|
|
2149
|
-
return
|
|
2149
|
+
return chunkPUP56SUU_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
|
|
2150
2150
|
}
|
|
2151
2151
|
case "object": {
|
|
2152
2152
|
const def = definitions.get(responseDataType.object);
|
|
@@ -2168,7 +2168,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
2168
2168
|
throw new Error(`Missing definition for ${responseDataType.objectSet}`);
|
|
2169
2169
|
}
|
|
2170
2170
|
if (typeof responseValue === "string") {
|
|
2171
|
-
return
|
|
2171
|
+
return chunkPUP56SUU_cjs.createObjectSet(def, client, {
|
|
2172
2172
|
type: "intersect",
|
|
2173
2173
|
objectSets: [{
|
|
2174
2174
|
type: "base",
|
|
@@ -2179,7 +2179,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
2179
2179
|
}]
|
|
2180
2180
|
});
|
|
2181
2181
|
}
|
|
2182
|
-
return
|
|
2182
|
+
return chunkPUP56SUU_cjs.createObjectSet(def, client, responseValue);
|
|
2183
2183
|
}
|
|
2184
2184
|
case "struct": {
|
|
2185
2185
|
for (const [key, subtype] of Object.entries(responseDataType.struct)) {
|
|
@@ -2365,7 +2365,7 @@ function createClientInternal(objectSetFactory, transactionRid, baseUrl, ontolog
|
|
|
2365
2365
|
ontologyRid
|
|
2366
2366
|
}, baseUrl, tokenProvider, {
|
|
2367
2367
|
...options,
|
|
2368
|
-
logger: options?.logger ?? new
|
|
2368
|
+
logger: options?.logger ?? new chunkPUP56SUU_cjs.MinimalLogger(),
|
|
2369
2369
|
transactionId: transactionRid,
|
|
2370
2370
|
branch: options?.branch
|
|
2371
2371
|
}, fetchFn, objectSetFactory);
|
|
@@ -2388,7 +2388,7 @@ function createClientFromContext(clientCtx) {
|
|
|
2388
2388
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
|
|
2389
2389
|
return {
|
|
2390
2390
|
fetchOneByRid: async (objectType, rid, options) => {
|
|
2391
|
-
return await
|
|
2391
|
+
return await chunkPUP56SUU_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
|
|
2392
2392
|
}
|
|
2393
2393
|
};
|
|
2394
2394
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
|
|
@@ -2400,7 +2400,7 @@ function createClientFromContext(clientCtx) {
|
|
|
2400
2400
|
objectType,
|
|
2401
2401
|
propertyType
|
|
2402
2402
|
} = args;
|
|
2403
|
-
return await
|
|
2403
|
+
return await chunkPUP56SUU_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
|
|
2404
2404
|
mediaItemPath: fileName,
|
|
2405
2405
|
preview: true
|
|
2406
2406
|
});
|
|
@@ -2409,10 +2409,10 @@ function createClientFromContext(clientCtx) {
|
|
|
2409
2409
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
|
|
2410
2410
|
return {
|
|
2411
2411
|
fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
|
|
2412
|
-
return await
|
|
2412
|
+
return await chunkPUP56SUU_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
|
|
2413
2413
|
},
|
|
2414
2414
|
fetchPageByRidNoType: async (rids, options) => {
|
|
2415
|
-
return await
|
|
2415
|
+
return await chunkPUP56SUU_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
|
|
2416
2416
|
}
|
|
2417
2417
|
};
|
|
2418
2418
|
}
|
|
@@ -2424,13 +2424,13 @@ function createClientFromContext(clientCtx) {
|
|
|
2424
2424
|
const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
|
|
2425
2425
|
const symbolClientContext2 = "__osdkClientContext";
|
|
2426
2426
|
const client = Object.defineProperties(clientFn, {
|
|
2427
|
-
[
|
|
2427
|
+
[chunkPUP56SUU_cjs.symbolClientContext]: {
|
|
2428
2428
|
value: clientCtx
|
|
2429
2429
|
},
|
|
2430
2430
|
[symbolClientContext2]: {
|
|
2431
2431
|
value: clientCtx
|
|
2432
2432
|
},
|
|
2433
|
-
[
|
|
2433
|
+
[chunkPUP56SUU_cjs.additionalContext]: {
|
|
2434
2434
|
value: clientCtx
|
|
2435
2435
|
},
|
|
2436
2436
|
fetchMetadata: {
|
|
@@ -2439,8 +2439,8 @@ function createClientFromContext(clientCtx) {
|
|
|
2439
2439
|
});
|
|
2440
2440
|
return client;
|
|
2441
2441
|
}
|
|
2442
|
-
var createClient = createClientInternal.bind(void 0,
|
|
2443
|
-
var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(
|
|
2442
|
+
var createClient = createClientInternal.bind(void 0, chunkPUP56SUU_cjs.createObjectSet, void 0);
|
|
2443
|
+
var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(chunkPUP56SUU_cjs.createObjectSet, transactionRid, ...args);
|
|
2444
2444
|
function createWithRid(rids) {
|
|
2445
2445
|
const withRid = {
|
|
2446
2446
|
type: "static",
|
|
@@ -2450,6 +2450,7 @@ function createWithRid(rids) {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
|
|
2452
2452
|
exports.ActionValidationError = ActionValidationError;
|
|
2453
|
+
exports.ClientRef = ClientRef;
|
|
2453
2454
|
exports.OBSERVABLE_USER_AGENT = OBSERVABLE_USER_AGENT;
|
|
2454
2455
|
exports.ObjectDefRef = ObjectDefRef;
|
|
2455
2456
|
exports.USER_AGENT = USER_AGENT;
|
|
@@ -2459,6 +2460,7 @@ exports.createClient = createClient;
|
|
|
2459
2460
|
exports.createClientFromContext = createClientFromContext;
|
|
2460
2461
|
exports.createClientWithTransaction = createClientWithTransaction;
|
|
2461
2462
|
exports.createObjectSpecifierFromPrimaryKey = createObjectSpecifierFromPrimaryKey;
|
|
2463
|
+
exports.createOsdkObject = createOsdkObject;
|
|
2462
2464
|
exports.extractPrimaryKeyFromObjectSpecifier = extractPrimaryKeyFromObjectSpecifier;
|
|
2463
|
-
//# sourceMappingURL=chunk-
|
|
2464
|
-
//# sourceMappingURL=chunk-
|
|
2465
|
+
//# sourceMappingURL=chunk-UAJMOJN3.cjs.map
|
|
2466
|
+
//# sourceMappingURL=chunk-UAJMOJN3.cjs.map
|