@teemill/product-catalog 1.90.2 → 1.91.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.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.90.2
8
+ * The version of the OpenAPI document: 1.91.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Product.md CHANGED
@@ -45,6 +45,7 @@ Name | Type | Description | Notes
45
45
  **license** | [**License**](License.md) | | [optional] [default to undefined]
46
46
  **createdBy** | **string** | The user ID of the user who created the product | [optional] [default to undefined]
47
47
  **isDigital** | **boolean** | Whether the product is digital | [optional] [default to false]
48
+ **analytics** | [**ProductAnalytics**](ProductAnalytics.md) | | [optional] [default to undefined]
48
49
 
49
50
  ## Example
50
51
 
@@ -92,6 +93,7 @@ const instance: Product = {
92
93
  license,
93
94
  createdBy,
94
95
  isDigital,
96
+ analytics,
95
97
  };
96
98
  ```
97
99
 
@@ -0,0 +1,29 @@
1
+ # ProductAnalytics
2
+
3
+ Product analytics metrics. Only present when \'analytics\' is included in the fields query parameter.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **revenue** | **number** | Total revenue for this product within the date range | [optional] [default to undefined]
10
+ **sales** | **number** | Total number of sales for this product within the date range | [optional] [default to undefined]
11
+ **traffic** | **number** | Total page views for this product within the date range | [optional] [default to undefined]
12
+ **conversionRate** | **number** | Conversion rate as a percentage (sales / traffic * 100) | [optional] [default to undefined]
13
+ **basketRate** | **number** | Basket rate as a percentage (cart adds / traffic * 100) | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ProductAnalytics } from '@teemill/product-catalog';
19
+
20
+ const instance: ProductAnalytics = {
21
+ revenue,
22
+ sales,
23
+ traffic,
24
+ conversionRate,
25
+ basketRate,
26
+ };
27
+ ```
28
+
29
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -478,6 +478,20 @@ let maxRetailPrice: number; //Specify the maximum retail price to filter by. Pro
478
478
  let minRetailPrice: number; //Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value. (optional) (default to undefined)
479
479
  let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 10)
480
480
  let fields: string; //Filter response fields to only include a subset of the resource. (optional) (default to undefined)
481
+ let dateRangeStartDate: string; //Start date for the date range filter (ISO 8601 format) (optional) (default to undefined)
482
+ let dateRangeEndDate: string; //End date for the date range filter (ISO 8601 format) (optional) (default to undefined)
483
+ let minimumRevenue: number; //Filter to only include products with total revenue greater than or equal to this amount (optional) (default to undefined)
484
+ let maximumRevenue: number; //Filter to only include products with total revenue less than or equal to this amount (optional) (default to undefined)
485
+ let minimumSales: number; //Filter to only include products with total sales greater than or equal to this number (optional) (default to undefined)
486
+ let maximumSales: number; //Filter to only include products with total sales less than or equal to this number (optional) (default to undefined)
487
+ let minimumBasketPercent: number; //Filter to only include products where the average basket percentage is greater than or equal to this value (optional) (default to undefined)
488
+ let maximumBasketPercent: number; //Filter to only include products where the average basket percentage is less than or equal to this value (optional) (default to undefined)
489
+ let minimumTraffic: number; //Filter to only include products with total traffic greater than or equal to this number (optional) (default to undefined)
490
+ let maximumTraffic: number; //Filter to only include products with total traffic less than or equal to this number (optional) (default to undefined)
491
+ let createdBefore: string; //Filter to only include products created before the given date (optional) (default to undefined)
492
+ let createdAfter: string; //Filter to only include products created after the given date (optional) (default to undefined)
493
+ let updatedBefore: string; //Filter to only include products updated before the given date (optional) (default to undefined)
494
+ let updatedAfter: string; //Filter to only include products updated after the given date (optional) (default to undefined)
481
495
 
482
496
  const { status, data } = await apiInstance.listProducts(
483
497
  project,
@@ -490,7 +504,21 @@ const { status, data } = await apiInstance.listProducts(
490
504
  maxRetailPrice,
491
505
  minRetailPrice,
492
506
  pageSize,
493
- fields
507
+ fields,
508
+ dateRangeStartDate,
509
+ dateRangeEndDate,
510
+ minimumRevenue,
511
+ maximumRevenue,
512
+ minimumSales,
513
+ maximumSales,
514
+ minimumBasketPercent,
515
+ maximumBasketPercent,
516
+ minimumTraffic,
517
+ maximumTraffic,
518
+ createdBefore,
519
+ createdAfter,
520
+ updatedBefore,
521
+ updatedAfter
494
522
  );
495
523
  ```
496
524
 
@@ -509,6 +537,20 @@ const { status, data } = await apiInstance.listProducts(
509
537
  | **minRetailPrice** | [**number**] | Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value. | (optional) defaults to undefined|
510
538
  | **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 10|
511
539
  | **fields** | [**string**] | Filter response fields to only include a subset of the resource. | (optional) defaults to undefined|
540
+ | **dateRangeStartDate** | [**string**] | Start date for the date range filter (ISO 8601 format) | (optional) defaults to undefined|
541
+ | **dateRangeEndDate** | [**string**] | End date for the date range filter (ISO 8601 format) | (optional) defaults to undefined|
542
+ | **minimumRevenue** | [**number**] | Filter to only include products with total revenue greater than or equal to this amount | (optional) defaults to undefined|
543
+ | **maximumRevenue** | [**number**] | Filter to only include products with total revenue less than or equal to this amount | (optional) defaults to undefined|
544
+ | **minimumSales** | [**number**] | Filter to only include products with total sales greater than or equal to this number | (optional) defaults to undefined|
545
+ | **maximumSales** | [**number**] | Filter to only include products with total sales less than or equal to this number | (optional) defaults to undefined|
546
+ | **minimumBasketPercent** | [**number**] | Filter to only include products where the average basket percentage is greater than or equal to this value | (optional) defaults to undefined|
547
+ | **maximumBasketPercent** | [**number**] | Filter to only include products where the average basket percentage is less than or equal to this value | (optional) defaults to undefined|
548
+ | **minimumTraffic** | [**number**] | Filter to only include products with total traffic greater than or equal to this number | (optional) defaults to undefined|
549
+ | **maximumTraffic** | [**number**] | Filter to only include products with total traffic less than or equal to this number | (optional) defaults to undefined|
550
+ | **createdBefore** | [**string**] | Filter to only include products created before the given date | (optional) defaults to undefined|
551
+ | **createdAfter** | [**string**] | Filter to only include products created after the given date | (optional) defaults to undefined|
552
+ | **updatedBefore** | [**string**] | Filter to only include products updated before the given date | (optional) defaults to undefined|
553
+ | **updatedAfter** | [**string**] | Filter to only include products updated after the given date | (optional) defaults to undefined|
512
554
 
513
555
 
514
556
  ### Return type
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.90.2
7
+ * The version of the OpenAPI document: 1.91.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/product-catalog",
3
- "version": "1.90.2",
3
+ "version": "1.91.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {