@osdk/client 0.22.0-beta.5 → 2.0.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 +44 -0
- package/build/browser/{chunk-N6SVQWKM.js → chunk-FGMBMQIJ.js} +112 -102
- package/build/browser/chunk-FGMBMQIJ.js.map +1 -0
- package/build/browser/index.js +2 -2
- package/build/browser/public/unstable-do-not-use.js +24 -11
- package/build/browser/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/Client.d.ts +2 -3
- package/build/esm/Client.d.ts.map +1 -1
- package/build/esm/__unstable/ConjureSupport.d.ts.map +1 -1
- package/build/esm/actions/applyAction.d.ts +3 -1
- package/build/esm/actions/applyAction.d.ts.map +1 -1
- package/build/esm/{chunk-N6SVQWKM.js → chunk-FGMBMQIJ.js} +112 -102
- package/build/esm/chunk-FGMBMQIJ.js.map +1 -0
- package/build/esm/createTimeseriesProperty.d.ts +1 -1
- package/build/esm/createTimeseriesProperty.d.ts.map +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/object/object.test.d.ts.map +1 -1
- package/build/esm/public/unstable-do-not-use.js +24 -11
- package/build/esm/public/unstable-do-not-use.js.map +1 -1
- package/package.json +15 -14
- package/build/browser/chunk-N6SVQWKM.js.map +0 -1
- package/build/esm/chunk-N6SVQWKM.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @osdk/client
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.7
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 39525b8: We now have a hard dependency on pino for type resolution. This has no effect on a project if it doesn't provide a logger to the client.
|
|
8
|
+
- 512ee35: Exposed editedObjectTypes for all action results and split edits based on edit type.
|
|
9
|
+
- fc28eae: Fetching interfaces learns $\_\_EXPERIMENTAL_selectedObjectTypes
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [9b0617d]
|
|
14
|
+
- Updated dependencies [512ee35]
|
|
15
|
+
- Updated dependencies [e86c505]
|
|
16
|
+
- Updated dependencies [fc28eae]
|
|
17
|
+
- Updated dependencies [ee39a61]
|
|
18
|
+
- @osdk/api@2.0.0-beta.7
|
|
19
|
+
- @osdk/client.api@2.0.0-beta.7
|
|
20
|
+
- @osdk/client.unstable@2.0.0-beta.7
|
|
21
|
+
- @osdk/generator-converters@2.0.0-beta.7
|
|
22
|
+
|
|
23
|
+
## 2.0.0-beta.6
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- 76a7adb: Use OntologyMetadataService.bulkLoadOntologyEntities in place of deprecated loadOntologyEntities
|
|
28
|
+
- a2c7b37: Internal refactor for TimeSeriesProperty
|
|
29
|
+
- 0ce2858: Improves casting between Foo.ObjectSet and ObjectSet<Foo>
|
|
30
|
+
- 5d6d5ab: Autofill Content-Length and Content-Type headers in API's that accept Blobs
|
|
31
|
+
- 96ea876: Add namespaces for objects,actions,queries so that you can enumerate them.
|
|
32
|
+
- 5d6d5ab: SLS dependencies are optional
|
|
33
|
+
- a9923f3: Adds exactDistinct to aggregations
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [3affe49]
|
|
38
|
+
- Updated dependencies [76a7adb]
|
|
39
|
+
- Updated dependencies [a2c7b37]
|
|
40
|
+
- Updated dependencies [0ce2858]
|
|
41
|
+
- Updated dependencies [a9923f3]
|
|
42
|
+
- @osdk/api@2.0.0-beta.6
|
|
43
|
+
- @osdk/client.unstable@2.0.0-beta.6
|
|
44
|
+
- @osdk/client.api@2.0.0-beta.6
|
|
45
|
+
- @osdk/generator-converters@2.0.0-beta.6
|
|
46
|
+
|
|
3
47
|
## 0.22.0-beta.5
|
|
4
48
|
|
|
5
49
|
### Minor Changes
|
|
@@ -2,7 +2,7 @@ import { symbolClientContext } from '@osdk/shared.client';
|
|
|
2
2
|
import { PalantirApiError, UnknownError } from '@osdk/shared.net.errors';
|
|
3
3
|
import { createFetchHeaderMutator } from '@osdk/shared.net.fetch';
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
|
-
import { DistanceUnitMapping,
|
|
5
|
+
import { DistanceUnitMapping, TimeSeriesProperty, DurationMapping, TimeseriesDurationMapping } from '@osdk/client.api';
|
|
6
6
|
import { createSharedClientContext } from '@osdk/shared.client.impl';
|
|
7
7
|
import { wireObjectTypeFullMetadataToSdkObjectTypeDefinition, __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from '@osdk/generator-converters';
|
|
8
8
|
|
|
@@ -199,33 +199,6 @@ function abortTransaction($ctx, ...args) {
|
|
|
199
199
|
return foundryPlatformFetch($ctx, _abortTransaction, ...args);
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
// ../internal.foundry.models/build/esm/chunk-6HLC4CVC.js
|
|
203
|
-
var __defProp3 = Object.defineProperty;
|
|
204
|
-
var __export3 = (target, all) => {
|
|
205
|
-
for (var name in all) __defProp3(target, name, {
|
|
206
|
-
get: all[name],
|
|
207
|
-
enumerable: true
|
|
208
|
-
});
|
|
209
|
-
};
|
|
210
|
-
var LanguageModel_exports = {};
|
|
211
|
-
__export3(LanguageModel_exports, {
|
|
212
|
-
createChatCompletion: () => createChatCompletion,
|
|
213
|
-
listLanguageModels: () => listLanguageModels,
|
|
214
|
-
streamChatCompletion: () => streamChatCompletion
|
|
215
|
-
});
|
|
216
|
-
var _createChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions", 1];
|
|
217
|
-
function createChatCompletion($ctx, ...args) {
|
|
218
|
-
return foundryPlatformFetch($ctx, _createChatCompletion, ...args);
|
|
219
|
-
}
|
|
220
|
-
var _streamChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions/stream", 1, , "*/*"];
|
|
221
|
-
function streamChatCompletion($ctx, ...args) {
|
|
222
|
-
return foundryPlatformFetch($ctx, _streamChatCompletion, ...args);
|
|
223
|
-
}
|
|
224
|
-
var _listLanguageModels = [0, "/v1/models/languageModels", 2];
|
|
225
|
-
function listLanguageModels($ctx, ...args) {
|
|
226
|
-
return foundryPlatformFetch($ctx, _listLanguageModels, ...args);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
202
|
// ../internal.foundry.ontologies/build/esm/index.js
|
|
230
203
|
var esm_exports = {};
|
|
231
204
|
__export(esm_exports, {
|
|
@@ -240,17 +213,17 @@ __export(esm_exports, {
|
|
|
240
213
|
});
|
|
241
214
|
|
|
242
215
|
// ../internal.foundry.ontologies/build/esm/chunk-PZ5AY32C.js
|
|
243
|
-
var
|
|
244
|
-
var
|
|
245
|
-
for (var name in all)
|
|
216
|
+
var __defProp3 = Object.defineProperty;
|
|
217
|
+
var __export3 = (target, all) => {
|
|
218
|
+
for (var name in all) __defProp3(target, name, {
|
|
246
219
|
get: all[name],
|
|
247
220
|
enumerable: true
|
|
248
221
|
});
|
|
249
222
|
};
|
|
250
223
|
|
|
251
|
-
// ../internal.foundry.ontologies/build/esm/chunk-
|
|
224
|
+
// ../internal.foundry.ontologies/build/esm/chunk-UM4N5F6D.js
|
|
252
225
|
var QueryType_exports = {};
|
|
253
|
-
|
|
226
|
+
__export3(QueryType_exports, {
|
|
254
227
|
getQueryType: () => getQueryType,
|
|
255
228
|
listQueryTypes: () => listQueryTypes
|
|
256
229
|
});
|
|
@@ -258,14 +231,14 @@ var _listQueryTypes = [0, "/v1/ontologies/{0}/queryTypes", 2];
|
|
|
258
231
|
function listQueryTypes($ctx, ...args) {
|
|
259
232
|
return foundryPlatformFetch($ctx, _listQueryTypes, ...args);
|
|
260
233
|
}
|
|
261
|
-
var _getQueryType = [0, "/v1/ontologies/{0}/queryTypes/{1}"
|
|
234
|
+
var _getQueryType = [0, "/v1/ontologies/{0}/queryTypes/{1}"];
|
|
262
235
|
function getQueryType($ctx, ...args) {
|
|
263
236
|
return foundryPlatformFetch($ctx, _getQueryType, ...args);
|
|
264
237
|
}
|
|
265
238
|
|
|
266
239
|
// ../internal.foundry.ontologies/build/esm/chunk-MONAXU3N.js
|
|
267
240
|
var Action_exports = {};
|
|
268
|
-
|
|
241
|
+
__export3(Action_exports, {
|
|
269
242
|
applyAction: () => applyAction,
|
|
270
243
|
applyActionAsync: () => applyActionAsync,
|
|
271
244
|
applyActionBatch: () => applyActionBatch,
|
|
@@ -295,7 +268,7 @@ function validateAction($ctx, ...args) {
|
|
|
295
268
|
|
|
296
269
|
// ../internal.foundry.ontologies/build/esm/chunk-5RUWELWF.js
|
|
297
270
|
var ActionType_exports = {};
|
|
298
|
-
|
|
271
|
+
__export3(ActionType_exports, {
|
|
299
272
|
getActionType: () => getActionType,
|
|
300
273
|
listActionTypes: () => listActionTypes
|
|
301
274
|
});
|
|
@@ -308,16 +281,21 @@ function getActionType($ctx, ...args) {
|
|
|
308
281
|
return foundryPlatformFetch($ctx, _getActionType, ...args);
|
|
309
282
|
}
|
|
310
283
|
|
|
311
|
-
// ../internal.foundry.ontologies/build/esm/chunk-
|
|
284
|
+
// ../internal.foundry.ontologies/build/esm/chunk-YCOLCQXU.js
|
|
312
285
|
var Attachment_exports = {};
|
|
313
|
-
|
|
286
|
+
__export3(Attachment_exports, {
|
|
314
287
|
getAttachment: () => getAttachment,
|
|
315
288
|
getAttachmentContent: () => getAttachmentContent,
|
|
316
289
|
uploadAttachment: () => uploadAttachment
|
|
317
290
|
});
|
|
318
291
|
var _uploadAttachment = [1, "/v1/attachments/upload", 7, "*/*"];
|
|
319
292
|
function uploadAttachment($ctx, ...args) {
|
|
320
|
-
|
|
293
|
+
const headerParams = {
|
|
294
|
+
...args[2],
|
|
295
|
+
"Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
|
|
296
|
+
"Content-Length": args[0].size.toString()
|
|
297
|
+
};
|
|
298
|
+
return foundryPlatformFetch($ctx, _uploadAttachment, args[0], args[1], headerParams);
|
|
321
299
|
}
|
|
322
300
|
var _getAttachmentContent = [0, "/v1/attachments/{0}/content", , , "*/*"];
|
|
323
301
|
function getAttachmentContent($ctx, ...args) {
|
|
@@ -330,7 +308,7 @@ function getAttachment($ctx, ...args) {
|
|
|
330
308
|
|
|
331
309
|
// ../internal.foundry.ontologies/build/esm/chunk-ATSSLGFA.js
|
|
332
310
|
var ObjectType_exports = {};
|
|
333
|
-
|
|
311
|
+
__export3(ObjectType_exports, {
|
|
334
312
|
getObjectType: () => getObjectType,
|
|
335
313
|
getOutgoingLinkType: () => getOutgoingLinkType,
|
|
336
314
|
listObjectTypes: () => listObjectTypes,
|
|
@@ -355,7 +333,7 @@ function getOutgoingLinkType($ctx, ...args) {
|
|
|
355
333
|
|
|
356
334
|
// ../internal.foundry.ontologies/build/esm/chunk-ABHCL2BI.js
|
|
357
335
|
var Ontology_exports = {};
|
|
358
|
-
|
|
336
|
+
__export3(Ontology_exports, {
|
|
359
337
|
getOntology: () => getOntology,
|
|
360
338
|
listOntologies: () => listOntologies
|
|
361
339
|
});
|
|
@@ -370,7 +348,7 @@ function getOntology($ctx, ...args) {
|
|
|
370
348
|
|
|
371
349
|
// ../internal.foundry.ontologies/build/esm/chunk-VBZZKGHE.js
|
|
372
350
|
var OntologyObject_exports = {};
|
|
373
|
-
|
|
351
|
+
__export3(OntologyObject_exports, {
|
|
374
352
|
aggregateObjects: () => aggregateObjects,
|
|
375
353
|
getLinkedObject: () => getLinkedObject,
|
|
376
354
|
getObject: () => getObject,
|
|
@@ -403,12 +381,12 @@ function aggregateObjects($ctx, ...args) {
|
|
|
403
381
|
return foundryPlatformFetch($ctx, _aggregateObjects, ...args);
|
|
404
382
|
}
|
|
405
383
|
|
|
406
|
-
// ../internal.foundry.ontologies/build/esm/chunk-
|
|
384
|
+
// ../internal.foundry.ontologies/build/esm/chunk-SALCOSHR.js
|
|
407
385
|
var Query_exports = {};
|
|
408
|
-
|
|
386
|
+
__export3(Query_exports, {
|
|
409
387
|
executeQuery: () => executeQuery
|
|
410
388
|
});
|
|
411
|
-
var _executeQuery = [1, "/v1/ontologies/{0}/queries/{1}/execute",
|
|
389
|
+
var _executeQuery = [1, "/v1/ontologies/{0}/queries/{1}/execute", 1];
|
|
412
390
|
function executeQuery($ctx, ...args) {
|
|
413
391
|
return foundryPlatformFetch($ctx, _executeQuery, ...args);
|
|
414
392
|
}
|
|
@@ -432,9 +410,9 @@ __export(esm_exports2, {
|
|
|
432
410
|
});
|
|
433
411
|
|
|
434
412
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-PZ5AY32C.js
|
|
435
|
-
var
|
|
436
|
-
var
|
|
437
|
-
for (var name in all)
|
|
413
|
+
var __defProp4 = Object.defineProperty;
|
|
414
|
+
var __export4 = (target, all) => {
|
|
415
|
+
for (var name in all) __defProp4(target, name, {
|
|
438
416
|
get: all[name],
|
|
439
417
|
enumerable: true
|
|
440
418
|
});
|
|
@@ -442,7 +420,7 @@ var __export5 = (target, all) => {
|
|
|
442
420
|
|
|
443
421
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-CTA4DXZF.js
|
|
444
422
|
var OntologyObjectSet_exports = {};
|
|
445
|
-
|
|
423
|
+
__export4(OntologyObjectSet_exports, {
|
|
446
424
|
aggregateObjectSetV2: () => aggregateObjectSetV2,
|
|
447
425
|
createTemporaryObjectSetV2: () => createTemporaryObjectSetV2,
|
|
448
426
|
getObjectSetV2: () => getObjectSetV2,
|
|
@@ -465,12 +443,11 @@ function aggregateObjectSetV2($ctx, ...args) {
|
|
|
465
443
|
return foundryPlatformFetch($ctx, _aggregateObjectSetV2, ...args);
|
|
466
444
|
}
|
|
467
445
|
|
|
468
|
-
// ../internal.foundry.ontologiesv2/build/esm/chunk-
|
|
446
|
+
// ../internal.foundry.ontologiesv2/build/esm/chunk-U76D6BOW.js
|
|
469
447
|
var OntologyObjectV2_exports = {};
|
|
470
|
-
|
|
448
|
+
__export4(OntologyObjectV2_exports, {
|
|
471
449
|
aggregateObjectsV2: () => aggregateObjectsV2,
|
|
472
450
|
countObjects: () => countObjects,
|
|
473
|
-
getObjectTypeFullMetadata: () => getObjectTypeFullMetadata,
|
|
474
451
|
getObjectV2: () => getObjectV2,
|
|
475
452
|
listObjectsV2: () => listObjectsV2,
|
|
476
453
|
searchObjectsV2: () => searchObjectsV2
|
|
@@ -495,14 +472,10 @@ var _aggregateObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/aggregate", 3];
|
|
|
495
472
|
function aggregateObjectsV2($ctx, ...args) {
|
|
496
473
|
return foundryPlatformFetch($ctx, _aggregateObjectsV2, ...args);
|
|
497
474
|
}
|
|
498
|
-
var _getObjectTypeFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
|
|
499
|
-
function getObjectTypeFullMetadata($ctx, ...args) {
|
|
500
|
-
return foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);
|
|
501
|
-
}
|
|
502
475
|
|
|
503
476
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-35VM6XLH.js
|
|
504
477
|
var OntologyV2_exports = {};
|
|
505
|
-
|
|
478
|
+
__export4(OntologyV2_exports, {
|
|
506
479
|
getOntologyFullMetadata: () => getOntologyFullMetadata,
|
|
507
480
|
getOntologyV2: () => getOntologyV2,
|
|
508
481
|
listOntologiesV2: () => listOntologiesV2
|
|
@@ -522,7 +495,7 @@ function getOntologyFullMetadata($ctx, ...args) {
|
|
|
522
495
|
|
|
523
496
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-UFJTKRQC.js
|
|
524
497
|
var Query_exports2 = {};
|
|
525
|
-
|
|
498
|
+
__export4(Query_exports2, {
|
|
526
499
|
executeQueryV2: () => executeQueryV2
|
|
527
500
|
});
|
|
528
501
|
var _executeQueryV2 = [1, "/v2/ontologies/{0}/queries/{1}/execute", 3];
|
|
@@ -532,7 +505,7 @@ function executeQueryV2($ctx, ...args) {
|
|
|
532
505
|
|
|
533
506
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-GWYI4RKT.js
|
|
534
507
|
var QueryType_exports2 = {};
|
|
535
|
-
|
|
508
|
+
__export4(QueryType_exports2, {
|
|
536
509
|
getQueryTypeV2: () => getQueryTypeV2,
|
|
537
510
|
listQueryTypesV2: () => listQueryTypesV2
|
|
538
511
|
});
|
|
@@ -547,7 +520,7 @@ function getQueryTypeV2($ctx, ...args) {
|
|
|
547
520
|
|
|
548
521
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-KQNF55S5.js
|
|
549
522
|
var TimeSeriesPropertyV2_exports = {};
|
|
550
|
-
|
|
523
|
+
__export4(TimeSeriesPropertyV2_exports, {
|
|
551
524
|
getFirstPoint: () => getFirstPoint,
|
|
552
525
|
getLastPoint: () => getLastPoint,
|
|
553
526
|
streamPoints: () => streamPoints
|
|
@@ -567,7 +540,7 @@ function streamPoints($ctx, ...args) {
|
|
|
567
540
|
|
|
568
541
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-ZKWJVNUQ.js
|
|
569
542
|
var Action_exports2 = {};
|
|
570
|
-
|
|
543
|
+
__export4(Action_exports2, {
|
|
571
544
|
applyActionAsyncV2: () => applyActionAsyncV2,
|
|
572
545
|
applyActionBatchV2: () => applyActionBatchV2,
|
|
573
546
|
applyActionV2: () => applyActionV2
|
|
@@ -587,7 +560,7 @@ function applyActionAsyncV2($ctx, ...args) {
|
|
|
587
560
|
|
|
588
561
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-VCCTOHYG.js
|
|
589
562
|
var ActionTypeV2_exports = {};
|
|
590
|
-
|
|
563
|
+
__export4(ActionTypeV2_exports, {
|
|
591
564
|
getActionTypeV2: () => getActionTypeV2,
|
|
592
565
|
listActionTypesV2: () => listActionTypesV2
|
|
593
566
|
});
|
|
@@ -600,16 +573,21 @@ function getActionTypeV2($ctx, ...args) {
|
|
|
600
573
|
return foundryPlatformFetch($ctx, _getActionTypeV2, ...args);
|
|
601
574
|
}
|
|
602
575
|
|
|
603
|
-
// ../internal.foundry.ontologiesv2/build/esm/chunk-
|
|
576
|
+
// ../internal.foundry.ontologiesv2/build/esm/chunk-EFVOGNPX.js
|
|
604
577
|
var Attachment_exports2 = {};
|
|
605
|
-
|
|
578
|
+
__export4(Attachment_exports2, {
|
|
606
579
|
getAttachmentContentV2: () => getAttachmentContentV2,
|
|
607
580
|
getAttachmentV2: () => getAttachmentV2,
|
|
608
581
|
uploadAttachmentV2: () => uploadAttachmentV2
|
|
609
582
|
});
|
|
610
583
|
var _uploadAttachmentV2 = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
|
|
611
584
|
function uploadAttachmentV2($ctx, ...args) {
|
|
612
|
-
|
|
585
|
+
const headerParams = {
|
|
586
|
+
...args[2],
|
|
587
|
+
"Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
|
|
588
|
+
"Content-Length": args[0].size.toString()
|
|
589
|
+
};
|
|
590
|
+
return foundryPlatformFetch($ctx, _uploadAttachmentV2, args[0], args[1], headerParams);
|
|
613
591
|
}
|
|
614
592
|
var _getAttachmentContentV2 = [0, "/v2/ontologies/attachments/{0}/content", , , "*/*"];
|
|
615
593
|
function getAttachmentContentV2($ctx, ...args) {
|
|
@@ -622,7 +600,7 @@ function getAttachmentV2($ctx, ...args) {
|
|
|
622
600
|
|
|
623
601
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-3H3SHEFA.js
|
|
624
602
|
var AttachmentPropertyV2_exports = {};
|
|
625
|
-
|
|
603
|
+
__export4(AttachmentPropertyV2_exports, {
|
|
626
604
|
getAttachmentPropertyByRidV2: () => getAttachmentPropertyByRidV2,
|
|
627
605
|
getAttachmentPropertyContentByRidV2: () => getAttachmentPropertyContentByRidV2,
|
|
628
606
|
getAttachmentPropertyContentV2: () => getAttachmentPropertyContentV2,
|
|
@@ -647,7 +625,7 @@ function getAttachmentPropertyContentByRidV2($ctx, ...args) {
|
|
|
647
625
|
|
|
648
626
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-4TOWICL3.js
|
|
649
627
|
var LinkedObjectV2_exports = {};
|
|
650
|
-
|
|
628
|
+
__export4(LinkedObjectV2_exports, {
|
|
651
629
|
getLinkedObjectV2: () => getLinkedObjectV2,
|
|
652
630
|
listLinkedObjectsV2: () => listLinkedObjectsV2
|
|
653
631
|
});
|
|
@@ -660,9 +638,10 @@ function getLinkedObjectV2($ctx, ...args) {
|
|
|
660
638
|
return foundryPlatformFetch($ctx, _getLinkedObjectV2, ...args);
|
|
661
639
|
}
|
|
662
640
|
|
|
663
|
-
// ../internal.foundry.ontologiesv2/build/esm/chunk-
|
|
641
|
+
// ../internal.foundry.ontologiesv2/build/esm/chunk-ZNHKEV4X.js
|
|
664
642
|
var ObjectTypeV2_exports = {};
|
|
665
|
-
|
|
643
|
+
__export4(ObjectTypeV2_exports, {
|
|
644
|
+
getObjectTypeFullMetadata: () => getObjectTypeFullMetadata,
|
|
666
645
|
getObjectTypeV2: () => getObjectTypeV2,
|
|
667
646
|
getOutgoingLinkTypeV2: () => getOutgoingLinkTypeV2,
|
|
668
647
|
listObjectTypesV2: () => listObjectTypesV2,
|
|
@@ -676,6 +655,10 @@ var _getObjectTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}"];
|
|
|
676
655
|
function getObjectTypeV2($ctx, ...args) {
|
|
677
656
|
return foundryPlatformFetch($ctx, _getObjectTypeV2, ...args);
|
|
678
657
|
}
|
|
658
|
+
var _getObjectTypeFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
|
|
659
|
+
function getObjectTypeFullMetadata($ctx, ...args) {
|
|
660
|
+
return foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);
|
|
661
|
+
}
|
|
679
662
|
var _listOutgoingLinkTypesV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
|
|
680
663
|
function listOutgoingLinkTypesV2($ctx, ...args) {
|
|
681
664
|
return foundryPlatformFetch($ctx, _listOutgoingLinkTypesV2, ...args);
|
|
@@ -687,7 +670,7 @@ function getOutgoingLinkTypeV2($ctx, ...args) {
|
|
|
687
670
|
|
|
688
671
|
// ../internal.foundry.ontologiesv2/build/esm/chunk-OBKC7XBM.js
|
|
689
672
|
var OntologyInterface_exports = {};
|
|
690
|
-
|
|
673
|
+
__export4(OntologyInterface_exports, {
|
|
691
674
|
aggregateObjectsForInterface: () => aggregateObjectsForInterface,
|
|
692
675
|
getInterfaceType: () => getInterfaceType,
|
|
693
676
|
listInterfaceTypes: () => listInterfaceTypes,
|
|
@@ -820,20 +803,19 @@ async function* iterateReadableStream(readableStream) {
|
|
|
820
803
|
|
|
821
804
|
// src/createTimeseriesProperty.ts
|
|
822
805
|
function createTimeseriesProperty(client, objectApiName, primaryKey, propertyName) {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
return iterateTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, query);
|
|
835
|
-
}
|
|
806
|
+
const getFirstPoint2 = async () => {
|
|
807
|
+
return esm_exports2.TimeSeriesPropertiesV2.getFirstPoint(client, await client.ontologyRid, objectApiName, primaryKey, propertyName);
|
|
808
|
+
};
|
|
809
|
+
const getLastPoint2 = async () => {
|
|
810
|
+
return esm_exports2.TimeSeriesPropertiesV2.getLastPoint(client, await client.ontologyRid, objectApiName, primaryKey, propertyName);
|
|
811
|
+
};
|
|
812
|
+
const getAllPoints = async (query) => {
|
|
813
|
+
return getAllTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, query);
|
|
814
|
+
};
|
|
815
|
+
const asyncIterPoints = (query) => {
|
|
816
|
+
return iterateTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, query);
|
|
836
817
|
};
|
|
818
|
+
return new TimeSeriesProperty(getFirstPoint2, getLastPoint2, getAllPoints, asyncIterPoints);
|
|
837
819
|
}
|
|
838
820
|
async function getAllTimeSeriesPoints(client, objectApiName, primaryKey, propertyName, body) {
|
|
839
821
|
const allPoints = [];
|
|
@@ -940,7 +922,7 @@ function createAsyncClientCache(fn, createCacheLocal = createClientCache) {
|
|
|
940
922
|
}
|
|
941
923
|
|
|
942
924
|
// src/ontology/OntologyProvider.ts
|
|
943
|
-
var InterfaceDefinitions = Symbol(
|
|
925
|
+
var InterfaceDefinitions = Symbol("InterfaceDefinitions" );
|
|
944
926
|
|
|
945
927
|
// src/object/SimpleCache.ts
|
|
946
928
|
function createSimpleCache(map = /* @__PURE__ */ new Map(), fn) {
|
|
@@ -991,11 +973,11 @@ function createSimpleAsyncCache(type, fn, createCacheLocal = createSimpleCache)
|
|
|
991
973
|
}
|
|
992
974
|
|
|
993
975
|
// src/object/convertWireToOsdkObjects/InternalSymbols.ts
|
|
994
|
-
var UnderlyingOsdkObject = Symbol(
|
|
995
|
-
var ObjectDefRef = Symbol(
|
|
996
|
-
var InterfaceDefRef = Symbol(
|
|
997
|
-
var RawObject = Symbol(
|
|
998
|
-
var ClientRef = Symbol(
|
|
976
|
+
var UnderlyingOsdkObject = Symbol("Underlying Object" );
|
|
977
|
+
var ObjectDefRef = Symbol("ObjectDefinition" );
|
|
978
|
+
var InterfaceDefRef = Symbol("InterfaceDefinition" );
|
|
979
|
+
var RawObject = Symbol("RawObject" );
|
|
980
|
+
var ClientRef = Symbol("ClientRef" );
|
|
999
981
|
|
|
1000
982
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
1001
983
|
var handlerCache = createSimpleCache(/* @__PURE__ */ new WeakMap(), createInterfaceProxyHandler);
|
|
@@ -1751,7 +1733,7 @@ async function fetchInterfacePage(client, interfaceType, args, objectSet) {
|
|
|
1751
1733
|
augmentedProperties: args.$augment ?? {},
|
|
1752
1734
|
augmentedSharedPropertyTypes: {},
|
|
1753
1735
|
otherInterfaceTypes: [],
|
|
1754
|
-
selectedObjectTypes: [],
|
|
1736
|
+
selectedObjectTypes: args.$__EXPERIMENTAL_selectedObjectTypes ?? [],
|
|
1755
1737
|
selectedSharedPropertyTypes: args.$select ?? [],
|
|
1756
1738
|
where: objectSetToSearchJsonV2(objectSet, interfaceType.apiName)
|
|
1757
1739
|
}), {
|
|
@@ -1849,9 +1831,6 @@ async function toDataValue(value, client) {
|
|
|
1849
1831
|
if (isAttachmentUpload(value)) {
|
|
1850
1832
|
const attachment = await esm_exports.Attachments.uploadAttachment(client, value, {
|
|
1851
1833
|
filename: value.name
|
|
1852
|
-
}, {
|
|
1853
|
-
"Content-Length": value.size.toString(),
|
|
1854
|
-
"Content-Type": value.type
|
|
1855
1834
|
});
|
|
1856
1835
|
return await toDataValue(attachment.rid, client);
|
|
1857
1836
|
}
|
|
@@ -1889,7 +1868,8 @@ async function applyAction2(client, action, parameters, options = {}) {
|
|
|
1889
1868
|
returnEdits: options?.$returnEdits ? "ALL" : "NONE"
|
|
1890
1869
|
}
|
|
1891
1870
|
});
|
|
1892
|
-
|
|
1871
|
+
const edits = response.edits;
|
|
1872
|
+
return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
|
|
1893
1873
|
} else {
|
|
1894
1874
|
const response = await esm_exports2.Actions.applyActionV2(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
1895
1875
|
parameters: await remapActionParams(parameters, client),
|
|
@@ -1904,7 +1884,8 @@ async function applyAction2(client, action, parameters, options = {}) {
|
|
|
1904
1884
|
if (response.validation?.result === "INVALID") {
|
|
1905
1885
|
throw new ActionValidationError(response.validation);
|
|
1906
1886
|
}
|
|
1907
|
-
|
|
1887
|
+
const edits = response.edits;
|
|
1888
|
+
return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
|
|
1908
1889
|
}
|
|
1909
1890
|
}
|
|
1910
1891
|
async function remapActionParams(params, client) {
|
|
@@ -1925,8 +1906,40 @@ async function remapBatchActionParams(params, client) {
|
|
|
1925
1906
|
}));
|
|
1926
1907
|
return remappedParams;
|
|
1927
1908
|
}
|
|
1909
|
+
function remapActionResponse(response) {
|
|
1910
|
+
const editResponses = response?.edits;
|
|
1911
|
+
if (editResponses?.type === "edits") {
|
|
1912
|
+
const remappedActionResponse = {
|
|
1913
|
+
type: editResponses.type,
|
|
1914
|
+
deletedLinksCount: editResponses.deletedLinksCount,
|
|
1915
|
+
deletedObjectsCount: editResponses.deletedObjectsCount,
|
|
1916
|
+
addedLinks: [],
|
|
1917
|
+
addedObjects: [],
|
|
1918
|
+
modifiedObjects: [],
|
|
1919
|
+
editedObjectTypes: []
|
|
1920
|
+
};
|
|
1921
|
+
const editedObjectTypesSet = /* @__PURE__ */ new Set();
|
|
1922
|
+
for (const edit of editResponses.edits) {
|
|
1923
|
+
if (edit.type === "addLink") {
|
|
1924
|
+
remappedActionResponse.addedLinks.push(edit);
|
|
1925
|
+
editedObjectTypesSet.add(edit.aSideObject.objectType);
|
|
1926
|
+
editedObjectTypesSet.add(edit.bSideObject.objectType);
|
|
1927
|
+
} else if (edit.type === "addObject") {
|
|
1928
|
+
remappedActionResponse.addedObjects.push(edit);
|
|
1929
|
+
editedObjectTypesSet.add(edit.objectType);
|
|
1930
|
+
} else if (edit.type === "modifyObject") {
|
|
1931
|
+
remappedActionResponse.modifiedObjects.push(edit);
|
|
1932
|
+
editedObjectTypesSet.add(edit.objectType);
|
|
1933
|
+
} else {
|
|
1934
|
+
process.env.NODE_ENV !== "production" ? invariant(false, "Unknown edit type") : invariant(false) ;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
remappedActionResponse.editedObjectTypes = [...editedObjectTypesSet];
|
|
1938
|
+
return remappedActionResponse;
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1928
1941
|
async function loadFullObjectMetadata(client, objectType) {
|
|
1929
|
-
const full = await esm_exports2.
|
|
1942
|
+
const full = await esm_exports2.ObjectTypesV2.getObjectTypeFullMetadata(client, await client.ontologyRid, objectType, {
|
|
1930
1943
|
preview: true
|
|
1931
1944
|
});
|
|
1932
1945
|
const ret = wireObjectTypeFullMetadataToSdkObjectTypeDefinition(full, true);
|
|
@@ -1978,7 +1991,7 @@ var createStandardOntologyProviderFactory = (client) => {
|
|
|
1978
1991
|
};
|
|
1979
1992
|
|
|
1980
1993
|
// src/util/UserAgent.ts
|
|
1981
|
-
var USER_AGENT = `osdk-client/${"0.
|
|
1994
|
+
var USER_AGENT = `osdk-client/${"2.0.0-beta.7"}`;
|
|
1982
1995
|
|
|
1983
1996
|
// src/createMinimalClient.ts
|
|
1984
1997
|
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = createObjectSet) {
|
|
@@ -2022,9 +2035,6 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
2022
2035
|
if (isAttachmentUpload(value)) {
|
|
2023
2036
|
const attachment = await esm_exports.Attachments.uploadAttachment(client, value, {
|
|
2024
2037
|
filename: value.name
|
|
2025
|
-
}, {
|
|
2026
|
-
"Content-Length": value.size.toString(),
|
|
2027
|
-
"Content-Type": value.type
|
|
2028
2038
|
});
|
|
2029
2039
|
return attachment.rid;
|
|
2030
2040
|
}
|
|
@@ -2309,5 +2319,5 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
|
|
|
2309
2319
|
var createClient = createClientInternal.bind(void 0, createObjectSet);
|
|
2310
2320
|
|
|
2311
2321
|
export { ActionValidationError, USER_AGENT, augment, convertWireToOsdkObjects, createAttachmentFromRid, createAttachmentUpload, createClient, createClientInternal, createObjectSet, createSimpleAsyncCache, esm_exports2 as esm_exports };
|
|
2312
|
-
//# sourceMappingURL=chunk-
|
|
2313
|
-
//# sourceMappingURL=chunk-
|
|
2322
|
+
//# sourceMappingURL=chunk-FGMBMQIJ.js.map
|
|
2323
|
+
//# sourceMappingURL=chunk-FGMBMQIJ.js.map
|