@prismicio/client 6.6.0 → 6.6.1-alpha.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/index.d.ts CHANGED
@@ -678,7 +678,7 @@ declare class Client<TDocuments extends prismicT.PrismicDocument = prismicT.Pris
678
678
  * @returns The document with a UID matching the `uid` parameter, if a
679
679
  * matching document exists.
680
680
  */
681
- getByUID<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, uid: string, params?: Partial<BuildQueryURLArgs> & FetchParams): Promise<ExtractDocumentType<TDocuments, TDocumentType>>;
681
+ getByUID<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, uid: string, params?: Partial<BuildQueryURLArgs> & FetchParams): Promise<ExtractDocumentType<TDocument, TDocumentType>>;
682
682
  /**
683
683
  * Queries document from the Prismic repository with specific UIDs and Custom Type.
684
684
  *
@@ -703,7 +703,7 @@ declare class Client<TDocuments extends prismicT.PrismicDocument = prismicT.Pris
703
703
  * @returns A paginated response containing documents with UIDs matching the
704
704
  * `uids` parameter.
705
705
  */
706
- getByUIDs<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, uids: string[], params?: Partial<BuildQueryURLArgs> & FetchParams): Promise<prismicT.Query<ExtractDocumentType<TDocuments, TDocumentType>>>;
706
+ getByUIDs<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, uids: string[], params?: Partial<BuildQueryURLArgs> & FetchParams): Promise<prismicT.Query<ExtractDocumentType<TDocument, TDocumentType>>>;
707
707
  /**
708
708
  * Queries all documents from the Prismic repository with specific UIDs and Custom Type.
709
709
  *
@@ -729,7 +729,7 @@ declare class Client<TDocuments extends prismicT.PrismicDocument = prismicT.Pris
729
729
  *
730
730
  * @returns A list of documents with UIDs matching the `uids` parameter.
731
731
  */
732
- getAllByUIDs<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, uids: string[], params?: Partial<BuildQueryURLArgs> & GetAllParams & FetchParams): Promise<ExtractDocumentType<TDocuments, TDocumentType>[]>;
732
+ getAllByUIDs<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, uids: string[], params?: Partial<BuildQueryURLArgs> & GetAllParams & FetchParams): Promise<ExtractDocumentType<TDocument, TDocumentType>[]>;
733
733
  /**
734
734
  * Queries a singleton document from the Prismic repository for a specific Custom Type.
735
735
  *
@@ -750,7 +750,7 @@ declare class Client<TDocuments extends prismicT.PrismicDocument = prismicT.Pris
750
750
  *
751
751
  * @returns The singleton document for the Custom Type, if a matching document exists.
752
752
  */
753
- getSingle<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, params?: Partial<BuildQueryURLArgs> & FetchParams): Promise<ExtractDocumentType<TDocuments, TDocumentType>>;
753
+ getSingle<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, params?: Partial<BuildQueryURLArgs> & FetchParams): Promise<ExtractDocumentType<TDocument, TDocumentType>>;
754
754
  /**
755
755
  * Queries documents from the Prismic repository for a specific Custom Type.
756
756
  *
@@ -769,7 +769,7 @@ declare class Client<TDocuments extends prismicT.PrismicDocument = prismicT.Pris
769
769
  *
770
770
  * @returns A paginated response containing documents of the Custom Type.
771
771
  */
772
- getByType<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, params?: Partial<BuildQueryURLArgs> & FetchParams): Promise<prismicT.Query<ExtractDocumentType<TDocuments, TDocumentType>>>;
772
+ getByType<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, params?: Partial<BuildQueryURLArgs> & FetchParams): Promise<prismicT.Query<ExtractDocumentType<TDocument, TDocumentType>>>;
773
773
  /**
774
774
  * Queries all documents from the Prismic repository for a specific Custom Type.
775
775
  *
@@ -787,7 +787,7 @@ declare class Client<TDocuments extends prismicT.PrismicDocument = prismicT.Pris
787
787
  *
788
788
  * @returns A list of all documents of the Custom Type.
789
789
  */
790
- getAllByType<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, params?: Partial<Omit<BuildQueryURLArgs, "page">> & GetAllParams & FetchParams): Promise<ExtractDocumentType<TDocuments, TDocumentType>[]>;
790
+ getAllByType<TDocument extends TDocuments, TDocumentType extends TDocument["type"] = TDocument["type"]>(documentType: TDocumentType, params?: Partial<Omit<BuildQueryURLArgs, "page">> & GetAllParams & FetchParams): Promise<ExtractDocumentType<TDocument, TDocumentType>[]>;
791
791
  /**
792
792
  * Queries documents from the Prismic repository with a specific tag.
793
793
  *