@wix/wix-data-items-sdk 1.0.526 → 1.0.527

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.
@@ -45,7 +45,7 @@ export declare function aggregate(httpClient: HttpClient): {
45
45
  };
46
46
  export declare function aggregatePipeline(httpClient: HttpClient): (dataCollectionId: string, pipeline: AggregationPipeline, options?: WixDataAggregateOptions) => Promise<import("@wix/wix-data-items-common").AggregatePipelineDataItemsResponse>;
47
47
  /** @internal */
48
- export declare function distinct(httpClient: HttpClient): (dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions) => Promise<WixDataDistinctResponse>;
48
+ export declare function distinct<Value = any>(httpClient: HttpClient): (dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions) => Promise<WixDataDistinctResponse<Value>>;
49
49
  /** @internal */
50
50
  export declare function count(httpClient: HttpClient): (dataCollectionId: string, options?: WixDataCountOptions) => Promise<number>;
51
51
  export declare function queryReferenced(httpClient: HttpClient): (dataCollectionId: string, holdingItem: WixDataItem | string, relationshipAttribute: string, options?: WixDataQueryReferencedOptions) => Promise<import("@wix/wix-data-items-common").WixDataResult<WixDataItem>>;
@@ -758,7 +758,7 @@ export declare function aggregatePipeline(dataCollectionId: string, pipeline: Ag
758
758
  * @param options - Options for running the distinct operation.
759
759
  * @returns Promise that resolves to the distinct results.
760
760
  */
761
- export declare function distinct(dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions): Promise<WixDataDistinctResponse>;
761
+ export declare function distinct<Value = any>(dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions): Promise<WixDataDistinctResponse<Value>>;
762
762
  /**
763
763
  * Counts the number of items directly in a data collection.
764
764
  * @internal
@@ -45,7 +45,7 @@ export declare function aggregate(httpClient: HttpClient): {
45
45
  };
46
46
  export declare function aggregatePipeline(httpClient: HttpClient): (dataCollectionId: string, pipeline: AggregationPipeline, options?: WixDataAggregateOptions) => Promise<import("@wix/wix-data-items-common").AggregatePipelineDataItemsResponse>;
47
47
  /** @internal */
48
- export declare function distinct(httpClient: HttpClient): (dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions) => Promise<WixDataDistinctResponse>;
48
+ export declare function distinct<Value = any>(httpClient: HttpClient): (dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions) => Promise<WixDataDistinctResponse<Value>>;
49
49
  /** @internal */
50
50
  export declare function count(httpClient: HttpClient): (dataCollectionId: string, options?: WixDataCountOptions) => Promise<number>;
51
51
  export declare function queryReferenced(httpClient: HttpClient): (dataCollectionId: string, holdingItem: WixDataItem | string, relationshipAttribute: string, options?: WixDataQueryReferencedOptions) => Promise<import("@wix/wix-data-items-common").WixDataResult<WixDataItem>>;
@@ -758,7 +758,7 @@ export declare function aggregatePipeline(dataCollectionId: string, pipeline: Ag
758
758
  * @param options - Options for running the distinct operation.
759
759
  * @returns Promise that resolves to the distinct results.
760
760
  */
761
- export declare function distinct(dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions): Promise<WixDataDistinctResponse>;
761
+ export declare function distinct<Value = any>(dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions): Promise<WixDataDistinctResponse<Value>>;
762
762
  /**
763
763
  * Counts the number of items directly in a data collection.
764
764
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/wix-data-items-sdk",
3
- "version": "1.0.526",
3
+ "version": "1.0.527",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Rimvydas Gimbutas",
@@ -95,5 +95,5 @@
95
95
  "wallaby": {
96
96
  "autoDetect": true
97
97
  },
98
- "falconPackageHash": "5faf833f0a3cda53d39fa2dada75e88ee620b3943f053a21541e2a0b"
98
+ "falconPackageHash": "5b42c8d4ed1b95afff9dfed8de0972134a1dcaa2428e351b7ef9f81b"
99
99
  }