@osdk/internal.foundry.ontologies 0.2.0-beta.9 → 0.2.1
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 +52 -0
- package/build/browser/public/Action.d.ts +5 -5
- package/build/browser/public/Action.d.ts.map +1 -1
- package/build/browser/public/Action.js +15 -15
- package/build/browser/public/Action.js.map +1 -1
- package/build/browser/public/ActionType.d.ts +2 -2
- package/build/browser/public/ActionType.d.ts.map +1 -1
- package/build/browser/public/ActionType.js +6 -6
- package/build/browser/public/ActionType.js.map +1 -1
- package/build/browser/public/Attachment.d.ts +3 -3
- package/build/browser/public/Attachment.d.ts.map +1 -1
- package/build/browser/public/Attachment.js +9 -9
- package/build/browser/public/Attachment.js.map +1 -1
- package/build/browser/public/ObjectType.d.ts +2 -2
- package/build/browser/public/ObjectType.d.ts.map +1 -1
- package/build/browser/public/ObjectType.js +6 -6
- package/build/browser/public/ObjectType.js.map +1 -1
- package/build/browser/public/Ontology.d.ts +2 -2
- package/build/browser/public/Ontology.d.ts.map +1 -1
- package/build/browser/public/Ontology.js +6 -6
- package/build/browser/public/Ontology.js.map +1 -1
- package/build/browser/public/OntologyObject.d.ts +4 -4
- package/build/browser/public/OntologyObject.d.ts.map +1 -1
- package/build/browser/public/OntologyObject.js +12 -12
- package/build/browser/public/OntologyObject.js.map +1 -1
- package/build/browser/public/Query.d.ts +1 -1
- package/build/browser/public/Query.d.ts.map +1 -1
- package/build/browser/public/Query.js +3 -3
- package/build/browser/public/Query.js.map +1 -1
- package/build/browser/public/QueryType.d.ts +2 -2
- package/build/browser/public/QueryType.d.ts.map +1 -1
- package/build/browser/public/QueryType.js +6 -6
- package/build/browser/public/QueryType.js.map +1 -1
- package/build/esm/public/Action.d.ts +5 -5
- package/build/esm/public/Action.d.ts.map +1 -1
- package/build/esm/public/Action.js +15 -15
- package/build/esm/public/Action.js.map +1 -1
- package/build/esm/public/ActionType.d.ts +2 -2
- package/build/esm/public/ActionType.d.ts.map +1 -1
- package/build/esm/public/ActionType.js +6 -6
- package/build/esm/public/ActionType.js.map +1 -1
- package/build/esm/public/Attachment.d.ts +3 -3
- package/build/esm/public/Attachment.d.ts.map +1 -1
- package/build/esm/public/Attachment.js +9 -9
- package/build/esm/public/Attachment.js.map +1 -1
- package/build/esm/public/ObjectType.d.ts +2 -2
- package/build/esm/public/ObjectType.d.ts.map +1 -1
- package/build/esm/public/ObjectType.js +6 -6
- package/build/esm/public/ObjectType.js.map +1 -1
- package/build/esm/public/Ontology.d.ts +2 -2
- package/build/esm/public/Ontology.d.ts.map +1 -1
- package/build/esm/public/Ontology.js +6 -6
- package/build/esm/public/Ontology.js.map +1 -1
- package/build/esm/public/OntologyObject.d.ts +4 -4
- package/build/esm/public/OntologyObject.d.ts.map +1 -1
- package/build/esm/public/OntologyObject.js +12 -12
- package/build/esm/public/OntologyObject.js.map +1 -1
- package/build/esm/public/Query.d.ts +1 -1
- package/build/esm/public/Query.d.ts.map +1 -1
- package/build/esm/public/Query.js +3 -3
- package/build/esm/public/Query.js.map +1 -1
- package/build/esm/public/QueryType.d.ts +2 -2
- package/build/esm/public/QueryType.d.ts.map +1 -1
- package/build/esm/public/QueryType.js +6 -6
- package/build/esm/public/QueryType.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OntologyObject.d.ts","sourceRoot":"","sources":["../../../src/public/OntologyObject.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAmB7B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"OntologyObject.d.ts","sourceRoot":"","sources":["../../../src/public/OntologyObject.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAA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K,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,KAAK,EAAE,KAAK,CAAC,uBAAuB;CACrC,GACA,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAEzC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _list = [0, "/v1/ontologies/{0}/objects/{1}", 2];
|
|
19
19
|
/**
|
|
20
20
|
* Lists the objects for the given Ontology and object type.
|
|
21
21
|
*
|
|
@@ -41,10 +41,10 @@ const _listObjects = [0, "/v1/ontologies/{0}/objects/{1}", 2];
|
|
|
41
41
|
* Required Scopes: [api:ontologies-read]
|
|
42
42
|
* URL: /v1/ontologies/{ontologyRid}/objects/{objectType}
|
|
43
43
|
*/
|
|
44
|
-
export function
|
|
45
|
-
return $foundryPlatformFetch($ctx,
|
|
44
|
+
export function list($ctx, ...args) {
|
|
45
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const _get = [0, "/v1/ontologies/{0}/objects/{1}/{2}", 2];
|
|
48
48
|
/**
|
|
49
49
|
* Gets a specific object with the given primary key.
|
|
50
50
|
*
|
|
@@ -55,8 +55,8 @@ const _getObject = [0, "/v1/ontologies/{0}/objects/{1}/{2}", 2];
|
|
|
55
55
|
* Required Scopes: [api:ontologies-read]
|
|
56
56
|
* URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/{primaryKey}
|
|
57
57
|
*/
|
|
58
|
-
export function
|
|
59
|
-
return $foundryPlatformFetch($ctx,
|
|
58
|
+
export function get($ctx, ...args) {
|
|
59
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
60
60
|
}
|
|
61
61
|
const _listLinkedObjects = [0, "/v1/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
|
|
62
62
|
/**
|
|
@@ -102,7 +102,7 @@ const _getLinkedObject = [0, "/v1/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}",
|
|
|
102
102
|
export function getLinkedObject($ctx, ...args) {
|
|
103
103
|
return $foundryPlatformFetch($ctx, _getLinkedObject, ...args);
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const _search = [1, "/v1/ontologies/{0}/objects/{1}/search", 1];
|
|
106
106
|
/**
|
|
107
107
|
* Search for objects in the specified ontology and object type. The request body is used
|
|
108
108
|
* to filter objects based on the specified query. The supported queries are:
|
|
@@ -131,10 +131,10 @@ const _searchObjects = [1, "/v1/ontologies/{0}/objects/{1}/search", 1];
|
|
|
131
131
|
* Required Scopes: [api:ontologies-read]
|
|
132
132
|
* URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/search
|
|
133
133
|
*/
|
|
134
|
-
export function
|
|
135
|
-
return $foundryPlatformFetch($ctx,
|
|
134
|
+
export function search($ctx, ...args) {
|
|
135
|
+
return $foundryPlatformFetch($ctx, _search, ...args);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const _aggregate = [1, "/v1/ontologies/{0}/objects/{1}/aggregate", 1];
|
|
138
138
|
/**
|
|
139
139
|
* Perform functions on object fields in the specified ontology and object type.
|
|
140
140
|
*
|
|
@@ -145,7 +145,7 @@ const _aggregateObjects = [1, "/v1/ontologies/{0}/objects/{1}/aggregate", 1];
|
|
|
145
145
|
* Required Scopes: [api:ontologies-read]
|
|
146
146
|
* URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/aggregate
|
|
147
147
|
*/
|
|
148
|
-
export function
|
|
149
|
-
return $foundryPlatformFetch($ctx,
|
|
148
|
+
export function aggregate($ctx, ...args) {
|
|
149
|
+
return $foundryPlatformFetch($ctx, _aggregate, ...args);
|
|
150
150
|
}
|
|
151
151
|
//# sourceMappingURL=OntologyObject.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OntologyObject.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listObjects","listObjects","$ctx","args","_getObject","getObject","_listLinkedObjects","listLinkedObjects","_getLinkedObject","getLinkedObject","_searchObjects","searchObjects","_aggregateObjects","aggregateObjects"],"sources":["OntologyObject.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _listObjects = [0, \"/v1/ontologies/{0}/objects/{1}\", 2];\n/**\n * Lists the objects for the given Ontology and object type.\n *\n * This endpoint supports filtering objects.\n * See the [Filtering Objects documentation](https://www.palantir.com/docs/foundry/api/ontology-resources/objects/object-basics/#filtering-objects) for details.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}\n */\nexport function listObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listObjects, ...args);\n}\nconst _getObject = [0, \"/v1/ontologies/{0}/objects/{1}/{2}\", 2];\n/**\n * Gets a specific object with the given primary key.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/{primaryKey}\n */\nexport function getObject($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getObject, ...args);\n}\nconst _listLinkedObjects = [0, \"/v1/ontologies/{0}/objects/{1}/{2}/links/{3}\", 2];\n/**\n * Lists the linked objects for a specific object and the given link type.\n *\n * This endpoint supports filtering objects.\n * See the [Filtering Objects documentation](https://www.palantir.com/docs/foundry/api/ontology-resources/objects/object-basics/#filtering-objects) for details.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/{primaryKey}/links/{linkType}\n */\nexport function listLinkedObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listLinkedObjects, ...args);\n}\nconst _getLinkedObject = [0, \"/v1/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}\", 2];\n/**\n * Get a specific linked object that originates from another object. If there is no link between the two objects,\n * LinkedObjectNotFound is thrown.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}\n */\nexport function getLinkedObject($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLinkedObject, ...args);\n}\nconst _searchObjects = [1, \"/v1/ontologies/{0}/objects/{1}/search\", 1];\n/**\n * Search for objects in the specified ontology and object type. The request body is used\n * to filter objects based on the specified query. The supported queries are:\n *\n * | Query type | Description | Supported Types |\n * |----------|-----------------------------------------------------------------------------------|---------------------------------|\n * | lt | The provided property is less than the provided value. | number, string, date, timestamp |\n * | gt | The provided property is greater than the provided value. | number, string, date, timestamp |\n * | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |\n * | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |\n * | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |\n * | isNull | The provided property is (or is not) null. | all |\n * | contains | The provided property contains the provided value. | array |\n * | not | The sub-query does not match. | N/A (applied on a query) |\n * | and | All the sub-queries match. | N/A (applied on queries) |\n * | or | At least one of the sub-queries match. | N/A (applied on queries) |\n * | prefix | The provided property starts with the provided value. | string |\n * | phrase | The provided property contains the provided value as a substring. | string |\n * | anyTerm | The provided property contains at least one of the terms separated by whitespace. | string |\n * | allTerms | The provided property contains all the terms separated by whitespace. | string | |\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/search\n */\nexport function searchObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _searchObjects, ...args);\n}\nconst _aggregateObjects = [1, \"/v1/ontologies/{0}/objects/{1}/aggregate\", 1];\n/**\n * Perform functions on object fields in the specified ontology and object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/aggregate\n */\nexport function aggregateObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregateObjects, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,YAAY,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACvC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,YAAY,EAAE,GAAGG,IAAI,CAAC;AAC7D;AACA,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,UAAU,EAAE,GAAGD,IAAI,CAAC;AAC3D;AACA,MAAMG,kBAAkB,GAAG,CAAC,CAAC,EAAE,8CAA8C,EAAE,CAAC,CAAC;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC7C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,kBAAkB,EAAE,GAAGH,IAAI,CAAC;AACnE;AACA,MAAMK,gBAAgB,GAAG,CAAC,CAAC,EAAE,kDAAkD,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,gBAAgB,EAAE,GAAGL,IAAI,CAAC;AACjE;AACA,MAAMO,cAAc,GAAG,CAAC,CAAC,EAAE,uCAAuC,EAAE,CAAC,CAAC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,cAAc,EAAE,GAAGP,IAAI,CAAC;AAC/D;AACA,MAAMS,iBAAiB,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,iBAAiB,EAAE,GAAGT,IAAI,CAAC;AAClE","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"OntologyObject.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get","_listLinkedObjects","listLinkedObjects","_getLinkedObject","getLinkedObject","_search","search","_aggregate","aggregate"],"sources":["OntologyObject.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v1/ontologies/{0}/objects/{1}\", 2];\n/**\n * Lists the objects for the given Ontology and object type.\n *\n * This endpoint supports filtering objects.\n * See the [Filtering Objects documentation](https://www.palantir.com/docs/foundry/api/ontology-resources/objects/object-basics/#filtering-objects) for details.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v1/ontologies/{0}/objects/{1}/{2}\", 2];\n/**\n * Gets a specific object with the given primary key.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/{primaryKey}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _listLinkedObjects = [0, \"/v1/ontologies/{0}/objects/{1}/{2}/links/{3}\", 2];\n/**\n * Lists the linked objects for a specific object and the given link type.\n *\n * This endpoint supports filtering objects.\n * See the [Filtering Objects documentation](https://www.palantir.com/docs/foundry/api/ontology-resources/objects/object-basics/#filtering-objects) for details.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/{primaryKey}/links/{linkType}\n */\nexport function listLinkedObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listLinkedObjects, ...args);\n}\nconst _getLinkedObject = [0, \"/v1/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}\", 2];\n/**\n * Get a specific linked object that originates from another object. If there is no link between the two objects,\n * LinkedObjectNotFound is thrown.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}\n */\nexport function getLinkedObject($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLinkedObject, ...args);\n}\nconst _search = [1, \"/v1/ontologies/{0}/objects/{1}/search\", 1];\n/**\n * Search for objects in the specified ontology and object type. The request body is used\n * to filter objects based on the specified query. The supported queries are:\n *\n * | Query type | Description | Supported Types |\n * |----------|-----------------------------------------------------------------------------------|---------------------------------|\n * | lt | The provided property is less than the provided value. | number, string, date, timestamp |\n * | gt | The provided property is greater than the provided value. | number, string, date, timestamp |\n * | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |\n * | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |\n * | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |\n * | isNull | The provided property is (or is not) null. | all |\n * | contains | The provided property contains the provided value. | array |\n * | not | The sub-query does not match. | N/A (applied on a query) |\n * | and | All the sub-queries match. | N/A (applied on queries) |\n * | or | At least one of the sub-queries match. | N/A (applied on queries) |\n * | prefix | The provided property starts with the provided value. | string |\n * | phrase | The provided property contains the provided value as a substring. | string |\n * | anyTerm | The provided property contains at least one of the terms separated by whitespace. | string |\n * | allTerms | The provided property contains all the terms separated by whitespace. | string | |\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/search\n */\nexport function search($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _search, ...args);\n}\nconst _aggregate = [1, \"/v1/ontologies/{0}/objects/{1}/aggregate\", 1];\n/**\n * Perform functions on object fields in the specified ontology and object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/objects/{objectType}/aggregate\n */\nexport function aggregate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregate, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,oCAAoC,EA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AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,UAAU,EAAE,GAAGT,IAAI,CAAC;AAC3D","ignoreList":[]}
|
|
@@ -10,7 +10,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
10
10
|
* Required Scopes: [api:ontologies-read]
|
|
11
11
|
* URL: /v1/ontologies/{ontologyRid}/queries/{queryApiName}/execute
|
|
12
12
|
*/
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function execute($ctx: $Client | $ClientContext, ...args: [
|
|
14
14
|
ontologyRid: _Core.OntologyRid,
|
|
15
15
|
queryApiName: _Core.QueryApiName,
|
|
16
16
|
$body: _Core.ExecuteQueryRequest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../src/public/Query.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAc7B;;;;;;;;;GASG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../src/public/Query.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAc7B;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,YAAY,EAAE,KAAK,CAAC,YAAY;IAChC,KAAK,EAAE,KAAK,CAAC,mBAAmB;CACjC,GACA,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAErC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _execute = [1, "/v1/ontologies/{0}/queries/{1}/execute", 1];
|
|
19
19
|
/**
|
|
20
20
|
* Executes a Query using the given parameters. Optional parameters do not need to be supplied.
|
|
21
21
|
* Third-party applications using this endpoint via OAuth2 must request the
|
|
@@ -26,7 +26,7 @@ const _executeQuery = [1, "/v1/ontologies/{0}/queries/{1}/execute", 1];
|
|
|
26
26
|
* Required Scopes: [api:ontologies-read]
|
|
27
27
|
* URL: /v1/ontologies/{ontologyRid}/queries/{queryApiName}/execute
|
|
28
28
|
*/
|
|
29
|
-
export function
|
|
30
|
-
return $foundryPlatformFetch($ctx,
|
|
29
|
+
export function execute($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _execute, ...args);
|
|
31
31
|
}
|
|
32
32
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
1
|
+
{"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args"],"sources":["Query.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _execute = [1, \"/v1/ontologies/{0}/queries/{1}/execute\", 1];\n/**\n * Executes a Query using the given parameters. Optional parameters do not need to be supplied.\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/ontologies/{ontologyRid}/queries/{queryApiName}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,QAAQ,GAAG,CAAC,CAAC,EAAE,wCAAwC,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,QAAQ,EAAE,GAAGG,IAAI,CAAC;AACzD","ignoreList":[]}
|
|
@@ -13,7 +13,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
13
13
|
* Required Scopes: [api:ontologies-read]
|
|
14
14
|
* URL: /v1/ontologies/{ontologyRid}/queryTypes
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
17
17
|
ontologyRid: _Core.OntologyRid,
|
|
18
18
|
$queryParams?: {
|
|
19
19
|
pageSize?: _Core.PageSize | undefined;
|
|
@@ -30,5 +30,5 @@ export declare function listQueryTypes($ctx: $Client | $ClientContext, ...args:
|
|
|
30
30
|
* Required Scopes: [api:ontologies-read]
|
|
31
31
|
* URL: /v1/ontologies/{ontologyRid}/queryTypes/{queryApiName}
|
|
32
32
|
*/
|
|
33
|
-
export declare function
|
|
33
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [ontologyRid: _Core.OntologyRid, queryApiName: _Core.QueryApiName]): Promise<_Core.QueryType>;
|
|
34
34
|
//# sourceMappingURL=QueryType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryType.d.ts","sourceRoot":"","sources":["../../../src/public/QueryType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAgB7B;;;;;;;;;;;;GAYG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"QueryType.d.ts","sourceRoot":"","sources":["../../../src/public/QueryType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAgB7B;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAE9B,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAEvC;AASD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,GAC1E,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAE1B"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _list = [0, "/v1/ontologies/{0}/queryTypes", 2];
|
|
19
19
|
/**
|
|
20
20
|
* Lists the query types for the given Ontology.
|
|
21
21
|
*
|
|
@@ -29,10 +29,10 @@ const _listQueryTypes = [0, "/v1/ontologies/{0}/queryTypes", 2];
|
|
|
29
29
|
* Required Scopes: [api:ontologies-read]
|
|
30
30
|
* URL: /v1/ontologies/{ontologyRid}/queryTypes
|
|
31
31
|
*/
|
|
32
|
-
export function
|
|
33
|
-
return $foundryPlatformFetch($ctx,
|
|
32
|
+
export function list($ctx, ...args) {
|
|
33
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const _get = [0, "/v1/ontologies/{0}/queryTypes/{1}"];
|
|
36
36
|
/**
|
|
37
37
|
* Gets a specific query type with the given API name.
|
|
38
38
|
*
|
|
@@ -43,7 +43,7 @@ const _getQueryType = [0, "/v1/ontologies/{0}/queryTypes/{1}"];
|
|
|
43
43
|
* Required Scopes: [api:ontologies-read]
|
|
44
44
|
* URL: /v1/ontologies/{ontologyRid}/queryTypes/{queryApiName}
|
|
45
45
|
*/
|
|
46
|
-
export function
|
|
47
|
-
return $foundryPlatformFetch($ctx,
|
|
46
|
+
export function get($ctx, ...args) {
|
|
47
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
48
48
|
}
|
|
49
49
|
//# sourceMappingURL=QueryType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
1
|
+
{"version":3,"file":"QueryType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get"],"sources":["QueryType.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v1/ontologies/{0}/queryTypes\", 2];\n/**\n * Lists the query types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/queryTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v1/ontologies/{0}/queryTypes/{1}\"];\n/**\n * Gets a specific query type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/queryTypes/{queryApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,mCAAmC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD","ignoreList":[]}
|
|
@@ -15,7 +15,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
15
15
|
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
16
16
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/apply
|
|
17
17
|
*/
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function apply($ctx: $Client | $ClientContext, ...args: [
|
|
19
19
|
ontologyRid: _Core.OntologyRid,
|
|
20
20
|
actionType: _Core.ActionTypeApiName,
|
|
21
21
|
$body: _Core.ApplyActionRequest
|
|
@@ -38,7 +38,7 @@ export declare function applyAction($ctx: $Client | $ClientContext, ...args: [
|
|
|
38
38
|
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
39
39
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyBatch
|
|
40
40
|
*/
|
|
41
|
-
export declare function
|
|
41
|
+
export declare function applyBatch($ctx: $Client | $ClientContext, ...args: [
|
|
42
42
|
ontologyRid: _Core.OntologyRid,
|
|
43
43
|
actionType: _Core.ActionTypeApiName,
|
|
44
44
|
$body: _Core.BatchApplyActionRequest
|
|
@@ -58,7 +58,7 @@ export declare function applyActionBatch($ctx: $Client | $ClientContext, ...args
|
|
|
58
58
|
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
59
59
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync
|
|
60
60
|
*/
|
|
61
|
-
export declare function
|
|
61
|
+
export declare function applyAsync($ctx: $Client | $ClientContext, ...args: [
|
|
62
62
|
ontologyRid: _Core.OntologyRid,
|
|
63
63
|
actionType: _Core.ActionTypeApiName,
|
|
64
64
|
$body: _Core.AsyncApplyActionRequest,
|
|
@@ -72,7 +72,7 @@ export declare function applyActionAsync($ctx: $Client | $ClientContext, ...args
|
|
|
72
72
|
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
73
73
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync/{actionRid}
|
|
74
74
|
*/
|
|
75
|
-
export declare function
|
|
75
|
+
export declare function getOperationStatus($ctx: $Client | $ClientContext, ...args: [
|
|
76
76
|
ontologyRid: _Core.OntologyRid,
|
|
77
77
|
actionType: _Core.ActionTypeApiName,
|
|
78
78
|
actionRid: _Core.ActionRid,
|
|
@@ -97,7 +97,7 @@ export declare function getAsyncActionStatus($ctx: $Client | $ClientContext, ...
|
|
|
97
97
|
* Required Scopes: [api:ontologies-read]
|
|
98
98
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/validate
|
|
99
99
|
*/
|
|
100
|
-
export declare function
|
|
100
|
+
export declare function validate($ctx: $Client | $ClientContext, ...args: [
|
|
101
101
|
ontologyRid: _Core.OntologyRid,
|
|
102
102
|
actionType: _Core.ActionTypeApiName,
|
|
103
103
|
$body: _Core.ValidateActionRequest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/public/Action.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAc7B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,
|
|
1
|
+
{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,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,SAAS,EAAE,KAAK,CAAC,SAAS;IAE1B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAErC;AAUD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,KAAK,EAAE,KAAK,CAAC,qBAAqB;CACnC,GACA,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAEvC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _apply = [1, "/v1/ontologies/{0}/actions/{1}/apply", 1];
|
|
19
19
|
/**
|
|
20
20
|
* Applies an action using the given parameters. Changes to the Ontology are eventually consistent and may take
|
|
21
21
|
* some time to be visible.
|
|
@@ -31,10 +31,10 @@ const _applyAction = [1, "/v1/ontologies/{0}/actions/{1}/apply", 1];
|
|
|
31
31
|
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
32
32
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/apply
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
35
|
-
return $foundryPlatformFetch($ctx,
|
|
34
|
+
export function apply($ctx, ...args) {
|
|
35
|
+
return $foundryPlatformFetch($ctx, _apply, ...args);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const _applyBatch = [1, "/v1/ontologies/{0}/actions/{1}/applyBatch", 1];
|
|
38
38
|
/**
|
|
39
39
|
* Applies multiple actions (of the same Action Type) using the given parameters.
|
|
40
40
|
* Changes to the Ontology are eventually consistent and may take some time to be visible.
|
|
@@ -53,10 +53,10 @@ const _applyActionBatch = [1, "/v1/ontologies/{0}/actions/{1}/applyBatch", 1];
|
|
|
53
53
|
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
54
54
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyBatch
|
|
55
55
|
*/
|
|
56
|
-
export function
|
|
57
|
-
return $foundryPlatformFetch($ctx,
|
|
56
|
+
export function applyBatch($ctx, ...args) {
|
|
57
|
+
return $foundryPlatformFetch($ctx, _applyBatch, ...args);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const _applyAsync = [1, "/v1/ontologies/{0}/actions/{1}/applyAsync", 3];
|
|
60
60
|
/**
|
|
61
61
|
* Applies an action asynchronously using the given parameters. Changes to the Ontology are eventually consistent
|
|
62
62
|
* and may take some time to be visible.
|
|
@@ -72,20 +72,20 @@ const _applyActionAsync = [1, "/v1/ontologies/{0}/actions/{1}/applyAsync", 3];
|
|
|
72
72
|
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
73
73
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync
|
|
74
74
|
*/
|
|
75
|
-
export function
|
|
76
|
-
return $foundryPlatformFetch($ctx,
|
|
75
|
+
export function applyAsync($ctx, ...args) {
|
|
76
|
+
return $foundryPlatformFetch($ctx, _applyAsync, ...args);
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const _getOperationStatus = [0, "/v1/ontologies/{0}/actions/{1}/applyAsync/{2}", 2];
|
|
79
79
|
/**
|
|
80
80
|
* @alpha
|
|
81
81
|
*
|
|
82
82
|
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
83
83
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync/{actionRid}
|
|
84
84
|
*/
|
|
85
|
-
export function
|
|
86
|
-
return $foundryPlatformFetch($ctx,
|
|
85
|
+
export function getOperationStatus($ctx, ...args) {
|
|
86
|
+
return $foundryPlatformFetch($ctx, _getOperationStatus, ...args);
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const _validate = [1, "/v1/ontologies/{0}/actions/{1}/validate", 1];
|
|
89
89
|
/**
|
|
90
90
|
* Validates if an action can be run with the given set of parameters.
|
|
91
91
|
* The response contains the evaluation of parameters and **submission criteria**
|
|
@@ -103,7 +103,7 @@ const _validateAction = [1, "/v1/ontologies/{0}/actions/{1}/validate", 1];
|
|
|
103
103
|
* Required Scopes: [api:ontologies-read]
|
|
104
104
|
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/validate
|
|
105
105
|
*/
|
|
106
|
-
export function
|
|
107
|
-
return $foundryPlatformFetch($ctx,
|
|
106
|
+
export function validate($ctx, ...args) {
|
|
107
|
+
return $foundryPlatformFetch($ctx, _validate, ...args);
|
|
108
108
|
}
|
|
109
109
|
//# sourceMappingURL=Action.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
1
|
+
{"version":3,"file":"Action.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_apply","apply","$ctx","args","_applyBatch","applyBatch","_applyAsync","applyAsync","_getOperationStatus","getOperationStatus","_validate","validate"],"sources":["Action.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _apply = [1, \"/v1/ontologies/{0}/actions/{1}/apply\", 1];\n/**\n * Applies an action using the given parameters. Changes to the Ontology are eventually consistent and may take\n * some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/apply\n */\nexport function apply($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _apply, ...args);\n}\nconst _applyBatch = [1, \"/v1/ontologies/{0}/actions/{1}/applyBatch\", 1];\n/**\n * Applies multiple actions (of the same Action Type) using the given parameters.\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not\n * call Functions may receive a higher limit.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) and\n * [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyBatch\n */\nexport function applyBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyBatch, ...args);\n}\nconst _applyAsync = [1, \"/v1/ontologies/{0}/actions/{1}/applyAsync\", 3];\n/**\n * Applies an action asynchronously using the given parameters. Changes to the Ontology are eventually consistent\n * and may take some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently\n * supported by this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync\n */\nexport function applyAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyAsync, ...args);\n}\nconst _getOperationStatus = [0, \"/v1/ontologies/{0}/actions/{1}/applyAsync/{2}\", 2];\n/**\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync/{actionRid}\n */\nexport function getOperationStatus($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOperationStatus, ...args);\n}\nconst _validate = [1, \"/v1/ontologies/{0}/actions/{1}/validate\", 1];\n/**\n * Validates if an action can be run with the given set of parameters.\n * The response contains the evaluation of parameters and **submission criteria**\n * that determine if the request is `VALID` or `INVALID`.\n * For performance reasons, validations will not consider existing objects or other data in Foundry.\n * For example, the uniqueness of a primary key or the existence of a user ID will not be checked.\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint. Unspecified parameters will be given a default value of `null`.\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/ontologies/{ontologyRid}/actions/{actionType}/validate\n */\nexport function validate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _validate, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,MAAM,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE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+13,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
13
13
|
* Required Scopes: [api:ontologies-read]
|
|
14
14
|
* URL: /v1/ontologies/{ontologyRid}/actionTypes
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
17
17
|
ontologyRid: _Core.OntologyRid,
|
|
18
18
|
$queryParams?: {
|
|
19
19
|
pageSize?: _Core.PageSize | undefined;
|
|
@@ -30,7 +30,7 @@ export declare function listActionTypes($ctx: $Client | $ClientContext, ...args:
|
|
|
30
30
|
* Required Scopes: [api:ontologies-read]
|
|
31
31
|
* URL: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}
|
|
32
32
|
*/
|
|
33
|
-
export declare function
|
|
33
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
34
34
|
ontologyRid: _Core.OntologyRid,
|
|
35
35
|
actionTypeApiName: _Core.ActionTypeApiName
|
|
36
36
|
]): Promise<_Core.ActionType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionType.d.ts","sourceRoot":"","sources":["../../../src/public/ActionType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAgB7B;;;;;;;;;;;;GAYG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"ActionType.d.ts","sourceRoot":"","sources":["../../../src/public/ActionType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAgB7B;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAE9B,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAExC;AASD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;CAC3C,GACA,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAE3B"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _list = [0, "/v1/ontologies/{0}/actionTypes", 2];
|
|
19
19
|
/**
|
|
20
20
|
* Lists the action types for the given Ontology.
|
|
21
21
|
*
|
|
@@ -29,10 +29,10 @@ const _listActionTypes = [0, "/v1/ontologies/{0}/actionTypes", 2];
|
|
|
29
29
|
* Required Scopes: [api:ontologies-read]
|
|
30
30
|
* URL: /v1/ontologies/{ontologyRid}/actionTypes
|
|
31
31
|
*/
|
|
32
|
-
export function
|
|
33
|
-
return $foundryPlatformFetch($ctx,
|
|
32
|
+
export function list($ctx, ...args) {
|
|
33
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const _get = [0, "/v1/ontologies/{0}/actionTypes/{1}"];
|
|
36
36
|
/**
|
|
37
37
|
* Gets a specific action type with the given API name.
|
|
38
38
|
*
|
|
@@ -43,7 +43,7 @@ const _getActionType = [0, "/v1/ontologies/{0}/actionTypes/{1}"];
|
|
|
43
43
|
* Required Scopes: [api:ontologies-read]
|
|
44
44
|
* URL: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}
|
|
45
45
|
*/
|
|
46
|
-
export function
|
|
47
|
-
return $foundryPlatformFetch($ctx,
|
|
46
|
+
export function get($ctx, ...args) {
|
|
47
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
48
48
|
}
|
|
49
49
|
//# sourceMappingURL=ActionType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
1
|
+
{"version":3,"file":"ActionType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get"],"sources":["ActionType.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v1/ontologies/{0}/actionTypes\", 2];\n/**\n * Lists the action types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/actionTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v1/ontologies/{0}/actionTypes/{1}\"];\n/**\n * Gets a specific action type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,oCAAoC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD","ignoreList":[]}
|
|
@@ -15,7 +15,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
15
15
|
* Required Scopes: [api:ontologies-write]
|
|
16
16
|
* URL: /v1/attachments/upload
|
|
17
17
|
*/
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function upload($ctx: $Client | $ClientContext, ...args: [
|
|
19
19
|
$body: Blob,
|
|
20
20
|
$queryParams: {
|
|
21
21
|
filename: _Core.Filename;
|
|
@@ -35,7 +35,7 @@ export declare function uploadAttachment($ctx: $Client | $ClientContext, ...args
|
|
|
35
35
|
* Required Scopes: [api:ontologies-read]
|
|
36
36
|
* URL: /v1/attachments/{attachmentRid}/content
|
|
37
37
|
*/
|
|
38
|
-
export declare function
|
|
38
|
+
export declare function read($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<Blob>;
|
|
39
39
|
/**
|
|
40
40
|
* Get the metadata of an attachment.
|
|
41
41
|
*
|
|
@@ -47,5 +47,5 @@ export declare function getAttachmentContent($ctx: $Client | $ClientContext, ...
|
|
|
47
47
|
* Required Scopes: [api:ontologies-read]
|
|
48
48
|
* URL: /v1/attachments/{attachmentRid}
|
|
49
49
|
*/
|
|
50
|
-
export declare function
|
|
50
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<_Core.Attachment>;
|
|
51
51
|
//# sourceMappingURL=Attachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/public/Attachment.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAc7B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/public/Attachment.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAc7B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,IAAI;IACX,YAAY,EAAE;QAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAA;KAAE;IAC1C,aAAa,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;KAAE;CACvD,GACA,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAQ3B;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAEf;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAC5C,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAE3B"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _upload = [1, "/v1/attachments/upload", 7, "*/*"];
|
|
19
19
|
/**
|
|
20
20
|
* Upload an attachment to use in an action. Any attachment which has not been linked to an object via
|
|
21
21
|
* an action within one hour after upload will be removed.
|
|
@@ -31,15 +31,15 @@ const _uploadAttachment = [1, "/v1/attachments/upload", 7, "*/*"];
|
|
|
31
31
|
* Required Scopes: [api:ontologies-write]
|
|
32
32
|
* URL: /v1/attachments/upload
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function upload($ctx, ...args) {
|
|
35
35
|
const headerParams = {
|
|
36
36
|
...args[2],
|
|
37
37
|
"Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
|
|
38
38
|
"Content-Length": args[0].size.toString()
|
|
39
39
|
};
|
|
40
|
-
return $foundryPlatformFetch($ctx,
|
|
40
|
+
return $foundryPlatformFetch($ctx, _upload, args[0], args[1], headerParams);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const _read = [0, "/v1/attachments/{0}/content",,, "*/*"];
|
|
43
43
|
/**
|
|
44
44
|
* Get the content of an attachment.
|
|
45
45
|
*
|
|
@@ -51,10 +51,10 @@ const _getAttachmentContent = [0, "/v1/attachments/{0}/content",,, "*/*"];
|
|
|
51
51
|
* Required Scopes: [api:ontologies-read]
|
|
52
52
|
* URL: /v1/attachments/{attachmentRid}/content
|
|
53
53
|
*/
|
|
54
|
-
export function
|
|
55
|
-
return $foundryPlatformFetch($ctx,
|
|
54
|
+
export function read($ctx, ...args) {
|
|
55
|
+
return $foundryPlatformFetch($ctx, _read, ...args);
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const _get = [0, "/v1/attachments/{0}"];
|
|
58
58
|
/**
|
|
59
59
|
* Get the metadata of an attachment.
|
|
60
60
|
*
|
|
@@ -66,7 +66,7 @@ const _getAttachment = [0, "/v1/attachments/{0}"];
|
|
|
66
66
|
* Required Scopes: [api:ontologies-read]
|
|
67
67
|
* URL: /v1/attachments/{attachmentRid}
|
|
68
68
|
*/
|
|
69
|
-
export function
|
|
70
|
-
return $foundryPlatformFetch($ctx,
|
|
69
|
+
export function get($ctx, ...args) {
|
|
70
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
71
71
|
}
|
|
72
72
|
//# sourceMappingURL=Attachment.js.map
|