@shopvirge/shopvirge-client 0.2.9 → 0.2.10

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
@@ -5716,6 +5716,10 @@ type GetMultiShopsShopIdProductsGetData = {
5716
5716
  * The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
5717
5717
  */
5718
5718
  sort?: Array<string>;
5719
+ /**
5720
+ * Filter products by inventory state. `in_stock` returns products with stock > 0, `out_of_stock` returns products with stock = 0, `all` (default) returns everything.
5721
+ */
5722
+ stockStatus?: 'in_stock' | 'out_of_stock' | 'all';
5719
5723
  };
5720
5724
  type GetMultiShopsShopIdProductsGetResponse = Array<ProductWithDefaultPrice>;
5721
5725
  type CreateShopsShopIdProductsPostData = {
@@ -5739,6 +5743,10 @@ type GetMultiWithAttributesShopsShopIdProductsWithAttributesGetData = {
5739
5743
  * The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
5740
5744
  */
5741
5745
  sort?: Array<string>;
5746
+ /**
5747
+ * Filter products by inventory state. `in_stock` returns products with stock > 0, `out_of_stock` returns products with stock = 0, `all` (default) returns everything.
5748
+ */
5749
+ stockStatus?: 'in_stock' | 'out_of_stock' | 'all';
5742
5750
  };
5743
5751
  type GetMultiWithAttributesShopsShopIdProductsWithAttributesGetResponse = Array<ProductWithAttributes>;
5744
5752
  type UpdateShopsShopIdProductsProductIdPutData = {
@@ -8674,6 +8682,7 @@ declare const getSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGet: (data: G
8674
8682
  * Get Multi
8675
8683
  * @param data The data for the request.
8676
8684
  * @param data.shopId
8685
+ * @param data.stockStatus Filter products by inventory state. `in_stock` returns products with stock > 0, `out_of_stock` returns products with stock = 0, `all` (default) returns everything.
8677
8686
  * @param data.skip
8678
8687
  * @param data.limit
8679
8688
  * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
@@ -8703,12 +8712,16 @@ declare const createShopsShopIdProductsPost: (data: CreateShopsShopIdProductsPos
8703
8712
  * * `attribute_name` array[str]: Filter by one or multiple attribute names (e.g., 'Color', 'Size').
8704
8713
  *
8705
8714
  * Only one attribute filter can be used at a time.
8715
+ *
8716
+ * You can additionally narrow results by inventory state with `stock_status`:
8717
+ * `in_stock` (stock > 0), `out_of_stock` (stock = 0), or `all` (default).
8706
8718
  * @param data The data for the request.
8707
8719
  * @param data.shopId
8708
8720
  * @param data.optionId
8709
8721
  * @param data.attributeId
8710
8722
  * @param data.optionValueKey
8711
8723
  * @param data.attributeName
8724
+ * @param data.stockStatus Filter products by inventory state. `in_stock` returns products with stock > 0, `out_of_stock` returns products with stock = 0, `all` (default) returns everything.
8712
8725
  * @param data.skip
8713
8726
  * @param data.limit
8714
8727
  * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ var OpenAPI = {
126
126
  PASSWORD: void 0,
127
127
  TOKEN: void 0,
128
128
  USERNAME: void 0,
129
- VERSION: "0.2.9",
129
+ VERSION: "0.2.10",
130
130
  WITH_CREDENTIALS: false,
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -6786,6 +6786,7 @@ var getMultiShopsShopIdProductsGet = (data) => {
6786
6786
  shop_id: data.shopId
6787
6787
  },
6788
6788
  query: {
6789
+ stock_status: data.stockStatus,
6789
6790
  skip: data.skip,
6790
6791
  limit: data.limit,
6791
6792
  filter: data.filter,
@@ -6822,6 +6823,7 @@ var getMultiWithAttributesShopsShopIdProductsWithAttributesGet = (data) => {
6822
6823
  attribute_id: data.attributeId,
6823
6824
  option_value_key: data.optionValueKey,
6824
6825
  attribute_name: data.attributeName,
6826
+ stock_status: data.stockStatus,
6825
6827
  skip: data.skip,
6826
6828
  limit: data.limit,
6827
6829
  filter: data.filter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopvirge/shopvirge-client",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },