@sanity/client 7.1.0-views.1 → 7.1.0-views.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/README.md +142 -0
- package/dist/index.browser.cjs +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +3 -1
- package/dist/index.browser.d.ts +3 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +3 -1
- package/dist/stega.browser.d.ts +3 -1
- package/dist/stega.d.cts +3 -1
- package/dist/stega.d.ts +3 -1
- package/dist/views.cjs +11 -3
- package/dist/views.cjs.map +1 -1
- package/dist/views.d.cts +4 -1
- package/dist/views.d.ts +4 -1
- package/dist/views.js +11 -3
- package/dist/views.js.map +1 -1
- package/package.json +1 -1
- package/src/types.ts +3 -1
- package/src/views/index.ts +17 -3
- package/umd/sanityClient.js +1 -1
- package/umd/sanityClient.min.js +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -6085,7 +6085,8 @@ export declare type ViewConnectionOverride = {
|
|
|
6085
6085
|
|
|
6086
6086
|
/** @public */
|
|
6087
6087
|
export declare type ViewOverride = {
|
|
6088
|
-
|
|
6088
|
+
resourceType: ViewResourceType.View
|
|
6089
|
+
resourceId: string
|
|
6089
6090
|
connections: ViewConnectionOverride[]
|
|
6090
6091
|
}
|
|
6091
6092
|
|
|
@@ -6098,6 +6099,7 @@ export declare type ViewQueryOptions = Pick<
|
|
|
6098
6099
|
/** @public */
|
|
6099
6100
|
export declare enum ViewResourceType {
|
|
6100
6101
|
Dataset = 'dataset',
|
|
6102
|
+
View = 'view',
|
|
6101
6103
|
}
|
|
6102
6104
|
|
|
6103
6105
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -6085,7 +6085,8 @@ export declare type ViewConnectionOverride = {
|
|
|
6085
6085
|
|
|
6086
6086
|
/** @public */
|
|
6087
6087
|
export declare type ViewOverride = {
|
|
6088
|
-
|
|
6088
|
+
resourceType: ViewResourceType.View
|
|
6089
|
+
resourceId: string
|
|
6089
6090
|
connections: ViewConnectionOverride[]
|
|
6090
6091
|
}
|
|
6091
6092
|
|
|
@@ -6098,6 +6099,7 @@ export declare type ViewQueryOptions = Pick<
|
|
|
6098
6099
|
/** @public */
|
|
6099
6100
|
export declare enum ViewResourceType {
|
|
6100
6101
|
Dataset = 'dataset',
|
|
6102
|
+
View = 'view',
|
|
6101
6103
|
}
|
|
6102
6104
|
|
|
6103
6105
|
/**
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { debug, headers, agent } from "get-it/middleware";
|
|
|
9
9
|
import { getVersionId, getDraftId, isDraftId, isVersionId, getVersionFromId, getPublishedId } from "@sanity/client/csm";
|
|
10
10
|
import crypto from "crypto";
|
|
11
11
|
import { adapter, environment } from "get-it";
|
|
12
|
-
var ViewResourceType = /* @__PURE__ */ ((ViewResourceType2) => (ViewResourceType2.Dataset = "dataset", ViewResourceType2))(ViewResourceType || {});
|
|
12
|
+
var ViewResourceType = /* @__PURE__ */ ((ViewResourceType2) => (ViewResourceType2.Dataset = "dataset", ViewResourceType2.View = "view", ViewResourceType2))(ViewResourceType || {});
|
|
13
13
|
class ConnectionFailedError extends Error {
|
|
14
14
|
name = "ConnectionFailedError";
|
|
15
15
|
}
|
|
@@ -1752,7 +1752,7 @@ function defineDeprecatedCreateClient(createClient2) {
|
|
|
1752
1752
|
return printNoDefaultExport(), createClient2(config);
|
|
1753
1753
|
};
|
|
1754
1754
|
}
|
|
1755
|
-
var name = "@sanity/client", version = "7.1.0-views.
|
|
1755
|
+
var name = "@sanity/client", version = "7.1.0-views.2";
|
|
1756
1756
|
const middleware = [
|
|
1757
1757
|
debug({ verbose: !0, namespace: "sanity:client" }),
|
|
1758
1758
|
headers({ "User-Agent": `${name} ${version}` }),
|