@osdk/client 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/build/browser/{chunk-T5DZREKX.js → chunk-CBENBC5L.js} +12 -10
- package/build/browser/chunk-CBENBC5L.js.map +1 -0
- package/build/browser/index.js +3 -3
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/unstable-do-not-use.js +13 -13
- package/build/browser/public/unstable-do-not-use.js.map +1 -1
- package/build/cjs/{chunk-VW7XYOFL.cjs → chunk-JVA3MVZE.cjs} +12 -10
- package/build/cjs/chunk-JVA3MVZE.cjs.map +1 -0
- package/build/cjs/index.cjs +7 -7
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.cjs +19 -19
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/esm/MinimalClientContext.d.ts +0 -2
- package/build/esm/MinimalClientContext.d.ts.map +1 -1
- package/build/esm/{chunk-T5DZREKX.js → chunk-CBENBC5L.js} +12 -10
- package/build/esm/chunk-CBENBC5L.js.map +1 -0
- package/build/esm/createClient.d.ts +0 -5
- package/build/esm/createClient.d.ts.map +1 -1
- package/build/esm/createMinimalClient.d.ts +1 -9
- package/build/esm/createMinimalClient.d.ts.map +1 -1
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/internal/conversions/legacyToModernSingleAggregationResult.d.ts +1 -5
- package/build/esm/internal/conversions/legacyToModernSingleAggregationResult.d.ts.map +1 -1
- package/build/esm/internal/conversions/modernToLegacyAggregationClause.d.ts +1 -3
- package/build/esm/internal/conversions/modernToLegacyAggregationClause.d.ts.map +1 -1
- package/build/esm/internal/conversions/modernToLegacyGroupByClause.d.ts +1 -3
- package/build/esm/internal/conversions/modernToLegacyGroupByClause.d.ts.map +1 -1
- package/build/esm/internal/conversions/modernToLegacyWhereClause.d.ts +1 -4
- package/build/esm/internal/conversions/modernToLegacyWhereClause.d.ts.map +1 -1
- package/build/esm/object/aggregate.d.ts +1 -7
- package/build/esm/object/aggregate.d.ts.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/ObjectHolder.d.ts +1 -20
- package/build/esm/object/convertWireToOsdkObjects/ObjectHolder.d.ts.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.d.ts +1 -5
- package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.d.ts.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.d.ts +1 -5
- package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.d.ts.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/getDollarAs.d.ts +0 -5
- package/build/esm/object/convertWireToOsdkObjects/getDollarAs.d.ts.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/getDollarLink.d.ts +1 -3
- package/build/esm/object/convertWireToOsdkObjects/getDollarLink.d.ts.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects.d.ts +1 -21
- package/build/esm/object/convertWireToOsdkObjects.d.ts.map +1 -1
- package/build/esm/object/fetchPage.d.ts +2 -13
- package/build/esm/object/fetchPage.d.ts.map +1 -1
- package/build/esm/object/fetchSingle.d.ts +1 -6
- package/build/esm/object/fetchSingle.d.ts.map +1 -1
- package/build/esm/objectSet/ObjectSetFactory.d.ts +1 -5
- package/build/esm/objectSet/ObjectSetFactory.d.ts.map +1 -1
- package/build/esm/objectSet/ObjectSetListenerWebsocket.d.ts +0 -15
- package/build/esm/objectSet/ObjectSetListenerWebsocket.d.ts.map +1 -1
- package/build/esm/objectSet/createObjectSet.d.ts +1 -8
- package/build/esm/objectSet/createObjectSet.d.ts.map +1 -1
- package/build/esm/objectSet/createUnstableObjectSet.d.ts +0 -3
- package/build/esm/objectSet/createUnstableObjectSet.d.ts.map +1 -1
- package/build/esm/objectSet/toConjureObjectSet.d.ts +1 -6
- package/build/esm/objectSet/toConjureObjectSet.d.ts.map +1 -1
- package/build/esm/public/unstable-do-not-use.js +13 -13
- package/build/esm/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/util/WireObjectSet.d.ts +1 -2
- package/build/esm/util/WireObjectSet.d.ts.map +1 -1
- package/build/esm/util/addUserAgentAndRequestContextHeaders.d.ts.map +1 -1
- package/build/esm/util/isOntologyObjectV2.d.ts +1 -2
- package/build/esm/util/isOntologyObjectV2.d.ts.map +1 -1
- package/build/esm/util/toDataValue.d.ts +1 -8
- package/build/esm/util/toDataValue.d.ts.map +1 -1
- package/build/esm/util/toDataValueQueries.d.ts +1 -9
- package/build/esm/util/toDataValueQueries.d.ts.map +1 -1
- package/package.json +12 -12
- package/build/browser/chunk-T5DZREKX.js.map +0 -1
- package/build/cjs/chunk-VW7XYOFL.cjs.map +0 -1
- package/build/esm/chunk-T5DZREKX.js.map +0 -1
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { AggregationV2 } from "@osdk/internal.foundry";
|
|
3
|
-
export declare function modernToLegacyAggregationClause<AC extends UnorderedAggregationClause<any> | OrderedAggregationClause<any>>(select: AC): AggregationV2[];
|
|
1
|
+
export {};
|
|
4
2
|
//# sourceMappingURL=modernToLegacyAggregationClause.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modernToLegacyAggregationClause.d.ts","sourceRoot":"","sources":["../../../../src/internal/conversions/modernToLegacyAggregationClause.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modernToLegacyAggregationClause.d.ts","sourceRoot":"","sources":["../../../../src/internal/conversions/modernToLegacyAggregationClause.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { AggregationGroupByV2 } from "@osdk/internal.foundry";
|
|
3
|
-
export declare function modernToLegacyGroupByClause(groupByClause: GroupByClause<any> | undefined): AggregationGroupByV2[];
|
|
1
|
+
export {};
|
|
4
2
|
//# sourceMappingURL=modernToLegacyGroupByClause.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modernToLegacyGroupByClause.d.ts","sourceRoot":"","sources":["../../../../src/internal/conversions/modernToLegacyGroupByClause.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modernToLegacyGroupByClause.d.ts","sourceRoot":"","sources":["../../../../src/internal/conversions/modernToLegacyGroupByClause.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { WhereClause } from "@osdk/client.api";
|
|
3
|
-
import type { SearchJsonQueryV2 } from "@osdk/internal.foundry";
|
|
4
|
-
export declare function modernToLegacyWhereClause<T extends ObjectOrInterfaceDefinition<any, any>>(whereClause: WhereClause<T>): SearchJsonQueryV2;
|
|
1
|
+
export {};
|
|
5
2
|
//# sourceMappingURL=modernToLegacyWhereClause.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modernToLegacyWhereClause.d.ts","sourceRoot":"","sources":["../../../../src/internal/conversions/modernToLegacyWhereClause.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modernToLegacyWhereClause.d.ts","sourceRoot":"","sources":["../../../../src/internal/conversions/modernToLegacyWhereClause.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { AggregateOpts, AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, AggregationsResults } from "@osdk/client.api";
|
|
3
|
-
import type { ObjectSet } from "@osdk/internal.foundry";
|
|
4
|
-
import type { MinimalClient } from "../MinimalClientContext.js";
|
|
5
|
-
/** @deprecated use `aggregate` */
|
|
6
|
-
export declare function aggregateOrThrow<Q extends ObjectOrInterfaceDefinition, AO extends AggregateOpts<Q>>(clientCtx: MinimalClient, objectType: Q, objectSet: ObjectSet | undefined, req: AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy<Q, AO>): Promise<AggregationsResults<Q, AO>>;
|
|
7
|
-
export declare function aggregate<Q extends ObjectOrInterfaceDefinition, AO extends AggregateOpts<Q>>(clientCtx: MinimalClient, objectType: Q, objectSet: ObjectSet | undefined, req: AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy<Q, AO>): Promise<AggregationsResults<Q, AO>>;
|
|
1
|
+
export {};
|
|
8
2
|
//# sourceMappingURL=aggregate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate.d.ts","sourceRoot":"","sources":["../../../src/object/aggregate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aggregate.d.ts","sourceRoot":"","sources":["../../../src/object/aggregate.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { OntologyObjectV2 } from "@osdk/internal.foundry";
|
|
3
|
-
import type { MinimalClient } from "../../MinimalClientContext.js";
|
|
4
|
-
import type { FetchedObjectTypeDefinition } from "../../ontology/OntologyProvider.js";
|
|
5
|
-
import type { DollarAsFn } from "./getDollarAs.js";
|
|
6
|
-
import type { get$link } from "./getDollarLink.js";
|
|
7
|
-
import type { ClientRef, ObjectDefRef, RawObject, UnderlyingOsdkObject } from "./InternalSymbols.js";
|
|
8
|
-
export interface ObjectHolderPrototypeOwnProps {
|
|
9
|
-
readonly [ObjectDefRef]: FetchedObjectTypeDefinition<any, any>;
|
|
10
|
-
readonly [ClientRef]: MinimalClient;
|
|
11
|
-
readonly "$as": DollarAsFn;
|
|
12
|
-
readonly "$link": ReturnType<typeof get$link>;
|
|
13
|
-
readonly "$updateInternalValues": (newValues: Record<string, any>) => void;
|
|
14
|
-
}
|
|
15
|
-
export interface ObjectHolderOwnProperties {
|
|
16
|
-
[RawObject]: OntologyObjectV2;
|
|
17
|
-
}
|
|
18
|
-
export interface ObjectHolder<Q extends FetchedObjectTypeDefinition<any, any>> extends ObjectHolderPrototypeOwnProps, ObjectHolderOwnProperties {
|
|
19
|
-
[UnderlyingOsdkObject]: Osdk<Q>;
|
|
20
|
-
}
|
|
1
|
+
export {};
|
|
21
2
|
//# sourceMappingURL=ObjectHolder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectHolder.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/ObjectHolder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObjectHolder.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/ObjectHolder.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Osdk, OsdkObject } from "@osdk/client.api";
|
|
3
|
-
import type { FetchedObjectTypeDefinition } from "../../ontology/OntologyProvider.js";
|
|
4
|
-
import type { ObjectHolder } from "./ObjectHolder.js";
|
|
5
|
-
export declare function createOsdkInterface<Q extends FetchedObjectTypeDefinition<any, any>>(underlying: Osdk<Q> & ObjectHolder<Q>, interfaceDef: InterfaceDefinition<any>): OsdkObject<any>;
|
|
1
|
+
export {};
|
|
6
2
|
//# sourceMappingURL=createOsdkInterface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOsdkInterface.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/createOsdkInterface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createOsdkInterface.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/createOsdkInterface.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { OntologyObjectV2 } from "@osdk/internal.foundry";
|
|
3
|
-
import type { MinimalClient } from "../../MinimalClientContext.js";
|
|
4
|
-
import type { FetchedObjectTypeDefinition } from "../../ontology/OntologyProvider.js";
|
|
5
|
-
export declare function createOsdkObject<Q extends FetchedObjectTypeDefinition<any, any>>(client: MinimalClient, objectDef: Q, rawObj: OntologyObjectV2): Osdk<Q, string, never>;
|
|
1
|
+
export {};
|
|
6
2
|
//# sourceMappingURL=createOsdkObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOsdkObject.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/createOsdkObject.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createOsdkObject.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/createOsdkObject.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import type { ObjectOrInterfaceDefinition } from "@osdk/api";
|
|
2
|
-
import type { Osdk, OsdkObject } from "@osdk/client.api";
|
|
3
1
|
import { type FetchedObjectTypeDefinition } from "../../ontology/OntologyProvider.js";
|
|
4
|
-
import type { InterfaceHolder } from "./InterfaceHolder.js";
|
|
5
|
-
import type { ObjectHolder } from "./ObjectHolder.js";
|
|
6
|
-
export type DollarAsFn = <Q extends FetchedObjectTypeDefinition<any, any>, NEW_Q extends ObjectOrInterfaceDefinition<any>>(this: Osdk<any> & (InterfaceHolder<Q> | ObjectHolder<Q>), newDef: string | NEW_Q) => OsdkObject<any>;
|
|
7
2
|
export declare const get$as: (key: FetchedObjectTypeDefinition<any, any>) => DollarAsFn;
|
|
8
3
|
//# sourceMappingURL=getDollarAs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDollarAs.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/getDollarAs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDollarAs.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/getDollarAs.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,oCAAoC,CAAC;AAgB5C,eAAO,MAAM,MAAM,4DAGa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDollarLink.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/getDollarLink.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDollarLink.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/getDollarLink.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { NullabilityAdherence, Osdk } from "@osdk/client.api";
|
|
3
|
-
import type { OntologyObjectV2 } from "@osdk/internal.foundry";
|
|
4
|
-
import type { MinimalClient } from "../MinimalClientContext.js";
|
|
5
|
-
/**
|
|
6
|
-
* If interfaceApiName is not undefined, converts the instances of the
|
|
7
|
-
* interface into their respective
|
|
8
|
-
* underlying concrete types and then returns the $as() representation
|
|
9
|
-
* for the consumers.
|
|
10
|
-
*
|
|
11
|
-
* Otherwise just does the conversion
|
|
12
|
-
*
|
|
13
|
-
* May mutate in place for performance reasons. If you need a clean copy,
|
|
14
|
-
* keep it first.
|
|
15
|
-
*
|
|
16
|
-
* However, you must use the returned value, which will be whatever is correct.
|
|
17
|
-
*
|
|
18
|
-
* @internal
|
|
19
|
-
* @param interfaceApiName - if undefined
|
|
20
|
-
*/
|
|
21
|
-
export declare function convertWireToOsdkObjects(client: MinimalClient, objects: OntologyObjectV2[], interfaceApiName: string | undefined, forceRemoveRid?: boolean, selectedProps?: ReadonlyArray<string>, strictNonNull?: NullabilityAdherence): Promise<Osdk<ObjectOrInterfaceDefinition>[]>;
|
|
1
|
+
export {};
|
|
22
2
|
//# sourceMappingURL=convertWireToOsdkObjects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertWireToOsdkObjects.d.ts","sourceRoot":"","sources":["../../../src/object/convertWireToOsdkObjects.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convertWireToOsdkObjects.d.ts","sourceRoot":"","sources":["../../../src/object/convertWireToOsdkObjects.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import type { ObjectOrInterfaceDefinition
|
|
2
|
-
import type { Augment
|
|
3
|
-
import type { ObjectSet, SearchJsonQueryV2 } from "@osdk/internal.foundry";
|
|
4
|
-
import type { MinimalClient } from "../MinimalClientContext.js";
|
|
1
|
+
import type { ObjectOrInterfaceDefinition } from "@osdk/api";
|
|
2
|
+
import type { Augment } from "@osdk/client.api";
|
|
5
3
|
export declare function augment<X extends ObjectOrInterfaceDefinition, T extends keyof X["properties"] & string>(type: X, ...properties: T[]): Augment<X, T>;
|
|
6
|
-
/** @internal */
|
|
7
|
-
export declare function objectSetToSearchJsonV2(objectSet: ObjectSet, expectedApiName: string, existingWhere?: SearchJsonQueryV2 | undefined): SearchJsonQueryV2 | undefined;
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare function fetchPageInternal<Q extends ObjectOrInterfaceDefinition, L extends ObjectOrInterfacePropertyKeysFrom2<Q>, R extends boolean, A extends Augments, S extends NullabilityAdherence>(client: MinimalClient, objectType: Q, objectSet: ObjectSet, args?: FetchPageArgs<Q, L, R, A, S>): Promise<FetchPageResult<Q, L, R, S>>;
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare function fetchPageWithErrorsInternal<Q extends ObjectOrInterfaceDefinition, L extends ObjectOrInterfacePropertyKeysFrom2<Q>, R extends boolean, A extends Augments, S extends NullabilityAdherence>(client: MinimalClient, objectType: Q, objectSet: ObjectSet, args?: FetchPageArgs<Q, L, R, A, S>): Promise<Result<FetchPageResult<Q, L, R, S>>>;
|
|
12
|
-
export declare function fetchPage<Q extends ObjectOrInterfaceDefinition, L extends ObjectOrInterfacePropertyKeysFrom2<Q>, R extends boolean, S extends NullabilityAdherence>(client: MinimalClient, objectType: Q, args: FetchPageArgs<Q, L, R, any, S>, objectSet?: ObjectSet): Promise<FetchPageResult<Q, L, R, S>>;
|
|
13
|
-
export declare function fetchPageWithErrors<Q extends ObjectOrInterfaceDefinition, L extends ObjectOrInterfacePropertyKeysFrom2<Q>, R extends boolean, S extends NullabilityAdherence>(client: MinimalClient, objectType: Q, args: FetchPageArgs<Q, L, R, any, S>, objectSet?: ObjectSet): Promise<Result<FetchPageResult<Q, L, R, S>>>;
|
|
14
|
-
export declare function fetchObjectPage<Q extends ObjectTypeDefinition<any>, L extends ObjectOrInterfacePropertyKeysFrom2<Q>, R extends boolean, S extends NullabilityAdherence>(client: MinimalClient, objectType: Q, args: FetchPageArgs<Q, L, R, Augments, S>, objectSet: ObjectSet): Promise<FetchPageResult<Q, L, R, S>>;
|
|
15
4
|
//# sourceMappingURL=fetchPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchPage.d.ts","sourceRoot":"","sources":["../../../src/object/fetchPage.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAEV,2BAA2B,
|
|
1
|
+
{"version":3,"file":"fetchPage.d.ts","sourceRoot":"","sources":["../../../src/object/fetchPage.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAEV,2BAA2B,EAG5B,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,OAAO,EAMR,MAAM,kBAAkB,CAAC;AAgB1B,wBAAgB,OAAO,CACrB,CAAC,SAAS,2BAA2B,EACrC,CAAC,SAAS,MAAM,CAAC,CAAC,YAAY,CAAC,GAAG,MAAM,EAExC,IAAI,EAAE,CAAC,EACP,GAAG,UAAU,EAAE,CAAC,EAAE,GACjB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAEf"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { FetchPageArgs, Osdk, Result, SelectArgToKeys } from "@osdk/client.api";
|
|
3
|
-
import type { ObjectSet } from "@osdk/internal.foundry";
|
|
4
|
-
import type { MinimalClient } from "../MinimalClientContext.js";
|
|
5
|
-
export declare function fetchSingle<Q extends ObjectOrInterfaceDefinition, const A extends FetchPageArgs<Q, any, any>>(client: MinimalClient, objectType: Q, args: A, objectSet: ObjectSet): Promise<Osdk<Q, A["$includeRid"] extends true ? SelectArgToKeys<Q, A> | "$rid" : SelectArgToKeys<Q, A>>>;
|
|
6
|
-
export declare function fetchSingleWithErrors<Q extends ObjectOrInterfaceDefinition, const A extends FetchPageArgs<Q, any, any>>(client: MinimalClient, objectType: Q, args: A, objectSet: ObjectSet): Promise<Result<Osdk<Q, A["$includeRid"] extends true ? SelectArgToKeys<Q, A> | "$rid" : SelectArgToKeys<Q, A>>>>;
|
|
1
|
+
export {};
|
|
7
2
|
//# sourceMappingURL=fetchSingle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchSingle.d.ts","sourceRoot":"","sources":["../../../src/object/fetchSingle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchSingle.d.ts","sourceRoot":"","sources":["../../../src/object/fetchSingle.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ObjectSet } from "@osdk/client.api";
|
|
3
|
-
import type { ObjectSet as WireObjectSet } from "@osdk/internal.foundry";
|
|
4
|
-
import type { MinimalClient } from "../MinimalClientContext.js";
|
|
5
|
-
export type ObjectSetFactory<Q extends ObjectOrInterfaceDefinition, R extends ObjectSet<Q>> = (type: Q, clientCtx: MinimalClient, objectSet?: WireObjectSet) => R;
|
|
1
|
+
export {};
|
|
6
2
|
//# sourceMappingURL=ObjectSetFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectSetFactory.d.ts","sourceRoot":"","sources":["../../../src/objectSet/ObjectSetFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObjectSetFactory.d.ts","sourceRoot":"","sources":["../../../src/objectSet/ObjectSetFactory.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import type { ObjectOrInterfaceDefinition } from "@osdk/api";
|
|
2
|
-
import { type ObjectSet } from "@osdk/internal.foundry";
|
|
3
|
-
import type { MinimalClient } from "../MinimalClientContext.js";
|
|
4
|
-
import type { ObjectSetListener } from "./ObjectSetListener.js";
|
|
5
|
-
export declare class ObjectSetListenerWebsocket {
|
|
6
|
-
#private;
|
|
7
|
-
readonly OBJECT_SET_EXPIRY_MS: number;
|
|
8
|
-
readonly MINIMUM_RECONNECT_DELAY_MS: number;
|
|
9
|
-
static getInstance(client: MinimalClient): ObjectSetListenerWebsocket;
|
|
10
|
-
constructor(client: MinimalClient, { objectSetExpiryMs, minimumReconnectDelayMs, }?: {
|
|
11
|
-
objectSetExpiryMs?: number | undefined;
|
|
12
|
-
minimumReconnectDelayMs?: number | undefined;
|
|
13
|
-
});
|
|
14
|
-
subscribe<Q extends ObjectOrInterfaceDefinition>(objectSet: ObjectSet, listener: ObjectSetListener<Q>): Promise<() => void>;
|
|
15
|
-
}
|
|
16
1
|
export type ObjectPropertyMapping = {
|
|
17
2
|
apiName: string;
|
|
18
3
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectSetListenerWebsocket.d.ts","sourceRoot":"","sources":["../../../src/objectSet/ObjectSetListenerWebsocket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObjectSetListenerWebsocket.d.ts","sourceRoot":"","sources":["../../../src/objectSet/ObjectSetListenerWebsocket.ts"],"names":[],"mappings":"AA4qBA,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpD,CAAC"}
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { MinimalObjectSet, ObjectSet } from "@osdk/client.api";
|
|
3
|
-
import type { ObjectSet as WireObjectSet } from "@osdk/internal.foundry";
|
|
4
|
-
import type { MinimalClient } from "../MinimalClientContext.js";
|
|
5
|
-
export declare function isObjectSet(o: any): o is ObjectSet<any>;
|
|
6
|
-
/** @internal */
|
|
7
|
-
export declare function getWireObjectSet(objectSet: ObjectSet<any> | MinimalObjectSet<any>): WireObjectSet;
|
|
8
|
-
export declare function createObjectSet<Q extends ObjectOrInterfaceDefinition>(objectType: Q, clientCtx: MinimalClient, objectSet?: WireObjectSet): ObjectSet<Q>;
|
|
1
|
+
export {};
|
|
9
2
|
//# sourceMappingURL=createObjectSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createObjectSet.d.ts","sourceRoot":"","sources":["../../../src/objectSet/createObjectSet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createObjectSet.d.ts","sourceRoot":"","sources":["../../../src/objectSet/createObjectSet.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { ObjectOrInterfaceDefinition } from "@osdk/api";
|
|
2
2
|
import type { LinkedType, LinkNames, ObjectSet as OGObjectSet, WhereClause } from "@osdk/client.api";
|
|
3
|
-
import type { ObjectSet as WireObjectSet } from "@osdk/internal.foundry";
|
|
4
|
-
import type { MinimalClient } from "../MinimalClientContext.js";
|
|
5
3
|
import type { ObjectSetListener } from "./ObjectSetListener.js";
|
|
6
4
|
export interface UNSTABLE_ObjectSet<Q extends ObjectOrInterfaceDefinition> extends OGObjectSet<Q> {
|
|
7
5
|
subscribe: (listener: ObjectSetListener<Q>) => () => unknown;
|
|
@@ -11,5 +9,4 @@ export interface UNSTABLE_ObjectSet<Q extends ObjectOrInterfaceDefinition> exten
|
|
|
11
9
|
subtract: (...objectSets: ReadonlyArray<OGObjectSet<Q>>) => UNSTABLE_ObjectSet<Q>;
|
|
12
10
|
pivotTo: <L extends LinkNames<Q>>(type: L) => UNSTABLE_ObjectSet<LinkedType<Q, L>>;
|
|
13
11
|
}
|
|
14
|
-
export declare function UNSTABLE_createObjectSet<Q extends ObjectOrInterfaceDefinition>(objectType: Q, clientCtx: MinimalClient, objectSet?: WireObjectSet): UNSTABLE_ObjectSet<Q>;
|
|
15
12
|
//# sourceMappingURL=createUnstableObjectSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUnstableObjectSet.d.ts","sourceRoot":"","sources":["../../../src/objectSet/createUnstableObjectSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,SAAS,IAAI,WAAW,EACxB,WAAW,EACZ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"createUnstableObjectSet.d.ts","sourceRoot":"","sources":["../../../src/objectSet/createUnstableObjectSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,SAAS,IAAI,WAAW,EACxB,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,2BAA2B,CACvE,SAAQ,WAAW,CAAC,CAAC,CAAC;IAEtB,SAAS,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,MAAM,OAAO,CAAC;IAE7D,KAAK,EAAE,CACL,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KACnB,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAE3B,KAAK,EAAE,CACL,GAAG,UAAU,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KACzC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAE3B,SAAS,EAAE,CACT,GAAG,UAAU,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KACzC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAE3B,QAAQ,EAAE,CACR,GAAG,UAAU,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KACzC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAE3B,OAAO,EAAE,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,EAC9B,IAAI,EAAE,CAAC,KACJ,kBAAkB,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAC3C"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ObjectSet as OssObjectSet } from "@osdk/client.unstable";
|
|
3
|
-
import type { ObjectSet } from "@osdk/internal.foundry";
|
|
4
|
-
import type { ObjectPropertyMapping } from "../__unstable/ConjureSupport.js";
|
|
5
|
-
export declare function toConjureObjectSet<O extends OntologyDefinition<any>, K extends ObjectTypeKeysFrom<O>>(objectSet: ObjectSet, objectPropertyMapping: ObjectPropertyMapping): OssObjectSet;
|
|
6
|
-
export declare function getObjectSetBaseType(objectSet: ObjectSet): Promise<string>;
|
|
1
|
+
export {};
|
|
7
2
|
//# sourceMappingURL=toConjureObjectSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toConjureObjectSet.d.ts","sourceRoot":"","sources":["../../../src/objectSet/toConjureObjectSet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toConjureObjectSet.d.ts","sourceRoot":"","sources":["../../../src/objectSet/toConjureObjectSet.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createSimpleAsyncCache, createClientInternal, createObjectSet, esm_exports, convertWireToOsdkObjects } from '../chunk-
|
|
2
|
-
export { augment } from '../chunk-
|
|
1
|
+
import { createSimpleAsyncCache, createClientInternal, createObjectSet, esm_exports, convertWireToOsdkObjects } from '../chunk-CBENBC5L.js';
|
|
2
|
+
export { augment } from '../chunk-CBENBC5L.js';
|
|
3
3
|
import { symbolClientContext } from '@osdk/shared.client';
|
|
4
4
|
import { getBulkLinksPage, getLinkTypesForObjectTypes, loadOntologyEntities, createTemporaryObjectSet, loadAllOntologies } from '@osdk/client.unstable';
|
|
5
5
|
import { batchEnableWatcher } from '@osdk/client.unstable.osw';
|
|
@@ -408,7 +408,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
408
408
|
* @returns
|
|
409
409
|
*/
|
|
410
410
|
async #initiateSubscribe(sub) {
|
|
411
|
-
if (process
|
|
411
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
412
412
|
this.#logger?.trace("#initiateSubscribe()");
|
|
413
413
|
}
|
|
414
414
|
if (sub.expiry) {
|
|
@@ -438,12 +438,12 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
#sendSubscribeMessage() {
|
|
441
|
-
if (process
|
|
441
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
442
442
|
this.#logger?.trace("#sendSubscribeMessage()");
|
|
443
443
|
}
|
|
444
444
|
const readySubs = [...this.#subscriptions.values()].filter(isReady);
|
|
445
445
|
if (readySubs.length === 0) {
|
|
446
|
-
if (process
|
|
446
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
447
447
|
this.#logger?.trace("#sendSubscribeMessage(): aborting due to no ready subscriptions");
|
|
448
448
|
}
|
|
449
449
|
return;
|
|
@@ -464,7 +464,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
464
464
|
watchAllLinks: false
|
|
465
465
|
}))
|
|
466
466
|
};
|
|
467
|
-
if (process
|
|
467
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
468
468
|
this.#logger?.trace({
|
|
469
469
|
payload: subscribe
|
|
470
470
|
}, "sending subscribe message");
|
|
@@ -472,7 +472,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
472
472
|
this.#ws?.send(JSON.stringify(subscribe));
|
|
473
473
|
}
|
|
474
474
|
#expire(sub) {
|
|
475
|
-
if (process
|
|
475
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
476
476
|
this.#logger?.trace({
|
|
477
477
|
subscription: sub
|
|
478
478
|
}, "#expire()");
|
|
@@ -523,7 +523,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
523
523
|
}
|
|
524
524
|
this.#lastWsConnect = Date.now();
|
|
525
525
|
if (this.#ws == null) {
|
|
526
|
-
if (process
|
|
526
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
527
527
|
this.#logger?.trace("Creating websocket");
|
|
528
528
|
}
|
|
529
529
|
this.#ws = new WebSocket(url, [`Bearer-${token}`]);
|
|
@@ -560,7 +560,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
560
560
|
};
|
|
561
561
|
#onMessage = async (message) => {
|
|
562
562
|
const data = JSON.parse(message.data.toString());
|
|
563
|
-
if (process
|
|
563
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
564
564
|
this.#logger?.trace({
|
|
565
565
|
payload: data
|
|
566
566
|
}, "received message from ws");
|
|
@@ -619,7 +619,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
619
619
|
break;
|
|
620
620
|
case "success":
|
|
621
621
|
const shouldFireOutOfDate = sub.status === "expired" || sub.status === "reconnecting";
|
|
622
|
-
if (process
|
|
622
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
623
623
|
this.#logger?.trace({
|
|
624
624
|
shouldFireOutOfDate
|
|
625
625
|
}, "success");
|
|
@@ -644,7 +644,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
644
644
|
this.#unsubscribe(sub, "error");
|
|
645
645
|
}
|
|
646
646
|
#onClose = (event) => {
|
|
647
|
-
if (process
|
|
647
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
648
648
|
this.#logger?.trace({
|
|
649
649
|
event
|
|
650
650
|
}, "Received close event from ws", event);
|
|
@@ -684,7 +684,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
684
684
|
this.#ws = void 0;
|
|
685
685
|
}
|
|
686
686
|
if (this.#subscriptions.size > 0) {
|
|
687
|
-
if (process
|
|
687
|
+
if (process?.env?.NODE_ENV !== "production") {
|
|
688
688
|
for (const s of this.#subscriptions.values()) {
|
|
689
689
|
!(s.status !== "done" && s.status !== "error") ? process.env.NODE_ENV !== "production" ? invariant2(false, "should not have done/error subscriptions still") : invariant2(false) : void 0;
|
|
690
690
|
}
|
|
@@ -865,5 +865,5 @@ function UNSTABLE_createClient(...args) {
|
|
|
865
865
|
}
|
|
866
866
|
|
|
867
867
|
export { UNSTABLE_createClient as createClient };
|
|
868
|
-
//# sourceMappingURL=
|
|
868
|
+
//# sourceMappingURL=unstable-do-not-use.js.map
|
|
869
869
|
//# sourceMappingURL=unstable-do-not-use.js.map
|