@confighub/rtk-query 0.8.13 → 0.8.14

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
@@ -11820,6 +11820,8 @@ type UploadUnitDataApiArg = {
11820
11820
  lastChangeDescription?: string;
11821
11821
  /** Comma-separated parts of the result to return in addition to the Unit: ConfigData for the configuration the operation produced, MutationSources for what set each value in it, and Diff for what the operation changed, path by path with the values on both sides. None is a field of a Unit, and each costs something to return, so they are returned only when named. A dry run stores nothing, so this is the only way to see what it would have produced. */
11822
11822
  include?: string;
11823
+ /** The DataHash of the configuration this write replaces, as the ETag a read of the Unit's data served it (quoted) or bare. The write is refused with 409 Conflict when the Unit's configuration is not that one, so an edit made from one Unit's configuration, or before somebody else's write, cannot land over another. Omitted, the write is unconditional. */
11824
+ "If-Match"?: string;
11823
11825
  /** Dry run mode: return changed unit(s) but don't update configuration data */
11824
11826
  dryRun?: boolean;
11825
11827
  /** Record the paths this operation writes as protected local overrides, so a later merge from upstream does not overwrite them. Without it the operation claims nothing: each written path keeps whatever the Unit already has for it, and a path with no history is left unprotected. It only ever adds protection -- re-opening a path is the /protection API (cub unit set-protection --unprotect). Has no effect with restore, which rewinds MutationSources to the restored Revision's stored values wholesale. */
package/dist/index.d.ts CHANGED
@@ -11820,6 +11820,8 @@ type UploadUnitDataApiArg = {
11820
11820
  lastChangeDescription?: string;
11821
11821
  /** Comma-separated parts of the result to return in addition to the Unit: ConfigData for the configuration the operation produced, MutationSources for what set each value in it, and Diff for what the operation changed, path by path with the values on both sides. None is a field of a Unit, and each costs something to return, so they are returned only when named. A dry run stores nothing, so this is the only way to see what it would have produced. */
11822
11822
  include?: string;
11823
+ /** The DataHash of the configuration this write replaces, as the ETag a read of the Unit's data served it (quoted) or bare. The write is refused with 409 Conflict when the Unit's configuration is not that one, so an edit made from one Unit's configuration, or before somebody else's write, cannot land over another. Omitted, the write is unconditional. */
11824
+ "If-Match"?: string;
11823
11825
  /** Dry run mode: return changed unit(s) but don't update configuration data */
11824
11826
  dryRun?: boolean;
11825
11827
  /** Record the paths this operation writes as protected local overrides, so a later merge from upstream does not overwrite them. Without it the operation claims nothing: each written path keeps whatever the Unit already has for it, and a path with no history is left unprotected. It only ever adds protection -- re-opening a path is the /protection API (cub unit set-protection --unprotect). Has no effect with restore, which rewinds MutationSources to the restored Revision's stored values wholesale. */
package/dist/index.js CHANGED
@@ -2912,6 +2912,9 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
2912
2912
  url: `/space/${queryArg.spaceId}/unit/${queryArg.unitId}/data`,
2913
2913
  method: "PUT",
2914
2914
  body: queryArg.body,
2915
+ headers: {
2916
+ "If-Match": queryArg["If-Match"]
2917
+ },
2915
2918
  params: {
2916
2919
  last_change_description: queryArg.lastChangeDescription,
2917
2920
  include: queryArg.include,