@sanity/sfcc
1.0.251.0.26
dist/index.d.ts~
dist/index.d.tsModified+242−8
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -1,4 +1,5 @@
+import "@sanity/ui/styles.css";
import { DecorationMember, ObjectMember } from "sanity";
import { Ref } from "react";
import "sanity/structure";
/**
@@ -9,13 +10,67 @@
* The field is placed in the `sfcc` group; make sure the document type
* declares that group.
*/
declare const sfccCategoryStoreField: {
- type: "object";
+ readOnly: true;
name: "store";
-} & Omit<import("sanity").ObjectDefinition, "preview"> & {
- preview?: import("sanity").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
-} & import("sanity").FieldDefinitionBase & import("sanity").WidenValidation & import("sanity").WidenInitialValue;
+ title: string;
+ type: "object";
+ group: string;
+ fields: ({
+ name: "categoryId";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "thumbnailImage";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "online";
+ title: string;
+ type: "boolean";
+ readOnly: true;
+ } | {
+ name: "onlineFrom";
+ title: string;
+ type: "date";
+ readOnly: true;
+ } | {
+ name: "onlineTo";
+ title: string;
+ type: "date";
+ readOnly: true;
+ } | {
+ name: "creationDate";
+ title: string;
+ type: "date";
+ readOnly: true;
+ } | {
+ name: "isDeleted";
+ title: string;
+ type: "boolean";
+ readOnly: true;
+ } | {
+ name: "parentCategory";
+ type: "reference";
+ to: {
+ type: string;
+ }[];
+ readOnly: true;
+ } | {
+ name: "displayName";
+ title: string;
+ type: "internationalizedArrayString";
+ readOnly: true;
+ } | {
+ name: "description";
+ title: string;
+ type: "internationalizedArrayText";
+ readOnly: true;
+ })[];
+};
/**
* Default preview configuration for the `category` document type.
* Shows Category Name with parent category as subtitle.
*/
@@ -59,13 +114,192 @@
* The field is placed in the `sfcc` group; make sure the document type
* declares that group.
*/
declare const sfccProductStoreField: {
- type: "object";
+ readOnly: true;
name: "store";
-} & Omit<import("sanity").ObjectDefinition, "preview"> & {
- preview?: import("sanity").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
-} & import("sanity").FieldDefinitionBase & import("sanity").WidenValidation & import("sanity").WidenInitialValue;
+ title: string;
+ type: "object";
+ group: string;
+ fields: ({
+ name: "productId";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "brand";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "color";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "size";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "width";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "productType";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "styleNumber";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "searchable";
+ title: string;
+ type: "boolean";
+ readOnly: true;
+ } | {
+ name: "isSale";
+ title: string;
+ type: "boolean";
+ readOnly: true;
+ } | {
+ name: "isNew";
+ title: string;
+ type: "boolean";
+ readOnly: true;
+ } | {
+ name: "manufacturerName";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "manufacturerSKU";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "creationDate";
+ title: string;
+ type: "datetime";
+ readOnly: true;
+ } | {
+ name: "lastModified";
+ title: string;
+ type: "datetime";
+ readOnly: true;
+ } | {
+ name: "onlineFlag";
+ title: string;
+ type: "boolean";
+ readOnly: true;
+ } | {
+ name: "onlineFrom";
+ title: string;
+ type: "datetime";
+ readOnly: true;
+ } | {
+ name: "onlineTo";
+ title: string;
+ type: "datetime";
+ readOnly: true;
+ } | {
+ name: "length";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "memorySize";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "tvSize";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "tvType";
+ title: string;
+ type: "array";
+ of: {
+ type: "string";
+ }[];
+ readOnly: true;
+ } | {
+ name: "productImage";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "refinementColor";
+ title: string;
+ type: "string";
+ readOnly: true;
+ } | {
+ name: "variants";
+ title: string;
+ type: "array";
+ of: {
+ type: "reference";
+ to: {
+ type: string;
+ }[];
+ weak: true;
+ }[];
+ readOnly: true;
+ } | {
+ name: "variationAttributes";
+ title: string;
+ type: "array";
+ of: {
+ type: "string";
+ }[];
+ readOnly: true;
+ } | {
+ name: "isDeleted";
+ title: string;
+ type: "boolean";
+ } | {
+ name: "name";
+ title: string;
+ type: "internationalizedArrayString";
+ readOnly: true;
+ } | {
+ name: "longDescription";
+ title: string;
+ type: "internationalizedArrayText";
+ readOnly: true;
+ } | {
+ name: "shortDescription";
+ title: string;
+ type: "internationalizedArrayText";
+ readOnly: true;
+ } | {
+ name: "pageTitle";
+ title: string;
+ type: "internationalizedArrayString";
+ readOnly: true;
+ } | {
+ name: "pageDescription";
+ title: string;
+ type: "internationalizedArrayString";
+ readOnly: true;
+ } | {
+ name: "pageKeywords";
+ title: string;
+ type: "internationalizedArrayString";
+ readOnly: true;
+ } | {
+ name: "pageURL";
+ title: string;
+ type: "internationalizedArrayString";
+ readOnly: true;
+ })[];
+};
/**
* Default preview configuration for the `product` document type.
* Shows product type for Master/Simple, and the relevant variation
* attributes (driven by `store.variationAttributes`) for all products.