@osdk/api 2.1.0-beta.0 → 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 +62 -0
- package/build/browser/OsdkObjectFrom.d.ts +19 -8
- package/build/browser/OsdkObjectFrom.d.ts.map +1 -1
- package/build/browser/OsdkObjectFrom.test.d.ts +2 -0
- package/build/browser/OsdkObjectFrom.test.d.ts.map +1 -0
- package/build/browser/OsdkObjectFrom.test.js +179 -0
- package/build/browser/OsdkObjectFrom.test.js.map +1 -0
- 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 +3 -1
- package/build/browser/index.d.ts.map +1 -1
- package/build/browser/mapping/PropertyValueMapping.d.ts +3 -1
- package/build/browser/mapping/PropertyValueMapping.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/ontology/WirePropertyTypes.d.ts +1 -1
- package/build/browser/ontology/WirePropertyTypes.d.ts.map +1 -1
- 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/browser/timeseries/timeseries.d.ts +41 -5
- package/build/browser/timeseries/timeseries.d.ts.map +1 -1
- package/build/esm/OsdkObjectFrom.d.ts +19 -8
- package/build/esm/OsdkObjectFrom.d.ts.map +1 -1
- package/build/esm/OsdkObjectFrom.test.d.ts +2 -0
- package/build/esm/OsdkObjectFrom.test.d.ts.map +1 -0
- package/build/esm/OsdkObjectFrom.test.js +179 -0
- package/build/esm/OsdkObjectFrom.test.js.map +1 -0
- 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 +3 -1
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/mapping/PropertyValueMapping.d.ts +3 -1
- package/build/esm/mapping/PropertyValueMapping.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/ontology/WirePropertyTypes.d.ts +1 -1
- package/build/esm/ontology/WirePropertyTypes.d.ts.map +1 -1
- 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/build/esm/timeseries/timeseries.d.ts +41 -5
- package/build/esm/timeseries/timeseries.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataValueClientToWire } 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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|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoFilter.d.ts","sourceRoot":"","sources":["../../../src/aggregate/GeoFilter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAm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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=GeoFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoFilter.js","names":[],"sources":["GeoFilter.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 @@
|
|
|
1
|
+
{"version":3,"file":"Just.d.ts","sourceRoot":"","sources":["../../../src/aggregate/Just.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,CAAC,IACjC;KACC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACf,GACC;KACC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK;CAClD,CAAC;AAEJ,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI;KAC1D,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK;CACjB,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=Just.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Just.js","names":[],"sources":["Just.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,29 @@
|
|
|
1
|
+
import type { BaseFilterOptions } from "./BaseFilter.js";
|
|
2
|
+
import type { Just } from "./Just.js";
|
|
3
|
+
interface NumberFilterOptions extends BaseFilterOptions<number> {
|
|
4
|
+
"$gt": number;
|
|
5
|
+
"$gte": number;
|
|
6
|
+
"$lt": number;
|
|
7
|
+
"$lte": number;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace NumberFilter {
|
|
10
|
+
interface $eq extends Just<"$eq", NumberFilterOptions> {
|
|
11
|
+
}
|
|
12
|
+
interface $ne extends Just<"$ne", NumberFilterOptions> {
|
|
13
|
+
}
|
|
14
|
+
interface $isNull extends Just<"$isNull", NumberFilterOptions> {
|
|
15
|
+
}
|
|
16
|
+
interface $gt extends Just<"$gt", NumberFilterOptions> {
|
|
17
|
+
}
|
|
18
|
+
interface $gte extends Just<"$gte", NumberFilterOptions> {
|
|
19
|
+
}
|
|
20
|
+
interface $lt extends Just<"$lt", NumberFilterOptions> {
|
|
21
|
+
}
|
|
22
|
+
interface $lte extends Just<"$lte", NumberFilterOptions> {
|
|
23
|
+
}
|
|
24
|
+
interface $in extends Just<"$in", NumberFilterOptions> {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export type NumberFilter = number | NumberFilter.$eq | NumberFilter.$ne | NumberFilter.$isNull | NumberFilter.$in | NumberFilter.$gt | NumberFilter.$gte | NumberFilter.$lt | NumberFilter.$lte;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=NumberFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberFilter.d.ts","sourceRoot":"","sources":["../../../src/aggregate/NumberFilter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,iBA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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=NumberFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberFilter.js","names":["_typeCheck"],"sources":["NumberFilter.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,30 @@
|
|
|
1
|
+
import type { BaseFilterOptions } from "./BaseFilter.js";
|
|
2
|
+
import type { Just } from "./Just.js";
|
|
3
|
+
interface StringFilterOptions extends BaseFilterOptions<string> {
|
|
4
|
+
"$startsWith": string;
|
|
5
|
+
"$containsAllTermsInOrder": string;
|
|
6
|
+
"$containsAnyTerm": string;
|
|
7
|
+
"$containsAllTerms": string;
|
|
8
|
+
"$in": ReadonlyArray<string>;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace StringFilter {
|
|
11
|
+
interface $eq extends Just<"$eq", StringFilterOptions> {
|
|
12
|
+
}
|
|
13
|
+
interface $ne extends Just<"$ne", StringFilterOptions> {
|
|
14
|
+
}
|
|
15
|
+
interface $isNull extends Just<"$isNull", StringFilterOptions> {
|
|
16
|
+
}
|
|
17
|
+
interface $startsWith extends Just<"$startsWith", StringFilterOptions> {
|
|
18
|
+
}
|
|
19
|
+
interface $containsAllTermsInOrder extends Just<"$containsAllTermsInOrder", StringFilterOptions> {
|
|
20
|
+
}
|
|
21
|
+
interface $containsAnyTerm extends Just<"$containsAnyTerm", StringFilterOptions> {
|
|
22
|
+
}
|
|
23
|
+
interface $containsAllTerms extends Just<"$containsAllTerms", StringFilterOptions> {
|
|
24
|
+
}
|
|
25
|
+
interface $in extends Just<"$in", StringFilterOptions> {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export type StringFilter = string | StringFilter.$eq | StringFilter.$ne | StringFilter.$isNull | StringFilter.$in | StringFilter.$startsWith | StringFilter.$containsAllTermsInOrder | StringFilter.$containsAnyTerm | StringFilter.$containsAllTerms;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=StringFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringFilter.d.ts","sourceRoot":"","sources":["../../../src/aggregate/StringFilter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,UAAU,mBAAoB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB,0BAA0B,EAAE,MAAM,CAAC;IACnC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,yBAAiB,YAAY,CAAC;IAC5B,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,mBAAmB,CAAC;KAAG;IAChE,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,mBAAmB,CAAC;KAAG;IAChE,UAAiB,OAAQ,SAAQ,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC;KAAG;IACxE,UAAiB,WACf,SAAQ,IAAI,CAAC,aAAa,EAAE,mBAAmB,CAAC;KAEjD;IACD,UAAiB,wBACf,SAAQ,IAAI,CAAC,0BAA0B,EAAE,mBAAmB,CAAC;KAE9D;IACD,UAAiB,gBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;KAEtD;IACD,UAAiB,iBACf,SAAQ,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;KAEvD;IACD,UAAiB,GAAI,SAAQ,IAAI,CAAC,KAAK,EAAE,mBAAmB,CAAC;KAAG;CACjE;AAED,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,YAAY,CAAC,GAAG,GAChB,YAAY,CAAC,GAAG,GAChB,YAAY,CAAC,OAAO,GACpB,YAAY,CAAC,GAAG,GAChB,YAAY,CAAC,WAAW,GACxB,YAAY,CAAC,wBAAwB,GACrC,YAAY,CAAC,gBAAgB,GAC7B,YAAY,CAAC,iBAAiB,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=StringFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringFilter.js","names":["_typeCheck"],"sources":["StringFilter.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":[]}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { BBox, Point, Polygon } from "geojson";
|
|
2
|
-
import type { ObjectOrInterfaceDefinition
|
|
2
|
+
import type { ObjectOrInterfaceDefinition } from "../ontology/ObjectOrInterface.js";
|
|
3
3
|
import type { CompileTimeMetadata, ObjectMetadata } from "../ontology/ObjectTypeDefinition.js";
|
|
4
|
+
import type { IsNever } from "../OsdkObjectFrom.js";
|
|
5
|
+
import type { ArrayFilter } from "./ArrayFilter.js";
|
|
6
|
+
import type { BaseFilter } from "./BaseFilter.js";
|
|
7
|
+
import type { BooleanFilter } from "./BooleanFilter.js";
|
|
8
|
+
import type { DatetimeFilter } from "./DatetimeFilter.js";
|
|
9
|
+
import type { GeoFilter } from "./GeoFilter.js";
|
|
10
|
+
import type { NumberFilter } from "./NumberFilter.js";
|
|
11
|
+
import type { StringFilter } from "./StringFilter.js";
|
|
4
12
|
export type PossibleWhereClauseFilters = "$gt" | "$eq" | "$ne" | "$isNull" | "$contains" | "$gte" | "$lt" | "$lte" | "$within" | "$in" | "$intersects" | "$startsWith" | "$containsAllTermsInOrder" | "$containsAnyTerm" | "$containsAllTerms";
|
|
5
|
-
type MakeFilter<K extends PossibleWhereClauseFilters, V> = K extends string ? {
|
|
6
|
-
[k in K]: V;
|
|
7
|
-
} : never;
|
|
8
|
-
type BaseFilter<T> = T | MakeFilter<"$eq" | "$ne", T> | MakeFilter<"$in", Array<T>> | MakeFilter<"$isNull", boolean>;
|
|
9
|
-
type StringFilter = BaseFilter<string> | MakeFilter<"$startsWith" | "$containsAllTermsInOrder" | "$containsAnyTerm" | "$containsAllTerms", string>;
|
|
10
|
-
type NumberFilter = BaseFilter<number> | MakeFilter<"$gt" | "$gte" | "$lt" | "$lte", number>;
|
|
11
|
-
type DatetimeFilter = BaseFilter<string> | MakeFilter<"$gt" | "$gte" | "$lt" | "$lte", string>;
|
|
12
|
-
type BooleanFilter = boolean | MakeFilter<"$eq" | "$ne", boolean> | MakeFilter<"$isNull", boolean>;
|
|
13
|
-
type ArrayFilter<T> = MakeFilter<"$contains", T> | MakeFilter<"$isNull", boolean>;
|
|
14
13
|
export declare const DistanceUnitMapping: {
|
|
15
14
|
centimeter: "CENTIMETERS";
|
|
16
15
|
centimeters: "CENTIMETERS";
|
|
@@ -60,8 +59,7 @@ export type GeoFilter_Intersects = {
|
|
|
60
59
|
$bbox?: never;
|
|
61
60
|
} | Polygon;
|
|
62
61
|
};
|
|
63
|
-
|
|
64
|
-
type FilterFor<PD extends ObjectMetadata.Property> = PD["multiplicity"] extends true ? (PD["type"] extends "string" | "geopoint" | "geoshape" | "datetime" | "timestamp" ? ArrayFilter<string> : (PD["type"] extends boolean ? ArrayFilter<boolean> : ArrayFilter<number>)) : (PD["type"] extends "string" ? StringFilter : PD["type"] extends "geopoint" | "geoshape" ? GeoFilter : PD["type"] extends "datetime" | "timestamp" ? DatetimeFilter : PD["type"] extends "boolean" ? BooleanFilter : NumberFilter);
|
|
62
|
+
type FilterFor<PD extends ObjectMetadata.Property> = PD["multiplicity"] extends true ? (PD["type"] extends "string" | "geopoint" | "geoshape" | "datetime" | "timestamp" ? ArrayFilter<string> : (PD["type"] extends boolean ? ArrayFilter<boolean> : ArrayFilter<number>)) : (PD["type"] extends "string" ? StringFilter : PD["type"] extends "geopoint" | "geoshape" ? GeoFilter : PD["type"] extends "datetime" | "timestamp" ? DatetimeFilter : PD["type"] extends "boolean" ? BooleanFilter : PD["type"] extends "double" | "integer" | "long" | "float" | "decimal" | "byte" ? NumberFilter : BaseFilter<string>);
|
|
65
63
|
export interface AndWhereClause<T extends ObjectOrInterfaceDefinition> {
|
|
66
64
|
$and: WhereClause<T>[];
|
|
67
65
|
}
|
|
@@ -71,8 +69,8 @@ export interface OrWhereClause<T extends ObjectOrInterfaceDefinition> {
|
|
|
71
69
|
export interface NotWhereClause<T extends ObjectOrInterfaceDefinition> {
|
|
72
70
|
$not: WhereClause<T>;
|
|
73
71
|
}
|
|
74
|
-
export type WhereClause<T extends ObjectOrInterfaceDefinition> = OrWhereClause<T> | AndWhereClause<T> | NotWhereClause<T> | {
|
|
75
|
-
[P in
|
|
76
|
-
};
|
|
72
|
+
export type WhereClause<T extends ObjectOrInterfaceDefinition> = OrWhereClause<T> | AndWhereClause<T> | NotWhereClause<T> | (IsNever<keyof CompileTimeMetadata<T>["properties"]> extends true ? Record<string, never> : {
|
|
73
|
+
[P in keyof CompileTimeMetadata<T>["properties"]]?: FilterFor<CompileTimeMetadata<T>["properties"][P]>;
|
|
74
|
+
});
|
|
77
75
|
export {};
|
|
78
76
|
//# sourceMappingURL=WhereClause.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhereClause.d.ts","sourceRoot":"","sources":["../../../src/aggregate/WhereClause.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EACV,2BAA2B,
|
|
1
|
+
{"version":3,"file":"WhereClause.d.ts","sourceRoot":"","sources":["../../../src/aggregate/WhereClause.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EACV,2BAA2B,EAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAqB,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,0BAA0B,GAClC,KAAK,GACL,KAAK,GACL,KAAK,GACL,SAAS,GACT,WAAW,GACX,MAAM,GACN,KAAK,GACL,MAAM,GACN,SAAS,GACT,KAAK,GACL,aAAa,GACb,aAAa,GACb,0BAA0B,GAC1B,kBAAkB,GAClB,mBAAmB,CAAC;AAIxB,e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,CAAC,CACxC;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FetchPageArgs, SelectArg } from "../object/FetchPageArgs.js";
|
|
2
2
|
import type { Result } from "../object/Result.js";
|
|
3
3
|
import type { ObjectSet } from "../objectSet/ObjectSet.js";
|
|
4
4
|
import type { PropertyKeys } from "../ontology/ObjectOrInterface.js";
|
|
5
5
|
import type { CompileTimeMetadata, ObjectMetadata, ObjectTypeDefinition, ObjectTypeLinkKeysFrom2 } from "../ontology/ObjectTypeDefinition.js";
|
|
6
|
-
import type { Osdk } from "../OsdkObjectFrom.js";
|
|
6
|
+
import type { ExtractOptions, Osdk } from "../OsdkObjectFrom.js";
|
|
7
7
|
/** The $link container to get from one object type to its linked objects */
|
|
8
8
|
export type OsdkObjectLinksObject<O extends ObjectTypeDefinition> = ObjectTypeLinkKeysFrom2<O> extends never ? never : {
|
|
9
9
|
readonly [L in ObjectTypeLinkKeysFrom2<O>]: OsdkObjectLinksEntry<O, L>;
|
|
@@ -13,9 +13,9 @@ export type DefaultToFalse<B extends boolean | undefined> = false extends B ? fa
|
|
|
13
13
|
export interface SingleLinkAccessor<T extends ObjectTypeDefinition> {
|
|
14
14
|
/** Load the linked object
|
|
15
15
|
*/
|
|
16
|
-
fetchOne: <const A extends SelectArg<T, PropertyKeys<T>, boolean>>(options?: A) => Promise<
|
|
16
|
+
fetchOne: <const A extends SelectArg<T, PropertyKeys<T>, boolean>>(options?: A) => Promise<A extends FetchPageArgs<T, infer L, infer R, any, infer S> ? Osdk.Instance<T, ExtractOptions<R, S>, L> : Osdk.Instance<T>>;
|
|
17
17
|
/** Load the linked object, with a result wrapper
|
|
18
18
|
*/
|
|
19
|
-
fetchOneWithErrors: <const A extends SelectArg<T, PropertyKeys<T>, boolean>>(options?: A) => Promise<Result<
|
|
19
|
+
fetchOneWithErrors: <const A extends SelectArg<T, PropertyKeys<T>, boolean>>(options?: A) => Promise<Result<A extends FetchPageArgs<T, infer L, infer R, any, infer S> ? Osdk.Instance<T, ExtractOptions<R, S>, L> : Osdk.Instance<T>>>;
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=LinkDefinitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDefinitions.d.ts","sourceRoot":"","sources":["../../../src/definitions/LinkDefinitions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"LinkDefinitions.d.ts","sourceRoot":"","sources":["../../../src/definitions/LinkDefinitions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjE,4EAA4E;AAC5E,MAAM,MAAM,qBAAqB,CAC/B,CAAC,SAAS,oBAAoB,IAC5B,uBAAuB,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG;IACrD,QAAQ,EAAE,CAAC,IAAI,uBAAuB,CAAC,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAC9B,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,uBAAuB,CAAC,CAAC,CAAC,IAClC,mBAAmB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SACpC,cAAc,CAAC,IAAI,CAAC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0,0 +1,8 @@
|
|
|
1
|
+
export type Experiment<V extends string, T extends string = string, K extends Record<string, (...args: any[]) => any> = any> = {
|
|
2
|
+
type: "experiment";
|
|
3
|
+
name: T;
|
|
4
|
+
branded?: K;
|
|
5
|
+
version: V;
|
|
6
|
+
};
|
|
7
|
+
export type ExperimentFns<B extends Experiment<string, string>> = NonNullable<B["branded"]>;
|
|
8
|
+
//# sourceMappingURL=Experiment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Experiment.d.ts","sourceRoot":"","sources":["../../../src/experimental/Experiment.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,UAAU,CACpB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,GAAG,GAAG,IACrD;IACF,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ,OAAO,EAAE,CAAC,CAAC;CACZ,CAAC;AACF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,WAAW,CAC3E,CAAC,CAAC,SAAS,CAAC,CACb,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=Experiment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Experiment.js","names":[],"sources":["Experiment.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":[]}
|