@wix/data 1.0.145 → 1.0.147

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.
@@ -2187,11 +2187,26 @@ interface InsertDataItemRequest$1 {
2187
2187
  dataCollectionId: string;
2188
2188
  /** Item to insert. */
2189
2189
  dataItem: DataItem$1;
2190
+ /**
2191
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2192
+ *
2193
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2194
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2195
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2196
+ */
2197
+ appOptions?: Record<string, any> | null;
2190
2198
  }
2191
2199
  interface InsertDataItemResponse$1 {
2192
2200
  /** Inserted data item. */
2193
2201
  dataItem?: DataItem$1;
2194
2202
  }
2203
+ interface DataPublishPluginOptions$1 {
2204
+ /**
2205
+ * Whether to include draft items.
2206
+ * When `true`, the response includes both published and draft items. Default: `false`.
2207
+ */
2208
+ includeDraftItems?: boolean;
2209
+ }
2195
2210
  interface BulkDataItemResult$1 {
2196
2211
  /** The action attempted for the data item. */
2197
2212
  action?: BulkActionType$1;
@@ -2236,6 +2251,19 @@ interface UpdateDataItemRequest$1 {
2236
2251
  dataCollectionId: string;
2237
2252
  /** Updated data item content. The existing data item's content is replaced entirely. */
2238
2253
  dataItem: DataItem$1;
2254
+ /**
2255
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2256
+ *
2257
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2258
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2259
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2260
+ */
2261
+ appOptions?: Record<string, any> | null;
2262
+ /**
2263
+ * Options for the Publish plugin.
2264
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2265
+ */
2266
+ publishPluginOptions?: DataPublishPluginOptions$1;
2239
2267
  }
2240
2268
  interface UpdateDataItemResponse$1 {
2241
2269
  /** Updated data item. */
@@ -2246,6 +2274,19 @@ interface SaveDataItemRequest$1 {
2246
2274
  dataCollectionId: string;
2247
2275
  /** Data item to insert or update. */
2248
2276
  dataItem: DataItem$1;
2277
+ /**
2278
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2279
+ *
2280
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2281
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2282
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2283
+ */
2284
+ appOptions?: Record<string, any> | null;
2285
+ /**
2286
+ * Options for the Publish plugin.
2287
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2288
+ */
2289
+ publishPluginOptions?: DataPublishPluginOptions$1;
2249
2290
  }
2250
2291
  interface SaveDataItemResponse$1 {
2251
2292
  /**
@@ -2289,6 +2330,19 @@ interface GetDataItemRequest$1 {
2289
2330
  * **Note:** The `_id` system field is always returned.
2290
2331
  */
2291
2332
  fields?: string[];
2333
+ /**
2334
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2335
+ *
2336
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2337
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2338
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2339
+ */
2340
+ appOptions?: Record<string, any> | null;
2341
+ /**
2342
+ * Options for the Publish plugin.
2343
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2344
+ */
2345
+ publishPluginOptions?: DataPublishPluginOptions$1;
2292
2346
  }
2293
2347
  interface GetDataItemResponse$1 {
2294
2348
  /** Retrieved item. */
@@ -2299,6 +2353,19 @@ interface RemoveDataItemRequest$1 {
2299
2353
  dataCollectionId: string;
2300
2354
  /** ID of the item to remove. */
2301
2355
  dataItemId: string;
2356
+ /**
2357
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2358
+ *
2359
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2360
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2361
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2362
+ */
2363
+ appOptions?: Record<string, any> | null;
2364
+ /**
2365
+ * Options for the Publish plugin.
2366
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2367
+ */
2368
+ publishPluginOptions?: DataPublishPluginOptions$1;
2302
2369
  }
2303
2370
  interface RemoveDataItemResponse$1 {
2304
2371
  /** Removed item. */
@@ -2346,6 +2413,19 @@ interface QueryDataItemsRequest$1 {
2346
2413
  * If not provided, result text is not translated.
2347
2414
  */
2348
2415
  language?: string | null;
2416
+ /**
2417
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2418
+ *
2419
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2420
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2421
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2422
+ */
2423
+ appOptions?: Record<string, any> | null;
2424
+ /**
2425
+ * Options for the Publish plugin.
2426
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2427
+ */
2428
+ publishPluginOptions?: DataPublishPluginOptions$1;
2349
2429
  /** Options for retrieving referenced items. */
2350
2430
  referencedItemOptions?: ReferencedItemOptions$1[];
2351
2431
  }
@@ -2491,6 +2571,19 @@ interface AggregateDataItemsRequest$1 extends AggregateDataItemsRequestPagingMet
2491
2571
  * If not provided, result text is not translated.
2492
2572
  */
2493
2573
  language?: string | null;
2574
+ /**
2575
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2576
+ *
2577
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2578
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2579
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2580
+ */
2581
+ appOptions?: Record<string, any> | null;
2582
+ /**
2583
+ * Options for the Publish plugin.
2584
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2585
+ */
2586
+ publishPluginOptions?: DataPublishPluginOptions$1;
2494
2587
  }
2495
2588
  /** @oneof */
2496
2589
  interface AggregateDataItemsRequestPagingMethodOneOf$1 {
@@ -2588,6 +2681,19 @@ interface CountDataItemsRequest$1 {
2588
2681
  * If not provided, result text is not translated.
2589
2682
  */
2590
2683
  language?: string | null;
2684
+ /**
2685
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2686
+ *
2687
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2688
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2689
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2690
+ */
2691
+ appOptions?: Record<string, any> | null;
2692
+ /**
2693
+ * Options for the Publish plugin.
2694
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2695
+ */
2696
+ publishPluginOptions?: DataPublishPluginOptions$1;
2591
2697
  }
2592
2698
  interface CountDataItemsResponse$1 {
2593
2699
  /** Number of items matching the query. */
@@ -2640,6 +2746,11 @@ interface QueryDistinctValuesRequest$1 extends QueryDistinctValuesRequestPagingM
2640
2746
  * If not provided, result text is not translated.
2641
2747
  */
2642
2748
  language?: string | null;
2749
+ /**
2750
+ * Options for the Publish plugin.
2751
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2752
+ */
2753
+ publishPluginOptions?: DataPublishPluginOptions$1;
2643
2754
  }
2644
2755
  /** @oneof */
2645
2756
  interface QueryDistinctValuesRequestPagingMethodOneOf$1 {
@@ -2666,6 +2777,14 @@ interface BulkInsertDataItemsRequest$1 {
2666
2777
  * Default: `false`
2667
2778
  */
2668
2779
  returnEntity?: boolean;
2780
+ /**
2781
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2782
+ *
2783
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2784
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2785
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2786
+ */
2787
+ appOptions?: Record<string, any> | null;
2669
2788
  }
2670
2789
  interface BulkInsertDataItemsResponse$1 {
2671
2790
  /** Information about the inserted items. */
@@ -2685,6 +2804,19 @@ interface BulkUpdateDataItemsRequest$1 {
2685
2804
  * Default: `false`
2686
2805
  */
2687
2806
  returnEntity?: boolean;
2807
+ /**
2808
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2809
+ *
2810
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2811
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2812
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2813
+ */
2814
+ appOptions?: Record<string, any> | null;
2815
+ /**
2816
+ * Options for the Publish plugin.
2817
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2818
+ */
2819
+ publishPluginOptions?: DataPublishPluginOptions$1;
2688
2820
  }
2689
2821
  interface BulkUpdateDataItemsResponse$1 {
2690
2822
  /** Information about the updated items. */
@@ -2704,6 +2836,19 @@ interface BulkSaveDataItemsRequest$1 {
2704
2836
  * Default: `false`
2705
2837
  */
2706
2838
  returnEntity?: boolean;
2839
+ /**
2840
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2841
+ *
2842
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2843
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2844
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2845
+ */
2846
+ appOptions?: Record<string, any> | null;
2847
+ /**
2848
+ * Options for the Publish plugin.
2849
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2850
+ */
2851
+ publishPluginOptions?: DataPublishPluginOptions$1;
2707
2852
  }
2708
2853
  interface BulkSaveDataItemsResponse$1 {
2709
2854
  /** Information about the saved items. */
@@ -2716,6 +2861,19 @@ interface BulkRemoveDataItemsRequest$1 {
2716
2861
  dataCollectionId: string;
2717
2862
  /** IDs of data items to remove. */
2718
2863
  dataItemIds: string[];
2864
+ /**
2865
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2866
+ *
2867
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2868
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2869
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2870
+ */
2871
+ appOptions?: Record<string, any> | null;
2872
+ /**
2873
+ * Options for the Publish plugin.
2874
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2875
+ */
2876
+ publishPluginOptions?: DataPublishPluginOptions$1;
2719
2877
  }
2720
2878
  interface BulkRemoveDataItemsResponse$1 {
2721
2879
  /** Information about the removed data items. */
@@ -2764,6 +2922,19 @@ interface QueryReferencedDataItemsRequest$1 extends QueryReferencedDataItemsRequ
2764
2922
  * **Note:** The `_id` system field is always returned.
2765
2923
  */
2766
2924
  fields?: string[];
2925
+ /**
2926
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying:
2927
+ *
2928
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2929
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2930
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2931
+ */
2932
+ appOptions?: Record<string, any> | null;
2933
+ /**
2934
+ * Options for the Publish plugin.
2935
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
2936
+ */
2937
+ publishPluginOptions?: DataPublishPluginOptions$1;
2767
2938
  }
2768
2939
  /** @oneof */
2769
2940
  interface QueryReferencedDataItemsRequestPagingMethodOneOf$1 {
@@ -2824,6 +2995,14 @@ interface InsertDataItemReferenceRequest$1 {
2824
2995
  dataCollectionId: string;
2825
2996
  /** Reference to insert */
2826
2997
  dataItemReference?: DataItemReference$1;
2998
+ /**
2999
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3000
+ *
3001
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3002
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3003
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3004
+ */
3005
+ appOptions?: Record<string, any> | null;
2827
3006
  }
2828
3007
  interface DataItemReference$1 {
2829
3008
  /** Referring item field containing the references to the referenced items. */
@@ -3031,11 +3210,26 @@ interface InsertDataItemRequest {
3031
3210
  dataCollectionId: string;
3032
3211
  /** Item to insert. */
3033
3212
  dataItem: DataItem;
3213
+ /**
3214
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3215
+ *
3216
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3217
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3218
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3219
+ */
3220
+ appOptions?: Record<string, any> | null;
3034
3221
  }
3035
3222
  interface InsertDataItemResponse {
3036
3223
  /** Inserted data item. */
3037
3224
  dataItem?: DataItem;
3038
3225
  }
3226
+ interface DataPublishPluginOptions {
3227
+ /**
3228
+ * Whether to include draft items.
3229
+ * When `true`, the response includes both published and draft items. Default: `false`.
3230
+ */
3231
+ includeDraftItems?: boolean;
3232
+ }
3039
3233
  interface BulkDataItemResult {
3040
3234
  /**
3041
3235
  * The action attempted for the data item.
@@ -3084,6 +3278,19 @@ interface UpdateDataItemRequest {
3084
3278
  dataCollectionId: string;
3085
3279
  /** Updated data item content. The existing data item's content is replaced entirely. */
3086
3280
  dataItem: DataItem;
3281
+ /**
3282
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3283
+ *
3284
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3285
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3286
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3287
+ */
3288
+ appOptions?: Record<string, any> | null;
3289
+ /**
3290
+ * Options for the Publish plugin.
3291
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3292
+ */
3293
+ publishPluginOptions?: DataPublishPluginOptions;
3087
3294
  }
3088
3295
  interface UpdateDataItemResponse {
3089
3296
  /** Updated data item. */
@@ -3094,6 +3301,19 @@ interface SaveDataItemRequest {
3094
3301
  dataCollectionId: string;
3095
3302
  /** Data item to insert or update. */
3096
3303
  dataItem: DataItem;
3304
+ /**
3305
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3306
+ *
3307
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3308
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3309
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3310
+ */
3311
+ appOptions?: Record<string, any> | null;
3312
+ /**
3313
+ * Options for the Publish plugin.
3314
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3315
+ */
3316
+ publishPluginOptions?: DataPublishPluginOptions;
3097
3317
  }
3098
3318
  interface SaveDataItemResponse {
3099
3319
  /**
@@ -3136,6 +3356,19 @@ interface GetDataItemRequest {
3136
3356
  * **Note:** The `_id` system field is always returned.
3137
3357
  */
3138
3358
  fields?: string[];
3359
+ /**
3360
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3361
+ *
3362
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3363
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3364
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3365
+ */
3366
+ appOptions?: Record<string, any> | null;
3367
+ /**
3368
+ * Options for the Publish plugin.
3369
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3370
+ */
3371
+ publishPluginOptions?: DataPublishPluginOptions;
3139
3372
  }
3140
3373
  interface GetDataItemResponse {
3141
3374
  /** Retrieved item. */
@@ -3146,6 +3379,19 @@ interface RemoveDataItemRequest {
3146
3379
  dataCollectionId: string;
3147
3380
  /** ID of the item to remove. */
3148
3381
  dataItemId: string;
3382
+ /**
3383
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3384
+ *
3385
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3386
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3387
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3388
+ */
3389
+ appOptions?: Record<string, any> | null;
3390
+ /**
3391
+ * Options for the Publish plugin.
3392
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3393
+ */
3394
+ publishPluginOptions?: DataPublishPluginOptions;
3149
3395
  }
3150
3396
  interface RemoveDataItemResponse {
3151
3397
  /** Removed item. */
@@ -3192,6 +3438,19 @@ interface QueryDataItemsRequest {
3192
3438
  * If not provided, result text is not translated.
3193
3439
  */
3194
3440
  language?: string | null;
3441
+ /**
3442
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3443
+ *
3444
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3445
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3446
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3447
+ */
3448
+ appOptions?: Record<string, any> | null;
3449
+ /**
3450
+ * Options for the Publish plugin.
3451
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3452
+ */
3453
+ publishPluginOptions?: DataPublishPluginOptions;
3195
3454
  /** Options for retrieving referenced items. */
3196
3455
  referencedItemOptions?: ReferencedItemOptions[];
3197
3456
  }
@@ -3340,6 +3599,19 @@ interface AggregateDataItemsRequest extends AggregateDataItemsRequestPagingMetho
3340
3599
  * If not provided, result text is not translated.
3341
3600
  */
3342
3601
  language?: string | null;
3602
+ /**
3603
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3604
+ *
3605
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3606
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3607
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3608
+ */
3609
+ appOptions?: Record<string, any> | null;
3610
+ /**
3611
+ * Options for the Publish plugin.
3612
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3613
+ */
3614
+ publishPluginOptions?: DataPublishPluginOptions;
3343
3615
  }
3344
3616
  /** @oneof */
3345
3617
  interface AggregateDataItemsRequestPagingMethodOneOf {
@@ -3436,6 +3708,19 @@ interface CountDataItemsRequest {
3436
3708
  * If not provided, result text is not translated.
3437
3709
  */
3438
3710
  language?: string | null;
3711
+ /**
3712
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3713
+ *
3714
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3715
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3716
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3717
+ */
3718
+ appOptions?: Record<string, any> | null;
3719
+ /**
3720
+ * Options for the Publish plugin.
3721
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3722
+ */
3723
+ publishPluginOptions?: DataPublishPluginOptions;
3439
3724
  }
3440
3725
  interface CountDataItemsResponse {
3441
3726
  /** Number of items matching the query. */
@@ -3491,6 +3776,11 @@ interface QueryDistinctValuesRequest extends QueryDistinctValuesRequestPagingMet
3491
3776
  * If not provided, result text is not translated.
3492
3777
  */
3493
3778
  language?: string | null;
3779
+ /**
3780
+ * Options for the Publish plugin.
3781
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3782
+ */
3783
+ publishPluginOptions?: DataPublishPluginOptions;
3494
3784
  }
3495
3785
  /** @oneof */
3496
3786
  interface QueryDistinctValuesRequestPagingMethodOneOf {
@@ -3517,6 +3807,14 @@ interface BulkInsertDataItemsRequest {
3517
3807
  * Default: `false`
3518
3808
  */
3519
3809
  returnEntity?: boolean;
3810
+ /**
3811
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3812
+ *
3813
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3814
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3815
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3816
+ */
3817
+ appOptions?: Record<string, any> | null;
3520
3818
  }
3521
3819
  interface BulkInsertDataItemsResponse {
3522
3820
  /** Information about the inserted items. */
@@ -3536,6 +3834,19 @@ interface BulkUpdateDataItemsRequest {
3536
3834
  * Default: `false`
3537
3835
  */
3538
3836
  returnEntity?: boolean;
3837
+ /**
3838
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3839
+ *
3840
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3841
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3842
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3843
+ */
3844
+ appOptions?: Record<string, any> | null;
3845
+ /**
3846
+ * Options for the Publish plugin.
3847
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3848
+ */
3849
+ publishPluginOptions?: DataPublishPluginOptions;
3539
3850
  }
3540
3851
  interface BulkUpdateDataItemsResponse {
3541
3852
  /** Information about the updated items. */
@@ -3555,6 +3866,19 @@ interface BulkSaveDataItemsRequest {
3555
3866
  * Default: `false`
3556
3867
  */
3557
3868
  returnEntity?: boolean;
3869
+ /**
3870
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3871
+ *
3872
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3873
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3874
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3875
+ */
3876
+ appOptions?: Record<string, any> | null;
3877
+ /**
3878
+ * Options for the Publish plugin.
3879
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3880
+ */
3881
+ publishPluginOptions?: DataPublishPluginOptions;
3558
3882
  }
3559
3883
  interface BulkSaveDataItemsResponse {
3560
3884
  /** Information about the saved items. */
@@ -3567,6 +3891,19 @@ interface BulkRemoveDataItemsRequest {
3567
3891
  dataCollectionId: string;
3568
3892
  /** IDs of data items to remove. */
3569
3893
  dataItemIds: string[];
3894
+ /**
3895
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3896
+ *
3897
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3898
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3899
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3900
+ */
3901
+ appOptions?: Record<string, any> | null;
3902
+ /**
3903
+ * Options for the Publish plugin.
3904
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3905
+ */
3906
+ publishPluginOptions?: DataPublishPluginOptions;
3570
3907
  }
3571
3908
  interface BulkRemoveDataItemsResponse {
3572
3909
  /** Information about the removed data items. */
@@ -3614,6 +3951,19 @@ interface QueryReferencedDataItemsRequest extends QueryReferencedDataItemsReques
3614
3951
  * **Note:** The `_id` system field is always returned.
3615
3952
  */
3616
3953
  fields?: string[];
3954
+ /**
3955
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying:
3956
+ *
3957
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3958
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3959
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3960
+ */
3961
+ appOptions?: Record<string, any> | null;
3962
+ /**
3963
+ * Options for the Publish plugin.
3964
+ * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
3965
+ */
3966
+ publishPluginOptions?: DataPublishPluginOptions;
3617
3967
  }
3618
3968
  /** @oneof */
3619
3969
  interface QueryReferencedDataItemsRequestPagingMethodOneOf {
@@ -3673,6 +4023,14 @@ interface InsertDataItemReferenceRequest {
3673
4023
  dataCollectionId: string;
3674
4024
  /** Reference to insert */
3675
4025
  dataItemReference?: DataItemReference;
4026
+ /**
4027
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
4028
+ *
4029
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
4030
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
4031
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
4032
+ */
4033
+ appOptions?: Record<string, any> | null;
3676
4034
  }
3677
4035
  interface DataItemReference {
3678
4036
  /** Referring item field containing the references to the referenced items. */
@@ -1056,21 +1056,79 @@ interface GetCapabilitiesEnvelope {
1056
1056
  metadata: Context;
1057
1057
  }
1058
1058
  declare const provideHandlers$1: ServicePluginDefinition<{
1059
+ /**
1060
+ *
1061
+ * Retrieves a list of items based on the provided filtering, sorting, and paging preferences. */
1059
1062
  queryDataItems(payload: QueryDataItemsEnvelope): QueryDataItemsResponse | Promise<QueryDataItemsResponse>;
1063
+ /**
1064
+ * Counts the number of items in the specified data collection that match the filtering preferences. */
1060
1065
  countDataItems(payload: CountDataItemsEnvelope): CountDataItemsResponse | Promise<CountDataItemsResponse>;
1066
+ /**
1067
+ * Runs an aggregation query on the specified data collection and returns the resulting list of items. */
1061
1068
  aggregateDataItems(payload: AggregateDataItemsEnvelope): AggregateDataItemsResponse | Promise<AggregateDataItemsResponse>;
1069
+ /**
1070
+ *
1071
+ * Retrieves a list of distinct values for a given field for all items that match the query, without duplicates.
1072
+ *
1073
+ * As with [`queryDataItems()`](/external-database/query-data-items), this function retrieves items based on the filtering, sorting, and paging preferences provided. However, this function does not return the full items that match the query. Rather, for items that match the query, it returns all unique values in the field specified in `fieldName`. If more than one item has the same value in that field, that value appears only once. */
1062
1074
  queryDistinctValues(payload: QueryDistinctValuesEnvelope): QueryDistinctValuesResponse | Promise<QueryDistinctValuesResponse>;
1075
+ /**
1076
+ *
1077
+ * Adds one or more items to a collection.
1078
+ *
1079
+ * A data item object contains the `_id` and `_owner` fields. The response array must include the same items that were inserted, and each returned item must be added the `_createdDate` and `_updatedDate` fields.
1080
+ *
1081
+ * However, data items can also be inserted without an `_id` field. In that case, it is the service provider's responsibility to generate a unique ID for each item. */
1063
1082
  insertDataItems(payload: InsertDataItemsEnvelope): InsertDataItemsResponse | Promise<InsertDataItemsResponse>;
1083
+ /**
1084
+ *
1085
+ * Updates one or more items in a collection. Items must be completely replaced.
1086
+ *
1087
+ * The response array must include the same items that were updated, and each returned item must be added the `_createdDate` and `_updatedDate` fields. */
1064
1088
  updateDataItems(payload: UpdateDataItemsEnvelope): UpdateDataItemsResponse | Promise<UpdateDataItemsResponse>;
1089
+ /**
1090
+ * Removes one or more items from a collection. The response object must contain the removed item. */
1065
1091
  removeDataItems(payload: RemoveDataItemsEnvelope): RemoveDataItemsResponse | Promise<RemoveDataItemsResponse>;
1092
+ /**
1093
+ * Removes all items from a collection. */
1066
1094
  truncateDataItems(payload: TruncateDataItemsEnvelope): TruncateDataItemsResponse | Promise<TruncateDataItemsResponse>;
1095
+ /**
1096
+ *
1097
+ * Retrieves the items referenced in the specified field of a referring item. Reference fields refer to items that exist in different collections. Implement this function so callers can retrieve the full details of the referenced items.
1098
+ *
1099
+ * This service plugin supports item multi-references, which means that data collections can have many-to-many relationships with other collections. For example, consider a scenario where a **Movies** collection includes a multi-reference **Actors** field, which might refer to several **Actor** items in an **Actors** collection. Users can therefore query the **Movies** collection to retrieve the **Actor** items referenced in each **Movie** item.
1100
+ *
1101
+ * > **Notes:**
1102
+ * > - This function does not retrieve the full referenced items of referenced items. For example, the referenced **Actors** collection might itself contain a multi-reference field with references to **Award** items in an **Awards** collection. When calling this function to retrieve the referenced items of any **Movie** item, the response contains the referenced **Actor** items, but only the IDs of the **Award** items. To retrieve the full **Award** items, the user must either call this function for the **Actors** collection, or the [`queryDataItems()`](/external-database/query-data-items) function for the **Awards** collection.
1103
+ * > - This function might also be called when a user calls the [`isReferenced()`](https://dev.wix.com/docs/sdk/backend-modules/data/items/is-referenced-data-item) function of the Data API. */
1067
1104
  queryReferencedDataItems(payload: QueryReferencedDataItemsEnvelope): QueryReferencedDataItemsResponse | Promise<QueryReferencedDataItemsResponse>;
1105
+ /**
1106
+ * Inserts one or more item references into a referring field of the specified item. */
1068
1107
  insertDataItemReferences(payload: InsertDataItemReferencesEnvelope): InsertDataItemReferencesResponse | Promise<InsertDataItemReferencesResponse>;
1108
+ /**
1109
+ * Removes one or more item references from a referring field of the specified item. */
1069
1110
  removeDataItemReferences(payload: RemoveDataItemReferencesEnvelope): RemoveDataItemReferencesResponse | Promise<RemoveDataItemReferencesResponse>;
1111
+ /**
1112
+ *
1113
+ * Retrieves a list of data collections and their details.
1114
+ *
1115
+ * When `collectionIds` is empty, all existing collections are returned.
1116
+ * If a specified collection does not exist, that collection can be ignored. */
1070
1117
  listCollections(payload: ListCollectionsEnvelope): ListCollectionsResponse | Promise<ListCollectionsResponse>;
1118
+ /**
1119
+ * Creates a new data collection. */
1071
1120
  createCollection(payload: CreateCollectionEnvelope): CreateCollectionResponse | Promise<CreateCollectionResponse>;
1121
+ /**
1122
+ *
1123
+ * Updates the structure of an existing data collection.
1124
+ *
1125
+ * Some parameters, such as `capabilities` and `pagingMode`, are determined by the service provider. If the collection passed in the request contains these parameters, their values must be ignored. However, these fields must be included in the response collection with relevant values. */
1072
1126
  updateCollection(payload: UpdateCollectionEnvelope): UpdateCollectionResponse | Promise<UpdateCollectionResponse>;
1127
+ /**
1128
+ * Deletes a data collection. */
1073
1129
  deleteCollection(payload: DeleteCollectionEnvelope): DeleteCollectionResponse | Promise<DeleteCollectionResponse>;
1130
+ /**
1131
+ * Lists the global capabilities the external database supports. */
1074
1132
  getCapabilities(payload: GetCapabilitiesEnvelope): GetCapabilitiesResponse | Promise<GetCapabilitiesResponse>;
1075
1133
  }>;
1076
1134