@confighub/rtk-query 0.9.14 → 0.9.16

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/dist/index.d.cts CHANGED
@@ -7474,7 +7474,7 @@ type BulkCreateLinksApiArg = {
7474
7474
 
7475
7475
  Supported attributes for filtering on Link: Annotations, AutoUpdate, BackingUnitID, Bindings, Clearance, CreatedAt, DeleteGates, DisplayName, DownstreamLastMergedRevisionNum, DownstreamPaths, DownstreamSetters, FromUnitID, Guards, Hash, HiddenReason, Labels, LinkID, ManualBindings, MergeEnableSubtraction, OrganizationID, Permissions, Protect, Slug, SpaceID, Squash, Stale, ToSpaceID, ToUnitID, TransformInvocationID, UpdateType, UpdatedAt, UpstreamGetters, UpstreamLastMergedRevisionNum, UpstreamLinkID, UpstreamPaths, UpstreamSpaceID.
7476
7476
 
7477
- Where expression to find downstream UpgradeUnit links from each source link's FromUnit. Creates one copy per match. Required if reverse is not specified.
7477
+ Where expression to find downstream UpgradeUnit links from each source link's FromUnit. Creates one copy per match. Exactly one of reverse, from_downstream_where and where_space/filter_space is required.
7478
7478
 
7479
7479
  The whole string must be query-encoded. */
7480
7480
  fromDownstreamWhere?: string;
@@ -7518,6 +7518,58 @@ type BulkCreateLinksApiArg = {
7518
7518
 
7519
7519
  The whole string must be query-encoded. */
7520
7520
  toDownstreamWhere?: string;
7521
+ /** The specified string is an expression for the purpose of filtering
7522
+ the list of Spaces returned. The expression syntax was inspired by SQL.
7523
+ It supports conjunctions using `AND` of relational expressions of the form *attribute*
7524
+ *operator* *attribute_or_literal*. The attribute names are case-sensitive and PascalCase,
7525
+ as in the JSON encoding.
7526
+ Strings support the following operators: `<`, `>`, `<=`, `>=`, `=`, `!=`, `LIKE`, `NOT LIKE`, `ILIKE`, `~~`, `!~~`, `~`, `~*`, `!~`, `!~*`, `IN`, `NOT IN`.
7527
+ String pattern operators: `LIKE` and `~~` for pattern matching with `%` and `_` wildcards,
7528
+ `ILIKE` for case-insensitive pattern matching, `NOT LIKE` and `!~~` for negated pattern matching.
7529
+ String regex operators: `~` for regex matching, `~*` for case-insensitive regex,
7530
+ `!~` and `!~*` for regex not matching (case-sensitive and insensitive).
7531
+ Integers support the following operators: `<`, `>`, `<=`, `>=`, `=`, `!=`, `IN`, `NOT IN`.
7532
+ UUIDs and boolean attributes support equality and inequality only.
7533
+ UUID and time literals must be quoted as string literals.
7534
+ String literals are quoted with single quotes, such as `'string'`.
7535
+ Time literals use the same form as when serialized as JSON,
7536
+ such as: `CreatedAt > '2025-02-18T23:16:34'`.
7537
+ Integer and boolean literals are also supported for attributes of those types.
7538
+ Arrays support the `?` operator to to match any element of the array,
7539
+ as in `FromLinkID ? '7c61626f-ddbe-41af-93f6-b69f4ab6d308'`.
7540
+ Arrays can perform LEN() to check for length, as in `LEN(FromLinkID) > 0`.
7541
+ An attribute naming a list of other entities can be filtered on their attributes with a `*` segment,
7542
+ as in `FromLink.*.Slug = 'upgrade-app'`, which holds when any element satisfies it.
7543
+ Without the `*` such a reference is an error, since it names no single value to compare.
7544
+ Map support the dot notation to specify a particular map key, as in `Labels.tier = 'Backend'`.
7545
+ Maps support `IS NULL` and `IS NOT NULL` with dot notation to check for key absence or presence,
7546
+ as in `Labels.tier IS NULL` (key doesn't exist) or `Labels.tier IS NOT NULL` (key exists).
7547
+ Comparison results can be tested with `IS TRUE`, `IS FALSE`, `IS NOT TRUE`, and `IS NOT FALSE`.
7548
+ These are useful for nullable columns: `MergeSourceID = '<uuid>' IS NOT FALSE` matches rows where MergeSourceID equals the value OR is NULL.
7549
+ The `IN` and `NOT IN` operators accept a comma-separated list of values in parentheses,
7550
+ such as `Slug IN ('slugone', 'slugtwo')` or `Labels.environment IN ('prod', 'staging')`.
7551
+ Conjunctions are supported using the `AND` operator.
7552
+ An example conjunction is:
7553
+ `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
7554
+
7555
+ Supported attributes for filtering on Space: Annotations, AttributeFilterID, AttributeHash, AttributeIDs, BackingUnitID, ComponentID, CreatedAt, DeleteGates, DisplayName, HiddenReason, Labels, OCIRepositoryURL, OrganizationID, Permissions, ReleaseTargetID, Slug, SpaceID, TriggerFilterID, TriggerHash, TriggerIDs, UpdatedAt, UpstreamSpaceID.
7556
+
7557
+ Where expression selecting spaces to copy each source link to, from and to the units of the same slugs there. A link to a unit in another space keeps that unit. A space with no unit of a slug the link needs gets an error for that copy. UpgradeUnit links are not copied.
7558
+
7559
+ The whole string must be query-encoded. */
7560
+ whereSpace?: string;
7561
+ /** UUID of a Filter entity to apply to the Space list.
7562
+
7563
+ The Filter must be in the same Organization as the user credentials.
7564
+
7565
+ The Filter's From field must match the entity type being filtered (Space).
7566
+
7567
+ For Space-resident entities, if the Filter has a FromSpaceID, it must match the operation's SpaceID.
7568
+
7569
+ The Filter's Where clause will be combined with any explicit 'where' parameter using AND logic.
7570
+
7571
+ If both 'filter' and 'where' parameters are specified, they are combined with AND logic. */
7572
+ filterSpace?: string;
7521
7573
  /** Allowed values are true and false. Default is false. When true, reports success when an entity already exists and returns the existing entity */
7522
7574
  allowExists?: string;
7523
7575
  /** Hidden Link entities, those with a HiddenReason, are left out of the results, or of what a bulk operation acts on, unless this names their HiddenReason.
@@ -25044,11 +25096,11 @@ type UnitProtectionResponse = {
25044
25096
  MutationSources?: ResourceMutationList;
25045
25097
  };
25046
25098
  type ResourceProtection = {
25047
- /** Map of resolved path to its new Protected value: true = a local override a merge must not overwrite, false = the merge's to update */
25099
+ /** Map of resolved path to its new Protected value: true = a local override a merge must not overwrite, false = the merge's to update. The empty path addresses the resource as a whole: a merge withholds every change to a resource protected as a whole, including its deletion and replacement, whatever its paths' values are */
25048
25100
  Protected?: {
25049
25101
  [key: string]: boolean;
25050
25102
  } | null;
25051
- /** Identifies the resource within the unit whose path protection is being set */
25103
+ /** Identifies the resource within the unit whose protection is being set */
25052
25104
  Resource?: ResourceInfo;
25053
25105
  };
25054
25106
  type UnitProtectionRequest = {
package/dist/index.d.ts CHANGED
@@ -7474,7 +7474,7 @@ type BulkCreateLinksApiArg = {
7474
7474
 
7475
7475
  Supported attributes for filtering on Link: Annotations, AutoUpdate, BackingUnitID, Bindings, Clearance, CreatedAt, DeleteGates, DisplayName, DownstreamLastMergedRevisionNum, DownstreamPaths, DownstreamSetters, FromUnitID, Guards, Hash, HiddenReason, Labels, LinkID, ManualBindings, MergeEnableSubtraction, OrganizationID, Permissions, Protect, Slug, SpaceID, Squash, Stale, ToSpaceID, ToUnitID, TransformInvocationID, UpdateType, UpdatedAt, UpstreamGetters, UpstreamLastMergedRevisionNum, UpstreamLinkID, UpstreamPaths, UpstreamSpaceID.
7476
7476
 
7477
- Where expression to find downstream UpgradeUnit links from each source link's FromUnit. Creates one copy per match. Required if reverse is not specified.
7477
+ Where expression to find downstream UpgradeUnit links from each source link's FromUnit. Creates one copy per match. Exactly one of reverse, from_downstream_where and where_space/filter_space is required.
7478
7478
 
7479
7479
  The whole string must be query-encoded. */
7480
7480
  fromDownstreamWhere?: string;
@@ -7518,6 +7518,58 @@ type BulkCreateLinksApiArg = {
7518
7518
 
7519
7519
  The whole string must be query-encoded. */
7520
7520
  toDownstreamWhere?: string;
7521
+ /** The specified string is an expression for the purpose of filtering
7522
+ the list of Spaces returned. The expression syntax was inspired by SQL.
7523
+ It supports conjunctions using `AND` of relational expressions of the form *attribute*
7524
+ *operator* *attribute_or_literal*. The attribute names are case-sensitive and PascalCase,
7525
+ as in the JSON encoding.
7526
+ Strings support the following operators: `<`, `>`, `<=`, `>=`, `=`, `!=`, `LIKE`, `NOT LIKE`, `ILIKE`, `~~`, `!~~`, `~`, `~*`, `!~`, `!~*`, `IN`, `NOT IN`.
7527
+ String pattern operators: `LIKE` and `~~` for pattern matching with `%` and `_` wildcards,
7528
+ `ILIKE` for case-insensitive pattern matching, `NOT LIKE` and `!~~` for negated pattern matching.
7529
+ String regex operators: `~` for regex matching, `~*` for case-insensitive regex,
7530
+ `!~` and `!~*` for regex not matching (case-sensitive and insensitive).
7531
+ Integers support the following operators: `<`, `>`, `<=`, `>=`, `=`, `!=`, `IN`, `NOT IN`.
7532
+ UUIDs and boolean attributes support equality and inequality only.
7533
+ UUID and time literals must be quoted as string literals.
7534
+ String literals are quoted with single quotes, such as `'string'`.
7535
+ Time literals use the same form as when serialized as JSON,
7536
+ such as: `CreatedAt > '2025-02-18T23:16:34'`.
7537
+ Integer and boolean literals are also supported for attributes of those types.
7538
+ Arrays support the `?` operator to to match any element of the array,
7539
+ as in `FromLinkID ? '7c61626f-ddbe-41af-93f6-b69f4ab6d308'`.
7540
+ Arrays can perform LEN() to check for length, as in `LEN(FromLinkID) > 0`.
7541
+ An attribute naming a list of other entities can be filtered on their attributes with a `*` segment,
7542
+ as in `FromLink.*.Slug = 'upgrade-app'`, which holds when any element satisfies it.
7543
+ Without the `*` such a reference is an error, since it names no single value to compare.
7544
+ Map support the dot notation to specify a particular map key, as in `Labels.tier = 'Backend'`.
7545
+ Maps support `IS NULL` and `IS NOT NULL` with dot notation to check for key absence or presence,
7546
+ as in `Labels.tier IS NULL` (key doesn't exist) or `Labels.tier IS NOT NULL` (key exists).
7547
+ Comparison results can be tested with `IS TRUE`, `IS FALSE`, `IS NOT TRUE`, and `IS NOT FALSE`.
7548
+ These are useful for nullable columns: `MergeSourceID = '<uuid>' IS NOT FALSE` matches rows where MergeSourceID equals the value OR is NULL.
7549
+ The `IN` and `NOT IN` operators accept a comma-separated list of values in parentheses,
7550
+ such as `Slug IN ('slugone', 'slugtwo')` or `Labels.environment IN ('prod', 'staging')`.
7551
+ Conjunctions are supported using the `AND` operator.
7552
+ An example conjunction is:
7553
+ `CreatedAt >= '2025-01-07' AND Slug = 'test' AND Labels.mykey = 'myvalue'`.
7554
+
7555
+ Supported attributes for filtering on Space: Annotations, AttributeFilterID, AttributeHash, AttributeIDs, BackingUnitID, ComponentID, CreatedAt, DeleteGates, DisplayName, HiddenReason, Labels, OCIRepositoryURL, OrganizationID, Permissions, ReleaseTargetID, Slug, SpaceID, TriggerFilterID, TriggerHash, TriggerIDs, UpdatedAt, UpstreamSpaceID.
7556
+
7557
+ Where expression selecting spaces to copy each source link to, from and to the units of the same slugs there. A link to a unit in another space keeps that unit. A space with no unit of a slug the link needs gets an error for that copy. UpgradeUnit links are not copied.
7558
+
7559
+ The whole string must be query-encoded. */
7560
+ whereSpace?: string;
7561
+ /** UUID of a Filter entity to apply to the Space list.
7562
+
7563
+ The Filter must be in the same Organization as the user credentials.
7564
+
7565
+ The Filter's From field must match the entity type being filtered (Space).
7566
+
7567
+ For Space-resident entities, if the Filter has a FromSpaceID, it must match the operation's SpaceID.
7568
+
7569
+ The Filter's Where clause will be combined with any explicit 'where' parameter using AND logic.
7570
+
7571
+ If both 'filter' and 'where' parameters are specified, they are combined with AND logic. */
7572
+ filterSpace?: string;
7521
7573
  /** Allowed values are true and false. Default is false. When true, reports success when an entity already exists and returns the existing entity */
7522
7574
  allowExists?: string;
7523
7575
  /** Hidden Link entities, those with a HiddenReason, are left out of the results, or of what a bulk operation acts on, unless this names their HiddenReason.
@@ -25044,11 +25096,11 @@ type UnitProtectionResponse = {
25044
25096
  MutationSources?: ResourceMutationList;
25045
25097
  };
25046
25098
  type ResourceProtection = {
25047
- /** Map of resolved path to its new Protected value: true = a local override a merge must not overwrite, false = the merge's to update */
25099
+ /** Map of resolved path to its new Protected value: true = a local override a merge must not overwrite, false = the merge's to update. The empty path addresses the resource as a whole: a merge withholds every change to a resource protected as a whole, including its deletion and replacement, whatever its paths' values are */
25048
25100
  Protected?: {
25049
25101
  [key: string]: boolean;
25050
25102
  } | null;
25051
- /** Identifies the resource within the unit whose path protection is being set */
25103
+ /** Identifies the resource within the unit whose protection is being set */
25052
25104
  Resource?: ResourceInfo;
25053
25105
  };
25054
25106
  type UnitProtectionRequest = {
package/dist/index.js CHANGED
@@ -1349,6 +1349,8 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
1349
1349
  reverse: queryArg.reverse,
1350
1350
  from_downstream_where: queryArg.fromDownstreamWhere,
1351
1351
  to_downstream_where: queryArg.toDownstreamWhere,
1352
+ where_space: queryArg.whereSpace,
1353
+ filter_space: queryArg.filterSpace,
1352
1354
  allow_exists: queryArg.allowExists,
1353
1355
  include_hidden: queryArg.includeHidden,
1354
1356
  with_backing_units: queryArg.withBackingUnits,