@osdk/api 2.1.0-beta.1 → 2.1.0-beta.10
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 +53 -0
- package/build/browser/OsdkObjectFrom.d.ts +3 -4
- package/build/browser/OsdkObjectFrom.d.ts.map +1 -1
- package/build/browser/OsdkObjectFrom.test.js +15 -13
- package/build/browser/OsdkObjectFrom.test.js.map +1 -1
- package/build/browser/actions/Actions.d.ts +2 -2
- package/build/browser/actions/Actions.d.ts.map +1 -1
- package/build/browser/aggregate/ArrayFilter.d.ts +14 -0
- package/build/browser/aggregate/ArrayFilter.d.ts.map +1 -0
- package/build/browser/{objectSet/EXPERIMENTAL_ObjectSetListener.js → aggregate/ArrayFilter.js} +1 -1
- package/build/browser/aggregate/ArrayFilter.js.map +1 -0
- package/build/browser/aggregate/BaseFilter.d.ts +19 -0
- package/build/browser/aggregate/BaseFilter.d.ts.map +1 -0
- package/build/{esm/objectSet/EXPERIMENTAL_ObjectSetListener.js → browser/aggregate/BaseFilter.js} +1 -1
- package/build/browser/aggregate/BaseFilter.js.map +1 -0
- package/build/browser/aggregate/BooleanFilter.d.ts +17 -0
- package/build/browser/aggregate/BooleanFilter.d.ts.map +1 -0
- package/build/browser/aggregate/BooleanFilter.js +19 -0
- package/build/browser/aggregate/BooleanFilter.js.map +1 -0
- package/build/browser/aggregate/DatetimeFilter.d.ts +28 -0
- package/build/browser/aggregate/DatetimeFilter.d.ts.map +1 -0
- package/build/browser/aggregate/DatetimeFilter.js +19 -0
- package/build/browser/aggregate/DatetimeFilter.js.map +1 -0
- package/build/browser/aggregate/GeoFilter.d.ts +40 -0
- package/build/browser/aggregate/GeoFilter.d.ts.map +1 -0
- package/build/browser/aggregate/GeoFilter.js +17 -0
- package/build/browser/aggregate/GeoFilter.js.map +1 -0
- package/build/browser/aggregate/Just.d.ts +9 -0
- package/build/browser/aggregate/Just.d.ts.map +1 -0
- package/build/browser/aggregate/Just.js +17 -0
- package/build/browser/aggregate/Just.js.map +1 -0
- package/build/browser/aggregate/NumberFilter.d.ts +29 -0
- package/build/browser/aggregate/NumberFilter.d.ts.map +1 -0
- package/build/browser/aggregate/NumberFilter.js +19 -0
- package/build/browser/aggregate/NumberFilter.js.map +1 -0
- package/build/browser/aggregate/StringFilter.d.ts +30 -0
- package/build/browser/aggregate/StringFilter.d.ts.map +1 -0
- package/build/browser/aggregate/StringFilter.js +19 -0
- package/build/browser/aggregate/StringFilter.js.map +1 -0
- package/build/browser/aggregate/WhereClause.d.ts +13 -15
- package/build/browser/aggregate/WhereClause.d.ts.map +1 -1
- package/build/browser/definitions/LinkDefinitions.d.ts +4 -4
- package/build/browser/definitions/LinkDefinitions.d.ts.map +1 -1
- package/build/browser/experimental/Experiment.d.ts +8 -0
- package/build/browser/experimental/Experiment.d.ts.map +1 -0
- package/build/browser/experimental/Experiment.js +17 -0
- package/build/browser/experimental/Experiment.js.map +1 -0
- package/build/browser/experimental/getBulkLinks.d.ts +10 -0
- package/build/browser/experimental/getBulkLinks.d.ts.map +1 -0
- package/build/browser/experimental/getBulkLinks.js +21 -0
- package/build/browser/experimental/getBulkLinks.js.map +1 -0
- package/build/browser/experimental/preexistingObjectSet.d.ts +10 -0
- package/build/browser/experimental/preexistingObjectSet.d.ts.map +1 -0
- package/build/browser/experimental/preexistingObjectSet.js +21 -0
- package/build/browser/experimental/preexistingObjectSet.js.map +1 -0
- package/build/browser/experimental/subscribe.d.ts +12 -0
- package/build/browser/experimental/subscribe.d.ts.map +1 -0
- package/build/browser/experimental/subscribe.js +21 -0
- package/build/browser/experimental/subscribe.js.map +1 -0
- package/build/browser/index.d.ts +2 -0
- package/build/browser/index.d.ts.map +1 -1
- package/build/browser/object/FetchPageArgs.d.ts +3 -11
- package/build/browser/object/FetchPageArgs.d.ts.map +1 -1
- package/build/browser/objectSet/BaseObjectSet.d.ts +3 -3
- package/build/browser/objectSet/BaseObjectSet.d.ts.map +1 -1
- package/build/browser/objectSet/BulkLinkResult.d.ts +8 -0
- package/build/browser/objectSet/BulkLinkResult.d.ts.map +1 -0
- package/build/browser/objectSet/BulkLinkResult.js +17 -0
- package/build/browser/objectSet/BulkLinkResult.js.map +1 -0
- package/build/browser/objectSet/ObjectSet.d.ts +8 -9
- package/build/browser/objectSet/ObjectSet.d.ts.map +1 -1
- package/build/browser/objectSet/ObjectSetListener.d.ts +36 -0
- package/build/browser/objectSet/ObjectSetListener.d.ts.map +1 -0
- package/build/browser/objectSet/ObjectSetListener.js +17 -0
- package/build/browser/objectSet/ObjectSetListener.js.map +1 -0
- package/build/browser/public/unstable.d.ts +5 -4
- package/build/browser/public/unstable.d.ts.map +1 -1
- package/build/browser/public/unstable.js +3 -3
- package/build/browser/public/unstable.js.map +1 -1
- package/build/browser/queries/Queries.d.ts +1 -2
- package/build/browser/queries/Queries.d.ts.map +1 -1
- package/build/esm/OsdkObjectFrom.d.ts +3 -4
- package/build/esm/OsdkObjectFrom.d.ts.map +1 -1
- package/build/esm/OsdkObjectFrom.test.js +15 -13
- package/build/esm/OsdkObjectFrom.test.js.map +1 -1
- package/build/esm/actions/Actions.d.ts +2 -2
- package/build/esm/actions/Actions.d.ts.map +1 -1
- package/build/esm/aggregate/ArrayFilter.d.ts +14 -0
- package/build/esm/aggregate/ArrayFilter.d.ts.map +1 -0
- package/build/esm/aggregate/ArrayFilter.js +17 -0
- package/build/esm/aggregate/ArrayFilter.js.map +1 -0
- package/build/esm/aggregate/BaseFilter.d.ts +19 -0
- package/build/esm/aggregate/BaseFilter.d.ts.map +1 -0
- package/build/esm/aggregate/BaseFilter.js +17 -0
- package/build/esm/aggregate/BaseFilter.js.map +1 -0
- package/build/esm/aggregate/BooleanFilter.d.ts +17 -0
- package/build/esm/aggregate/BooleanFilter.d.ts.map +1 -0
- package/build/esm/aggregate/BooleanFilter.js +19 -0
- package/build/esm/aggregate/BooleanFilter.js.map +1 -0
- package/build/esm/aggregate/DatetimeFilter.d.ts +28 -0
- package/build/esm/aggregate/DatetimeFilter.d.ts.map +1 -0
- package/build/esm/aggregate/DatetimeFilter.js +19 -0
- package/build/esm/aggregate/DatetimeFilter.js.map +1 -0
- package/build/esm/aggregate/GeoFilter.d.ts +40 -0
- package/build/esm/aggregate/GeoFilter.d.ts.map +1 -0
- package/build/esm/aggregate/GeoFilter.js +17 -0
- package/build/esm/aggregate/GeoFilter.js.map +1 -0
- package/build/esm/aggregate/Just.d.ts +9 -0
- package/build/esm/aggregate/Just.d.ts.map +1 -0
- package/build/esm/aggregate/Just.js +17 -0
- package/build/esm/aggregate/Just.js.map +1 -0
- package/build/esm/aggregate/NumberFilter.d.ts +29 -0
- package/build/esm/aggregate/NumberFilter.d.ts.map +1 -0
- package/build/esm/aggregate/NumberFilter.js +19 -0
- package/build/esm/aggregate/NumberFilter.js.map +1 -0
- package/build/esm/aggregate/StringFilter.d.ts +30 -0
- package/build/esm/aggregate/StringFilter.d.ts.map +1 -0
- package/build/esm/aggregate/StringFilter.js +19 -0
- package/build/esm/aggregate/StringFilter.js.map +1 -0
- package/build/esm/aggregate/WhereClause.d.ts +13 -15
- package/build/esm/aggregate/WhereClause.d.ts.map +1 -1
- package/build/esm/definitions/LinkDefinitions.d.ts +4 -4
- package/build/esm/definitions/LinkDefinitions.d.ts.map +1 -1
- package/build/esm/experimental/Experiment.d.ts +8 -0
- package/build/esm/experimental/Experiment.d.ts.map +1 -0
- package/build/esm/experimental/Experiment.js +17 -0
- package/build/esm/experimental/Experiment.js.map +1 -0
- package/build/esm/experimental/getBulkLinks.d.ts +10 -0
- package/build/esm/experimental/getBulkLinks.d.ts.map +1 -0
- package/build/esm/experimental/getBulkLinks.js +21 -0
- package/build/esm/experimental/getBulkLinks.js.map +1 -0
- package/build/esm/experimental/preexistingObjectSet.d.ts +10 -0
- package/build/esm/experimental/preexistingObjectSet.d.ts.map +1 -0
- package/build/esm/experimental/preexistingObjectSet.js +21 -0
- package/build/esm/experimental/preexistingObjectSet.js.map +1 -0
- package/build/esm/experimental/subscribe.d.ts +12 -0
- package/build/esm/experimental/subscribe.d.ts.map +1 -0
- package/build/esm/experimental/subscribe.js +21 -0
- package/build/esm/experimental/subscribe.js.map +1 -0
- package/build/esm/index.d.ts +2 -0
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/object/FetchPageArgs.d.ts +3 -11
- package/build/esm/object/FetchPageArgs.d.ts.map +1 -1
- package/build/esm/objectSet/BaseObjectSet.d.ts +3 -3
- package/build/esm/objectSet/BaseObjectSet.d.ts.map +1 -1
- package/build/esm/objectSet/BulkLinkResult.d.ts +8 -0
- package/build/esm/objectSet/BulkLinkResult.d.ts.map +1 -0
- package/build/esm/objectSet/BulkLinkResult.js +17 -0
- package/build/esm/objectSet/BulkLinkResult.js.map +1 -0
- package/build/esm/objectSet/ObjectSet.d.ts +8 -9
- package/build/esm/objectSet/ObjectSet.d.ts.map +1 -1
- package/build/esm/objectSet/ObjectSetListener.d.ts +36 -0
- package/build/esm/objectSet/ObjectSetListener.d.ts.map +1 -0
- package/build/esm/objectSet/ObjectSetListener.js +17 -0
- package/build/esm/objectSet/ObjectSetListener.js.map +1 -0
- package/build/esm/public/unstable.d.ts +5 -4
- package/build/esm/public/unstable.d.ts.map +1 -1
- package/build/esm/public/unstable.js +3 -3
- package/build/esm/public/unstable.js.map +1 -1
- package/build/esm/queries/Queries.d.ts +1 -2
- package/build/esm/queries/Queries.d.ts.map +1 -1
- package/package.json +8 -6
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +0 -23
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +0 -1
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +0 -1
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +0 -23
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +0 -1
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
|
|
2
|
+
import type { Osdk } from "../OsdkObjectFrom.js";
|
|
3
|
+
export interface ObjectSetListener<O extends ObjectOrInterfaceDefinition, P extends PropertyKeys<O> = PropertyKeys<O>> {
|
|
4
|
+
/**
|
|
5
|
+
* Specific objects have changed and can be immediately updated
|
|
6
|
+
*/
|
|
7
|
+
onChange?: (objectUpdate: ObjectUpdate<O, P>) => void;
|
|
8
|
+
/**
|
|
9
|
+
* The subscription has been successfully established and updates can be expected to be received.
|
|
10
|
+
*/
|
|
11
|
+
onSuccessfulSubscription?: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* The ObjectSet has become outdated and should be re-fetched in its entirety.
|
|
14
|
+
* This is also sent when the subscription is first initialized.
|
|
15
|
+
*/
|
|
16
|
+
onOutOfDate?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* There was a fatal error with the subscription process. The subscription will close or will not be established.
|
|
19
|
+
*/
|
|
20
|
+
onError?: (errors: Array<any>) => void;
|
|
21
|
+
}
|
|
22
|
+
type ObjectUpdate<O extends ObjectOrInterfaceDefinition, P extends PropertyKeys<O>> = {
|
|
23
|
+
object: Osdk.Instance<O, never, P>;
|
|
24
|
+
state: "ADDED_OR_UPDATED" | "REMOVED";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Options for subscribing to an ObjectSet.
|
|
28
|
+
*
|
|
29
|
+
* properties - The properties to request a subscription for. Requesting specific properties limits the possible properties
|
|
30
|
+
* that can be returned from the subscription. If not provided, all properties will be requested and potentially be returned on updates.
|
|
31
|
+
*/
|
|
32
|
+
export interface ObjectSetListenerOptions<O extends ObjectOrInterfaceDefinition, P extends PropertyKeys<O> = PropertyKeys<O>> {
|
|
33
|
+
properties?: Array<P>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=ObjectSetListener.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectSetListener.d.ts","sourceRoot":"","sources":["../../../src/objectSet/ObjectSetListener.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,2BAA2B,EAC3B,YAAY,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjD,MAAM,WAAW,iBAAiB,CAChC,CAAC,SAAS,2BAA2B,EACrC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC;IAE3C;;OAEG;IACH,QAAQ,CAAC,EAAE,CACT,YAAY,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,KAC7B,IAAI,CAAC;IAEV;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;CACxC;AAED,KAAK,YAAY,CACf,CAAC,SAAS,2BAA2B,EACrC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,IACvB;IACF,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACnC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB,CACvC,CAAC,SAAS,2BAA2B,EACrC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC;IAE3C,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACvB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ObjectSetListener.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectSetListener.js","names":[],"sources":["ObjectSetListener.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export type { Experiment, ExperimentFns } from "../experimental/Experiment.js";
|
|
2
|
+
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
|
|
3
|
+
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__preexistingObjectSet } from "../experimental/preexistingObjectSet.js";
|
|
4
|
+
export { __EXPERIMENTAL__NOT_SUPPORTED_YET_subscribe } from "../experimental/subscribe.js";
|
|
5
|
+
export type { EXPERIMENTAL_BulkLinkResult } from "../objectSet/BulkLinkResult.js";
|
|
5
6
|
export type { MinimalObjectSet } from "../objectSet/ObjectSet.js";
|
|
6
7
|
//# sourceMappingURL=unstable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unstable.d.ts","sourceRoot":"","sources":["../../../src/public/unstable.ts"],"names":[],"mappings":"AAgBA,
|
|
1
|
+
{"version":3,"file":"unstable.d.ts","sourceRoot":"","sources":["../../../src/public/unstable.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAE,+CAA+C,EAAE,MAAM,iCAAiC,CAAC;AAClG,OAAO,EAAE,uDAAuD,EAAE,MAAM,yCAAyC,CAAC;AAClH,OAAO,EAAE,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AAE3F,YAAY,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAClF,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
|
|
17
|
+
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__preexistingObjectSet } from "../experimental/preexistingObjectSet.js";
|
|
18
|
+
export { __EXPERIMENTAL__NOT_SUPPORTED_YET_subscribe } from "../experimental/subscribe.js";
|
|
19
19
|
//# sourceMappingURL=unstable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unstable.js","names":["
|
|
1
|
+
{"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__preexistingObjectSet","__EXPERIMENTAL__NOT_SUPPORTED_YET_subscribe"],"sources":["unstable.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 */\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from \"../experimental/getBulkLinks.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__preexistingObjectSet } from \"../experimental/preexistingObjectSet.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET_subscribe } from \"../experimental/subscribe.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,+CAA+C,QAAQ,iCAAiC;AACjG,SAASC,uDAAuD,QAAQ,yCAAyC;AACjH,SAASC,2CAA2C,QAAQ,8BAA8B","ignoreList":[]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { DataValueClientToWire, DataValueWireToClient } from "../mapping/DataValueMapping.js";
|
|
2
|
-
import type { BaseObjectSet } from "../objectSet/BaseObjectSet.js";
|
|
3
2
|
import type { ObjectSet } from "../objectSet/ObjectSet.js";
|
|
4
3
|
import type { ObjectTypeDefinition } from "../ontology/ObjectTypeDefinition.js";
|
|
5
4
|
import type { OsdkBase } from "../OsdkBase.js";
|
|
@@ -19,7 +18,7 @@ export declare namespace QueryParam {
|
|
|
19
18
|
/**
|
|
20
19
|
* Helper type to convert action definition parameter object sets to typescript types
|
|
21
20
|
*/
|
|
22
|
-
type ObjectSetType<T extends ObjectTypeDefinition> =
|
|
21
|
+
type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
24
|
* Helper types for converting query result types to typescript types
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Queries.d.ts","sourceRoot":"","sources":["../../../src/queries/Queries.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Queries.d.ts","sourceRoot":"","sources":["../../../src/queries/Queries.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE/E;;GAEG;AACH,yBAAiB,UAAU,CAAC;IAC1B;;OAEG;IACH,KAAY,aAAa,CAAC,CAAC,SAAS,MAAM,qBAAqB,IAC7D,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAE3B;;OAEG;IACH,KAAY,UAAU,CAAC,CAAC,SAAS,oBAAoB,IACjD,QAAQ,CAAC,CAAC,CAAC,GACX,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAEhC;;OAEG;IACH,KAAY,aAAa,CAAC,CAAC,SAAS,oBAAoB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;CAC1E;AAED;;GAEG;AACH,yBAAiB,WAAW,CAAC;IAC3B;;OAEG;IACH,KAAY,aAAa,CAAC,CAAC,SAAS,MAAM,qBAAqB,IAC7D,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAE3B;;OAEG;IACH,KAAY,UAAU,CAAC,CAAC,SAAS,oBAAoB,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC;IAErE;;OAEG;IACH,KAAY,aAAa,CAAC,CAAC,SAAS,oBAAoB,IAAI,SAAS,CACnE,CAAC,CACF,CAAC;CACH"}
|
|
@@ -25,13 +25,12 @@ export type IsNever<T> = [T] extends [never] ? true : false;
|
|
|
25
25
|
type ExtractPropsKeysFromOldPropsStyle<Q extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<Q>> = P extends "$all" ? PropertyKeys<Q> : Exclude<P, "$strict" | "$notStrict" | "$rid">;
|
|
26
26
|
export type IsAny<T> = unknown extends T ? [keyof T] extends [never] ? false : true : false;
|
|
27
27
|
export type GetPropsKeys<Q extends ObjectOrInterfaceDefinition, P extends PropertyKeys<Q>> = IsNever<P> extends true ? PropertyKeys<Q> : IsAny<P> extends true ? PropertyKeys<Q> : P;
|
|
28
|
-
export type GetProps<Q extends ObjectOrInterfaceDefinition, OPTIONS extends never | "$notStrict" | "$rid" = never> = IsNever<OPTIONS> extends true ? CompileTimeMetadata<Q>["strictProps"] : IsAny<OPTIONS> extends true ? CompileTimeMetadata<Q>["strictProps"] : (OPTIONS extends "$notStrict" ? CompileTimeMetadata<Q>["props"] : CompileTimeMetadata<Q>["strictProps"]);
|
|
29
28
|
/**
|
|
30
29
|
* Use `Osdk.Instance` or `YourType.OsdkInstance`
|
|
31
30
|
*/
|
|
32
|
-
export type Osdk<Q extends ObjectOrInterfaceDefinition, OPTIONS extends string = never, P extends PropertyKeys<Q> = PropertyKeys<Q>> = IsNever<OPTIONS> extends true ? Osdk.Instance<Q, never, P> : IsAny<OPTIONS> extends true ? Osdk.Instance<Q, never, P> : (IsNever<Exclude<OPTIONS, "$
|
|
31
|
+
export type Osdk<Q extends ObjectOrInterfaceDefinition, OPTIONS extends string = never, P extends PropertyKeys<Q> = PropertyKeys<Q>> = IsNever<OPTIONS> extends true ? Osdk.Instance<Q, never, P> : IsAny<OPTIONS> extends true ? Osdk.Instance<Q, never, P> : (IsNever<Exclude<OPTIONS, "$rid">>) extends true ? Osdk.Instance<Q, OPTIONS & "$rid", P> : Osdk.Instance<Q, ("$rid" extends OPTIONS ? "$rid" : never), ExtractPropsKeysFromOldPropsStyle<Q, OPTIONS>>;
|
|
33
32
|
export declare namespace Osdk {
|
|
34
|
-
type Instance<Q extends ObjectOrInterfaceDefinition, OPTIONS extends never | "$
|
|
33
|
+
type Instance<Q extends ObjectOrInterfaceDefinition, OPTIONS extends never | "$rid" = never, P extends PropertyKeys<Q> = PropertyKeys<Q>> = OsdkBase<Q> & Pick<CompileTimeMetadata<Q>["props"], GetPropsKeys<Q, P>> & {
|
|
35
34
|
readonly $link: Q extends {
|
|
36
35
|
linksType?: any;
|
|
37
36
|
} ? Q["linksType"] : Q extends ObjectTypeDefinition ? OsdkObjectLinksObject<Q> : never;
|
|
@@ -54,6 +53,6 @@ export type ExtractStrictOption<S extends NullabilityAdherence> = IsNever<S> ext
|
|
|
54
53
|
* Anything you throw at this that is not exactly `true` should always be `never`.
|
|
55
54
|
*/
|
|
56
55
|
export type ExtractRidOption<R extends boolean> = IsNever<R> extends true ? never : DefaultToFalse<R> extends false ? never : "$rid";
|
|
57
|
-
export type ExtractOptions<R extends boolean, S extends NullabilityAdherence = NullabilityAdherence.Default> =
|
|
56
|
+
export type ExtractOptions<R extends boolean, S extends NullabilityAdherence = NullabilityAdherence.Default> = ExtractRidOption<R>;
|
|
58
57
|
export {};
|
|
59
58
|
//# sourceMappingURL=OsdkObjectFrom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsdkObjectFrom.d.ts","sourceRoot":"","sources":["../../src/OsdkObjectFrom.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAC1C,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AS,OAAO,IAC5C,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,KAAK,GAC3B,cAAc,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,GACvC,MAAM,CAAC;AAGb,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,oBAAoB,GAAG,oBAAoB,CAAC,OAAO,IAC3D,gBAAgB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -22,7 +22,7 @@ describe("ExtractOptions", () => {
|
|
|
22
22
|
it("does not add $notStrict for never", () => {
|
|
23
23
|
expectTypeOf().toEqualTypeOf();
|
|
24
24
|
});
|
|
25
|
-
it("does
|
|
25
|
+
it("does not add $notStrict for false", () => {
|
|
26
26
|
expectTypeOf().toEqualTypeOf();
|
|
27
27
|
});
|
|
28
28
|
it("does not add $notStrict for throw", () => {
|
|
@@ -70,21 +70,23 @@ describe("ExtractOptions", () => {
|
|
|
70
70
|
describe("Osdk.Instance", () => {
|
|
71
71
|
it("defaults to second argument never if omitted", () => {
|
|
72
72
|
expectTypeOf().toEqualTypeOf();
|
|
73
|
-
// ensure its the
|
|
73
|
+
// ensure its the normal props
|
|
74
74
|
expectTypeOf().toEqualTypeOf();
|
|
75
75
|
});
|
|
76
76
|
it("defaults to second argument never if never", () => {
|
|
77
77
|
expectTypeOf().toEqualTypeOf();
|
|
78
|
-
// ensure its the
|
|
78
|
+
// ensure its the normal props
|
|
79
79
|
expectTypeOf().toEqualTypeOf();
|
|
80
80
|
});
|
|
81
81
|
it("defaults to second argument never if any", () => {
|
|
82
82
|
expectTypeOf().branded.toEqualTypeOf();
|
|
83
|
-
// ensure its the
|
|
83
|
+
// ensure its the normal props
|
|
84
84
|
expectTypeOf().toEqualTypeOf();
|
|
85
85
|
});
|
|
86
|
-
it("
|
|
87
|
-
expectTypeOf().branded
|
|
86
|
+
it("Cannot use $notStrict", () => {
|
|
87
|
+
expectTypeOf().branded
|
|
88
|
+
// @ts-expect-error
|
|
89
|
+
.toEqualTypeOf();
|
|
88
90
|
// ensure its not the strict type
|
|
89
91
|
expectTypeOf().toEqualTypeOf();
|
|
90
92
|
});
|
|
@@ -103,14 +105,14 @@ describe("ExtractOptions", () => {
|
|
|
103
105
|
expectTypeOf().toEqualTypeOf();
|
|
104
106
|
// expect no rid
|
|
105
107
|
expectTypeOf().toEqualTypeOf();
|
|
106
|
-
// ensure its the
|
|
108
|
+
// ensure its the normal props
|
|
107
109
|
expectTypeOf().toEqualTypeOf();
|
|
108
110
|
});
|
|
109
111
|
it("returns $rid if only thing specified", () => {
|
|
110
112
|
expectTypeOf().toEqualTypeOf();
|
|
111
113
|
// expect rid
|
|
112
114
|
expectTypeOf().toEqualTypeOf();
|
|
113
|
-
// ensure its the
|
|
115
|
+
// ensure its the normal props
|
|
114
116
|
expectTypeOf().toEqualTypeOf();
|
|
115
117
|
});
|
|
116
118
|
it("handles legacy properly: $rid and name", () => {
|
|
@@ -124,31 +126,31 @@ describe("ExtractOptions", () => {
|
|
|
124
126
|
expectTypeOf().branded.toEqualTypeOf();
|
|
125
127
|
// expect rid
|
|
126
128
|
expectTypeOf().toEqualTypeOf();
|
|
127
|
-
// ensure its the
|
|
129
|
+
// ensure its the normal props
|
|
128
130
|
expectTypeOf().toEqualTypeOf();
|
|
129
131
|
});
|
|
130
132
|
it("handles legacy properly: just $all", () => {
|
|
131
133
|
expectTypeOf().branded.toEqualTypeOf();
|
|
132
134
|
// expect no rid
|
|
133
135
|
expectTypeOf().toEqualTypeOf();
|
|
134
|
-
// ensure its the
|
|
136
|
+
// ensure its the normal props
|
|
135
137
|
expectTypeOf().toEqualTypeOf();
|
|
136
138
|
});
|
|
137
139
|
it("defaults to second argument never if never", () => {
|
|
138
140
|
expectTypeOf().toEqualTypeOf();
|
|
139
|
-
// ensure its the
|
|
141
|
+
// ensure its the normal props
|
|
140
142
|
expectTypeOf().toEqualTypeOf();
|
|
141
143
|
// expect no rid
|
|
142
144
|
expectTypeOf().toEqualTypeOf();
|
|
143
145
|
});
|
|
144
146
|
it("defaults to second argument never if any", () => {
|
|
145
147
|
expectTypeOf().branded.toEqualTypeOf();
|
|
146
|
-
// ensure its the
|
|
148
|
+
// ensure its the normal props
|
|
147
149
|
expectTypeOf().toEqualTypeOf();
|
|
148
150
|
// expect no rid
|
|
149
151
|
expectTypeOf().toEqualTypeOf();
|
|
150
152
|
});
|
|
151
|
-
it("
|
|
153
|
+
it("Does not use $notStrict if requested with old type", () => {
|
|
152
154
|
expectTypeOf().branded.toEqualTypeOf();
|
|
153
155
|
// ensure its not the strict type
|
|
154
156
|
expectTypeOf().toEqualTypeOf();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsdkObjectFrom.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf","branded","createObjectSetChannel"],"sources":["OsdkObjectFrom.test.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 { describe, expectTypeOf, it } from \"vitest\";\ndescribe(\"ExtractOptions\", () => {\n describe(\"NullabilityAdherence Generic\", () => {\n it(\"does not add $notStrict for any\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for never\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does add add $notStrict for false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for false | throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | throw | false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for NullabilityAdherence\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n });\n describe(\"Rid Generic\", () => {\n it(\"does not add $rid for false\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does add $rid for true\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for any\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for never\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for boolean\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for true | false\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n });\n describe(\"Osdk.Instance\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if never\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if any\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"uses not strict if requested\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n // ensure its not the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n });\n describe(\"Osdk<>\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"returns $rid if only thing specified\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: $rid and name\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: $rid and $all\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: just $all\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if never\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if any\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"uses not strict if requested\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n // ensure its not the strict type\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n });\n describe(\"Inferred return types from fetchPage work\", () => {\n function createObjectSetChannel(objectSet) {\n return {};\n }\n class Helper {\n objectSet;\n constructor(objectSet) {\n this.objectSet = objectSet;\n }\n go() {\n return createObjectSetChannel(this.objectSet);\n }\n }\n it(\"is not $notStrict\", async () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,YAAY,EAAEC,EAAE,QAAQ,QAAQ;AACnDF,QAAQ,CAAC,gBAAgB,EAAE,MAAM;EAC7BA,QAAQ,CAAC,8BAA8B,EAAE,MAAM;IAC3CE,EAAE,CAAC,iCAAiC,EAAE,MAAM;MACxCD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC1CD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC1CD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC1CD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,kCAAkC,EAAE,MAAM;MACzCD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,0CAA0C,EAAE,MAAM;MACjDD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,0CAA0C,EAAE,MAAM;MACjDD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,2CAA2C,EAAE,MAAM;MAClDD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC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O,CACjBD,aAAa,CAAC,CAAC;MACpB;MACAF,YAAY,CAAC,CAAC,CAACE,aAAa,CAAC,CAAC;MAC9B;MACAF,YAAY,CAAC,CAAC,CAACE,aAAa,CAAC,CAAC;IAClC,CAAC,CAAC;IACFD,EAAE,CAAC,8CAA8C,EAAE,MAAM;MACrDD,YAAY,CAAC,CAAC,CAACG,OAAO,CACjBD,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,4CAA4C,EAAE,MAAM;MACnDD,YAAY,CAAC,CAAC,CAACG,OAAO,CACjBD,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,gDAAgD,EAAE,MAAM;MACvDD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;EACN,CAAC,CAAC;EACFH,QAAQ,CAAC,2CAA2C,EAAE,MAAM;IACxD,SAASK,sBAAsBA,CAAA,EAAY;MACvC,OAAO,CAAC,CAAC;IACb;IAUAH,EAAE,CAAC,mBAAmB,EAAE,YAAY;MAChCD,YAAY,CAAC,CAAC,CAACG,OAAO,CACjBD,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;EACN,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"OsdkObjectFrom.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf","branded","createObjectSetChannel"],"sources":["OsdkObjectFrom.test.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 { describe, expectTypeOf, it } from \"vitest\";\ndescribe(\"ExtractOptions\", () => {\n describe(\"NullabilityAdherence Generic\", () => {\n it(\"does not add $notStrict for any\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for never\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for false | throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | throw | false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for NullabilityAdherence\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n });\n describe(\"Rid Generic\", () => {\n it(\"does not add $rid for false\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does add $rid for true\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for any\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for never\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for boolean\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for true | false\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n });\n describe(\"Osdk.Instance\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if never\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if any\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"Cannot use $notStrict\", () => {\n expectTypeOf().branded\n // @ts-expect-error\n .toEqualTypeOf();\n // ensure its not the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n });\n describe(\"Osdk<>\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"returns $rid if only thing specified\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: $rid and name\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: $rid and $all\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: just $all\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if never\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if any\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"Does not use $notStrict if requested with old type\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n // ensure its not the strict type\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n });\n describe(\"Inferred return types from fetchPage work\", () => {\n function createObjectSetChannel(objectSet) {\n return {};\n }\n class Helper {\n objectSet;\n constructor(objectSet) {\n this.objectSet = objectSet;\n }\n go() {\n return createObjectSetChannel(this.objectSet);\n }\n }\n it(\"is not $notStrict\", async () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,YAAY,EAAEC,EAAE,QAAQ,QAAQ;AACnDF,QAAQ,CAAC,gBAAgB,EAAE,MAAM;EAC7BA,QAAQ,CAAC,8BAA8B,EAAE,MAAM;IAC3CE,EAAE,CAAC,iCAAiC,EAAE,MAAM;MACxCD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC1CD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC1CD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC1CD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;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ataValueClientToWire } from "../mapping/DataValueMapping.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ObjectSet } from "../objectSet/ObjectSet.js";
|
|
3
3
|
import type { ObjectTypeDefinition } from "../ontology/ObjectTypeDefinition.js";
|
|
4
4
|
import type { OsdkBase } from "../OsdkBase.js";
|
|
5
5
|
import type { OsdkObjectPrimaryKeyType } from "../OsdkObjectPrimaryKeyType.js";
|
|
@@ -29,7 +29,7 @@ export declare namespace ActionParam {
|
|
|
29
29
|
/**
|
|
30
30
|
* Helper type to convert action definition parameter object sets to typescript types
|
|
31
31
|
*/
|
|
32
|
-
type ObjectSetType<T extends ObjectTypeDefinition> =
|
|
32
|
+
type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;
|
|
33
33
|
}
|
|
34
34
|
export type ActionEditResponse = ActionResults;
|
|
35
35
|
export type ActionValidationResponse = ValidateActionResponseV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/actions/Actions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/actions/Actions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE/E,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAC1B;IAAE,YAAY,CAAC,EAAE,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,KAAK,CAAA;CAAE,GAC9C;IACA,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,CAAC;AAEJ,MAAM,MAAM,uBAAuB,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjE;;GAEG;AACH,yBAAiB,WAAW,CAAC;IAC3B;;OAEG;IACH,KAAY,aAAa,CAAC,CAAC,SAAS,MAAM,qBAAqB,IAC7D,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAE3B;;OAEG;IACH,KAAY,UAAU,CAAC,CAAC,SAAS,oBAAoB,IACjD,QAAQ,CAAC,CAAC,CAAC,GACX,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAEhC;;OAEG;IACH,KAAY,aAAa,CAAC,CAAC,SAAS,oBAAoB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;CAC1E;AAED,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAC/C,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Just } from "./Just.js";
|
|
2
|
+
interface ArrayFilterOptions<T> {
|
|
3
|
+
"$contains": T;
|
|
4
|
+
"$isNull": boolean;
|
|
5
|
+
}
|
|
6
|
+
declare namespace ArrayFilter {
|
|
7
|
+
interface $contains<T> extends Just<"$contains", ArrayFilterOptions<T>> {
|
|
8
|
+
}
|
|
9
|
+
interface $isNull<T> extends Just<"$isNull", ArrayFilterOptions<T>> {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export type ArrayFilter<T> = ArrayFilter.$contains<T> | ArrayFilter.$isNull<T>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ArrayFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayFilter.d.ts","sourceRoot":"","sources":["../../../src/aggregate/ArrayFilter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,UAAU,kBAAkB,CAAC,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;CACpB;AACD,kBAAU,WAAW,CAAC;IACpB,UAAiB,SAAS,CAAC,CAAC,CAC1B,SAAQ,IAAI,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAChD;IACF,UAAiB,OAAO,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAAG;CAC9E;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,GACxB,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ArrayFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayFilter.js","names":[],"sources":["ArrayFilter.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Just } from "./Just.js";
|
|
2
|
+
export type BaseFilterOptions<T> = {
|
|
3
|
+
"$eq": T;
|
|
4
|
+
"$ne": T;
|
|
5
|
+
"$isNull": boolean;
|
|
6
|
+
"$in": ReadonlyArray<T>;
|
|
7
|
+
};
|
|
8
|
+
export declare namespace BaseFilter {
|
|
9
|
+
interface $eq<T> extends Just<"$eq", BaseFilterOptions<T>> {
|
|
10
|
+
}
|
|
11
|
+
interface $ne<T> extends Just<"$ne", BaseFilterOptions<T>> {
|
|
12
|
+
}
|
|
13
|
+
interface $in<T> extends Just<"$in", BaseFilterOptions<T>> {
|
|
14
|
+
}
|
|
15
|
+
interface $isNull<T> extends Just<"$isNull", BaseFilterOptions<T>> {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export type BaseFilter<T> = BaseFilter.$eq<T> | BaseFilter.$ne<T> | BaseFilter.$in<T> | BaseFilter.$isNull<T>;
|
|
19
|
+
//# sourceMappingURL=BaseFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseFilter.d.ts","sourceRoot":"","sources":["../../../src/aggregate/BaseFilter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IACjC,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,CAAC,CAAC;IACT,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;CACzB,CAAC;AAEF,yBAAiB,UAAU,CAAC;IAC1B,UAAiB,GAAG,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;KAAG;IACpE,UAAiB,GAAG,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;KAAG;IACpE,UAAiB,GAAG,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;KAAG;IACpE,UAAiB,OAAO,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;KAAG;CAC7E;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,IACpB,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,GACjB,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,GACjB,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,GACjB,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=BaseFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseFilter.js","names":[],"sources":["BaseFilter.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BaseFilterOptions } from "./BaseFilter.js";
|
|
2
|
+
import type { Just } from "./Just.js";
|
|
3
|
+
interface BooleanFilterOptions extends BaseFilterOptions<boolean> {
|
|
4
|
+
}
|
|
5
|
+
export declare namespace BooleanFilter {
|
|
6
|
+
interface $eq extends Just<"$eq", BooleanFilterOptions> {
|
|
7
|
+
}
|
|
8
|
+
interface $ne extends Just<"$ne", BooleanFilterOptions> {
|
|
9
|
+
}
|
|
10
|
+
interface $isNull extends Just<"$isNull", BooleanFilterOptions> {
|
|
11
|
+
}
|
|
12
|
+
interface $in extends Just<"$in", BooleanFilterOptions> {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export type BooleanFilter = boolean | BooleanFilter.$eq | BooleanFilter.$ne | BooleanFilter.$in | BooleanFilter.$isNull;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=BooleanFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BooleanFilter.d.ts","sourceRoot":"","sources":["../../../src/aggregate/BooleanFilter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,UAAU,oBAAqB,SAAQ,iBAAiB,CAAC,OAAO,CAAC;CAAG;AAEpE,yBAAiB,aAAa,CAAC;IAC7B,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,oBAAoB,CAAC;KAAG;IACjE,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,oBAAoB,CAAC;KAAG;IACjE,UAAiB,OAAQ,SAAQ,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC;KAAG;IACzE,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,oBAAoB,CAAC;KAAG;CAClE;AACD,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,aAAa,CAAC,GAAG,GACjB,aAAa,CAAC,GAAG,GACjB,aAAa,CAAC,GAAG,GACjB,aAAa,CAAC,OAAO,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
/** @internal */
|
|
17
|
+
function _typeCheck() {}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=BooleanFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BooleanFilter.js","names":["_typeCheck"],"sources":["BooleanFilter.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/** @internal */\nfunction _typeCheck() {\n const b = {};\n}\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,UAAUA,CAAA,EAAG,CAEtB;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BaseFilterOptions } from "./BaseFilter.js";
|
|
2
|
+
import type { Just } from "./Just.js";
|
|
3
|
+
export interface DatetimeFilterOptions extends BaseFilterOptions<string> {
|
|
4
|
+
"$gt": string;
|
|
5
|
+
"$gte": string;
|
|
6
|
+
"$lt": string;
|
|
7
|
+
"$lte": string;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace DatetimeFilter {
|
|
10
|
+
interface $eq extends Just<"$eq", DatetimeFilterOptions> {
|
|
11
|
+
}
|
|
12
|
+
interface $ne extends Just<"$ne", DatetimeFilterOptions> {
|
|
13
|
+
}
|
|
14
|
+
interface $isNull extends Just<"$isNull", DatetimeFilterOptions> {
|
|
15
|
+
}
|
|
16
|
+
interface $gt extends Just<"$gt", DatetimeFilterOptions> {
|
|
17
|
+
}
|
|
18
|
+
interface $gte extends Just<"$gte", DatetimeFilterOptions> {
|
|
19
|
+
}
|
|
20
|
+
interface $lt extends Just<"$lt", DatetimeFilterOptions> {
|
|
21
|
+
}
|
|
22
|
+
interface $lte extends Just<"$lte", DatetimeFilterOptions> {
|
|
23
|
+
}
|
|
24
|
+
interface $in extends Just<"$in", DatetimeFilterOptions> {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export type DatetimeFilter = string | DatetimeFilter.$eq | DatetimeFilter.$ne | DatetimeFilter.$isNull | DatetimeFilter.$in | DatetimeFilter.$gt | DatetimeFilter.$gte | DatetimeFilter.$lt | DatetimeFilter.$lte;
|
|
28
|
+
//# sourceMappingURL=DatetimeFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatetimeFilter.d.ts","sourceRoot":"","sources":["../../../src/aggregate/DatetimeFilter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,qBAAqB,CAAC;KAAG;IAClE,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,qBAAqB,CAAC;KAAG;IAClE,UAAiB,OAAQ,SAAQ,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC;KAAG;IAC1E,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,qBAAqB,CAAC;KAAG;IAClE,UAAiB,IAAK,SAAQ,IAAI,CAAC,MAAM,EAAE,qBAAqB,CAAC;KAAG;IACpE,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,qBAAqB,CAAC;KAAG;IAClE,UAAiB,IAAK,SAAQ,IAAI,CAAC,MAAM,EAAE,qBAAqB,CAAC;KAAG;IACpE,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,qBAAqB,CAAC;KAAG;CACnE;AACD,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,cAAc,CAAC,GAAG,GAClB,cAAc,CAAC,GAAG,GAClB,cAAc,CAAC,OAAO,GACtB,cAAc,CAAC,GAAG,GAClB,cAAc,CAAC,GAAG,GAClB,cAAc,CAAC,IAAI,GACnB,cAAc,CAAC,GAAG,GAClB,cAAc,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
/** @internal */
|
|
17
|
+
function _typeCheck() {}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=DatetimeFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatetimeFilter.js","names":["_typeCheck"],"sources":["DatetimeFilter.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/** @internal */\nfunction _typeCheck() {\n const b = {};\n}\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,UAAUA,CAAA,EAAG,CAEtB;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { BBox, Point, Polygon } from "geojson";
|
|
2
|
+
import type { Just } from "./Just.js";
|
|
3
|
+
import type { DistanceUnitMapping } from "./WhereClause.js";
|
|
4
|
+
interface GeoFilterOptions {
|
|
5
|
+
"$within": {
|
|
6
|
+
$distance: [number, keyof typeof DistanceUnitMapping];
|
|
7
|
+
$of: [number, number] | Readonly<Point>;
|
|
8
|
+
$bbox?: never;
|
|
9
|
+
$polygon?: never;
|
|
10
|
+
} | {
|
|
11
|
+
$bbox: BBox;
|
|
12
|
+
$distance?: never;
|
|
13
|
+
$of?: never;
|
|
14
|
+
$polygon?: never;
|
|
15
|
+
} | BBox | {
|
|
16
|
+
$polygon: Polygon["coordinates"];
|
|
17
|
+
$bbox?: never;
|
|
18
|
+
$distance?: never;
|
|
19
|
+
$of?: never;
|
|
20
|
+
} | Polygon;
|
|
21
|
+
"$intersects": {
|
|
22
|
+
$bbox: BBox;
|
|
23
|
+
$polygon?: never;
|
|
24
|
+
} | BBox | {
|
|
25
|
+
$polygon: Polygon["coordinates"];
|
|
26
|
+
$bbox?: never;
|
|
27
|
+
} | Polygon;
|
|
28
|
+
"$isNull": boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace GeoFilter {
|
|
31
|
+
interface $within extends Just<"$within", GeoFilterOptions> {
|
|
32
|
+
}
|
|
33
|
+
interface $intersects extends Just<"$intersects", GeoFilterOptions> {
|
|
34
|
+
}
|
|
35
|
+
interface $isNull extends Just<"$isNull", GeoFilterOptions> {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export type GeoFilter = GeoFilter.$within | GeoFilter.$intersects | GeoFilter.$isNull;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=GeoFilter.d.ts.map
|