@enonic-types/lib-node 8.0.0-A2 → 8.0.0-A6

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.
Files changed (2) hide show
  1. package/node.d.ts +2 -8
  2. package/package.json +2 -2
package/node.d.ts CHANGED
@@ -13,9 +13,6 @@ declare global {
13
13
  }
14
14
  import type { Aggregations, AggregationsResult, AggregationsToAggregationResults, ByteSource, Filter, Highlight, HighlightResult, PrincipalKey, QueryDsl, SortDsl } from '@enonic-types/core';
15
15
  export type { Aggregation, Aggregations, AggregationsResult, BooleanDslExpression, BooleanFilter, Bucket, BucketsAggregationResult, BucketsAggregationsUnion, ByteSource, DateBucket, DateHistogramAggregation, DateRange, DateRangeAggregation, DistanceUnit, DslOperator, DslQueryType, ExistsDslExpression, ExistsFilter, FieldSortDsl, Filter, FulltextDslExpression, GeoDistanceAggregation, GeoDistanceSortDsl, GroupKey, HasValueFilter, Highlight, HighlightResult, HistogramAggregation, IdsFilter, InDslExpression, LikeDslExpression, MatchAllDslExpression, MaxAggregation, MinAggregation, NgramDslExpression, NotExistsFilter, NumericBucket, NumericRange, NumericRangeAggregation, PathMatchDslExpression, PrincipalKey, QueryDsl, RangeDslExpression, RoleKey, ScriptValue, SingleValueMetricAggregationResult, SingleValueMetricAggregationsUnion, SortDirection, SortDsl, StatsAggregation, StatsAggregationResult, StemmedDslExpression, TermDslExpression, TermsAggregation, UserKey, ValueCountAggregation, ValueType, } from '@enonic-types/core';
16
- type WithRequiredProperty<T, K extends keyof T> = T & {
17
- [P in K]-?: T[P];
18
- };
19
16
  export interface TermSuggestion {
20
17
  text: string;
21
18
  term: TermSuggestionOptions;
@@ -354,7 +351,7 @@ export interface ConnectParams {
354
351
  */
355
352
  export declare function connect(params: ConnectParams): RepoConnection;
356
353
  export interface MultiRepoConnectParams {
357
- sources: WithRequiredProperty<ConnectParams, 'principals'>[];
354
+ sources: Omit<ConnectParams, 'user'>[];
358
355
  }
359
356
  /**
360
357
  * Creates a connection to several repositories with a given branch and authentication info.
@@ -365,10 +362,7 @@ export interface MultiRepoConnectParams {
365
362
  * @param {object[]} params.sources array of sources to connect to
366
363
  * @param {object} params.sources.repoId repository id
367
364
  * @param {object} params.sources.branch branch id
368
- * @param {object} [params.sources.user] User to execute the callback with. Default is the current user.
369
- * @param {string} params.sources.user.login Login of the user.
370
- * @param {string} [params.sources.user.idProvider] Id provider containing the user. By default, the system id provider is used.
371
- * @param {string[]} params.sources.principals Principals to execute the callback with.
365
+ * @param {string[]} [params.sources.principals] Principals to execute the callback with. Uses principals in context if not specified or empty.
372
366
  *
373
367
  * @returns {MultiRepoConnection} Returns a new multirepo-connection.
374
368
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/lib-node",
3
- "version": "8.0.0-A2",
3
+ "version": "8.0.0-A6",
4
4
  "description": "Type definitions for lib-node.",
5
5
  "types": "node.d.ts",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/enonic/xp/tree/master#readme",
29
29
  "dependencies": {
30
- "@enonic-types/core": "8.0.0-A2"
30
+ "@enonic-types/core": "8.0.0-A6"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"