likec4 1.19.0 → 1.19.2

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.
@@ -330,12 +330,20 @@ declare namespace RelationExpr {
330
330
  inout: FqnExpr<D, M>;
331
331
  };
332
332
  const isInOut: (expr: ExpressionV2) => expr is InOut;
333
+ type Where<D = Fqn, M = Fqn> = {
334
+ where: {
335
+ expr: ExpressionV2<D, M>;
336
+ condition: WhereOperator<string, string>;
337
+ };
338
+ };
339
+ const isWhere: (expr: ExpressionV2) => expr is Where;
333
340
  }
334
341
  type RelationExpr<D = Fqn, M = Fqn> = ExclusiveUnion<{
335
342
  Direct: RelationExpr.Direct<D, M>;
336
343
  Incoming: RelationExpr.Incoming<D, M>;
337
344
  Outgoing: RelationExpr.Outgoing<D, M>;
338
345
  InOut: RelationExpr.InOut<D, M>;
346
+ Where: RelationExpr.Where<D, M>;
339
347
  }>;
340
348
  /**
341
349
  * Represents a version 2 expression which can be one of several types.
@@ -351,6 +359,7 @@ type ExpressionV2<D = Fqn, M = Fqn> = ExclusiveUnion<{
351
359
  Incoming: RelationExpr.Incoming<D, M>;
352
360
  Outgoing: RelationExpr.Outgoing<D, M>;
353
361
  InOut: RelationExpr.InOut<D, M>;
362
+ RelationPredicateOrWhere: RelationExpr.Where<D, M>;
354
363
  }>;
355
364
  declare namespace ExpressionV2 {
356
365
  const isFqnExpr: (expr: ExpressionV2) => expr is FqnExpr;
@@ -755,6 +764,7 @@ interface DeployedInstance {
755
764
  readonly title?: string;
756
765
  readonly description?: string | null;
757
766
  readonly technology?: string | null;
767
+ readonly kind?: string | null;
758
768
  readonly tags?: NonEmptyArray<Tag> | null;
759
769
  readonly links?: NonEmptyArray<Link> | null;
760
770
  readonly style?: DeploymentElementStyle;
@@ -1081,6 +1091,7 @@ declare class RelationshipModel<M extends AnyAux = AnyAux> {
1081
1091
  get description(): string | null;
1082
1092
  get navigateTo(): LikeC4ViewModel<M> | null;
1083
1093
  get tags(): ReadonlyArray<Tag>;
1094
+ get kind(): string | null;
1084
1095
  get links(): ReadonlyArray<Link>;
1085
1096
  /**
1086
1097
  * Iterate over all views that include this relationship.
@@ -1315,6 +1326,7 @@ declare abstract class AbstractDeploymentElementModel<M extends AnyAux = AnyAux>
1315
1326
  get shape(): ElementShape;
1316
1327
  get color(): ThemeColor;
1317
1328
  get tags(): ReadonlyArray<Tag>;
1329
+ get kind(): DeploymentNodeKind | string | null;
1318
1330
  get description(): string | null;
1319
1331
  get technology(): string | null;
1320
1332
  get links(): ReadonlyArray<Link>;
@@ -1415,6 +1427,7 @@ declare class DeployedInstanceModel<M extends AnyAux = AnyAux> extends AbstractD
1415
1427
  get shape(): ElementShape;
1416
1428
  get color(): ThemeColor;
1417
1429
  get tags(): ReadonlyArray<Tag>;
1430
+ get kind(): string | null;
1418
1431
  get description(): string | null;
1419
1432
  get technology(): string | null;
1420
1433
  get links(): ReadonlyArray<Link>;
@@ -1455,6 +1468,7 @@ declare class DeploymentRelationModel<M extends AnyAux = AnyAux> {
1455
1468
  get technology(): string | null;
1456
1469
  get description(): string | null;
1457
1470
  get tags(): ReadonlyArray<Tag>;
1471
+ get kind(): RelationshipKind | null;
1458
1472
  get navigateTo(): LikeC4ViewModel<M> | null;
1459
1473
  get links(): ReadonlyArray<Link>;
1460
1474
  views(): IteratorLike<LikeC4ViewModel<M, ComputedDeploymentView>>;
@@ -330,12 +330,20 @@ declare namespace RelationExpr {
330
330
  inout: FqnExpr<D, M>;
331
331
  };
332
332
  const isInOut: (expr: ExpressionV2) => expr is InOut;
333
+ type Where<D = Fqn, M = Fqn> = {
334
+ where: {
335
+ expr: ExpressionV2<D, M>;
336
+ condition: WhereOperator<string, string>;
337
+ };
338
+ };
339
+ const isWhere: (expr: ExpressionV2) => expr is Where;
333
340
  }
334
341
  type RelationExpr<D = Fqn, M = Fqn> = ExclusiveUnion<{
335
342
  Direct: RelationExpr.Direct<D, M>;
336
343
  Incoming: RelationExpr.Incoming<D, M>;
337
344
  Outgoing: RelationExpr.Outgoing<D, M>;
338
345
  InOut: RelationExpr.InOut<D, M>;
346
+ Where: RelationExpr.Where<D, M>;
339
347
  }>;
340
348
  /**
341
349
  * Represents a version 2 expression which can be one of several types.
@@ -351,6 +359,7 @@ type ExpressionV2<D = Fqn, M = Fqn> = ExclusiveUnion<{
351
359
  Incoming: RelationExpr.Incoming<D, M>;
352
360
  Outgoing: RelationExpr.Outgoing<D, M>;
353
361
  InOut: RelationExpr.InOut<D, M>;
362
+ RelationPredicateOrWhere: RelationExpr.Where<D, M>;
354
363
  }>;
355
364
  declare namespace ExpressionV2 {
356
365
  const isFqnExpr: (expr: ExpressionV2) => expr is FqnExpr;
@@ -755,6 +764,7 @@ interface DeployedInstance {
755
764
  readonly title?: string;
756
765
  readonly description?: string | null;
757
766
  readonly technology?: string | null;
767
+ readonly kind?: string | null;
758
768
  readonly tags?: NonEmptyArray<Tag> | null;
759
769
  readonly links?: NonEmptyArray<Link> | null;
760
770
  readonly style?: DeploymentElementStyle;
@@ -1081,6 +1091,7 @@ declare class RelationshipModel<M extends AnyAux = AnyAux> {
1081
1091
  get description(): string | null;
1082
1092
  get navigateTo(): LikeC4ViewModel<M> | null;
1083
1093
  get tags(): ReadonlyArray<Tag>;
1094
+ get kind(): string | null;
1084
1095
  get links(): ReadonlyArray<Link>;
1085
1096
  /**
1086
1097
  * Iterate over all views that include this relationship.
@@ -1315,6 +1326,7 @@ declare abstract class AbstractDeploymentElementModel<M extends AnyAux = AnyAux>
1315
1326
  get shape(): ElementShape;
1316
1327
  get color(): ThemeColor;
1317
1328
  get tags(): ReadonlyArray<Tag>;
1329
+ get kind(): DeploymentNodeKind | string | null;
1318
1330
  get description(): string | null;
1319
1331
  get technology(): string | null;
1320
1332
  get links(): ReadonlyArray<Link>;
@@ -1415,6 +1427,7 @@ declare class DeployedInstanceModel<M extends AnyAux = AnyAux> extends AbstractD
1415
1427
  get shape(): ElementShape;
1416
1428
  get color(): ThemeColor;
1417
1429
  get tags(): ReadonlyArray<Tag>;
1430
+ get kind(): string | null;
1418
1431
  get description(): string | null;
1419
1432
  get technology(): string | null;
1420
1433
  get links(): ReadonlyArray<Link>;
@@ -1455,6 +1468,7 @@ declare class DeploymentRelationModel<M extends AnyAux = AnyAux> {
1455
1468
  get technology(): string | null;
1456
1469
  get description(): string | null;
1457
1470
  get tags(): ReadonlyArray<Tag>;
1471
+ get kind(): RelationshipKind | null;
1458
1472
  get navigateTo(): LikeC4ViewModel<M> | null;
1459
1473
  get links(): ReadonlyArray<Link>;
1460
1474
  views(): IteratorLike<LikeC4ViewModel<M, ComputedDeploymentView>>;