@sanity/client 6.28.3-instruct.2 → 6.28.3-instruct.4
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.browser.cjs +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +27 -0
- package/dist/index.browser.d.ts +27 -0
- 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 +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +27 -0
- package/dist/stega.browser.d.ts +27 -0
- package/dist/stega.d.cts +27 -0
- package/dist/stega.d.ts +27 -0
- package/package.json +1 -1
- package/src/instruct/instruct.ts +1 -1
- package/src/instruct/types.ts +29 -0
- package/umd/sanityClient.js +1 -1
- package/umd/sanityClient.min.js +1 -1
package/dist/stega.browser.d.cts
CHANGED
|
@@ -1237,6 +1237,33 @@ declare interface InstructRequestBase {
|
|
|
1237
1237
|
hidden: boolean
|
|
1238
1238
|
}[]
|
|
1239
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1242
|
+
* Otherwise, such fields will be ignored.
|
|
1243
|
+
*/
|
|
1244
|
+
localeSettings?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1247
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1248
|
+
*
|
|
1249
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1250
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1251
|
+
*
|
|
1252
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1253
|
+
*/
|
|
1254
|
+
locale: string
|
|
1255
|
+
/**
|
|
1256
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1257
|
+
* date expressions to a specific point in time. Examples include
|
|
1258
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1259
|
+
*
|
|
1260
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1261
|
+
* based on the user's local time.
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1264
|
+
*/
|
|
1265
|
+
timeZone: string
|
|
1266
|
+
}
|
|
1240
1267
|
}
|
|
1241
1268
|
|
|
1242
1269
|
/** @beta */
|
package/dist/stega.browser.d.ts
CHANGED
|
@@ -1237,6 +1237,33 @@ declare interface InstructRequestBase {
|
|
|
1237
1237
|
hidden: boolean
|
|
1238
1238
|
}[]
|
|
1239
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1242
|
+
* Otherwise, such fields will be ignored.
|
|
1243
|
+
*/
|
|
1244
|
+
localeSettings?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1247
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1248
|
+
*
|
|
1249
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1250
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1251
|
+
*
|
|
1252
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1253
|
+
*/
|
|
1254
|
+
locale: string
|
|
1255
|
+
/**
|
|
1256
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1257
|
+
* date expressions to a specific point in time. Examples include
|
|
1258
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1259
|
+
*
|
|
1260
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1261
|
+
* based on the user's local time.
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1264
|
+
*/
|
|
1265
|
+
timeZone: string
|
|
1266
|
+
}
|
|
1240
1267
|
}
|
|
1241
1268
|
|
|
1242
1269
|
/** @beta */
|
package/dist/stega.d.cts
CHANGED
|
@@ -1237,6 +1237,33 @@ declare interface InstructRequestBase {
|
|
|
1237
1237
|
hidden: boolean
|
|
1238
1238
|
}[]
|
|
1239
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1242
|
+
* Otherwise, such fields will be ignored.
|
|
1243
|
+
*/
|
|
1244
|
+
localeSettings?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1247
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1248
|
+
*
|
|
1249
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1250
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1251
|
+
*
|
|
1252
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1253
|
+
*/
|
|
1254
|
+
locale: string
|
|
1255
|
+
/**
|
|
1256
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1257
|
+
* date expressions to a specific point in time. Examples include
|
|
1258
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1259
|
+
*
|
|
1260
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1261
|
+
* based on the user's local time.
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1264
|
+
*/
|
|
1265
|
+
timeZone: string
|
|
1266
|
+
}
|
|
1240
1267
|
}
|
|
1241
1268
|
|
|
1242
1269
|
/** @beta */
|
package/dist/stega.d.ts
CHANGED
|
@@ -1237,6 +1237,33 @@ declare interface InstructRequestBase {
|
|
|
1237
1237
|
hidden: boolean
|
|
1238
1238
|
}[]
|
|
1239
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1242
|
+
* Otherwise, such fields will be ignored.
|
|
1243
|
+
*/
|
|
1244
|
+
localeSettings?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1247
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1248
|
+
*
|
|
1249
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1250
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1251
|
+
*
|
|
1252
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1253
|
+
*/
|
|
1254
|
+
locale: string
|
|
1255
|
+
/**
|
|
1256
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1257
|
+
* date expressions to a specific point in time. Examples include
|
|
1258
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1259
|
+
*
|
|
1260
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1261
|
+
* based on the user's local time.
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1264
|
+
*/
|
|
1265
|
+
timeZone: string
|
|
1266
|
+
}
|
|
1240
1267
|
}
|
|
1241
1268
|
|
|
1242
1269
|
/** @beta */
|
package/package.json
CHANGED
package/src/instruct/instruct.ts
CHANGED
package/src/instruct/types.ts
CHANGED
|
@@ -126,6 +126,35 @@ interface InstructRequestBase {
|
|
|
126
126
|
hidden: boolean
|
|
127
127
|
}[]
|
|
128
128
|
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
132
|
+
* Otherwise, such fields will be ignored.
|
|
133
|
+
*/
|
|
134
|
+
localeSettings?: {
|
|
135
|
+
/**
|
|
136
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
137
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
138
|
+
*
|
|
139
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
140
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
141
|
+
*
|
|
142
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
143
|
+
*/
|
|
144
|
+
locale: string
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
148
|
+
* date expressions to a specific point in time. Examples include
|
|
149
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
150
|
+
*
|
|
151
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
152
|
+
* based on the user's local time.
|
|
153
|
+
*
|
|
154
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
155
|
+
*/
|
|
156
|
+
timeZone: string
|
|
157
|
+
}
|
|
129
158
|
}
|
|
130
159
|
|
|
131
160
|
interface Sync {
|
package/umd/sanityClient.js
CHANGED
|
@@ -3137,7 +3137,7 @@ ${selectionOpts}`);
|
|
|
3137
3137
|
const dataset2 = hasDataset(client.config());
|
|
3138
3138
|
return _request(client, httpRequest, {
|
|
3139
3139
|
method: "POST",
|
|
3140
|
-
uri: `/
|
|
3140
|
+
uri: `/instruct/${dataset2}`,
|
|
3141
3141
|
body: request
|
|
3142
3142
|
});
|
|
3143
3143
|
}
|