@sanity/client 7.16.0 → 7.17.0
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/_chunks-cjs/config.cjs.map +1 -1
- package/dist/_chunks-cjs/isRecord.cjs.map +1 -1
- package/dist/_chunks-cjs/resolveEditInfo.cjs +1 -1
- package/dist/_chunks-cjs/resolveEditInfo.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaClean.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs.map +1 -1
- package/dist/_chunks-es/config.js.map +1 -1
- package/dist/_chunks-es/isRecord.js.map +1 -1
- package/dist/_chunks-es/resolveEditInfo.js +1 -1
- package/dist/_chunks-es/resolveEditInfo.js.map +1 -1
- package/dist/_chunks-es/stegaClean.js.map +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +1 -1
- package/dist/csm.cjs.map +1 -1
- package/dist/csm.js.map +1 -1
- package/dist/index.browser.cjs +2 -2
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +14 -2
- package/dist/index.browser.d.ts +14 -2
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/media-library.cjs.map +1 -1
- package/dist/media-library.js.map +1 -1
- package/dist/stega.browser.cjs.map +1 -1
- package/dist/stega.browser.d.cts +14 -2
- package/dist/stega.browser.d.ts +14 -2
- package/dist/stega.browser.js +1 -1
- package/dist/stega.browser.js.map +1 -1
- package/dist/stega.cjs.map +1 -1
- package/dist/stega.d.cts +14 -2
- package/dist/stega.d.ts +14 -2
- package/dist/stega.js +1 -1
- package/dist/stega.js.map +1 -1
- package/package.json +1 -1
- package/src/projects/ProjectsClient.ts +22 -2
- package/umd/sanityClient.js +11 -11
- package/umd/sanityClient.min.js +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2691,11 +2691,17 @@ export declare class ObservableProjectsClient {
|
|
|
2691
2691
|
* @param options - Options for the list request
|
|
2692
2692
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
2693
2693
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
2694
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
2694
2695
|
*/
|
|
2695
|
-
list(options?: {
|
|
2696
|
+
list(options?: {
|
|
2697
|
+
includeMembers?: true
|
|
2698
|
+
organizationId?: string
|
|
2699
|
+
onlyExplicitMembership?: boolean
|
|
2700
|
+
}): Observable<SanityProject[]>
|
|
2696
2701
|
list(options?: {
|
|
2697
2702
|
includeMembers?: false
|
|
2698
2703
|
organizationId?: string
|
|
2704
|
+
onlyExplicitMembership?: boolean
|
|
2699
2705
|
}): Observable<Omit<SanityProject, 'members'>[]>
|
|
2700
2706
|
/**
|
|
2701
2707
|
* Fetch a project by project ID
|
|
@@ -4068,11 +4074,17 @@ export declare class ProjectsClient {
|
|
|
4068
4074
|
* @param options - Options for the list request
|
|
4069
4075
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
4070
4076
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
4077
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
4071
4078
|
*/
|
|
4072
|
-
list(options?: {
|
|
4079
|
+
list(options?: {
|
|
4080
|
+
includeMembers?: true
|
|
4081
|
+
organizationId?: string
|
|
4082
|
+
onlyExplicitMembership?: boolean
|
|
4083
|
+
}): Promise<SanityProject[]>
|
|
4073
4084
|
list(options?: {
|
|
4074
4085
|
includeMembers?: false
|
|
4075
4086
|
organizationId?: string
|
|
4087
|
+
onlyExplicitMembership?: boolean
|
|
4076
4088
|
}): Promise<Omit<SanityProject, 'members'>[]>
|
|
4077
4089
|
/**
|
|
4078
4090
|
* Fetch a project by project ID
|
package/dist/index.d.ts
CHANGED
|
@@ -2691,11 +2691,17 @@ export declare class ObservableProjectsClient {
|
|
|
2691
2691
|
* @param options - Options for the list request
|
|
2692
2692
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
2693
2693
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
2694
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
2694
2695
|
*/
|
|
2695
|
-
list(options?: {
|
|
2696
|
+
list(options?: {
|
|
2697
|
+
includeMembers?: true
|
|
2698
|
+
organizationId?: string
|
|
2699
|
+
onlyExplicitMembership?: boolean
|
|
2700
|
+
}): Observable<SanityProject[]>
|
|
2696
2701
|
list(options?: {
|
|
2697
2702
|
includeMembers?: false
|
|
2698
2703
|
organizationId?: string
|
|
2704
|
+
onlyExplicitMembership?: boolean
|
|
2699
2705
|
}): Observable<Omit<SanityProject, 'members'>[]>
|
|
2700
2706
|
/**
|
|
2701
2707
|
* Fetch a project by project ID
|
|
@@ -4068,11 +4074,17 @@ export declare class ProjectsClient {
|
|
|
4068
4074
|
* @param options - Options for the list request
|
|
4069
4075
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
4070
4076
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
4077
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
4071
4078
|
*/
|
|
4072
|
-
list(options?: {
|
|
4079
|
+
list(options?: {
|
|
4080
|
+
includeMembers?: true
|
|
4081
|
+
organizationId?: string
|
|
4082
|
+
onlyExplicitMembership?: boolean
|
|
4083
|
+
}): Promise<SanityProject[]>
|
|
4073
4084
|
list(options?: {
|
|
4074
4085
|
includeMembers?: false
|
|
4075
4086
|
organizationId?: string
|
|
4087
|
+
onlyExplicitMembership?: boolean
|
|
4076
4088
|
}): Promise<Omit<SanityProject, 'members'>[]>
|
|
4077
4089
|
/**
|
|
4078
4090
|
* Fetch a project by project ID
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getIt } from "get-it";
|
|
2
2
|
import { adapter, environment } from "get-it";
|
|
3
3
|
import { retry, jsonRequest, jsonResponse, progress, observable, debug, headers, agent } from "get-it/middleware";
|
|
4
|
-
import { Observable, defer,
|
|
4
|
+
import { Observable, defer, isObservable, of, mergeMap, from, lastValueFrom, shareReplay, catchError, concat, timer, throwError, tap, finalize, share, merge, map as map$1, firstValueFrom } from "rxjs";
|
|
5
5
|
import { isRecord } from "./_chunks-es/isRecord.js";
|
|
6
6
|
import { stegaClean } from "./_chunks-es/stegaClean.js";
|
|
7
7
|
import { combineLatestWith, map, filter, finalize as finalize$1 } from "rxjs/operators";
|
|
@@ -1591,7 +1591,7 @@ class ObservableProjectsClient {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
list(options) {
|
|
1593
1593
|
const query = {}, uri = "/projects";
|
|
1594
|
-
return options?.includeMembers === !1 && (query.includeMembers = "false"), options?.organizationId && (query.organizationId = options.organizationId), _request(this.#client, this.#httpRequest, { uri, query });
|
|
1594
|
+
return options?.includeMembers === !1 && (query.includeMembers = "false"), options?.organizationId && (query.organizationId = options.organizationId), options?.onlyExplicitMembership === !0 && (query.onlyExplicitMembership = "true"), _request(this.#client, this.#httpRequest, { uri, query });
|
|
1595
1595
|
}
|
|
1596
1596
|
/**
|
|
1597
1597
|
* Fetch a project by project ID
|
|
@@ -1610,7 +1610,7 @@ class ProjectsClient {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
list(options) {
|
|
1612
1612
|
const query = {}, uri = "/projects";
|
|
1613
|
-
return options?.includeMembers === !1 && (query.includeMembers = "false"), options?.organizationId && (query.organizationId = options.organizationId), lastValueFrom(_request(this.#client, this.#httpRequest, { uri, query }));
|
|
1613
|
+
return options?.includeMembers === !1 && (query.includeMembers = "false"), options?.organizationId && (query.organizationId = options.organizationId), options?.onlyExplicitMembership === !0 && (query.onlyExplicitMembership = "true"), lastValueFrom(_request(this.#client, this.#httpRequest, { uri, query }));
|
|
1614
1614
|
}
|
|
1615
1615
|
/**
|
|
1616
1616
|
* Fetch a project by project ID
|
|
@@ -2735,7 +2735,7 @@ function defineDeprecatedCreateClient(createClient2) {
|
|
|
2735
2735
|
return printNoDefaultExport(), createClient2(config);
|
|
2736
2736
|
};
|
|
2737
2737
|
}
|
|
2738
|
-
var name = "@sanity/client", version = "7.
|
|
2738
|
+
var name = "@sanity/client", version = "7.17.0";
|
|
2739
2739
|
const middleware = [
|
|
2740
2740
|
debug({ verbose: !0, namespace: "sanity:client" }),
|
|
2741
2741
|
headers({ "User-Agent": `${name} ${version}` }),
|