@osdk/faux 0.4.0-beta.3 → 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 +13 -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 +104 -31
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +2 -1
- 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/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 +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @osdk/shared.test
|
|
2
2
|
|
|
3
|
+
## 0.4.0-beta.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a1ffb20: Use new ephemeral media upload endpoint.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [a1ffb20]
|
|
12
|
+
- Updated dependencies [e62c692]
|
|
13
|
+
- @osdk/generator-converters@2.6.0-beta.8
|
|
14
|
+
- @osdk/api@2.6.0-beta.8
|
|
15
|
+
|
|
3
16
|
## 0.4.0-beta.3
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/build/browser/errors.js
CHANGED
|
@@ -22,6 +22,7 @@ export function ObjectTypeDoesNotExistError(objectType) {
|
|
|
22
22
|
return {
|
|
23
23
|
errorCode: "NOT_FOUND",
|
|
24
24
|
errorName: "ObjectTypeNotFound",
|
|
25
|
+
errorDescription: "The requested object type is not found, or the client token does not have access to it.",
|
|
25
26
|
errorInstanceId,
|
|
26
27
|
parameters: {
|
|
27
28
|
objectType,
|
|
@@ -33,6 +34,7 @@ export function LinkTypeNotFound(objectType, linkType) {
|
|
|
33
34
|
return {
|
|
34
35
|
errorCode: "NOT_FOUND",
|
|
35
36
|
errorName: "LinkTypeNotFound",
|
|
37
|
+
errorDescription: "The link type is not found, or the user does not have access to it.",
|
|
36
38
|
errorInstanceId,
|
|
37
39
|
parameters: {
|
|
38
40
|
objectType,
|
|
@@ -45,6 +47,7 @@ export function OntologyNotFoundError(ontology) {
|
|
|
45
47
|
return {
|
|
46
48
|
errorCode: "NOT_FOUND",
|
|
47
49
|
errorName: "OntologyNotFound",
|
|
50
|
+
errorDescription: "The requested Ontology is not found, or the client token does not have access to it.",
|
|
48
51
|
errorInstanceId,
|
|
49
52
|
parameters: {
|
|
50
53
|
ontologyRid: ontology,
|
|
@@ -56,6 +59,7 @@ export function ObjectNotFoundError(objectType, primaryKey) {
|
|
|
56
59
|
return {
|
|
57
60
|
errorCode: "NOT_FOUND",
|
|
58
61
|
errorName: "ObjectNotFound",
|
|
62
|
+
errorDescription: "The requested object is not found, or the client token does not have access to it.",
|
|
59
63
|
errorInstanceId,
|
|
60
64
|
parameters: {
|
|
61
65
|
objectType,
|
|
@@ -67,6 +71,7 @@ export function QueryNotFoundError(queryApiName) {
|
|
|
67
71
|
return {
|
|
68
72
|
errorCode: "NOT_FOUND",
|
|
69
73
|
errorName: "QueryNotFound",
|
|
74
|
+
errorDescription: "The query is not found, or the user does not have access to it.",
|
|
70
75
|
errorInstanceId,
|
|
71
76
|
parameters: {
|
|
72
77
|
query: queryApiName
|
|
@@ -77,6 +82,7 @@ export function ActionNotFoundError() {
|
|
|
77
82
|
return {
|
|
78
83
|
errorCode: "NOT_FOUND",
|
|
79
84
|
errorName: "ActionNotFound",
|
|
85
|
+
errorDescription: "The action is not found, or the user does not have access to it.",
|
|
80
86
|
errorInstanceId,
|
|
81
87
|
parameters: {
|
|
82
88
|
actionRid: ""
|
|
@@ -94,12 +100,14 @@ export function InvalidRequest(errorName) {
|
|
|
94
100
|
export const ApplyActionFailedError = {
|
|
95
101
|
errorCode: "INVALID_ARGUMENT",
|
|
96
102
|
errorName: "ApplyActionFailed",
|
|
103
|
+
errorDescription: "",
|
|
97
104
|
errorInstanceId,
|
|
98
105
|
parameters: {}
|
|
99
106
|
};
|
|
100
107
|
export const ExecuteQueryFailedError = {
|
|
101
108
|
errorCode: "CONFLICT",
|
|
102
109
|
errorName: "QueryEncounteredUserFacingError",
|
|
110
|
+
errorDescription: "The authored Query failed to execute because of a user induced error. The message argument is meant to be displayed to the user.",
|
|
103
111
|
errorInstanceId,
|
|
104
112
|
parameters: {
|
|
105
113
|
functionRid: "ri.function-registry.main.function.9b55870a-63c7-4d48-8f06-9627c0805968",
|
|
@@ -110,12 +118,14 @@ export const ExecuteQueryFailedError = {
|
|
|
110
118
|
export const InvalidContentTypeError = {
|
|
111
119
|
errorCode: "INVALID_ARGUMENT",
|
|
112
120
|
errorName: "InvalidContentType",
|
|
121
|
+
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.",
|
|
113
122
|
errorInstanceId,
|
|
114
123
|
parameters: {}
|
|
115
124
|
};
|
|
116
125
|
export const AttachmentSizeExceededLimitError = {
|
|
117
126
|
errorCode: "INVALID_ARGUMENT",
|
|
118
127
|
errorName: "AttachmentSizeExceededLimit",
|
|
128
|
+
errorDescription: "The file is too large to be uploaded as an attachment. The maximum attachment size is 200MB.",
|
|
119
129
|
errorInstanceId,
|
|
120
130
|
parameters: {
|
|
121
131
|
fileSizeBytes: "230000",
|
|
@@ -125,6 +135,7 @@ export const AttachmentSizeExceededLimitError = {
|
|
|
125
135
|
export const AttachmentNotFoundError = {
|
|
126
136
|
errorCode: "NOT_FOUND",
|
|
127
137
|
errorName: "AttachmentNotFound",
|
|
138
|
+
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.",
|
|
128
139
|
errorInstanceId,
|
|
129
140
|
parameters: {
|
|
130
141
|
attachmentRid: "ri.attachments.main.attachment.86016861-707f-4292-b258-6a7108915a80"
|
|
@@ -1 +1 @@
|
|
|
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/
|
|
1
|
+
{"version":3,"file":"errors.js","names":["errorInstanceId","objectTypeRid","ObjectTypeDoesNotExistError","objectType","errorCode","errorName","errorDescription","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 errorDescription:\n \"The requested object type is not found, or the client token does not have access to it.\",\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 errorDescription:\n \"The link type is not found, or the user does not have access to it.\",\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 errorDescription:\n \"The requested Ontology is not found, or the client token does not have access to it.\",\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 errorDescription:\n \"The requested object is not found, or the client token does not have access to it.\",\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 errorDescription:\n \"The query is not found, or the user does not have access to it.\",\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 errorDescription:\n \"The action is not found, or the user does not have access to it.\",\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 errorDescription: \"\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const ExecuteQueryFailedError: QueryEncounteredUserFacingError = {\n errorCode: \"CONFLICT\",\n errorName: \"QueryEncounteredUserFacingError\",\n errorDescription:\n \"The authored Query failed to execute because of a user induced error. The message argument is meant to be displayed to the user.\",\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 errorDescription:\n \"The Content-Type cannot be inferred from the request content and filename. Please check your request content and filename to ensure they are compatible.\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"AttachmentSizeExceededLimit\",\n errorDescription:\n \"The file is too large to be uploaded as an attachment. The maximum attachment size is 200MB.\",\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 errorDescription:\n \"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.\",\n errorInstanceId,\n parameters: {\n attachmentRid:\n \"ri.attachments.main.attachment.86016861-707f-4292-b258-6a7108915a80\",\n },\n};\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import { MediaSets } from "@osdk/foundry.mediasets";
|
|
17
18
|
import { MediaReferenceProperties } from "@osdk/foundry.ontologies";
|
|
18
19
|
import { handleOpenApiCall } from "../../handlers/util/handleOpenApiCall.js";
|
|
19
20
|
export const getMediaMetadata = handleOpenApiCall(MediaReferenceProperties.getMediaMetadata, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
|
|
20
21
|
export const getMediaContent = handleOpenApiCall(MediaReferenceProperties.getMediaContent, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
|
|
21
22
|
export const upload = handleOpenApiCall(MediaReferenceProperties.upload, ["ontologyApiName", "objectType", "propertyName"]);
|
|
22
|
-
export const uploadMedia = handleOpenApiCall(
|
|
23
|
+
export const uploadMedia = handleOpenApiCall(MediaSets.uploadMedia, []);
|
|
23
24
|
//# sourceMappingURL=MediaReferenceProperties.js.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
1
|
+
{"version":3,"file":"MediaReferenceProperties.js","names":["MediaSets","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 { MediaSets } from \"@osdk/foundry.mediasets\";\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 never,\n typeof MediaSets.uploadMedia\n> = handleOpenApiCall(\n MediaSets.uploadMedia,\n [],\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,QAAQ,yBAAyB;AACnD,SAASC,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;AAED,OAAO,MAAMC,WAGZ,GAAGJ,iBAAiB,CACnBF,SAAS,CAACM,WAAW,EACrB,EACF,CAAC","ignoreList":[]}
|
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
|
}
|
|
@@ -1762,7 +1773,7 @@ __export(Actions_exports, {
|
|
|
1762
1773
|
applyBatch: () => applyBatch2
|
|
1763
1774
|
});
|
|
1764
1775
|
|
|
1765
|
-
// ../../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
|
|
1766
1777
|
var Action_exports = {};
|
|
1767
1778
|
__export(Action_exports, {
|
|
1768
1779
|
apply: () => apply,
|
|
@@ -1863,7 +1874,7 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
1863
1874
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
1864
1875
|
}
|
|
1865
1876
|
|
|
1866
|
-
// ../../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
|
|
1867
1878
|
var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
|
|
1868
1879
|
function apply($ctx, ...args) {
|
|
1869
1880
|
return foundryPlatformFetch($ctx, _apply, ...args);
|
|
@@ -1877,7 +1888,7 @@ function applyBatch($ctx, ...args) {
|
|
|
1877
1888
|
return foundryPlatformFetch($ctx, _applyBatch, ...args);
|
|
1878
1889
|
}
|
|
1879
1890
|
|
|
1880
|
-
// ../../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
|
|
1881
1892
|
var ActionTypeV2_exports = {};
|
|
1882
1893
|
__export(ActionTypeV2_exports, {
|
|
1883
1894
|
get: () => get,
|
|
@@ -1897,7 +1908,7 @@ function getByRid($ctx, ...args) {
|
|
|
1897
1908
|
return foundryPlatformFetch($ctx, _getByRid, ...args);
|
|
1898
1909
|
}
|
|
1899
1910
|
|
|
1900
|
-
// ../../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
|
|
1901
1912
|
var Attachment_exports = {};
|
|
1902
1913
|
__export(Attachment_exports, {
|
|
1903
1914
|
get: () => get2,
|
|
@@ -1922,7 +1933,7 @@ function get2($ctx, ...args) {
|
|
|
1922
1933
|
return foundryPlatformFetch($ctx, _get2, ...args);
|
|
1923
1934
|
}
|
|
1924
1935
|
|
|
1925
|
-
// ../../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
|
|
1926
1937
|
var AttachmentPropertyV2_exports = {};
|
|
1927
1938
|
__export(AttachmentPropertyV2_exports, {
|
|
1928
1939
|
getAttachment: () => getAttachment,
|
|
@@ -1947,7 +1958,7 @@ function readAttachmentByRid($ctx, ...args) {
|
|
|
1947
1958
|
return foundryPlatformFetch($ctx, _readAttachmentByRid, ...args);
|
|
1948
1959
|
}
|
|
1949
1960
|
|
|
1950
|
-
// ../../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
|
|
1951
1962
|
var LinkedObjectV2_exports = {};
|
|
1952
1963
|
__export(LinkedObjectV2_exports, {
|
|
1953
1964
|
getLinkedObject: () => getLinkedObject,
|
|
@@ -1962,13 +1973,12 @@ function getLinkedObject($ctx, ...args) {
|
|
|
1962
1973
|
return foundryPlatformFetch($ctx, _getLinkedObject, ...args);
|
|
1963
1974
|
}
|
|
1964
1975
|
|
|
1965
|
-
// ../../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
|
|
1966
1977
|
var MediaReferenceProperty_exports = {};
|
|
1967
1978
|
__export(MediaReferenceProperty_exports, {
|
|
1968
1979
|
getMediaContent: () => getMediaContent,
|
|
1969
1980
|
getMediaMetadata: () => getMediaMetadata,
|
|
1970
|
-
upload: () => upload2
|
|
1971
|
-
uploadMedia: () => uploadMedia
|
|
1981
|
+
upload: () => upload2
|
|
1972
1982
|
});
|
|
1973
1983
|
var _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2, , "*/*"];
|
|
1974
1984
|
function getMediaContent($ctx, ...args) {
|
|
@@ -1982,12 +1992,8 @@ var _upload2 = [1, "/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload", 3, "*/
|
|
|
1982
1992
|
function upload2($ctx, ...args) {
|
|
1983
1993
|
return foundryPlatformFetch($ctx, _upload2, ...args);
|
|
1984
1994
|
}
|
|
1985
|
-
var _uploadMedia = [1, "/v2/ontologies/{0}/actions/{1}/media/upload", 3, "*/*"];
|
|
1986
|
-
function uploadMedia($ctx, ...args) {
|
|
1987
|
-
return foundryPlatformFetch($ctx, _uploadMedia, ...args);
|
|
1988
|
-
}
|
|
1989
1995
|
|
|
1990
|
-
// ../../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
|
|
1991
1997
|
var ObjectTypeV2_exports = {};
|
|
1992
1998
|
__export(ObjectTypeV2_exports, {
|
|
1993
1999
|
get: () => get3,
|
|
@@ -2017,7 +2023,7 @@ function getOutgoingLinkType($ctx, ...args) {
|
|
|
2017
2023
|
return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
|
|
2018
2024
|
}
|
|
2019
2025
|
|
|
2020
|
-
// ../../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
|
|
2021
2027
|
var OntologyInterface_exports = {};
|
|
2022
2028
|
__export(OntologyInterface_exports, {
|
|
2023
2029
|
aggregate: () => aggregate,
|
|
@@ -2062,7 +2068,7 @@ function listInterfaceLinkedObjects($ctx, ...args) {
|
|
|
2062
2068
|
return foundryPlatformFetch($ctx, _listInterfaceLinkedObjects, ...args);
|
|
2063
2069
|
}
|
|
2064
2070
|
|
|
2065
|
-
// ../../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
|
|
2066
2072
|
var OntologyObjectSet_exports = {};
|
|
2067
2073
|
__export(OntologyObjectSet_exports, {
|
|
2068
2074
|
aggregate: () => aggregate2,
|
|
@@ -2097,7 +2103,7 @@ function aggregate2($ctx, ...args) {
|
|
|
2097
2103
|
return foundryPlatformFetch($ctx, _aggregate2, ...args);
|
|
2098
2104
|
}
|
|
2099
2105
|
|
|
2100
|
-
// ../../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
|
|
2101
2107
|
var OntologyObjectV2_exports = {};
|
|
2102
2108
|
__export(OntologyObjectV2_exports, {
|
|
2103
2109
|
aggregate: () => aggregate3,
|
|
@@ -2127,7 +2133,7 @@ function aggregate3($ctx, ...args) {
|
|
|
2127
2133
|
return foundryPlatformFetch($ctx, _aggregate3, ...args);
|
|
2128
2134
|
}
|
|
2129
2135
|
|
|
2130
|
-
// ../../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
|
|
2131
2137
|
var OntologyTransaction_exports = {};
|
|
2132
2138
|
__export(OntologyTransaction_exports, {
|
|
2133
2139
|
postEdits: () => postEdits
|
|
@@ -2137,7 +2143,7 @@ function postEdits($ctx, ...args) {
|
|
|
2137
2143
|
return foundryPlatformFetch($ctx, _postEdits, ...args);
|
|
2138
2144
|
}
|
|
2139
2145
|
|
|
2140
|
-
// ../../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
|
|
2141
2147
|
var OntologyV2_exports = {};
|
|
2142
2148
|
__export(OntologyV2_exports, {
|
|
2143
2149
|
get: () => get7,
|
|
@@ -2162,7 +2168,7 @@ function loadMetadata($ctx, ...args) {
|
|
|
2162
2168
|
return foundryPlatformFetch($ctx, _loadMetadata, ...args);
|
|
2163
2169
|
}
|
|
2164
2170
|
|
|
2165
|
-
// ../../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
|
|
2166
2172
|
var Query_exports = {};
|
|
2167
2173
|
__export(Query_exports, {
|
|
2168
2174
|
execute: () => execute
|
|
@@ -2172,7 +2178,7 @@ function execute($ctx, ...args) {
|
|
|
2172
2178
|
return foundryPlatformFetch($ctx, _execute, ...args);
|
|
2173
2179
|
}
|
|
2174
2180
|
|
|
2175
|
-
// ../../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
|
|
2176
2182
|
var QueryType_exports = {};
|
|
2177
2183
|
__export(QueryType_exports, {
|
|
2178
2184
|
get: () => get8,
|
|
@@ -2187,7 +2193,7 @@ function get8($ctx, ...args) {
|
|
|
2187
2193
|
return foundryPlatformFetch($ctx, _get8, ...args);
|
|
2188
2194
|
}
|
|
2189
2195
|
|
|
2190
|
-
// ../../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
|
|
2191
2197
|
var TimeSeriesPropertyV2_exports = {};
|
|
2192
2198
|
__export(TimeSeriesPropertyV2_exports, {
|
|
2193
2199
|
getFirstPoint: () => getFirstPoint,
|
|
@@ -2207,7 +2213,7 @@ function streamPoints($ctx, ...args) {
|
|
|
2207
2213
|
return foundryPlatformFetch($ctx, _streamPoints, ...args);
|
|
2208
2214
|
}
|
|
2209
2215
|
|
|
2210
|
-
// ../../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
|
|
2211
2217
|
var TimeSeriesValueBankProperty_exports = {};
|
|
2212
2218
|
__export(TimeSeriesValueBankProperty_exports, {
|
|
2213
2219
|
getLatestValue: () => getLatestValue,
|
|
@@ -2269,13 +2275,80 @@ var MediaReferenceProperties_exports = {};
|
|
|
2269
2275
|
__export(MediaReferenceProperties_exports, {
|
|
2270
2276
|
getMediaContent: () => getMediaContent2,
|
|
2271
2277
|
getMediaMetadata: () => getMediaMetadata2,
|
|
2272
|
-
upload: () =>
|
|
2278
|
+
upload: () => upload5,
|
|
2273
2279
|
uploadMedia: () => uploadMedia2
|
|
2274
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
|
|
2275
2348
|
var getMediaMetadata2 = handleOpenApiCall(MediaReferenceProperty_exports.getMediaMetadata, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
|
|
2276
2349
|
var getMediaContent2 = handleOpenApiCall(MediaReferenceProperty_exports.getMediaContent, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
|
|
2277
|
-
var
|
|
2278
|
-
var uploadMedia2 = handleOpenApiCall(
|
|
2350
|
+
var upload5 = handleOpenApiCall(MediaReferenceProperty_exports.upload, ["ontologyApiName", "objectType", "propertyName"]);
|
|
2351
|
+
var uploadMedia2 = handleOpenApiCall(MediaSet_exports.uploadMedia, []);
|
|
2279
2352
|
|
|
2280
2353
|
// src/mock/OntologiesV2/ObjectTypesV2.ts
|
|
2281
2354
|
var ObjectTypesV2_exports = {};
|