@osdk/api 2.8.0-beta.2 → 2.8.0-beta.20
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 +44 -0
- package/build/browser/aggregate/StringFilter.js.map +1 -1
- package/build/browser/mapping/DataValueMapping.js.map +1 -1
- package/build/browser/ontology/QueryDefinition.js.map +1 -1
- package/build/browser/queries/Queries.js.map +1 -1
- package/build/cjs/{ObjectSet-CqVqDXKn.d.cts → ObjectSet-ChROetz0.d.cts} +14 -2
- package/build/cjs/index.d.cts +9 -5
- package/build/cjs/public/unstable.d.cts +2 -2
- package/build/esm/aggregate/StringFilter.js.map +1 -1
- package/build/esm/mapping/DataValueMapping.js.map +1 -1
- package/build/esm/ontology/QueryDefinition.js.map +1 -1
- package/build/esm/queries/Queries.js.map +1 -1
- package/build/types/aggregate/StringFilter.d.ts +9 -1
- package/build/types/aggregate/StringFilter.d.ts.map +1 -1
- package/build/types/mapping/DataValueMapping.d.ts +2 -2
- package/build/types/mapping/DataValueMapping.d.ts.map +1 -1
- package/build/types/ontology/QueryDefinition.d.ts +1 -1
- package/build/types/ontology/QueryDefinition.d.ts.map +1 -1
- package/build/types/queries/Queries.d.ts +2 -0
- package/build/types/queries/Queries.d.ts.map +1 -1
- package/package.json +1 -1
- package/build/browser/OsdkObjectFrom.test.js +0 -204
- package/build/browser/OsdkObjectFrom.test.js.map +0 -1
- package/build/browser/aggregate/AggregationsClause.test.js +0 -21
- package/build/browser/aggregate/AggregationsClause.test.js.map +0 -1
- package/build/browser/definitions/LinkDefinitions.test.js +0 -26
- package/build/browser/definitions/LinkDefinitions.test.js.map +0 -1
- package/build/browser/groupby/GroupByClause.test.js +0 -21
- package/build/browser/groupby/GroupByClause.test.js.map +0 -1
- package/build/browser/junk.test.js +0 -23
- package/build/browser/junk.test.js.map +0 -1
- package/build/browser/object/ObjectDefinitions.test.js +0 -28
- package/build/browser/object/ObjectDefinitions.test.js.map +0 -1
- package/build/browser/objectSet/ObjectSet.test.js +0 -736
- package/build/browser/objectSet/ObjectSet.test.js.map +0 -1
- package/build/browser/ontology/ObjectSpecifier.test.js +0 -53
- package/build/browser/ontology/ObjectSpecifier.test.js.map +0 -1
- package/build/browser/ontology/SimplePropertyDef.test.js +0 -48
- package/build/browser/ontology/SimplePropertyDef.test.js.map +0 -1
- package/build/esm/OsdkObjectFrom.test.js +0 -204
- package/build/esm/OsdkObjectFrom.test.js.map +0 -1
- package/build/esm/aggregate/AggregationsClause.test.js +0 -21
- package/build/esm/aggregate/AggregationsClause.test.js.map +0 -1
- package/build/esm/definitions/LinkDefinitions.test.js +0 -26
- package/build/esm/definitions/LinkDefinitions.test.js.map +0 -1
- package/build/esm/groupby/GroupByClause.test.js +0 -21
- package/build/esm/groupby/GroupByClause.test.js.map +0 -1
- package/build/esm/junk.test.js +0 -23
- package/build/esm/junk.test.js.map +0 -1
- package/build/esm/object/ObjectDefinitions.test.js +0 -28
- package/build/esm/object/ObjectDefinitions.test.js.map +0 -1
- package/build/esm/objectSet/ObjectSet.test.js +0 -736
- package/build/esm/objectSet/ObjectSet.test.js.map +0 -1
- package/build/esm/ontology/ObjectSpecifier.test.js +0 -53
- package/build/esm/ontology/ObjectSpecifier.test.js.map +0 -1
- package/build/esm/ontology/SimplePropertyDef.test.js +0 -48
- package/build/esm/ontology/SimplePropertyDef.test.js.map +0 -1
- package/build/types/OsdkObjectFrom.test.d.ts +0 -1
- package/build/types/OsdkObjectFrom.test.d.ts.map +0 -1
- package/build/types/aggregate/AggregationsClause.test.d.ts +0 -46
- package/build/types/aggregate/AggregationsClause.test.d.ts.map +0 -1
- package/build/types/definitions/LinkDefinitions.test.d.ts +0 -1
- package/build/types/definitions/LinkDefinitions.test.d.ts.map +0 -1
- package/build/types/groupby/GroupByClause.test.d.ts +0 -23
- package/build/types/groupby/GroupByClause.test.d.ts.map +0 -1
- package/build/types/junk.test.d.ts +0 -1
- package/build/types/junk.test.d.ts.map +0 -1
- package/build/types/object/ObjectDefinitions.test.d.ts +0 -1
- package/build/types/object/ObjectDefinitions.test.d.ts.map +0 -1
- package/build/types/objectSet/ObjectSet.test.d.ts +0 -2
- package/build/types/objectSet/ObjectSet.test.d.ts.map +0 -1
- package/build/types/ontology/ObjectSpecifier.test.d.ts +0 -1
- package/build/types/ontology/ObjectSpecifier.test.d.ts.map +0 -1
- package/build/types/ontology/SimplePropertyDef.test.d.ts +0 -1
- package/build/types/ontology/SimplePropertyDef.test.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AggregationsClause.test.js","names":["describe","it"],"sources":["AggregationsClause.test.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { describe, it } from \"vitest\";\nimport type { AggregatableKeys } from \"./AggregatableKeys.js\";\nimport type { UnorderedAggregationClause } from \"./AggregationsClause.js\";\n\nexport type huh = AggregatableKeys<\n {\n metadata: any;\n objects: {\n Todo: {\n type: \"object\";\n apiName: \"Todo\";\n primaryKeyApiName: \"id\";\n primaryKeyType: \"double\";\n links: {};\n properties: {\n text: {\n type: \"string\";\n };\n id: {\n type: \"double\";\n };\n };\n };\n };\n actions: {};\n queries: {};\n }[\"objects\"][\"Todo\"]\n>;\n\nexport type Q = UnorderedAggregationClause<\n {\n metadata: any;\n objects: {\n Todo: {\n type: \"object\";\n apiName: \"Todo\";\n primaryKeyApiName: \"id\";\n primaryKeyType: \"double\";\n links: {};\n properties: {\n text: {\n type: \"string\";\n };\n id: {\n type: \"double\";\n };\n };\n };\n };\n actions: {};\n queries: {};\n }[\"objects\"][\"Todo\"]\n>;\n\ndescribe(\"AggregationClause\", () => {\n it(\"works\", () => {});\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,EAAEC,EAAE,QAAQ,QAAQ;AAsDrCD,QAAQ,CAAC,mBAAmB,EAAE,MAAM;EAClCC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AACvB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { describe, expectTypeOf, it } from "vitest";
|
|
18
|
-
describe("DefaultToFalse", () => {
|
|
19
|
-
it("infers properly", () => {
|
|
20
|
-
expectTypeOf().toEqualTypeOf();
|
|
21
|
-
expectTypeOf().toEqualTypeOf();
|
|
22
|
-
expectTypeOf().toEqualTypeOf();
|
|
23
|
-
expectTypeOf().toEqualTypeOf();
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=LinkDefinitions.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDefinitions.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf"],"sources":["LinkDefinitions.test.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { describe, expectTypeOf, it } from \"vitest\";\nimport type { DefaultToFalse } from \"./LinkDefinitions.js\";\n\ndescribe(\"DefaultToFalse\", () => {\n it(\"infers properly\", () => {\n expectTypeOf<DefaultToFalse<true>>().toEqualTypeOf<true>();\n expectTypeOf<DefaultToFalse<false>>().toEqualTypeOf<false>();\n expectTypeOf<DefaultToFalse<undefined>>().toEqualTypeOf<false>();\n expectTypeOf<DefaultToFalse<boolean>>().toEqualTypeOf<false>();\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,EAAEC,YAAY,EAAEC,EAAE,QAAQ,QAAQ;AAGnDF,QAAQ,CAAC,gBAAgB,EAAE,MAAM;EAC/BE,EAAE,CAAC,iBAAiB,EAAE,MAAM;IAC1BD,YAAY,CAAuB,CAAC,CAACE,aAAa,CAAO,CAAC;IAC1DF,YAAY,CAAwB,CAAC,CAACE,aAAa,CAAQ,CAAC;IAC5DF,YAAY,CAA4B,CAAC,CAACE,aAAa,CAAQ,CAAC;IAChEF,YAAY,CAA0B,CAAC,CAACE,aAAa,CAAQ,CAAC;EAChE,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { describe, it } from "vitest";
|
|
18
|
-
describe("GroupByClause", () => {
|
|
19
|
-
it("works", () => {});
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=GroupByClause.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GroupByClause.test.js","names":["describe","it"],"sources":["GroupByClause.test.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { describe, it } from \"vitest\";\nimport type { GroupByClause } from \"./GroupByClause.js\";\n\nexport type F = GroupByClause<\n {\n metadata: any;\n objects: {\n Todo: {\n type: \"object\";\n apiName: \"Todo\";\n primaryKeyApiName: \"id\";\n primaryKeyType: \"double\";\n links: {};\n properties: {\n text: {\n type: \"string\";\n };\n id: {\n type: \"double\";\n };\n };\n };\n };\n actions: {};\n queries: {};\n }[\"objects\"][\"Todo\"]\n>;\n\ndescribe(\"GroupByClause\", () => {\n it(\"works\", () => {});\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,EAAEC,EAAE,QAAQ,QAAQ;AA4BrCD,QAAQ,CAAC,eAAe,EAAE,MAAM;EAC9BC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AACvB,CAAC,CAAC","ignoreList":[]}
|
package/build/esm/junk.test.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { describe, expect, it } from "vitest";
|
|
18
|
-
describe("anything", () => {
|
|
19
|
-
it("does", async () => {
|
|
20
|
-
expect(1).toBe(1);
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=junk.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"junk.test.js","names":["describe","expect","it","toBe"],"sources":["junk.test.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { describe, expect, it } from \"vitest\";\n\ndescribe(\"anything\", () => {\n it(\"does\", async () => {\n expect(1).toBe(1);\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAE7CF,QAAQ,CAAC,UAAU,EAAE,MAAM;EACzBE,EAAE,CAAC,MAAM,EAAE,YAAY;IACrBD,MAAM,CAAC,CAAC,CAAC,CAACE,IAAI,CAAC,CAAC,CAAC;EACnB,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { describe, expectTypeOf, it } from "vitest";
|
|
18
|
-
describe("Object definitions", () => {
|
|
19
|
-
it("correctly upgrades attachment types at conversion time", () => {
|
|
20
|
-
expectTypeOf().toEqualTypeOf();
|
|
21
|
-
expectTypeOf().toEqualTypeOf();
|
|
22
|
-
});
|
|
23
|
-
it("correctly maps struct types", () => {
|
|
24
|
-
expectTypeOf().toEqualTypeOf();
|
|
25
|
-
expectTypeOf().toEqualTypeOf();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=ObjectDefinitions.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectDefinitions.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf"],"sources":["ObjectDefinitions.test.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { describe, expectTypeOf, it } from \"vitest\";\nimport type { OsdkObjectPropertyType } from \"../Definitions.js\";\nimport type { Attachment } from \"./Attachment.js\";\n\ndescribe(\"Object definitions\", () => {\n it(\"correctly upgrades attachment types at conversion time\", () => {\n const attachment = {\n type: \"attachment\",\n } as const;\n\n const attachmentArray = {\n type: \"attachment\",\n multiplicity: true,\n } as const;\n\n expectTypeOf<OsdkObjectPropertyType<typeof attachment>>().toEqualTypeOf<\n Attachment\n >();\n\n expectTypeOf<OsdkObjectPropertyType<typeof attachmentArray>>()\n .toEqualTypeOf<\n Attachment[]\n >();\n });\n it(\"correctly maps struct types\", () => {\n const structType = {\n type: {\n integerField: \"integer\",\n floatField: \"float\",\n attachment: \"attachment\",\n },\n } as const;\n\n const structTypeArray = {\n type: {\n integerField: \"integer\",\n floatField: \"float\",\n attachment: \"attachment\",\n },\n multiplicity: true,\n } as const;\n expectTypeOf<OsdkObjectPropertyType<typeof structType>>().toEqualTypeOf<\n {\n readonly integerField: number;\n readonly floatField: number;\n readonly attachment: Attachment;\n }\n >();\n\n expectTypeOf<OsdkObjectPropertyType<typeof structTypeArray>>()\n .toEqualTypeOf<\n {\n readonly integerField: number;\n readonly floatField: number;\n readonly attachment: Attachment;\n }[]\n >();\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,EAAEC,YAAY,EAAEC,EAAE,QAAQ,QAAQ;AAInDF,QAAQ,CAAC,oBAAoB,EAAE,MAAM;EACnCE,EAAE,CAAC,wDAAwD,EAAE,MAAM;IAUjED,YAAY,CAA4C,CAAC,CAACE,aAAa,CAErE,CAAC;IAEHF,YAAY,CAAiD,CAAC,CAC3DE,aAAa,CAEZ,CAAC;EACP,CAAC,CAAC;EACFD,EAAE,CAAC,6BAA6B,EAAE,MAAM;IAiBtCD,YAAY,CAA4C,CAAC,CAACE,aAAa,CAMrE,CAAC;IAEHF,YAAY,CAAiD,CAAC,CAC3DE,aAAa,CAMZ,CAAC;EACP,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|