@sanity/client 6.19.0 → 6.19.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.
@@ -598,7 +598,7 @@ export declare type DeleteAction = {
598
598
  /**
599
599
  * Delete document history
600
600
  */
601
- purge: boolean
601
+ purge?: boolean
602
602
  }
603
603
 
604
604
  /**
@@ -623,7 +623,7 @@ export declare type DiscardAction = {
623
623
  /**
624
624
  * Delete document history
625
625
  */
626
- purge: boolean
626
+ purge?: boolean
627
627
  }
628
628
 
629
629
  /**
@@ -1951,7 +1951,7 @@ export declare type PublishAction = {
1951
1951
  /**
1952
1952
  * Draft revision ID to match
1953
1953
  */
1954
- ifDraftRevisionId: string
1954
+ ifDraftRevisionId?: string
1955
1955
  /**
1956
1956
  * Published document ID to replace
1957
1957
  */
@@ -1959,7 +1959,7 @@ export declare type PublishAction = {
1959
1959
  /**
1960
1960
  * Published revision ID to match
1961
1961
  */
1962
- ifPublishedRevisionId: string
1962
+ ifPublishedRevisionId?: string
1963
1963
  }
1964
1964
 
1965
1965
  /** @public */
@@ -2065,10 +2065,6 @@ export declare type ReconnectEvent = {
2065
2065
  */
2066
2066
  export declare type ReplaceDraftAction = {
2067
2067
  actionType: 'sanity.action.document.replaceDraft'
2068
- /**
2069
- * Draft document ID to replace, if it exists.
2070
- */
2071
- draftId: string
2072
2068
  /**
2073
2069
  * Published document ID to create draft from, if draft does not exist
2074
2070
  */
@@ -598,7 +598,7 @@ export declare type DeleteAction = {
598
598
  /**
599
599
  * Delete document history
600
600
  */
601
- purge: boolean
601
+ purge?: boolean
602
602
  }
603
603
 
604
604
  /**
@@ -623,7 +623,7 @@ export declare type DiscardAction = {
623
623
  /**
624
624
  * Delete document history
625
625
  */
626
- purge: boolean
626
+ purge?: boolean
627
627
  }
628
628
 
629
629
  /**
@@ -1951,7 +1951,7 @@ export declare type PublishAction = {
1951
1951
  /**
1952
1952
  * Draft revision ID to match
1953
1953
  */
1954
- ifDraftRevisionId: string
1954
+ ifDraftRevisionId?: string
1955
1955
  /**
1956
1956
  * Published document ID to replace
1957
1957
  */
@@ -1959,7 +1959,7 @@ export declare type PublishAction = {
1959
1959
  /**
1960
1960
  * Published revision ID to match
1961
1961
  */
1962
- ifPublishedRevisionId: string
1962
+ ifPublishedRevisionId?: string
1963
1963
  }
1964
1964
 
1965
1965
  /** @public */
@@ -2065,10 +2065,6 @@ export declare type ReconnectEvent = {
2065
2065
  */
2066
2066
  export declare type ReplaceDraftAction = {
2067
2067
  actionType: 'sanity.action.document.replaceDraft'
2068
- /**
2069
- * Draft document ID to replace, if it exists.
2070
- */
2071
- draftId: string
2072
2068
  /**
2073
2069
  * Published document ID to create draft from, if draft does not exist
2074
2070
  */
package/dist/index.cjs CHANGED
@@ -1534,7 +1534,7 @@ function defineDeprecatedCreateClient(createClient2) {
1534
1534
  return printNoDefaultExport(), createClient2(config);
1535
1535
  };
1536
1536
  }
1537
- var name = "@sanity/client", version = "6.19.0";
1537
+ var name = "@sanity/client", version = "6.19.1";
1538
1538
  const middleware = [
1539
1539
  middleware$1.debug({ verbose: !0, namespace: "sanity:client" }),
1540
1540
  middleware$1.headers({ "User-Agent": `${name} ${version}` }),
package/dist/index.d.cts CHANGED
@@ -598,7 +598,7 @@ export declare type DeleteAction = {
598
598
  /**
599
599
  * Delete document history
600
600
  */
601
- purge: boolean
601
+ purge?: boolean
602
602
  }
603
603
 
604
604
  /**
@@ -623,7 +623,7 @@ export declare type DiscardAction = {
623
623
  /**
624
624
  * Delete document history
625
625
  */
626
- purge: boolean
626
+ purge?: boolean
627
627
  }
628
628
 
629
629
  /**
@@ -1951,7 +1951,7 @@ export declare type PublishAction = {
1951
1951
  /**
1952
1952
  * Draft revision ID to match
1953
1953
  */
1954
- ifDraftRevisionId: string
1954
+ ifDraftRevisionId?: string
1955
1955
  /**
1956
1956
  * Published document ID to replace
1957
1957
  */
@@ -1959,7 +1959,7 @@ export declare type PublishAction = {
1959
1959
  /**
1960
1960
  * Published revision ID to match
1961
1961
  */
1962
- ifPublishedRevisionId: string
1962
+ ifPublishedRevisionId?: string
1963
1963
  }
1964
1964
 
1965
1965
  /** @public */
@@ -2065,10 +2065,6 @@ export declare type ReconnectEvent = {
2065
2065
  */
2066
2066
  export declare type ReplaceDraftAction = {
2067
2067
  actionType: 'sanity.action.document.replaceDraft'
2068
- /**
2069
- * Draft document ID to replace, if it exists.
2070
- */
2071
- draftId: string
2072
2068
  /**
2073
2069
  * Published document ID to create draft from, if draft does not exist
2074
2070
  */
package/dist/index.d.ts CHANGED
@@ -598,7 +598,7 @@ export declare type DeleteAction = {
598
598
  /**
599
599
  * Delete document history
600
600
  */
601
- purge: boolean
601
+ purge?: boolean
602
602
  }
603
603
 
604
604
  /**
@@ -623,7 +623,7 @@ export declare type DiscardAction = {
623
623
  /**
624
624
  * Delete document history
625
625
  */
626
- purge: boolean
626
+ purge?: boolean
627
627
  }
628
628
 
629
629
  /**
@@ -1951,7 +1951,7 @@ export declare type PublishAction = {
1951
1951
  /**
1952
1952
  * Draft revision ID to match
1953
1953
  */
1954
- ifDraftRevisionId: string
1954
+ ifDraftRevisionId?: string
1955
1955
  /**
1956
1956
  * Published document ID to replace
1957
1957
  */
@@ -1959,7 +1959,7 @@ export declare type PublishAction = {
1959
1959
  /**
1960
1960
  * Published revision ID to match
1961
1961
  */
1962
- ifPublishedRevisionId: string
1962
+ ifPublishedRevisionId?: string
1963
1963
  }
1964
1964
 
1965
1965
  /** @public */
@@ -2065,10 +2065,6 @@ export declare type ReconnectEvent = {
2065
2065
  */
2066
2066
  export declare type ReplaceDraftAction = {
2067
2067
  actionType: 'sanity.action.document.replaceDraft'
2068
- /**
2069
- * Draft document ID to replace, if it exists.
2070
- */
2071
- draftId: string
2072
2068
  /**
2073
2069
  * Published document ID to create draft from, if draft does not exist
2074
2070
  */
package/dist/index.js CHANGED
@@ -1517,7 +1517,7 @@ function defineDeprecatedCreateClient(createClient2) {
1517
1517
  return printNoDefaultExport(), createClient2(config);
1518
1518
  };
1519
1519
  }
1520
- var name = "@sanity/client", version = "6.19.0";
1520
+ var name = "@sanity/client", version = "6.19.1";
1521
1521
  const middleware = [
1522
1522
  debug({ verbose: !0, namespace: "sanity:client" }),
1523
1523
  headers({ "User-Agent": `${name} ${version}` }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "6.19.0",
3
+ "version": "6.19.1",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -129,8 +129,8 @@
129
129
  "@sanity/pkg-utils": "^6.8.18",
130
130
  "@types/json-diff": "^1.0.3",
131
131
  "@types/node": "^20.8.8",
132
- "@typescript-eslint/eslint-plugin": "^7.10.0",
133
- "@typescript-eslint/parser": "^7.10.0",
132
+ "@typescript-eslint/eslint-plugin": "^7.11.0",
133
+ "@typescript-eslint/parser": "^7.11.0",
134
134
  "@vercel/stega": "0.1.2",
135
135
  "@vitest/coverage-v8": "1.6.0",
136
136
  "eslint": "^8.57.0",
package/src/types.ts CHANGED
@@ -556,11 +556,6 @@ export type CreateAction = {
556
556
  export type ReplaceDraftAction = {
557
557
  actionType: 'sanity.action.document.replaceDraft'
558
558
 
559
- /**
560
- * Draft document ID to replace, if it exists.
561
- */
562
- draftId: string
563
-
564
559
  /**
565
560
  * Published document ID to create draft from, if draft does not exist
566
561
  */
@@ -621,7 +616,7 @@ export type DeleteAction = {
621
616
  /**
622
617
  * Delete document history
623
618
  */
624
- purge: boolean
619
+ purge?: boolean
625
620
  }
626
621
 
627
622
  /**
@@ -641,7 +636,7 @@ export type DiscardAction = {
641
636
  /**
642
637
  * Delete document history
643
638
  */
644
- purge: boolean
639
+ purge?: boolean
645
640
  }
646
641
 
647
642
  /**
@@ -664,7 +659,7 @@ export type PublishAction = {
664
659
  /**
665
660
  * Draft revision ID to match
666
661
  */
667
- ifDraftRevisionId: string
662
+ ifDraftRevisionId?: string
668
663
 
669
664
  /**
670
665
  * Published document ID to replace
@@ -674,7 +669,7 @@ export type PublishAction = {
674
669
  /**
675
670
  * Published revision ID to match
676
671
  */
677
- ifPublishedRevisionId: string
672
+ ifPublishedRevisionId?: string
678
673
  }
679
674
 
680
675
  /**