@osdk/faux 0.6.0-beta.1 → 0.6.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/build/browser/FauxFoundry/FauxDataStore.test.js +10 -5
- package/build/browser/FauxFoundry/FauxDataStore.test.js.map +1 -1
- package/build/browser/FauxFoundry/filterObjects.js +1 -0
- package/build/browser/FauxFoundry/filterObjects.js.map +1 -1
- package/build/browser/FauxFoundry/validateAction.test.js +2 -1
- package/build/browser/FauxFoundry/validateAction.test.js.map +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +53 -22
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +1 -1
- package/build/esm/FauxFoundry/FauxDataStore.test.js +10 -5
- package/build/esm/FauxFoundry/FauxDataStore.test.js.map +1 -1
- package/build/esm/FauxFoundry/filterObjects.js +1 -0
- package/build/esm/FauxFoundry/filterObjects.js.map +1 -1
- package/build/esm/FauxFoundry/validateAction.test.js +2 -1
- package/build/esm/FauxFoundry/validateAction.test.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/cjs/index.cjs
CHANGED
|
@@ -993,6 +993,7 @@ function filterObjects(objects, where) {
|
|
|
993
993
|
case "withinBoundingBox":
|
|
994
994
|
case "withinPolygon":
|
|
995
995
|
case "withinDistanceOf":
|
|
996
|
+
case "geoShapeV2":
|
|
996
997
|
throw new Error(`Unhandled where type: ${where.type} in ${JSON.stringify(where)}`);
|
|
997
998
|
}
|
|
998
999
|
console.error(`-=-=-=-=-=-= Unhandled where type:
|
|
@@ -2089,7 +2090,7 @@ __export(Actions_exports, {
|
|
|
2089
2090
|
applyBatch: () => applyBatch2
|
|
2090
2091
|
});
|
|
2091
2092
|
|
|
2092
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2093
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
2093
2094
|
var Action_exports = {};
|
|
2094
2095
|
__export(Action_exports, {
|
|
2095
2096
|
apply: () => apply,
|
|
@@ -2191,7 +2192,7 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
2191
2192
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
2192
2193
|
}
|
|
2193
2194
|
|
|
2194
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2195
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
2195
2196
|
var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
|
|
2196
2197
|
function apply($ctx, ...args) {
|
|
2197
2198
|
return foundryPlatformFetch($ctx, _apply, ...args);
|
|
@@ -2209,11 +2210,12 @@ function applyWithOverrides($ctx, ...args) {
|
|
|
2209
2210
|
return foundryPlatformFetch($ctx, _applyWithOverrides, ...args);
|
|
2210
2211
|
}
|
|
2211
2212
|
|
|
2212
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2213
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
2213
2214
|
var ActionTypeV2_exports = {};
|
|
2214
2215
|
__export(ActionTypeV2_exports, {
|
|
2215
2216
|
get: () => get,
|
|
2216
2217
|
getByRid: () => getByRid,
|
|
2218
|
+
getByRidBatch: () => getByRidBatch,
|
|
2217
2219
|
list: () => list
|
|
2218
2220
|
});
|
|
2219
2221
|
var _list = [0, "/v2/ontologies/{0}/actionTypes", 2];
|
|
@@ -2228,8 +2230,12 @@ var _getByRid = [0, "/v2/ontologies/{0}/actionTypes/byRid/{1}", 2];
|
|
|
2228
2230
|
function getByRid($ctx, ...args) {
|
|
2229
2231
|
return foundryPlatformFetch($ctx, _getByRid, ...args);
|
|
2230
2232
|
}
|
|
2233
|
+
var _getByRidBatch = [1, "/v2/ontologies/{0}/actionTypes/getByRidBatch", 3];
|
|
2234
|
+
function getByRidBatch($ctx, ...args) {
|
|
2235
|
+
return foundryPlatformFetch($ctx, _getByRidBatch, ...args);
|
|
2236
|
+
}
|
|
2231
2237
|
|
|
2232
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2238
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
2233
2239
|
var Attachment_exports = {};
|
|
2234
2240
|
__export(Attachment_exports, {
|
|
2235
2241
|
get: () => get2,
|
|
@@ -2264,7 +2270,7 @@ function get2($ctx, ...args) {
|
|
|
2264
2270
|
return foundryPlatformFetch($ctx, _get2, ...args);
|
|
2265
2271
|
}
|
|
2266
2272
|
|
|
2267
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2273
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
2268
2274
|
var AttachmentPropertyV2_exports = {};
|
|
2269
2275
|
__export(AttachmentPropertyV2_exports, {
|
|
2270
2276
|
getAttachment: () => getAttachment,
|
|
@@ -2289,7 +2295,7 @@ function readAttachmentByRid($ctx, ...args) {
|
|
|
2289
2295
|
return foundryPlatformFetch($ctx, _readAttachmentByRid, ...args);
|
|
2290
2296
|
}
|
|
2291
2297
|
|
|
2292
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2298
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
2293
2299
|
var LinkedObjectV2_exports = {};
|
|
2294
2300
|
__export(LinkedObjectV2_exports, {
|
|
2295
2301
|
getLinkedObject: () => getLinkedObject,
|
|
@@ -2304,7 +2310,7 @@ function getLinkedObject($ctx, ...args) {
|
|
|
2304
2310
|
return foundryPlatformFetch($ctx, _getLinkedObject, ...args);
|
|
2305
2311
|
}
|
|
2306
2312
|
|
|
2307
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2313
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
2308
2314
|
var MediaReferenceProperty_exports = {};
|
|
2309
2315
|
__export(MediaReferenceProperty_exports, {
|
|
2310
2316
|
getMediaContent: () => getMediaContent,
|
|
@@ -2324,10 +2330,11 @@ function upload2($ctx, ...args) {
|
|
|
2324
2330
|
return foundryPlatformFetch($ctx, _upload2, ...args);
|
|
2325
2331
|
}
|
|
2326
2332
|
|
|
2327
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2333
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
2328
2334
|
var ObjectTypeV2_exports = {};
|
|
2329
2335
|
__export(ObjectTypeV2_exports, {
|
|
2330
2336
|
get: () => get3,
|
|
2337
|
+
getEditsHistory: () => getEditsHistory,
|
|
2331
2338
|
getFullMetadata: () => getFullMetadata,
|
|
2332
2339
|
getOutgoingLinkType: () => getOutgoingLinkType,
|
|
2333
2340
|
list: () => list2,
|
|
@@ -2345,6 +2352,10 @@ var _getFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2]
|
|
|
2345
2352
|
function getFullMetadata($ctx, ...args) {
|
|
2346
2353
|
return foundryPlatformFetch($ctx, _getFullMetadata, ...args);
|
|
2347
2354
|
}
|
|
2355
|
+
var _getEditsHistory = [1, "/v2/ontologies/{0}/objectTypes/{1}/editsHistory", 3];
|
|
2356
|
+
function getEditsHistory($ctx, ...args) {
|
|
2357
|
+
return foundryPlatformFetch($ctx, _getEditsHistory, ...args);
|
|
2358
|
+
}
|
|
2348
2359
|
var _listOutgoingLinkTypes = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
|
|
2349
2360
|
function listOutgoingLinkTypes($ctx, ...args) {
|
|
2350
2361
|
return foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);
|
|
@@ -2354,7 +2365,7 @@ function getOutgoingLinkType($ctx, ...args) {
|
|
|
2354
2365
|
return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
|
|
2355
2366
|
}
|
|
2356
2367
|
|
|
2357
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2368
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
2358
2369
|
var OntologyInterface_exports = {};
|
|
2359
2370
|
__export(OntologyInterface_exports, {
|
|
2360
2371
|
aggregate: () => aggregate,
|
|
@@ -2399,7 +2410,7 @@ function listInterfaceLinkedObjects($ctx, ...args) {
|
|
|
2399
2410
|
return foundryPlatformFetch($ctx, _listInterfaceLinkedObjects, ...args);
|
|
2400
2411
|
}
|
|
2401
2412
|
|
|
2402
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2413
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
2403
2414
|
var OntologyObjectSet_exports = {};
|
|
2404
2415
|
__export(OntologyObjectSet_exports, {
|
|
2405
2416
|
aggregate: () => aggregate2,
|
|
@@ -2439,7 +2450,7 @@ function loadLinks($ctx, ...args) {
|
|
|
2439
2450
|
return foundryPlatformFetch($ctx, _loadLinks, ...args);
|
|
2440
2451
|
}
|
|
2441
2452
|
|
|
2442
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2453
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
2443
2454
|
var OntologyObjectV2_exports = {};
|
|
2444
2455
|
__export(OntologyObjectV2_exports, {
|
|
2445
2456
|
aggregate: () => aggregate3,
|
|
@@ -2469,7 +2480,7 @@ function aggregate3($ctx, ...args) {
|
|
|
2469
2480
|
return foundryPlatformFetch($ctx, _aggregate3, ...args);
|
|
2470
2481
|
}
|
|
2471
2482
|
|
|
2472
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2483
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
|
|
2473
2484
|
var OntologyTransaction_exports = {};
|
|
2474
2485
|
__export(OntologyTransaction_exports, {
|
|
2475
2486
|
postEdits: () => postEdits
|
|
@@ -2479,7 +2490,7 @@ function postEdits($ctx, ...args) {
|
|
|
2479
2490
|
return foundryPlatformFetch($ctx, _postEdits, ...args);
|
|
2480
2491
|
}
|
|
2481
2492
|
|
|
2482
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2493
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
2483
2494
|
var OntologyV2_exports = {};
|
|
2484
2495
|
__export(OntologyV2_exports, {
|
|
2485
2496
|
get: () => get7,
|
|
@@ -2504,7 +2515,7 @@ function loadMetadata($ctx, ...args) {
|
|
|
2504
2515
|
return foundryPlatformFetch($ctx, _loadMetadata, ...args);
|
|
2505
2516
|
}
|
|
2506
2517
|
|
|
2507
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2518
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
2508
2519
|
var Query_exports = {};
|
|
2509
2520
|
__export(Query_exports, {
|
|
2510
2521
|
execute: () => execute
|
|
@@ -2514,7 +2525,7 @@ function execute($ctx, ...args) {
|
|
|
2514
2525
|
return foundryPlatformFetch($ctx, _execute, ...args);
|
|
2515
2526
|
}
|
|
2516
2527
|
|
|
2517
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2528
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
2518
2529
|
var QueryType_exports = {};
|
|
2519
2530
|
__export(QueryType_exports, {
|
|
2520
2531
|
get: () => get8,
|
|
@@ -2529,7 +2540,7 @@ function get8($ctx, ...args) {
|
|
|
2529
2540
|
return foundryPlatformFetch($ctx, _get8, ...args);
|
|
2530
2541
|
}
|
|
2531
2542
|
|
|
2532
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2543
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
2533
2544
|
var TimeSeriesPropertyV2_exports = {};
|
|
2534
2545
|
__export(TimeSeriesPropertyV2_exports, {
|
|
2535
2546
|
getFirstPoint: () => getFirstPoint,
|
|
@@ -2549,7 +2560,7 @@ function streamPoints($ctx, ...args) {
|
|
|
2549
2560
|
return foundryPlatformFetch($ctx, _streamPoints, ...args);
|
|
2550
2561
|
}
|
|
2551
2562
|
|
|
2552
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2563
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.50.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
2553
2564
|
var TimeSeriesValueBankProperty_exports = {};
|
|
2554
2565
|
__export(TimeSeriesValueBankProperty_exports, {
|
|
2555
2566
|
getLatestValue: () => getLatestValue,
|
|
@@ -2615,19 +2626,23 @@ __export(MediaReferenceProperties_exports, {
|
|
|
2615
2626
|
uploadMedia: () => uploadMedia2
|
|
2616
2627
|
});
|
|
2617
2628
|
|
|
2618
|
-
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.
|
|
2629
|
+
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.50.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
|
|
2619
2630
|
var MediaSet_exports = {};
|
|
2620
2631
|
__export(MediaSet_exports, {
|
|
2621
2632
|
abort: () => abort,
|
|
2622
2633
|
calculate: () => calculate,
|
|
2623
2634
|
commit: () => commit,
|
|
2624
2635
|
create: () => create,
|
|
2636
|
+
getResult: () => getResult,
|
|
2625
2637
|
getRidByPath: () => getRidByPath,
|
|
2638
|
+
getStatus: () => getStatus,
|
|
2626
2639
|
info: () => info,
|
|
2640
|
+
metadata: () => metadata,
|
|
2627
2641
|
read: () => read3,
|
|
2628
2642
|
readOriginal: () => readOriginal,
|
|
2629
2643
|
reference: () => reference,
|
|
2630
2644
|
retrieve: () => retrieve,
|
|
2645
|
+
transform: () => transform,
|
|
2631
2646
|
upload: () => upload4,
|
|
2632
2647
|
uploadMedia: () => uploadMedia
|
|
2633
2648
|
});
|
|
@@ -2651,6 +2666,10 @@ var _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
|
|
|
2651
2666
|
function info($ctx, ...args) {
|
|
2652
2667
|
return foundryPlatformFetch($ctx, _info, ...args);
|
|
2653
2668
|
}
|
|
2669
|
+
var _metadata = [0, "/v2/mediasets/{0}/items/{1}/metadata", 6];
|
|
2670
|
+
function metadata($ctx, ...args) {
|
|
2671
|
+
return foundryPlatformFetch($ctx, _metadata, ...args);
|
|
2672
|
+
}
|
|
2654
2673
|
var _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
|
|
2655
2674
|
function reference($ctx, ...args) {
|
|
2656
2675
|
return foundryPlatformFetch($ctx, _reference, ...args);
|
|
@@ -2659,6 +2678,14 @@ var _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
|
|
|
2659
2678
|
function getRidByPath($ctx, ...args) {
|
|
2660
2679
|
return foundryPlatformFetch($ctx, _getRidByPath, ...args);
|
|
2661
2680
|
}
|
|
2681
|
+
var _getResult = [0, "/v2/mediasets/{0}/items/{1}/transformationJobs/{2}/result", 6, , "*/*"];
|
|
2682
|
+
function getResult($ctx, ...args) {
|
|
2683
|
+
return foundryPlatformFetch($ctx, _getResult, ...args);
|
|
2684
|
+
}
|
|
2685
|
+
var _getStatus = [0, "/v2/mediasets/{0}/items/{1}/transformationJobs/{2}", 6];
|
|
2686
|
+
function getStatus($ctx, ...args) {
|
|
2687
|
+
return foundryPlatformFetch($ctx, _getStatus, ...args);
|
|
2688
|
+
}
|
|
2662
2689
|
var _upload3 = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
|
|
2663
2690
|
function upload4($ctx, ...args) {
|
|
2664
2691
|
return foundryPlatformFetch($ctx, _upload3, ...args);
|
|
@@ -2675,6 +2702,10 @@ var _retrieve = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/ret
|
|
|
2675
2702
|
function retrieve($ctx, ...args) {
|
|
2676
2703
|
return foundryPlatformFetch($ctx, _retrieve, ...args);
|
|
2677
2704
|
}
|
|
2705
|
+
var _transform = [1, "/v2/mediasets/{0}/items/{1}/transform", 7];
|
|
2706
|
+
function transform($ctx, ...args) {
|
|
2707
|
+
return foundryPlatformFetch($ctx, _transform, ...args);
|
|
2708
|
+
}
|
|
2678
2709
|
var _uploadMedia = [2, "/v2/mediasets/media/upload", 7, "*/*"];
|
|
2679
2710
|
function uploadMedia($ctx, ...args) {
|
|
2680
2711
|
return foundryPlatformFetch($ctx, _uploadMedia, ...args);
|
|
@@ -3382,10 +3413,10 @@ var FauxAttachmentStore = class {
|
|
|
3382
3413
|
}
|
|
3383
3414
|
const {
|
|
3384
3415
|
buffer,
|
|
3385
|
-
...
|
|
3416
|
+
...metadata2
|
|
3386
3417
|
} = attachment;
|
|
3387
3418
|
return {
|
|
3388
|
-
...
|
|
3419
|
+
...metadata2,
|
|
3389
3420
|
sizeBytes: String(buffer.byteLength)
|
|
3390
3421
|
};
|
|
3391
3422
|
}
|
|
@@ -3639,8 +3670,8 @@ var FauxFoundry = class {
|
|
|
3639
3670
|
getAdmin() {
|
|
3640
3671
|
return this.admin;
|
|
3641
3672
|
}
|
|
3642
|
-
createOntology(
|
|
3643
|
-
const ret = new FauxOntology(
|
|
3673
|
+
createOntology(metadata2) {
|
|
3674
|
+
const ret = new FauxOntology(metadata2);
|
|
3644
3675
|
this.registerOntology(ret);
|
|
3645
3676
|
return ret;
|
|
3646
3677
|
}
|