@teemill/product-catalog 1.84.0 → 1.85.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.
@@ -24,9 +24,33 @@ const configuration = new Configuration();
24
24
  const apiInstance = new ProductAnalyticsApi(configuration);
25
25
 
26
26
  let project: string; //What project it is (default to undefined)
27
+ let sortBy: Array<string>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
28
+ let search: string; //Search query string to filter results. Supports field-specific filters like: \'enabled:true\', \'gfn_product_ids:<id>\', \'tag:\"tag name\"\', \'internal_tag:\"internal tag name\"\', \'includeArchived:false\', \'hasSearchPhrase:false\', \'inDataFeeds:true\', \'aiOptimised:true\', \'productType:<id>\', \'genderGroup:\"male,female,unisex\"\', \'hasBarcode:true\', \'onSale:true\', \'type:product,template,bundle\', \'collection:<id>\'. Multiple filters can be combined with spaces and commas. (optional) (default to 'enabled:true')
29
+ let dateRangeStartDate: string; //Start date for the date range filter (ISO 8601 format) (optional) (default to undefined)
30
+ let dateRangeEndDate: string; //End date for the date range filter (ISO 8601 format) (optional) (default to undefined)
31
+ let minimumRevenue: number; //Filter to only include products with total revenue greater than or equal to this amount (optional) (default to undefined)
32
+ let maximumRevenue: number; //Filter to only include products with total revenue less than or equal to this amount (optional) (default to undefined)
33
+ let minimumSales: number; //Filter to only include products with total sales greater than or equal to this number (optional) (default to undefined)
34
+ let maximumSales: number; //Filter to only include products with total sales less than or equal to this number (optional) (default to undefined)
35
+ 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)
36
+ 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)
37
+ let minimumTraffic: number; //Filter to only include products with total traffic greater than or equal to this number (optional) (default to undefined)
38
+ let maximumTraffic: number; //Filter to only include products with total traffic less than or equal to this number (optional) (default to undefined)
27
39
 
28
40
  const { status, data } = await apiInstance.exportProductAnalytics(
29
- project
41
+ project,
42
+ sortBy,
43
+ search,
44
+ dateRangeStartDate,
45
+ dateRangeEndDate,
46
+ minimumRevenue,
47
+ maximumRevenue,
48
+ minimumSales,
49
+ maximumSales,
50
+ minimumBasketPercent,
51
+ maximumBasketPercent,
52
+ minimumTraffic,
53
+ maximumTraffic
30
54
  );
31
55
  ```
32
56
 
@@ -35,6 +59,18 @@ const { status, data } = await apiInstance.exportProductAnalytics(
35
59
  |Name | Type | Description | Notes|
36
60
  |------------- | ------------- | ------------- | -------------|
37
61
  | **project** | [**string**] | What project it is | defaults to undefined|
62
+ | **sortBy** | **Array&lt;string&gt;** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
63
+ | **search** | [**string**] | Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas. | (optional) defaults to 'enabled:true'|
64
+ | **dateRangeStartDate** | [**string**] | Start date for the date range filter (ISO 8601 format) | (optional) defaults to undefined|
65
+ | **dateRangeEndDate** | [**string**] | End date for the date range filter (ISO 8601 format) | (optional) defaults to undefined|
66
+ | **minimumRevenue** | [**number**] | Filter to only include products with total revenue greater than or equal to this amount | (optional) defaults to undefined|
67
+ | **maximumRevenue** | [**number**] | Filter to only include products with total revenue less than or equal to this amount | (optional) defaults to undefined|
68
+ | **minimumSales** | [**number**] | Filter to only include products with total sales greater than or equal to this number | (optional) defaults to undefined|
69
+ | **maximumSales** | [**number**] | Filter to only include products with total sales less than or equal to this number | (optional) defaults to undefined|
70
+ | **minimumBasketPercent** | [**number**] | Filter to only include products where the average basket percentage is greater than or equal to this value | (optional) defaults to undefined|
71
+ | **maximumBasketPercent** | [**number**] | Filter to only include products where the average basket percentage is less than or equal to this value | (optional) defaults to undefined|
72
+ | **minimumTraffic** | [**number**] | Filter to only include products with total traffic greater than or equal to this number | (optional) defaults to undefined|
73
+ | **maximumTraffic** | [**number**] | Filter to only include products with total traffic less than or equal to this number | (optional) defaults to undefined|
38
74
 
39
75
 
40
76
  ### Return type
@@ -80,16 +116,36 @@ const apiInstance = new ProductAnalyticsApi(configuration);
80
116
 
81
117
  let project: string; //What project it is (default to undefined)
82
118
  let pageToken: number; //Page reference token (optional) (default to 1)
119
+ let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 100)
83
120
  let search: string; //Search query string to filter results. Supports field-specific filters like: \'enabled:true\', \'gfn_product_ids:<id>\', \'tag:\"tag name\"\', \'internal_tag:\"internal tag name\"\', \'includeArchived:false\', \'hasSearchPhrase:false\', \'inDataFeeds:true\', \'aiOptimised:true\', \'productType:<id>\', \'genderGroup:\"male,female,unisex\"\', \'hasBarcode:true\', \'onSale:true\', \'type:product,template,bundle\', \'collection:<id>\'. Multiple filters can be combined with spaces and commas. (optional) (default to 'enabled:true')
84
121
  let sortBy: Array<string>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
85
- let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 100)
122
+ let dateRangeStartDate: string; //Start date for the date range filter (ISO 8601 format) (optional) (default to undefined)
123
+ let dateRangeEndDate: string; //End date for the date range filter (ISO 8601 format) (optional) (default to undefined)
124
+ let minimumRevenue: number; //Filter to only include products with total revenue greater than or equal to this amount (optional) (default to undefined)
125
+ let maximumRevenue: number; //Filter to only include products with total revenue less than or equal to this amount (optional) (default to undefined)
126
+ let minimumSales: number; //Filter to only include products with total sales greater than or equal to this number (optional) (default to undefined)
127
+ let maximumSales: number; //Filter to only include products with total sales less than or equal to this number (optional) (default to undefined)
128
+ 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)
129
+ 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)
130
+ let minimumTraffic: number; //Filter to only include products with total traffic greater than or equal to this number (optional) (default to undefined)
131
+ let maximumTraffic: number; //Filter to only include products with total traffic less than or equal to this number (optional) (default to undefined)
86
132
 
87
133
  const { status, data } = await apiInstance.listProductAnalytics(
88
134
  project,
89
135
  pageToken,
136
+ pageSize,
90
137
  search,
91
138
  sortBy,
92
- pageSize
139
+ dateRangeStartDate,
140
+ dateRangeEndDate,
141
+ minimumRevenue,
142
+ maximumRevenue,
143
+ minimumSales,
144
+ maximumSales,
145
+ minimumBasketPercent,
146
+ maximumBasketPercent,
147
+ minimumTraffic,
148
+ maximumTraffic
93
149
  );
94
150
  ```
