@osdk/faux 0.4.0-beta.2 → 0.4.0-beta.4
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 +25 -0
- package/build/browser/FauxFoundry/validateAction.js +85 -13
- package/build/browser/FauxFoundry/validateAction.js.map +1 -1
- package/build/browser/FauxFoundry/validateAction.test.js +522 -0
- package/build/browser/FauxFoundry/validateAction.test.js.map +1 -0
- package/build/browser/errors.js +11 -0
- package/build/browser/errors.js.map +1 -1
- package/build/browser/mock/OntologiesV2/MediaReferenceProperties.js +2 -1
- package/build/browser/mock/OntologiesV2/MediaReferenceProperties.js.map +1 -1
- package/build/cjs/index.cjs +190 -43
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +2 -1
- package/build/esm/FauxFoundry/validateAction.js +85 -13
- package/build/esm/FauxFoundry/validateAction.js.map +1 -1
- package/build/esm/FauxFoundry/validateAction.test.js +522 -0
- package/build/esm/FauxFoundry/validateAction.test.js.map +1 -0
- package/build/esm/errors.js +11 -0
- package/build/esm/errors.js.map +1 -1
- package/build/esm/mock/OntologiesV2/MediaReferenceProperties.js +2 -1
- package/build/esm/mock/OntologiesV2/MediaReferenceProperties.js.map +1 -1
- package/build/types/FauxFoundry/validateAction.d.ts +2 -1
- package/build/types/FauxFoundry/validateAction.d.ts.map +1 -1
- package/build/types/FauxFoundry/validateAction.test.d.ts +1 -0
- package/build/types/FauxFoundry/validateAction.test.d.ts.map +1 -0
- package/build/types/errors.d.ts.map +1 -1
- package/build/types/mock/OntologiesV2/MediaReferenceProperties.d.ts +2 -1
- package/build/types/mock/OntologiesV2/MediaReferenceProperties.d.ts.map +1 -1
- package/package.json +11 -9
package/build/cjs/index.cjs
CHANGED
|
@@ -153,6 +153,7 @@ function ObjectTypeDoesNotExistError(objectType) {
|
|
|
153
153
|
return {
|
|
154
154
|
errorCode: "NOT_FOUND",
|
|
155
155
|
errorName: "ObjectTypeNotFound",
|
|
156
|
+
errorDescription: "The requested object type is not found, or the client token does not have access to it.",
|
|
156
157
|
errorInstanceId,
|
|
157
158
|
parameters: {
|
|
158
159
|
objectType,
|
|
@@ -164,6 +165,7 @@ function LinkTypeNotFound(objectType, linkType) {
|
|
|
164
165
|
return {
|
|
165
166
|
errorCode: "NOT_FOUND",
|
|
166
167
|
errorName: "LinkTypeNotFound",
|
|
168
|
+
errorDescription: "The link type is not found, or the user does not have access to it.",
|
|
167
169
|
errorInstanceId,
|
|
168
170
|
parameters: {
|
|
169
171
|
objectType,
|
|
@@ -176,6 +178,7 @@ function OntologyNotFoundError(ontology) {
|
|
|
176
178
|
return {
|
|
177
179
|
errorCode: "NOT_FOUND",
|
|
178
180
|
errorName: "OntologyNotFound",
|
|
181
|
+
errorDescription: "The requested Ontology is not found, or the client token does not have access to it.",
|
|
179
182
|
errorInstanceId,
|
|
180
183
|
parameters: {
|
|
181
184
|
ontologyRid: ontology,
|
|
@@ -187,6 +190,7 @@ function ObjectNotFoundError(objectType, primaryKey) {
|
|
|
187
190
|
return {
|
|
188
191
|
errorCode: "NOT_FOUND",
|
|
189
192
|
errorName: "ObjectNotFound",
|
|
193
|
+
errorDescription: "The requested object is not found, or the client token does not have access to it.",
|
|
190
194
|
errorInstanceId,
|
|
191
195
|
parameters: {
|
|
192
196
|
objectType,
|
|
@@ -198,6 +202,7 @@ function QueryNotFoundError(queryApiName) {
|
|
|
198
202
|
return {
|
|
199
203
|
errorCode: "NOT_FOUND",
|
|
200
204
|
errorName: "QueryNotFound",
|
|
205
|
+
errorDescription: "The query is not found, or the user does not have access to it.",
|
|
201
206
|
errorInstanceId,
|
|
202
207
|
parameters: {
|
|
203
208
|
query: queryApiName
|
|
@@ -208,6 +213,7 @@ function ActionNotFoundError() {
|
|
|
208
213
|
return {
|
|
209
214
|
errorCode: "NOT_FOUND",
|
|
210
215
|
errorName: "ActionNotFound",
|
|
216
|
+
errorDescription: "The action is not found, or the user does not have access to it.",
|
|
211
217
|
errorInstanceId,
|
|
212
218
|
parameters: {
|
|
213
219
|
actionRid: ""
|
|
@@ -225,12 +231,14 @@ function InvalidRequest(errorName) {
|
|
|
225
231
|
var ApplyActionFailedError = {
|
|
226
232
|
errorCode: "INVALID_ARGUMENT",
|
|
227
233
|
errorName: "ApplyActionFailed",
|
|
234
|
+
errorDescription: "",
|
|
228
235
|
errorInstanceId,
|
|
229
236
|
parameters: {}
|
|
230
237
|
};
|
|
231
238
|
var ExecuteQueryFailedError = {
|
|
232
239
|
errorCode: "CONFLICT",
|
|
233
240
|
errorName: "QueryEncounteredUserFacingError",
|
|
241
|
+
errorDescription: "The authored Query failed to execute because of a user induced error. The message argument is meant to be displayed to the user.",
|
|
234
242
|
errorInstanceId,
|
|
235
243
|
parameters: {
|
|
236
244
|
functionRid: "ri.function-registry.main.function.9b55870a-63c7-4d48-8f06-9627c0805968",
|
|
@@ -241,12 +249,14 @@ var ExecuteQueryFailedError = {
|
|
|
241
249
|
var InvalidContentTypeError = {
|
|
242
250
|
errorCode: "INVALID_ARGUMENT",
|
|
243
251
|
errorName: "InvalidContentType",
|
|
252
|
+
errorDescription: "The Content-Type cannot be inferred from the request content and filename. Please check your request content and filename to ensure they are compatible.",
|
|
244
253
|
errorInstanceId,
|
|
245
254
|
parameters: {}
|
|
246
255
|
};
|
|
247
256
|
var AttachmentSizeExceededLimitError = {
|
|
248
257
|
errorCode: "INVALID_ARGUMENT",
|
|
249
258
|
errorName: "AttachmentSizeExceededLimit",
|
|
259
|
+
errorDescription: "The file is too large to be uploaded as an attachment. The maximum attachment size is 200MB.",
|
|
250
260
|
errorInstanceId,
|
|
251
261
|
parameters: {
|
|
252
262
|
fileSizeBytes: "230000",
|
|
@@ -256,6 +266,7 @@ var AttachmentSizeExceededLimitError = {
|
|
|
256
266
|
var AttachmentNotFoundError = {
|
|
257
267
|
errorCode: "NOT_FOUND",
|
|
258
268
|
errorName: "AttachmentNotFound",
|
|
269
|
+
errorDescription: "The requested attachment is not found, or the client token does not have access to it. Attachments that are not attached to any objects are deleted after two weeks. Attachments that have not been attached to an object can only be viewed by the user who uploaded them. Attachments that have been attached to an object can be viewed by users who can view the object.",
|
|
259
270
|
errorInstanceId,
|
|
260
271
|
parameters: {
|
|
261
272
|
attachmentRid: "ri.attachments.main.attachment.86016861-707f-4292-b258-6a7108915a80"
|
|
@@ -346,8 +357,8 @@ function getPaginationParamsFromRequest({
|
|
|
346
357
|
};
|
|
347
358
|
}
|
|
348
359
|
function authHandlerMiddleware(handler) {
|
|
349
|
-
return async (
|
|
350
|
-
const authHeader =
|
|
360
|
+
return async (info2) => {
|
|
361
|
+
const authHeader = info2.request.headers.get("authorization");
|
|
351
362
|
if (!authHeader || authHeader !== `Bearer myAccessToken`) {
|
|
352
363
|
return msw.HttpResponse.json({
|
|
353
364
|
message: "Missing Authorization header"
|
|
@@ -356,7 +367,7 @@ function authHandlerMiddleware(handler) {
|
|
|
356
367
|
});
|
|
357
368
|
}
|
|
358
369
|
try {
|
|
359
|
-
return await handler(
|
|
370
|
+
return await handler(info2);
|
|
360
371
|
} catch (e) {
|
|
361
372
|
if (e instanceof OpenApiCallError) {
|
|
362
373
|
return msw.HttpResponse.json(e.json, {
|
|
@@ -404,9 +415,9 @@ function handleOpenApiCall(openApiCall, names) {
|
|
|
404
415
|
size: 5
|
|
405
416
|
}
|
|
406
417
|
);
|
|
407
|
-
return msw.http[captured.method.toLowerCase()](captured.endPoint, authHandlerMiddleware(async (
|
|
418
|
+
return msw.http[captured.method.toLowerCase()](captured.endPoint, authHandlerMiddleware(async (info2) => {
|
|
408
419
|
try {
|
|
409
|
-
const result = await restImpl(
|
|
420
|
+
const result = await restImpl(info2);
|
|
410
421
|
if (result instanceof Response) {
|
|
411
422
|
return new msw.HttpResponse(result.body);
|
|
412
423
|
}
|
|
@@ -918,6 +929,40 @@ function parseLocator(locator) {
|
|
|
918
929
|
}
|
|
919
930
|
|
|
920
931
|
// src/FauxFoundry/validateAction.ts
|
|
932
|
+
var NUMERIC_LITERAL_BOUNDS = {
|
|
933
|
+
byte: {
|
|
934
|
+
// Java min/max byte bounds
|
|
935
|
+
minimum: -128,
|
|
936
|
+
maximum: 127
|
|
937
|
+
},
|
|
938
|
+
double: {
|
|
939
|
+
// These numbers are smaller than the actual min/max of a java double,
|
|
940
|
+
// but going higher will require using BigInt in our input fields.
|
|
941
|
+
minimum: -Number.MAX_VALUE,
|
|
942
|
+
maximum: Number.MAX_VALUE
|
|
943
|
+
},
|
|
944
|
+
float: {
|
|
945
|
+
// Java min/max float bounds
|
|
946
|
+
minimum: -34028235e31,
|
|
947
|
+
maximum: 34028235e31
|
|
948
|
+
},
|
|
949
|
+
integer: {
|
|
950
|
+
// Java min/max integer bounds
|
|
951
|
+
minimum: -2147483648,
|
|
952
|
+
maximum: 2147483647
|
|
953
|
+
},
|
|
954
|
+
long: {
|
|
955
|
+
// These numbers are smaller than the actual min/max of a java long,
|
|
956
|
+
// but going higher will require using BigInt in our input fields.
|
|
957
|
+
minimum: Number.MIN_SAFE_INTEGER,
|
|
958
|
+
maximum: Number.MAX_SAFE_INTEGER
|
|
959
|
+
},
|
|
960
|
+
short: {
|
|
961
|
+
// Java min/max short bounds
|
|
962
|
+
minimum: -32768,
|
|
963
|
+
maximum: 32767
|
|
964
|
+
}
|
|
965
|
+
};
|
|
921
966
|
function validateAction(payload, def, dataStore) {
|
|
922
967
|
const ret = {
|
|
923
968
|
parameters: {},
|
|
@@ -1087,39 +1132,39 @@ function matchesOntologyDataType(odt, value) {
|
|
|
1087
1132
|
case "boolean":
|
|
1088
1133
|
return typeof value === "boolean";
|
|
1089
1134
|
case "byte":
|
|
1090
|
-
|
|
1135
|
+
return typeof value === "number" && isInBounds(value, NUMERIC_LITERAL_BOUNDS.byte);
|
|
1091
1136
|
case "cipherText":
|
|
1092
|
-
|
|
1137
|
+
return isValidCipherText(value);
|
|
1093
1138
|
case "date":
|
|
1094
|
-
|
|
1139
|
+
return isValidDateString(value);
|
|
1095
1140
|
case "decimal":
|
|
1096
|
-
|
|
1141
|
+
return isValidDecimalString(value);
|
|
1097
1142
|
case "double":
|
|
1098
|
-
return typeof value === "number";
|
|
1143
|
+
return typeof value === "number" && isInBounds(value, NUMERIC_LITERAL_BOUNDS.double);
|
|
1099
1144
|
case "float":
|
|
1100
|
-
|
|
1145
|
+
return typeof value === "number" && isInBounds(value, NUMERIC_LITERAL_BOUNDS.float);
|
|
1101
1146
|
case "integer":
|
|
1102
|
-
return typeof value === "number" && Number.isInteger(value);
|
|
1147
|
+
return typeof value === "number" && Number.isInteger(value) && isInBounds(value, NUMERIC_LITERAL_BOUNDS.integer);
|
|
1103
1148
|
case "long":
|
|
1104
|
-
|
|
1149
|
+
return typeof value === "number" && Number.isInteger(value) && isInBounds(value, NUMERIC_LITERAL_BOUNDS.long);
|
|
1105
1150
|
case "map":
|
|
1106
1151
|
throw new Error(`matchesOntologyDataType: ${odt.type} not implemented yet.`);
|
|
1107
1152
|
case "marking":
|
|
1108
|
-
|
|
1153
|
+
return typeof value === "string";
|
|
1109
1154
|
case "object":
|
|
1110
1155
|
return typeof value === "string" || value != null && typeof value === "object" && "$primaryKey" in value;
|
|
1111
1156
|
case "objectSet":
|
|
1112
|
-
|
|
1157
|
+
return typeof value === "string" && value.startsWith("ri.") || value != null && typeof value === "object" && "objectSet" in value;
|
|
1113
1158
|
case "set":
|
|
1114
1159
|
throw new Error(`matchesOntologyDataType: ${odt.type} not implemented yet.`);
|
|
1115
1160
|
case "short":
|
|
1116
|
-
|
|
1161
|
+
return typeof value === "number" && isInBounds(value, NUMERIC_LITERAL_BOUNDS.short);
|
|
1117
1162
|
case "string":
|
|
1118
1163
|
return typeof value === "string";
|
|
1119
1164
|
case "struct":
|
|
1120
1165
|
throw new Error(`matchesOntologyDataType: ${odt.type} not implemented yet.`);
|
|
1121
1166
|
case "timestamp":
|
|
1122
|
-
|
|
1167
|
+
return isValidTimestampString(value);
|
|
1123
1168
|
case "unsupported":
|
|
1124
1169
|
throw new Error(`matchesOntologyDataType: ${odt.type} not implemented yet.`);
|
|
1125
1170
|
default:
|
|
@@ -1132,6 +1177,46 @@ function isMediaReference(o) {
|
|
|
1132
1177
|
function isInterfaceActionParam(value) {
|
|
1133
1178
|
return typeof value === "object" && "objectTypeApiName" in value && typeof value.objectTypeApiName === "string" && "primaryKeyValue" in value && (typeof value.primaryKeyValue === "string" || typeof value.primaryKeyValue === "number" || typeof value.primaryKeyValue === "boolean");
|
|
1134
1179
|
}
|
|
1180
|
+
function isInBounds(value, bounds) {
|
|
1181
|
+
return bounds.minimum <= value && value <= bounds.maximum;
|
|
1182
|
+
}
|
|
1183
|
+
function isValidDateString(value) {
|
|
1184
|
+
if (typeof value !== "string") {
|
|
1185
|
+
return false;
|
|
1186
|
+
}
|
|
1187
|
+
const dateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
1188
|
+
if (!dateRegex.test(value)) {
|
|
1189
|
+
return false;
|
|
1190
|
+
}
|
|
1191
|
+
const date = new Date(value);
|
|
1192
|
+
return !isNaN(date.getTime()) && date.toISOString().startsWith(value);
|
|
1193
|
+
}
|
|
1194
|
+
function isValidTimestampString(value) {
|
|
1195
|
+
return typeof value === "string" && !isNaN(new Date(value).getTime());
|
|
1196
|
+
}
|
|
1197
|
+
function isValidCipherText(value) {
|
|
1198
|
+
if (typeof value !== "string") {
|
|
1199
|
+
return false;
|
|
1200
|
+
}
|
|
1201
|
+
const parts = value.split("::");
|
|
1202
|
+
if (!(isValidCipherAffix(parts, "CIPHER") || isValidCipherAffix(parts, "BELLASO") || isValidCipherAffix(parts, "BELLASO", true))) {
|
|
1203
|
+
return false;
|
|
1204
|
+
}
|
|
1205
|
+
const channelRid = parts[1];
|
|
1206
|
+
const encryptedValue = parts[2];
|
|
1207
|
+
return channelRid.startsWith("ri.") && encryptedValue !== "";
|
|
1208
|
+
}
|
|
1209
|
+
function isValidCipherAffix(parts, affix, prefixOnly = false) {
|
|
1210
|
+
const totalParts = prefixOnly ? 3 : 4;
|
|
1211
|
+
return parts.length === totalParts && parts[0] === affix && (prefixOnly || parts[3] === affix);
|
|
1212
|
+
}
|
|
1213
|
+
function isValidDecimalString(value) {
|
|
1214
|
+
if (typeof value !== "string") {
|
|
1215
|
+
return false;
|
|
1216
|
+
}
|
|
1217
|
+
const decimalRegex = /^[+-]?(\d+\.?\d*|\.\d+)(E[+-]?\d+)?$/;
|
|
1218
|
+
return decimalRegex.test(value) && !isNaN(parseFloat(value));
|
|
1219
|
+
}
|
|
1135
1220
|
|
|
1136
1221
|
// src/FauxFoundry/FauxDataStore.ts
|
|
1137
1222
|
var FauxDataStore = class {
|
|
@@ -1688,7 +1773,7 @@ __export(Actions_exports, {
|
|
|
1688
1773
|
applyBatch: () => applyBatch2
|
|
1689
1774
|
});
|
|
1690
1775
|
|
|
1691
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
1776
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
1692
1777
|
var Action_exports = {};
|
|
1693
1778
|
__export(Action_exports, {
|
|
1694
1779
|
apply: () => apply,
|
|
@@ -1789,7 +1874,7 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
1789
1874
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
1790
1875
|
}
|
|
1791
1876
|
|
|
1792
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
1877
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
1793
1878
|
var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
|
|
1794
1879
|
function apply($ctx, ...args) {
|
|
1795
1880
|
return foundryPlatformFetch($ctx, _apply, ...args);
|
|
@@ -1803,7 +1888,7 @@ function applyBatch($ctx, ...args) {
|
|
|
1803
1888
|
return foundryPlatformFetch($ctx, _applyBatch, ...args);
|
|
1804
1889
|
}
|
|
1805
1890
|
|
|
1806
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
1891
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
1807
1892
|
var ActionTypeV2_exports = {};
|
|
1808
1893
|
__export(ActionTypeV2_exports, {
|
|
1809
1894
|
get: () => get,
|
|
@@ -1823,7 +1908,7 @@ function getByRid($ctx, ...args) {
|
|
|
1823
1908
|
return foundryPlatformFetch($ctx, _getByRid, ...args);
|
|
1824
1909
|
}
|
|
1825
1910
|
|
|
1826
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
1911
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
1827
1912
|
var Attachment_exports = {};
|
|
1828
1913
|
__export(Attachment_exports, {
|
|
1829
1914
|
get: () => get2,
|
|
@@ -1848,7 +1933,7 @@ function get2($ctx, ...args) {
|
|
|
1848
1933
|
return foundryPlatformFetch($ctx, _get2, ...args);
|
|
1849
1934
|
}
|
|
1850
1935
|
|
|
1851
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
1936
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
1852
1937
|
var AttachmentPropertyV2_exports = {};
|
|
1853
1938
|
__export(AttachmentPropertyV2_exports, {
|
|
1854
1939
|
getAttachment: () => getAttachment,
|
|
@@ -1873,7 +1958,7 @@ function readAttachmentByRid($ctx, ...args) {
|
|
|
1873
1958
|
return foundryPlatformFetch($ctx, _readAttachmentByRid, ...args);
|
|
1874
1959
|
}
|
|
1875
1960
|
|
|
1876
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
1961
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
1877
1962
|
var LinkedObjectV2_exports = {};
|
|
1878
1963
|
__export(LinkedObjectV2_exports, {
|
|
1879
1964
|
getLinkedObject: () => getLinkedObject,
|
|
@@ -1888,13 +1973,12 @@ function getLinkedObject($ctx, ...args) {
|
|
|
1888
1973
|
return foundryPlatformFetch($ctx, _getLinkedObject, ...args);
|
|
1889
1974
|
}
|
|
1890
1975
|
|
|
1891
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
1976
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
1892
1977
|
var MediaReferenceProperty_exports = {};
|
|
1893
1978
|
__export(MediaReferenceProperty_exports, {
|
|
1894
1979
|
getMediaContent: () => getMediaContent,
|
|
1895
1980
|
getMediaMetadata: () => getMediaMetadata,
|
|
1896
|
-
upload: () => upload2
|
|
1897
|
-
uploadMedia: () => uploadMedia
|
|
1981
|
+
upload: () => upload2
|
|
1898
1982
|
});
|
|
1899
1983
|
var _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2, , "*/*"];
|
|
1900
1984
|
function getMediaContent($ctx, ...args) {
|
|
@@ -1908,12 +1992,8 @@ var _upload2 = [1, "/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload", 3, "*/
|
|
|
1908
1992
|
function upload2($ctx, ...args) {
|
|
1909
1993
|
return foundryPlatformFetch($ctx, _upload2, ...args);
|
|
1910
1994
|
}
|
|
1911
|
-
var _uploadMedia = [1, "/v2/ontologies/{0}/actions/{1}/media/upload", 3, "*/*"];
|
|
1912
|
-
function uploadMedia($ctx, ...args) {
|
|
1913
|
-
return foundryPlatformFetch($ctx, _uploadMedia, ...args);
|
|
1914
|
-
}
|
|
1915
1995
|
|
|
1916
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
1996
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
1917
1997
|
var ObjectTypeV2_exports = {};
|
|
1918
1998
|
__export(ObjectTypeV2_exports, {
|
|
1919
1999
|
get: () => get3,
|
|
@@ -1943,7 +2023,7 @@ function getOutgoingLinkType($ctx, ...args) {
|
|
|
1943
2023
|
return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
|
|
1944
2024
|
}
|
|
1945
2025
|
|
|
1946
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2026
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
1947
2027
|
var OntologyInterface_exports = {};
|
|
1948
2028
|
__export(OntologyInterface_exports, {
|
|
1949
2029
|
aggregate: () => aggregate,
|
|
@@ -1988,7 +2068,7 @@ function listInterfaceLinkedObjects($ctx, ...args) {
|
|
|
1988
2068
|
return foundryPlatformFetch($ctx, _listInterfaceLinkedObjects, ...args);
|
|
1989
2069
|
}
|
|
1990
2070
|
|
|
1991
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2071
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
1992
2072
|
var OntologyObjectSet_exports = {};
|
|
1993
2073
|
__export(OntologyObjectSet_exports, {
|
|
1994
2074
|
aggregate: () => aggregate2,
|
|
@@ -2023,7 +2103,7 @@ function aggregate2($ctx, ...args) {
|
|
|
2023
2103
|
return foundryPlatformFetch($ctx, _aggregate2, ...args);
|
|
2024
2104
|
}
|
|
2025
2105
|
|
|
2026
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2106
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
2027
2107
|
var OntologyObjectV2_exports = {};
|
|
2028
2108
|
__export(OntologyObjectV2_exports, {
|
|
2029
2109
|
aggregate: () => aggregate3,
|
|
@@ -2053,7 +2133,7 @@ function aggregate3($ctx, ...args) {
|
|
|
2053
2133
|
return foundryPlatformFetch($ctx, _aggregate3, ...args);
|
|
2054
2134
|
}
|
|
2055
2135
|
|
|
2056
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2136
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
|
|
2057
2137
|
var OntologyTransaction_exports = {};
|
|
2058
2138
|
__export(OntologyTransaction_exports, {
|
|
2059
2139
|
postEdits: () => postEdits
|
|
@@ -2063,7 +2143,7 @@ function postEdits($ctx, ...args) {
|
|
|
2063
2143
|
return foundryPlatformFetch($ctx, _postEdits, ...args);
|
|
2064
2144
|
}
|
|
2065
2145
|
|
|
2066
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2146
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
2067
2147
|
var OntologyV2_exports = {};
|
|
2068
2148
|
__export(OntologyV2_exports, {
|
|
2069
2149
|
get: () => get7,
|
|
@@ -2088,7 +2168,7 @@ function loadMetadata($ctx, ...args) {
|
|
|
2088
2168
|
return foundryPlatformFetch($ctx, _loadMetadata, ...args);
|
|
2089
2169
|
}
|
|
2090
2170
|
|
|
2091
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2171
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
2092
2172
|
var Query_exports = {};
|
|
2093
2173
|
__export(Query_exports, {
|
|
2094
2174
|
execute: () => execute
|
|
@@ -2098,7 +2178,7 @@ function execute($ctx, ...args) {
|
|
|
2098
2178
|
return foundryPlatformFetch($ctx, _execute, ...args);
|
|
2099
2179
|
}
|
|
2100
2180
|
|
|
2101
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2181
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
2102
2182
|
var QueryType_exports = {};
|
|
2103
2183
|
__export(QueryType_exports, {
|
|
2104
2184
|
get: () => get8,
|
|
@@ -2113,7 +2193,7 @@ function get8($ctx, ...args) {
|
|
|
2113
2193
|
return foundryPlatformFetch($ctx, _get8, ...args);
|
|
2114
2194
|
}
|
|
2115
2195
|
|
|
2116
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2196
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
2117
2197
|
var TimeSeriesPropertyV2_exports = {};
|
|
2118
2198
|
__export(TimeSeriesPropertyV2_exports, {
|
|
2119
2199
|
getFirstPoint: () => getFirstPoint,
|
|
@@ -2133,7 +2213,7 @@ function streamPoints($ctx, ...args) {
|
|
|
2133
2213
|
return foundryPlatformFetch($ctx, _streamPoints, ...args);
|
|
2134
2214
|
}
|
|
2135
2215
|
|
|
2136
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
2216
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.38.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
2137
2217
|
var TimeSeriesValueBankProperty_exports = {};
|
|
2138
2218
|
__export(TimeSeriesValueBankProperty_exports, {
|
|
2139
2219
|
getLatestValue: () => getLatestValue,
|
|
@@ -2195,13 +2275,80 @@ var MediaReferenceProperties_exports = {};
|
|
|
2195
2275
|
__export(MediaReferenceProperties_exports, {
|
|
2196
2276
|
getMediaContent: () => getMediaContent2,
|
|
2197
2277
|
getMediaMetadata: () => getMediaMetadata2,
|
|
2198
|
-
upload: () =>
|
|
2278
|
+
upload: () => upload5,
|
|
2199
2279
|
uploadMedia: () => uploadMedia2
|
|
2200
2280
|
});
|
|
2281
|
+
|
|
2282
|
+
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.38.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
|
|
2283
|
+
var MediaSet_exports = {};
|
|
2284
|
+
__export(MediaSet_exports, {
|
|
2285
|
+
abort: () => abort,
|
|
2286
|
+
calculate: () => calculate,
|
|
2287
|
+
commit: () => commit,
|
|
2288
|
+
create: () => create,
|
|
2289
|
+
getRidByPath: () => getRidByPath,
|
|
2290
|
+
info: () => info,
|
|
2291
|
+
read: () => read3,
|
|
2292
|
+
readOriginal: () => readOriginal,
|
|
2293
|
+
reference: () => reference,
|
|
2294
|
+
retrieve: () => retrieve,
|
|
2295
|
+
upload: () => upload4,
|
|
2296
|
+
uploadMedia: () => uploadMedia
|
|
2297
|
+
});
|
|
2298
|
+
var _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
|
|
2299
|
+
function abort($ctx, ...args) {
|
|
2300
|
+
return foundryPlatformFetch($ctx, _abort, ...args);
|
|
2301
|
+
}
|
|
2302
|
+
var _calculate = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/calculate", 6];
|
|
2303
|
+
function calculate($ctx, ...args) {
|
|
2304
|
+
return foundryPlatformFetch($ctx, _calculate, ...args);
|
|
2305
|
+
}
|
|
2306
|
+
var _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
|
|
2307
|
+
function commit($ctx, ...args) {
|
|
2308
|
+
return foundryPlatformFetch($ctx, _commit, ...args);
|
|
2309
|
+
}
|
|
2310
|
+
var _create = [1, "/v2/mediasets/{0}/transactions", 2];
|
|
2311
|
+
function create($ctx, ...args) {
|
|
2312
|
+
return foundryPlatformFetch($ctx, _create, ...args);
|
|
2313
|
+
}
|
|
2314
|
+
var _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
|
|
2315
|
+
function info($ctx, ...args) {
|
|
2316
|
+
return foundryPlatformFetch($ctx, _info, ...args);
|
|
2317
|
+
}
|
|
2318
|
+
var _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
|
|
2319
|
+
function reference($ctx, ...args) {
|
|
2320
|
+
return foundryPlatformFetch($ctx, _reference, ...args);
|
|
2321
|
+
}
|
|
2322
|
+
var _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
|
|
2323
|
+
function getRidByPath($ctx, ...args) {
|
|
2324
|
+
return foundryPlatformFetch($ctx, _getRidByPath, ...args);
|
|
2325
|
+
}
|
|
2326
|
+
var _upload3 = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
|
|
2327
|
+
function upload4($ctx, ...args) {
|
|
2328
|
+
return foundryPlatformFetch($ctx, _upload3, ...args);
|
|
2329
|
+
}
|
|
2330
|
+
var _read2 = [0, "/v2/mediasets/{0}/items/{1}/content", 6, , "*/*"];
|
|
2331
|
+
function read3($ctx, ...args) {
|
|
2332
|
+
return foundryPlatformFetch($ctx, _read2, ...args);
|
|
2333
|
+
}
|
|
2334
|
+
var _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6, , "*/*"];
|
|
2335
|
+
function readOriginal($ctx, ...args) {
|
|
2336
|
+
return foundryPlatformFetch($ctx, _readOriginal, ...args);
|
|
2337
|
+
}
|
|
2338
|
+
var _retrieve = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/retrieve", 6, , "*/*"];
|
|
2339
|
+
function retrieve($ctx, ...args) {
|
|
2340
|
+
return foundryPlatformFetch($ctx, _retrieve, ...args);
|
|
2341
|
+
}
|
|
2342
|
+
var _uploadMedia = [2, "/v2/mediasets/media/upload", 7, "*/*"];
|
|
2343
|
+
function uploadMedia($ctx, ...args) {
|
|
2344
|
+
return foundryPlatformFetch($ctx, _uploadMedia, ...args);
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
// src/mock/OntologiesV2/MediaReferenceProperties.ts
|
|
2201
2348
|
var getMediaMetadata2 = handleOpenApiCall(MediaReferenceProperty_exports.getMediaMetadata, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
|
|
2202
2349
|
var getMediaContent2 = handleOpenApiCall(MediaReferenceProperty_exports.getMediaContent, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
|
|
2203
|
-
var
|
|
2204
|
-
var uploadMedia2 = handleOpenApiCall(
|
|
2350
|
+
var upload5 = handleOpenApiCall(MediaReferenceProperty_exports.upload, ["ontologyApiName", "objectType", "propertyName"]);
|
|
2351
|
+
var uploadMedia2 = handleOpenApiCall(MediaSet_exports.uploadMedia, []);
|
|
2205
2352
|
|
|
2206
2353
|
// src/mock/OntologiesV2/ObjectTypesV2.ts
|
|
2207
2354
|
var ObjectTypesV2_exports = {};
|