@osdk/internal.foundry.ontologies 0.2.0-beta.2 → 0.2.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/browser/{chunk-3GNJUZCN.js → chunk-YCOLCQXU.js} +8 -3
- package/build/browser/chunk-YCOLCQXU.js.map +1 -0
- package/build/browser/index.js +1 -1
- package/build/browser/public/Attachment.js +1 -1
- package/build/esm/{chunk-3GNJUZCN.js → chunk-YCOLCQXU.js} +8 -3
- package/build/esm/chunk-YCOLCQXU.js.map +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/public/Attachment.d.ts +3 -4
- package/build/esm/public/Attachment.d.ts.map +1 -1
- package/build/esm/public/Attachment.js +1 -1
- package/package.json +7 -7
- package/build/browser/chunk-3GNJUZCN.js.map +0 -1
- package/build/esm/chunk-3GNJUZCN.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @osdk/internal.foundry.ontologies
|
|
2
2
|
|
|
3
|
+
## 0.2.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5d6d5ab: Autofill Content-Length and Content-Type headers in API's that accept Blobs
|
|
8
|
+
- 5d6d5ab: SLS dependencies are optional
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [5d6d5ab]
|
|
13
|
+
- Updated dependencies [5d6d5ab]
|
|
14
|
+
- @osdk/internal.foundry.core@0.2.0-beta.3
|
|
15
|
+
- @osdk/shared.net@1.13.0-beta.0
|
|
16
|
+
|
|
3
17
|
## 0.2.0-beta.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -10,7 +10,12 @@ __export(Attachment_exports, {
|
|
|
10
10
|
});
|
|
11
11
|
var _uploadAttachment = [1, "/v1/attachments/upload", 7, "*/*"];
|
|
12
12
|
function uploadAttachment($ctx, ...args) {
|
|
13
|
-
|
|
13
|
+
const headerParams = {
|
|
14
|
+
...args[2],
|
|
15
|
+
"Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
|
|
16
|
+
"Content-Length": args[0].size.toString()
|
|
17
|
+
};
|
|
18
|
+
return foundryPlatformFetch($ctx, _uploadAttachment, args[0], args[1], headerParams);
|
|
14
19
|
}
|
|
15
20
|
var _getAttachmentContent = [0, "/v1/attachments/{0}/content", , , "*/*"];
|
|
16
21
|
function getAttachmentContent($ctx, ...args) {
|
|
@@ -22,5 +27,5 @@ function getAttachment($ctx, ...args) {
|
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
export { Attachment_exports, getAttachment, getAttachmentContent, uploadAttachment };
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-YCOLCQXU.js.map
|
|
31
|
+
//# sourceMappingURL=chunk-YCOLCQXU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/public/Attachment.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,kBAAA,GAAA,GAAA;AAAA,QAAA,CAAA,kBAAA,EAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,oBAAA,EAAA,MAAA,oBAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,CAAA,CAAA,CAAA;AAoBA,IAAM,iBAAoB,GAAA,CAAC,CAAG,EAAA,wBAAA,EAA0B,GAAG,KAAK,CAAA,CAAA;AAiBzD,SAAS,gBAAA,CAAiB,SAAS,IAAM,EAAA;AAC9C,EAAA,MAAM,YAAe,GAAA;AAAA,IACnB,GAAG,KAAK,CAAC,CAAA;AAAA,IACT,cAAA,EAAgB,KAAK,CAAC,CAAA,GAAI,cAAc,CAAK,IAAA,IAAA,CAAK,CAAC,CAAE,CAAA,IAAA;AAAA,IACrD,gBAAkB,EAAA,IAAA,CAAK,CAAC,CAAA,CAAE,KAAK,QAAS,EAAA;AAAA,GAC1C,CAAA;AACA,EAAO,OAAAA,oBAAA,CAAsB,MAAM,iBAAmB,EAAA,IAAA,CAAK,CAAC,CAAG,EAAA,IAAA,CAAK,CAAC,CAAA,EAAG,YAAY,CAAA,CAAA;AACtF,CAAA;AACA,IAAM,wBAAwB,CAAC,CAAA,EAAG,6BAA8B,MAAG,KAAK,CAAA,CAAA;AAajE,SAAS,oBAAA,CAAqB,SAAS,IAAM,EAAA;AAClD,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,qBAAuB,EAAA,GAAG,IAAI,CAAA,CAAA;AACnE,CAAA;AACA,IAAM,cAAA,GAAiB,CAAC,CAAA,EAAG,qBAAqB,CAAA,CAAA;AAazC,SAAS,aAAA,CAAc,SAAS,IAAM,EAAA;AAC3C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,cAAgB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC5D","file":"chunk-YCOLCQXU.js","sourcesContent":["/*\n * Copyright 2024 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 { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n\n//\n\nconst _uploadAttachment = [1, \"/v1/attachments/upload\", 7, \"*/*\"];\n\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v1/attachments/upload\n */\nexport function uploadAttachment($ctx, ...args) {\n const headerParams = {\n ...args[2],\n \"Content-Type\": args[2]?.[\"Content-Type\"] ?? args[0].type,\n \"Content-Length\": args[0].size.toString()\n };\n return $foundryPlatformFetch($ctx, _uploadAttachment, args[0], args[1], headerParams);\n}\nconst _getAttachmentContent = [0, \"/v1/attachments/{0}/content\",,, \"*/*\"];\n\n/**\n * Get the content of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/attachments/{attachmentRid}/content\n */\nexport function getAttachmentContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentContent, ...args);\n}\nconst _getAttachment = [0, \"/v1/attachments/{0}\"];\n\n/**\n * Get the metadata of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/attachments/{attachmentRid}\n */\nexport function getAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachment, ...args);\n}"]}
|
package/build/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { QueryType_exports as QueryTypes } from './chunk-Y7POOFVF.js';
|
|
2
2
|
export { Action_exports as Actions } from './chunk-MONAXU3N.js';
|
|
3
3
|
export { ActionType_exports as ActionTypes } from './chunk-5RUWELWF.js';
|
|
4
|
-
export { Attachment_exports as Attachments } from './chunk-
|
|
4
|
+
export { Attachment_exports as Attachments } from './chunk-YCOLCQXU.js';
|
|
5
5
|
export { ObjectType_exports as ObjectTypes } from './chunk-ATSSLGFA.js';
|
|
6
6
|
export { Ontology_exports as Ontologies } from './chunk-ABHCL2BI.js';
|
|
7
7
|
export { OntologyObject_exports as OntologyObjects } from './chunk-VBZZKGHE.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getAttachment, getAttachmentContent, uploadAttachment } from '../chunk-
|
|
1
|
+
export { getAttachment, getAttachmentContent, uploadAttachment } from '../chunk-YCOLCQXU.js';
|
|
2
2
|
import '../chunk-PZ5AY32C.js';
|
|
3
3
|
//# sourceMappingURL=Attachment.js.map
|
|
4
4
|
//# sourceMappingURL=Attachment.js.map
|
|
@@ -10,7 +10,12 @@ __export(Attachment_exports, {
|
|
|
10
10
|
});
|
|
11
11
|
var _uploadAttachment = [1, "/v1/attachments/upload", 7, "*/*"];
|
|
12
12
|
function uploadAttachment($ctx, ...args) {
|
|
13
|
-
|
|
13
|
+
const headerParams = {
|
|
14
|
+
...args[2],
|
|
15
|
+
"Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
|
|
16
|
+
"Content-Length": args[0].size.toString()
|
|
17
|
+
};
|
|
18
|
+
return foundryPlatformFetch($ctx, _uploadAttachment, args[0], args[1], headerParams);
|
|
14
19
|
}
|
|
15
20
|
var _getAttachmentContent = [0, "/v1/attachments/{0}/content", , , "*/*"];
|
|
16
21
|
function getAttachmentContent($ctx, ...args) {
|
|
@@ -22,5 +27,5 @@ function getAttachment($ctx, ...args) {
|
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
export { Attachment_exports, getAttachment, getAttachmentContent, uploadAttachment };
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-YCOLCQXU.js.map
|
|
31
|
+
//# sourceMappingURL=chunk-YCOLCQXU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/public/Attachment.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,kBAAA,GAAA,GAAA;AAAA,QAAA,CAAA,kBAAA,EAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,oBAAA,EAAA,MAAA,oBAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,CAAA,CAAA,CAAA;AAoBA,IAAM,iBAAoB,GAAA,CAAC,CAAG,EAAA,wBAAA,EAA0B,GAAG,KAAK,CAAA,CAAA;AAiBzD,SAAS,gBAAA,CAAiB,SAAS,IAAM,EAAA;AAC9C,EAAA,MAAM,YAAe,GAAA;AAAA,IACnB,GAAG,KAAK,CAAC,CAAA;AAAA,IACT,cAAA,EAAgB,KAAK,CAAC,CAAA,GAAI,cAAc,CAAK,IAAA,IAAA,CAAK,CAAC,CAAE,CAAA,IAAA;AAAA,IACrD,gBAAkB,EAAA,IAAA,CAAK,CAAC,CAAA,CAAE,KAAK,QAAS,EAAA;AAAA,GAC1C,CAAA;AACA,EAAO,OAAAA,oBAAA,CAAsB,MAAM,iBAAmB,EAAA,IAAA,CAAK,CAAC,CAAG,EAAA,IAAA,CAAK,CAAC,CAAA,EAAG,YAAY,CAAA,CAAA;AACtF,CAAA;AACA,IAAM,wBAAwB,CAAC,CAAA,EAAG,6BAA8B,MAAG,KAAK,CAAA,CAAA;AAajE,SAAS,oBAAA,CAAqB,SAAS,IAAM,EAAA;AAClD,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,qBAAuB,EAAA,GAAG,IAAI,CAAA,CAAA;AACnE,CAAA;AACA,IAAM,cAAA,GAAiB,CAAC,CAAA,EAAG,qBAAqB,CAAA,CAAA;AAazC,SAAS,aAAA,CAAc,SAAS,IAAM,EAAA;AAC3C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,cAAgB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC5D","file":"chunk-YCOLCQXU.js","sourcesContent":["/*\n * Copyright 2024 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 { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n\n//\n\nconst _uploadAttachment = [1, \"/v1/attachments/upload\", 7, \"*/*\"];\n\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v1/attachments/upload\n */\nexport function uploadAttachment($ctx, ...args) {\n const headerParams = {\n ...args[2],\n \"Content-Type\": args[2]?.[\"Content-Type\"] ?? args[0].type,\n \"Content-Length\": args[0].size.toString()\n };\n return $foundryPlatformFetch($ctx, _uploadAttachment, args[0], args[1], headerParams);\n}\nconst _getAttachmentContent = [0, \"/v1/attachments/{0}/content\",,, \"*/*\"];\n\n/**\n * Get the content of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/attachments/{attachmentRid}/content\n */\nexport function getAttachmentContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentContent, ...args);\n}\nconst _getAttachment = [0, \"/v1/attachments/{0}\"];\n\n/**\n * Get the metadata of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/attachments/{attachmentRid}\n */\nexport function getAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachment, ...args);\n}"]}
|
package/build/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { QueryType_exports as QueryTypes } from './chunk-Y7POOFVF.js';
|
|
2
2
|
export { Action_exports as Actions } from './chunk-MONAXU3N.js';
|
|
3
3
|
export { ActionType_exports as ActionTypes } from './chunk-5RUWELWF.js';
|
|
4
|
-
export { Attachment_exports as Attachments } from './chunk-
|
|
4
|
+
export { Attachment_exports as Attachments } from './chunk-YCOLCQXU.js';
|
|
5
5
|
export { ObjectType_exports as ObjectTypes } from './chunk-ATSSLGFA.js';
|
|
6
6
|
export { Ontology_exports as Ontologies } from './chunk-ABHCL2BI.js';
|
|
7
7
|
export { OntologyObject_exports as OntologyObjects } from './chunk-VBZZKGHE.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Attachment, AttachmentRid,
|
|
1
|
+
import type { Attachment, AttachmentRid, ContentType, Filename } from "@osdk/internal.foundry.core";
|
|
2
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
3
|
/**
|
|
4
4
|
* Upload an attachment to use in an action. Any attachment which has not been linked to an object via
|
|
@@ -20,9 +20,8 @@ export declare function uploadAttachment($ctx: $Client | $ClientContext, ...args
|
|
|
20
20
|
$queryParams: {
|
|
21
21
|
filename: Filename;
|
|
22
22
|
},
|
|
23
|
-
$headerParams
|
|
24
|
-
"Content-
|
|
25
|
-
"Content-Type": ContentType;
|
|
23
|
+
$headerParams?: {
|
|
24
|
+
"Content-Type"?: ContentType;
|
|
26
25
|
}
|
|
27
26
|
]): Promise<Attachment>;
|
|
28
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/public/Attachment.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/public/Attachment.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,WAAW,EACX,QAAQ,EACT,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAc7B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,IAAI;IACX,YAAY,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAA;KAAE;IACpC,aAAa,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,WAAW,CAAA;KAAE;CACjD,GACA,OAAO,CAAC,UAAU,CAAC,CAcrB;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC,CAEf;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC,GACtC,OAAO,CAAC,UAAU,CAAC,CAErB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getAttachment, getAttachmentContent, uploadAttachment } from '../chunk-
|
|
1
|
+
export { getAttachment, getAttachmentContent, uploadAttachment } from '../chunk-YCOLCQXU.js';
|
|
2
2
|
import '../chunk-PZ5AY32C.js';
|
|
3
3
|
//# sourceMappingURL=Attachment.js.map
|
|
4
4
|
//# sourceMappingURL=Attachment.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/internal.foundry.ontologies",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,11 +17,10 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@osdk/internal.foundry.core": "0.2.0-beta.
|
|
21
|
-
"@osdk/shared.net": "~1.12.0",
|
|
20
|
+
"@osdk/internal.foundry.core": "0.2.0-beta.3",
|
|
22
21
|
"@osdk/shared.client": "~0.0.0",
|
|
23
|
-
"@osdk/
|
|
24
|
-
"@osdk/shared.net
|
|
22
|
+
"@osdk/shared.net.platformapi": "~0.2.0",
|
|
23
|
+
"@osdk/shared.net": "~1.13.0-beta.0"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
26
|
"typescript": "^5.5.4",
|
|
@@ -47,8 +46,9 @@
|
|
|
47
46
|
"sls": {
|
|
48
47
|
"dependencies": {
|
|
49
48
|
"com.palantir.foundry.api:api-gateway": {
|
|
50
|
-
"minVersion": "1.
|
|
51
|
-
"maxVersion": "1.x.x"
|
|
49
|
+
"minVersion": "1.921.0",
|
|
50
|
+
"maxVersion": "1.x.x",
|
|
51
|
+
"optional": true
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/Attachment.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,kBAAA,GAAA,GAAA;AAAA,QAAA,CAAA,kBAAA,EAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,oBAAA,EAAA,MAAA,oBAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,CAAA,CAAA,CAAA;AAoBA,IAAM,iBAAoB,GAAA,CAAC,CAAG,EAAA,wBAAA,EAA0B,GAAG,KAAK,CAAA,CAAA;AAiBzD,SAAS,gBAAA,CAAiB,SAAS,IAAM,EAAA;AAC9C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,iBAAmB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC/D,CAAA;AACA,IAAM,wBAAwB,CAAC,CAAA,EAAG,6BAA8B,MAAG,KAAK,CAAA,CAAA;AAajE,SAAS,oBAAA,CAAqB,SAAS,IAAM,EAAA;AAClD,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,qBAAuB,EAAA,GAAG,IAAI,CAAA,CAAA;AACnE,CAAA;AACA,IAAM,cAAA,GAAiB,CAAC,CAAA,EAAG,qBAAqB,CAAA,CAAA;AAazC,SAAS,aAAA,CAAc,SAAS,IAAM,EAAA;AAC3C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,cAAgB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC5D","file":"chunk-3GNJUZCN.js","sourcesContent":["/*\n * Copyright 2024 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 { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n\n//\n\nconst _uploadAttachment = [1, \"/v1/attachments/upload\", 7, \"*/*\"];\n\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v1/attachments/upload\n */\nexport function uploadAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _uploadAttachment, ...args);\n}\nconst _getAttachmentContent = [0, \"/v1/attachments/{0}/content\",,, \"*/*\"];\n\n/**\n * Get the content of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/attachments/{attachmentRid}/content\n */\nexport function getAttachmentContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentContent, ...args);\n}\nconst _getAttachment = [0, \"/v1/attachments/{0}\"];\n\n/**\n * Get the metadata of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/attachments/{attachmentRid}\n */\nexport function getAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachment, ...args);\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/Attachment.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,kBAAA,GAAA,GAAA;AAAA,QAAA,CAAA,kBAAA,EAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,oBAAA,EAAA,MAAA,oBAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,CAAA,CAAA,CAAA;AAoBA,IAAM,iBAAoB,GAAA,CAAC,CAAG,EAAA,wBAAA,EAA0B,GAAG,KAAK,CAAA,CAAA;AAiBzD,SAAS,gBAAA,CAAiB,SAAS,IAAM,EAAA;AAC9C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,iBAAmB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC/D,CAAA;AACA,IAAM,wBAAwB,CAAC,CAAA,EAAG,6BAA8B,MAAG,KAAK,CAAA,CAAA;AAajE,SAAS,oBAAA,CAAqB,SAAS,IAAM,EAAA;AAClD,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,qBAAuB,EAAA,GAAG,IAAI,CAAA,CAAA;AACnE,CAAA;AACA,IAAM,cAAA,GAAiB,CAAC,CAAA,EAAG,qBAAqB,CAAA,CAAA;AAazC,SAAS,aAAA,CAAc,SAAS,IAAM,EAAA;AAC3C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,cAAgB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC5D","file":"chunk-3GNJUZCN.js","sourcesContent":["/*\n * Copyright 2024 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 { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n\n//\n\nconst _uploadAttachment = [1, \"/v1/attachments/upload\", 7, \"*/*\"];\n\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v1/attachments/upload\n */\nexport function uploadAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _uploadAttachment, ...args);\n}\nconst _getAttachmentContent = [0, \"/v1/attachments/{0}/content\",,, \"*/*\"];\n\n/**\n * Get the content of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/attachments/{attachmentRid}/content\n */\nexport function getAttachmentContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentContent, ...args);\n}\nconst _getAttachment = [0, \"/v1/attachments/{0}\"];\n\n/**\n * Get the metadata of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/attachments/{attachmentRid}\n */\nexport function getAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachment, ...args);\n}"]}
|