95
151
 
@@ -99,9 +155,19 @@ const { status, data } = await apiInstance.listProductAnalytics(
99
155
  |------------- | ------------- | ------------- | -------------|
100
156
  | **project** | [**string**] | What project it is | defaults to undefined|
101
157
  | **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
158
+ | **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
102
159
  | **search** | [**string**] | Search query string to filter results. Supports field-specific filters like: \&#39;enabled:true\&#39;, \&#39;gfn_product_ids:&lt;id&gt;\&#39;, \&#39;tag:\&quot;tag name\&quot;\&#39;, \&#39;internal_tag:\&quot;internal tag name\&quot;\&#39;, \&#39;includeArchived:false\&#39;, \&#39;hasSearchPhrase:false\&#39;, \&#39;inDataFeeds:true\&#39;, \&#39;aiOptimised:true\&#39;, \&#39;productType:&lt;id&gt;\&#39;, \&#39;genderGroup:\&quot;male,female,unisex\&quot;\&#39;, \&#39;hasBarcode:true\&#39;, \&#39;onSale:true\&#39;, \&#39;type:product,template,bundle\&#39;, \&#39;collection:&lt;id&gt;\&#39;. Multiple filters can be combined with spaces and commas. | (optional) defaults to 'enabled:true'|
103
160
  | **sortBy** | **Array&lt;string&gt;** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
104
- | **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
161
+ | **dateRangeStartDate** | [**string**] | Start date for the date range filter (ISO 8601 format) | (optional) defaults to undefined|
162
+ | **dateRangeEndDate** | [**string**] | End date for the date range filter (ISO 8601 format) | (optional) defaults to undefined|
163
+ | **minimumRevenue** | [**number**] | Filter to only include products with total revenue greater than or equal to this amount | (optional) defaults to undefined|
164
+ | **maximumRevenue** | [**number**] | Filter to only include products with total revenue less than or equal to this amount | (optional) defaults to undefined|
165
+ | **minimumSales** | [**number**] | Filter to only include products with total sales greater than or equal to this number | (optional) defaults to undefined|
166
+ | **maximumSales** | [**number**] | Filter to only include products with total sales less than or equal to this number | (optional) defaults to undefined|
167
+ | **minimumBasketPercent** | [**number**] | Filter to only include products where the average basket percentage is greater than or equal to this value | (optional) defaults to undefined|
168
+ | **maximumBasketPercent** | [**number**] | Filter to only include products where the average basket percentage is less than or equal to this value | (optional) defaults to undefined|
169
+ | **minimumTraffic** | [**number**] | Filter to only include products with total traffic greater than or equal to this number | (optional) defaults to undefined|
170
+ | **maximumTraffic** | [**number**] | Filter to only include products with total traffic less than or equal to this number | (optional) defaults to undefined|
105
171
 
106
172
 
107
173
  ### Return type
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
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 warehouse product, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.84.0
7
+ * The version of the OpenAPI document: 1.85.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.84.0",
3
+ "version": "1.85.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {