@sanity/client 5.4.3-dev.1 → 5.4.3-dev.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.
package/dist/index.cjs CHANGED
@@ -8,7 +8,7 @@ var getIt = require('get-it');
8
8
  var rxjs = require('rxjs');
9
9
  var operators = require('rxjs/operators');
10
10
  var name = "@sanity/client";
11
- var version = "5.4.3-dev.1";
11
+ var version = "5.4.3-dev.2";
12
12
  const middleware = [middleware$1.debug({
13
13
  verbose: true,
14
14
  namespace: "sanity:client"
package/dist/index.d.ts CHANGED
@@ -323,20 +323,27 @@ export declare class ClientError extends Error {
323
323
  }
324
324
 
325
325
  /** @public */
326
- export declare type ContentSourceMap = {
326
+ export declare interface ContentSourceMap {
327
327
  mappings: ContentSourceMapMappings
328
328
  documents: ContentSourceMapDocuments
329
329
  paths: ContentSourceMapPaths
330
330
  }
331
331
 
332
332
  /** @public */
333
- export declare type ContentSourceMapDocuments = SanityDocument[]
333
+ export declare interface ContentSourceMapDocument {
334
+ _projectId: string
335
+ _dataset: string
336
+ _id: string
337
+ }
338
+
339
+ /** @public */
340
+ export declare type ContentSourceMapDocuments = ContentSourceMapDocument[]
334
341
 
335
342
  /**
336
343
  * DocumentValueSource is a path to a value within a document
337
344
  * @public
338
345
  */
339
- export declare type ContentSourceMapDocumentValueSource = {
346
+ export declare interface ContentSourceMapDocumentValueSource {
340
347
  type: 'documentValue'
341
348
  document: number
342
349
  path: number
@@ -346,7 +353,7 @@ export declare type ContentSourceMapDocumentValueSource = {
346
353
  * When a value is not from a source, its a literal
347
354
  * @public
348
355
  */
349
- export declare type ContentSourceMapLiteralSource = {
356
+ export declare interface ContentSourceMapLiteralSource {
350
357
  type: 'literal'
351
358
  }
352
359
 
@@ -369,7 +376,7 @@ export declare type ContentSourceMapSource =
369
376
  * When a field source is unknown
370
377
  * @public
371
378
  */
372
- export declare type ContentSourceMapUnknownSource = {
379
+ export declare interface ContentSourceMapUnknownSource {
373
380
  type: 'unknown'
374
381
  }
375
382
 
@@ -378,7 +385,7 @@ export declare type ContentSourceMapUnknownSource = {
378
385
  * It may refer to a field within a document or a literal value
379
386
  * @public
380
387
  */
381
- export declare type ContentSourceMapValueMapping = {
388
+ export declare interface ContentSourceMapValueMapping {
382
389
  type: 'value'
383
390
  source: ContentSourceMapSource
384
391
  }
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export { adapter as unstable__adapter, environment as unstable__environment } fr
4
4
  import { Observable, lastValueFrom } from 'rxjs';
5
5
  import { map, filter } from 'rxjs/operators';
6
6
  var name = "@sanity/client";
7
- var version = "5.4.3-dev.1";
7
+ var version = "5.4.3-dev.2";
8
8
  const middleware = [debug({
9
9
  verbose: true,
10
10
  namespace: "sanity:client"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "5.4.3-dev.1",
3
+ "version": "5.4.3-dev.2",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -1,10 +1,8 @@
1
- import type {SanityDocument} from './_legacy'
2
-
3
1
  /**
4
2
  * DocumentValueSource is a path to a value within a document
5
3
  * @public
6
4
  */
7
- export type ContentSourceMapDocumentValueSource = {
5
+ export interface ContentSourceMapDocumentValueSource {
8
6
  type: 'documentValue'
9
7
  // index location of the document
10
8
  document: number
@@ -15,14 +13,14 @@ export type ContentSourceMapDocumentValueSource = {
15
13
  * When a value is not from a source, its a literal
16
14
  * @public
17
15
  */
18
- export type ContentSourceMapLiteralSource = {
16
+ export interface ContentSourceMapLiteralSource {
19
17
  type: 'literal'
20
18
  }
21
19
  /**
22
20
  * When a field source is unknown
23
21
  * @public
24
22
  */
25
- export type ContentSourceMapUnknownSource = {
23
+ export interface ContentSourceMapUnknownSource {
26
24
  type: 'unknown'
27
25
  }
28
26
  /** @public */
@@ -35,7 +33,7 @@ export type ContentSourceMapSource =
35
33
  * It may refer to a field within a document or a literal value
36
34
  * @public
37
35
  */
38
- export type ContentSourceMapValueMapping = {
36
+ export interface ContentSourceMapValueMapping {
39
37
  type: 'value'
40
38
  // source of the value
41
39
  source: ContentSourceMapSource
@@ -47,13 +45,20 @@ export type ContentSourceMapMapping = ContentSourceMapValueMapping
47
45
  export type ContentSourceMapMappings = Record<string, ContentSourceMapMapping>
48
46
 
49
47
  /** @public */
50
- export type ContentSourceMapDocuments = SanityDocument[]
48
+ export interface ContentSourceMapDocument {
49
+ _projectId: string
50
+ _dataset: string
51
+ _id: string
52
+ }
53
+
54
+ /** @public */
55
+ export type ContentSourceMapDocuments = ContentSourceMapDocument[]
51
56
 
52
57
  /** @public */
53
58
  export type ContentSourceMapPaths = string[]
54
59
 
55
60
  /** @public */
56
- export type ContentSourceMap = {
61
+ export interface ContentSourceMap {
57
62
  mappings: ContentSourceMapMappings
58
63
  documents: ContentSourceMapDocuments
59
64
  paths: ContentSourceMapPaths