@osdk/faux 0.1.0-beta.2 → 0.1.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 +20 -0
- package/build/browser/errors.js +2 -1
- package/build/browser/errors.js.map +1 -1
- package/build/browser/mock/OntologiesV2/MediaReferenceProperties.js +1 -0
- package/build/browser/mock/OntologiesV2/MediaReferenceProperties.js.map +1 -1
- package/build/cjs/index.cjs +32 -24
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +3 -1
- package/build/esm/errors.js +2 -1
- package/build/esm/errors.js.map +1 -1
- package/build/esm/mock/OntologiesV2/MediaReferenceProperties.js +1 -0
- package/build/esm/mock/OntologiesV2/MediaReferenceProperties.js.map +1 -1
- package/build/types/errors.d.ts.map +1 -1
- package/build/types/mock/OntologiesV2/MediaReferenceProperties.d.ts +1 -0
- package/build/types/mock/OntologiesV2/MediaReferenceProperties.d.ts.map +1 -1
- package/package.json +7 -7
package/build/cjs/index.d.cts
CHANGED
|
@@ -442,12 +442,14 @@ declare namespace LinkedObjectsV2 {
|
|
|
442
442
|
declare const getMediaMetadata: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof MediaReferenceProperties$1.getMediaMetadata>;
|
|
443
443
|
declare const getMediaContent: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof MediaReferenceProperties$1.getMediaContent>;
|
|
444
444
|
declare const upload: CallFactory<"ontologyApiName" | "objectType" | "propertyName", typeof MediaReferenceProperties$1.upload>;
|
|
445
|
+
declare const uploadMedia: CallFactory<"ontologyApiName" | "actionTypeApiName", typeof MediaReferenceProperties$1.uploadMedia>;
|
|
445
446
|
|
|
446
447
|
declare const MediaReferenceProperties_getMediaContent: typeof getMediaContent;
|
|
447
448
|
declare const MediaReferenceProperties_getMediaMetadata: typeof getMediaMetadata;
|
|
448
449
|
declare const MediaReferenceProperties_upload: typeof upload;
|
|
450
|
+
declare const MediaReferenceProperties_uploadMedia: typeof uploadMedia;
|
|
449
451
|
declare namespace MediaReferenceProperties {
|
|
450
|
-
export { MediaReferenceProperties_getMediaContent as getMediaContent, MediaReferenceProperties_getMediaMetadata as getMediaMetadata, MediaReferenceProperties_upload as upload };
|
|
452
|
+
export { MediaReferenceProperties_getMediaContent as getMediaContent, MediaReferenceProperties_getMediaMetadata as getMediaMetadata, MediaReferenceProperties_upload as upload, MediaReferenceProperties_uploadMedia as uploadMedia };
|
|
451
453
|
}
|
|
452
454
|
|
|
453
455
|
declare const get$4: CallFactory<"ontologyApiName" | "objectTypeApiName", typeof ObjectTypesV2$1.get>;
|
package/build/esm/errors.js
CHANGED
package/build/esm/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":["errorInstanceId","objectTypeRid","ObjectTypeDoesNotExistError","objectType","errorCode","errorName","parameters","LinkTypeNotFound","linkType","OntologyNotFoundError","ontology","ontologyRid","apiName","ObjectNotFoundError","primaryKey","QueryNotFoundError","queryApiName","query","ActionNotFoundError","actionRid","InvalidRequest","ApplyActionFailedError","ExecuteQueryFailedError","functionRid","functionVersion","message","InvalidContentTypeError","AttachmentSizeExceededLimitError","fileSizeBytes","fileLimitBytes","AttachmentNotFoundError","attachmentRid"],"sources":["errors.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n//\n\nimport type {\n ActionNotFound,\n ApplyActionFailed,\n AttachmentNotFound,\n AttachmentSizeExceededLimit,\n InvalidContentType,\n LinkTypeNotFound as OGLinkTypeNotFound,\n ObjectNotFound,\n ObjectTypeNotFound,\n OntologyNotFound,\n QueryEncounteredUserFacingError,\n QueryNotFound,\n} from \"@osdk/internal.foundry.ontologies\";\nimport type { BaseAPIError } from \"./BaseError.js\";\n\nconst errorInstanceId = \"errorInstanceId\";\nconst objectTypeRid = \"ri.foundry.main.objectType.1\";\n\nexport function ObjectTypeDoesNotExistError(\n objectType: string,\n): ObjectTypeNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ObjectTypeNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n objectTypeRid,\n },\n };\n}\n\nexport function LinkTypeNotFound(\n objectType: string,\n linkType: string,\n): OGLinkTypeNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"LinkTypeNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n linkType,\n },\n };\n}\n\nexport function OntologyNotFoundError(\n ontology: string,\n): OntologyNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"OntologyNotFound\",\n errorInstanceId,\n parameters: {\n ontologyRid: ontology,\n apiName: ontology,\n },\n };\n}\n\nexport function ObjectNotFoundError(\n objectType: string,\n primaryKey: string,\n): ObjectNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ObjectNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n primaryKey,\n },\n };\n}\n\nexport function QueryNotFoundError(queryApiName: string): QueryNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"QueryNotFound\",\n errorInstanceId,\n parameters: {\n query: queryApiName,\n },\n };\n}\n\nexport function ActionNotFoundError(): ActionNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ActionNotFound\",\n errorInstanceId,\n parameters: {\n actionRid: \"\",\n },\n };\n}\n\nexport function InvalidRequest(errorName: string): BaseAPIError {\n return {\n errorCode: \"INVALID_REQUEST\",\n errorName,\n errorInstanceId,\n parameters: {},\n };\n}\n\nexport const ApplyActionFailedError: ApplyActionFailed = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"ApplyActionFailed\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const ExecuteQueryFailedError: QueryEncounteredUserFacingError = {\n errorCode: \"CONFLICT\",\n errorName: \"QueryEncounteredUserFacingError\",\n errorInstanceId,\n parameters: {\n functionRid:\n \"ri.function-registry.main.function.9b55870a-63c7-4d48-8f06-9627c0805968\",\n functionVersion: \"0.11.0\",\n message: \"test failed\",\n },\n};\n\nexport const InvalidContentTypeError: InvalidContentType = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"InvalidContentType\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"AttachmentSizeExceededLimit\",\n errorInstanceId,\n parameters: {\n fileSizeBytes: \"230000\",\n fileLimitBytes: \"200000\",\n },\n};\n\nexport const AttachmentNotFoundError: AttachmentNotFound = {\n errorCode: \"NOT_FOUND\",\n errorName: \"AttachmentNotFound\",\n errorInstanceId,\n parameters: {\n attachmentRid:\n \"ri.attachments.main.attachment.86016861-707f-4292-b258-6a7108915a80\",\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAiBA,MAAMA,eAAe,GAAG,iBAAiB;AACzC,MAAMC,aAAa,GAAG,8BAA8B;AAEpD,OAAO,SAASC,2BAA2BA,CACzCC,UAAkB,EACE;EACpB,OAAO;IACLC,SAAS,EAAE,WAAW;IACtBC,SAAS,EAAE,oBAAoB;IAC/BL,eAAe;IACfM,UAAU,EAAE;MACVH,UAAU;MACVF;IACF;EACF,CAAC;AACH;AAEA,OAAO,SAASM,gBAAgBA,CAC9BJ,UAAkB,EAClBK,QAAgB,EACI;EACpB,OAAO;IACLJ,SAAS,EAAE,WAAW;IACtBC,SAAS,EAAE,kBAAkB;IAC7BL,eAAe;IACfM,UAAU,EAAE;MACVH,UAAU;MACVK;
|
|
1
|
+
{"version":3,"file":"errors.js","names":["errorInstanceId","objectTypeRid","ObjectTypeDoesNotExistError","objectType","errorCode","errorName","parameters","LinkTypeNotFound","linkType","linkTypeId","undefined","OntologyNotFoundError","ontology","ontologyRid","apiName","ObjectNotFoundError","primaryKey","QueryNotFoundError","queryApiName","query","ActionNotFoundError","actionRid","InvalidRequest","ApplyActionFailedError","ExecuteQueryFailedError","functionRid","functionVersion","message","InvalidContentTypeError","AttachmentSizeExceededLimitError","fileSizeBytes","fileLimitBytes","AttachmentNotFoundError","attachmentRid"],"sources":["errors.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n//\n\nimport type {\n ActionNotFound,\n ApplyActionFailed,\n AttachmentNotFound,\n AttachmentSizeExceededLimit,\n InvalidContentType,\n LinkTypeNotFound as OGLinkTypeNotFound,\n ObjectNotFound,\n ObjectTypeNotFound,\n OntologyNotFound,\n QueryEncounteredUserFacingError,\n QueryNotFound,\n} from \"@osdk/internal.foundry.ontologies\";\nimport type { BaseAPIError } from \"./BaseError.js\";\n\nconst errorInstanceId = \"errorInstanceId\";\nconst objectTypeRid = \"ri.foundry.main.objectType.1\";\n\nexport function ObjectTypeDoesNotExistError(\n objectType: string,\n): ObjectTypeNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ObjectTypeNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n objectTypeRid,\n },\n };\n}\n\nexport function LinkTypeNotFound(\n objectType: string,\n linkType: string,\n): OGLinkTypeNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"LinkTypeNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n linkType,\n linkTypeId: undefined,\n },\n };\n}\n\nexport function OntologyNotFoundError(\n ontology: string,\n): OntologyNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"OntologyNotFound\",\n errorInstanceId,\n parameters: {\n ontologyRid: ontology,\n apiName: ontology,\n },\n };\n}\n\nexport function ObjectNotFoundError(\n objectType: string,\n primaryKey: string,\n): ObjectNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ObjectNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n primaryKey,\n },\n };\n}\n\nexport function QueryNotFoundError(queryApiName: string): QueryNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"QueryNotFound\",\n errorInstanceId,\n parameters: {\n query: queryApiName,\n },\n };\n}\n\nexport function ActionNotFoundError(): ActionNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ActionNotFound\",\n errorInstanceId,\n parameters: {\n actionRid: \"\",\n },\n };\n}\n\nexport function InvalidRequest(errorName: string): BaseAPIError {\n return {\n errorCode: \"INVALID_REQUEST\",\n errorName,\n errorInstanceId,\n parameters: {},\n };\n}\n\nexport const ApplyActionFailedError: ApplyActionFailed = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"ApplyActionFailed\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const ExecuteQueryFailedError: QueryEncounteredUserFacingError = {\n errorCode: \"CONFLICT\",\n errorName: \"QueryEncounteredUserFacingError\",\n errorInstanceId,\n parameters: {\n functionRid:\n \"ri.function-registry.main.function.9b55870a-63c7-4d48-8f06-9627c0805968\",\n functionVersion: \"0.11.0\",\n message: \"test failed\",\n },\n};\n\nexport const InvalidContentTypeError: InvalidContentType = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"InvalidContentType\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"AttachmentSizeExceededLimit\",\n errorInstanceId,\n parameters: {\n fileSizeBytes: \"230000\",\n fileLimitBytes: \"200000\",\n },\n};\n\nexport const AttachmentNotFoundError: AttachmentNotFound = {\n errorCode: \"NOT_FOUND\",\n errorName: \"AttachmentNotFound\",\n errorInstanceId,\n parameters: {\n attachmentRid:\n \"ri.attachments.main.attachment.86016861-707f-4292-b258-6a7108915a80\",\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAiBA,MAAMA,eAAe,GAAG,iBAAiB;AACzC,MAAMC,aAAa,GAAG,8BAA8B;AAEpD,OAAO,SAASC,2BAA2BA,CACzCC,UAAkB,EACE;EACpB,OAAO;IACLC,SAAS,EAAE,WAAW;IACtBC,SAAS,EAAE,oBAAoB;IAC/BL,eAAe;IACfM,UAAU,EAAE;MACVH,UAAU;MACVF;IACF;EACF,CAAC;AACH;AAEA,OAAO,SAASM,gBAAgBA,CAC9BJ,UAAkB,EAClBK,QAAgB,EACI;EACpB,OAAO;IACLJ,SAAS,EAAE,WAAW;IACtBC,SAAS,EAAE,kBAAkB;IAC7BL,eAAe;IACfM,UAAU,EAAE;MACVH,UAAU;MACVK,QAAQ;MACRC,UAAU,EAAEC;IACd;EACF,CAAC;AACH;AAEA,OAAO,SAASC,qBAAqBA,CACnCC,QAAgB,EACE;EAClB,OAAO;IACLR,SAAS,EAAE,WAAW;IACtBC,SAAS,EAAE,kBAAkB;IAC7BL,eAAe;IACfM,UAAU,EAAE;MACVO,WAAW,EAAED,QAAQ;MACrBE,OAAO,EAAEF;IACX;EACF,CAAC;AACH;AAEA,OAAO,SAASG,mBAAmBA,CACjCZ,UAAkB,EAClBa,UAAkB,EACF;EAChB,OAAO;IACLZ,SAAS,EAAE,WAAW;IACtBC,SAAS,EAAE,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ACvBC,cAAc,EAAE;EAClB;AACF,CAAC;AAED,OAAO,MAAMC,uBAA2C,GAAG;EACzD5B,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE,oBAAoB;EAC/BL,eAAe;EACfM,UAAU,EAAE;IACV2B,aAAa,EACX;EACJ;AACF,CAAC","ignoreList":[]}
|
|
@@ -19,4 +19,5 @@ import { handleOpenApiCall } from "../../handlers/util/handleOpenApiCall.js";
|
|
|
19
19
|
export const getMediaMetadata = handleOpenApiCall(MediaReferenceProperties.getMediaMetadata, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
|
|
20
20
|
export const getMediaContent = handleOpenApiCall(MediaReferenceProperties.getMediaContent, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
|
|
21
21
|
export const upload = handleOpenApiCall(MediaReferenceProperties.upload, ["ontologyApiName", "objectType", "propertyName"]);
|
|
22
|
+
export const uploadMedia = handleOpenApiCall(MediaReferenceProperties.uploadMedia, ["ontologyApiName", "actionTypeApiName"]);
|
|
22
23
|
//# sourceMappingURL=MediaReferenceProperties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaReferenceProperties.js","names":["MediaReferenceProperties","handleOpenApiCall","getMediaMetadata","getMediaContent","upload"],"sources":["MediaReferenceProperties.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MediaReferenceProperties } from \"@osdk/foundry.ontologies\";\nimport type { CallFactory } from \"../../handlers/util/handleOpenApiCall.js\";\nimport { handleOpenApiCall } from \"../../handlers/util/handleOpenApiCall.js\";\n\nexport const getMediaMetadata: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaMetadata\n> = handleOpenApiCall(\n MediaReferenceProperties.getMediaMetadata,\n [\"ontologyApiName\", \"objectType\", \"primaryKey\", \"propertyName\"],\n);\n\nexport const getMediaContent: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaContent\n> = handleOpenApiCall(\n MediaReferenceProperties.getMediaContent,\n [\"ontologyApiName\", \"objectType\", \"primaryKey\", \"propertyName\"],\n);\n\nexport const upload: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"propertyName\",\n typeof MediaReferenceProperties.upload\n> = handleOpenApiCall(\n MediaReferenceProperties.upload,\n [\"ontologyApiName\", \"objectType\", \"propertyName\"],\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,wBAAwB,QAAQ,0BAA0B;AAEnE,SAASC,iBAAiB,QAAQ,0CAA0C;AAE5E,OAAO,MAAMC,gBAGZ,GAAGD,iBAAiB,CACnBD,wBAAwB,CAACE,gBAAgB,EACzC,CAAC,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,CAChE,CAAC;AAED,OAAO,MAAMC,eAGZ,GAAGF,iBAAiB,CACnBD,wBAAwB,CAACG,eAAe,EACxC,CAAC,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,CAChE,CAAC;AAED,OAAO,MAAMC,MAGZ,GAAGH,iBAAiB,CACnBD,wBAAwB,CAACI,MAAM,EAC/B,CAAC,iBAAiB,EAAE,YAAY,EAAE,cAAc,CAClD,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"MediaReferenceProperties.js","names":["MediaReferenceProperties","handleOpenApiCall","getMediaMetadata","getMediaContent","upload","uploadMedia"],"sources":["MediaReferenceProperties.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MediaReferenceProperties } from \"@osdk/foundry.ontologies\";\nimport type { CallFactory } from \"../../handlers/util/handleOpenApiCall.js\";\nimport { handleOpenApiCall } from \"../../handlers/util/handleOpenApiCall.js\";\n\nexport const getMediaMetadata: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaMetadata\n> = handleOpenApiCall(\n MediaReferenceProperties.getMediaMetadata,\n [\"ontologyApiName\", \"objectType\", \"primaryKey\", \"propertyName\"],\n);\n\nexport const getMediaContent: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaContent\n> = handleOpenApiCall(\n MediaReferenceProperties.getMediaContent,\n [\"ontologyApiName\", \"objectType\", \"primaryKey\", \"propertyName\"],\n);\n\nexport const upload: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"propertyName\",\n typeof MediaReferenceProperties.upload\n> = handleOpenApiCall(\n MediaReferenceProperties.upload,\n [\"ontologyApiName\", \"objectType\", \"propertyName\"],\n);\n\nexport const uploadMedia: CallFactory<\n \"ontologyApiName\" | \"actionTypeApiName\",\n typeof MediaReferenceProperties.uploadMedia\n> = handleOpenApiCall(\n MediaReferenceProperties.uploadMedia,\n [\"ontologyApiName\", \"actionTypeApiName\"],\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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;AAWvC,OAAO,iBAAS,eAAeC,oBAAoB;AASnD,OAAO,cAAMC,wBAAwB;AAOrC,OAAO,cAAMC,yBAAyB;AAYtC,OAAO,cAAMC,yBAAyB;AAOtC,OAAO,cAAMC,kCAAkC;AAU/C,OAAO,cAAMC,yBAAyB","names":["objectType: string","linkType: string","ontology: string","primaryKey: string","queryApiName: string","errorName: string","ApplyActionFailedError: ApplyActionFailed","ExecuteQueryFailedError: QueryEncounteredUserFacingError","InvalidContentTypeError: InvalidContentType","AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit","AttachmentNotFoundError: AttachmentNotFound"],"sources":["../../src/errors.ts"],"version":3,"file":"errors.d.ts"}
|
|
@@ -3,3 +3,4 @@ import type { CallFactory } from "../../handlers/util/handleOpenApiCall.js";
|
|
|
3
3
|
export declare const getMediaMetadata: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof MediaReferenceProperties.getMediaMetadata>;
|
|
4
4
|
export declare const getMediaContent: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof MediaReferenceProperties.getMediaContent>;
|
|
5
5
|
export declare const upload: CallFactory<"ontologyApiName" | "objectType" | "propertyName", typeof MediaReferenceProperties.upload>;
|
|
6
|
+
export declare const uploadMedia: CallFactory<"ontologyApiName" | "actionTypeApiName", typeof MediaReferenceProperties.uploadMedia>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,SAAS,gCAAgC,0BAA2B;AACpE,cAAc,mBAAmB,0CAA2C;AAG5E,OAAO,cAAMA,kBAAkB,YAC7B,oBAAoB,eAAe,eAAe,uBAC3C,yBAAyB;AAMlC,OAAO,cAAMC,iBAAiB,YAC5B,oBAAoB,eAAe,eAAe,uBAC3C,yBAAyB;AAMlC,OAAO,cAAMC,QAAQ,YACnB,oBAAoB,eAAe,uBAC5B,yBAAyB","names":["getMediaMetadata: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaMetadata\n>","getMediaContent: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaContent\n>","upload: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"propertyName\",\n typeof MediaReferenceProperties.upload\n>"],"sources":["../../../../src/mock/OntologiesV2/MediaReferenceProperties.ts"],"version":3,"file":"MediaReferenceProperties.d.ts"}
|
|
1
|
+
{"mappings":"AAgBA,SAAS,gCAAgC,0BAA2B;AACpE,cAAc,mBAAmB,0CAA2C;AAG5E,OAAO,cAAMA,kBAAkB,YAC7B,oBAAoB,eAAe,eAAe,uBAC3C,yBAAyB;AAMlC,OAAO,cAAMC,iBAAiB,YAC5B,oBAAoB,eAAe,eAAe,uBAC3C,yBAAyB;AAMlC,OAAO,cAAMC,QAAQ,YACnB,oBAAoB,eAAe,uBAC5B,yBAAyB;AAMlC,OAAO,cAAMC,aAAa,YACxB,oBAAoB,4BACb,yBAAyB","names":["getMediaMetadata: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaMetadata\n>","getMediaContent: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaContent\n>","upload: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"propertyName\",\n typeof MediaReferenceProperties.upload\n>","uploadMedia: CallFactory<\n \"ontologyApiName\" | \"actionTypeApiName\",\n typeof MediaReferenceProperties.uploadMedia\n>"],"sources":["../../../../src/mock/OntologiesV2/MediaReferenceProperties.ts"],"version":3,"file":"MediaReferenceProperties.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/faux",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "private",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@osdk/foundry.core": "2.
|
|
33
|
-
"@osdk/foundry.geo": "2.
|
|
34
|
-
"@osdk/foundry.ontologies": "2.
|
|
35
|
-
"@osdk/internal.foundry.ontologies": "2.
|
|
32
|
+
"@osdk/foundry.core": "2.24.0",
|
|
33
|
+
"@osdk/foundry.geo": "2.24.0",
|
|
34
|
+
"@osdk/foundry.ontologies": "2.24.0",
|
|
35
|
+
"@osdk/internal.foundry.ontologies": "2.24.0",
|
|
36
36
|
"date-fns": "^4.1.0",
|
|
37
37
|
"fast-deep-equal": "^3.1.3",
|
|
38
38
|
"fetch-retry": "^6.0.0",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"semver": "^7.5.1",
|
|
43
43
|
"tiny-invariant": "^1.3.3",
|
|
44
44
|
"type-fest": "^4.37.0",
|
|
45
|
-
"@osdk/
|
|
46
|
-
"@osdk/
|
|
45
|
+
"@osdk/generator-converters": "~2.3.0-beta.8",
|
|
46
|
+
"@osdk/api": "~2.3.0-beta.8"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/json-stable-stringify": "^1.0.36",
|