@teemill/product-catalog 1.48.0 → 1.50.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/README.md +117 -2
- package/api.ts +127 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +74 -1
- package/dist/api.js +80 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +74 -1
- package/dist/esm/api.js +80 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AdditionalFile.md +20 -0
- package/docs/ApiError.md +22 -0
- package/docs/Application.md +28 -0
- package/docs/ApplicationMockup.md +22 -0
- package/docs/ApplicationSet.md +38 -0
- package/docs/ApplicationSet1.md +22 -0
- package/docs/ApplicationSetRecord.md +26 -0
- package/docs/ApplicationSetsApi.md +317 -0
- package/docs/ApplicationSetsResponse.md +22 -0
- package/docs/Attribute.md +26 -0
- package/docs/AttributeThumbnail.md +23 -0
- package/docs/Attributes1Inner.md +22 -0
- package/docs/CreateApplication.md +24 -0
- package/docs/CreateApplicationSetRequest.md +30 -0
- package/docs/CreateApplicationSetRequestRecordsInner.md +22 -0
- package/docs/CreateApplicationSetRequestRecordsInnerAttributesInner.md +22 -0
- package/docs/CreateBundleProduct.md +54 -0
- package/docs/CreateProduct.md +56 -0
- package/docs/CreateProductAdditionalFilesInner.md +20 -0
- package/docs/CreateProductImagesInner.md +22 -0
- package/docs/CreateProductRequest.md +64 -0
- package/docs/CreateProductVariant.md +36 -0
- package/docs/CreateProductVariantImagesInner.md +20 -0
- package/docs/CreateProductVideosInner.md +20 -0
- package/docs/DeleteProductsRequest.md +20 -0
- package/docs/DuplicateProducts202Response.md +20 -0
- package/docs/DuplicateProductsRequest.md +22 -0
- package/docs/ExportProducts202Response.md +20 -0
- package/docs/Image.md +35 -0
- package/docs/ImageFile.md +22 -0
- package/docs/ImportProducts200Response.md +20 -0
- package/docs/Location.md +22 -0
- package/docs/MetaField.md +23 -0
- package/docs/OptimisationHistoryItem.md +22 -0
- package/docs/Price.md +23 -0
- package/docs/Product.md +86 -0
- package/docs/ProductAdditionalFilesInner.md +22 -0
- package/docs/ProductApplicationSetsInner.md +24 -0
- package/docs/ProductWarehouseProduct.md +22 -0
- package/docs/ProductsApi.md +687 -0
- package/docs/ProductsResponse.md +22 -0
- package/docs/SEOMetadata.md +23 -0
- package/docs/SeoOptimiseProducts202Response.md +20 -0
- package/docs/SeoOptimiseProductsRequest.md +22 -0
- package/docs/Stock.md +22 -0
- package/docs/TargetSearchPhraseData.md +22 -0
- package/docs/UpdateApplicationSetRequest.md +30 -0
- package/docs/UpdateApplicationSetRequestRecordsInner.md +22 -0
- package/docs/UpdateApplicationSetRequestRecordsInnerAttributesInner.md +22 -0
- package/docs/UpdateProductRequest.md +64 -0
- package/docs/UpdateProductRequestIntegrationConnectionsInner.md +22 -0
- package/docs/UpdateProductsRequest.md +20 -0
- package/docs/UpdateProductsRequestProductsInner.md +42 -0
- package/docs/UpdateProductsRequestProductsInnerIntegrationConnectionsInner.md +22 -0
- package/docs/UpdateProductsRequestProductsInnerSeoMetadata.md +22 -0
- package/docs/UpdateProductsRequestProductsInnerVariantsInner.md +30 -0
- package/docs/UpdateProductsRequestProductsInnerVariantsInnerAttributesInner.md +22 -0
- package/docs/UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner.md +22 -0
- package/docs/UpdateProductsRequestProductsInnerVariantsInnerRetailPrice.md +23 -0
- package/docs/UpdateProductsRequestProductsInnerVariantsInnerSalePrice.md +23 -0
- package/docs/Variant.md +58 -0
- package/docs/VariantIntegrationConnectionsInner.md +22 -0
- package/docs/VariantProduct.md +22 -0
- package/docs/VariantsApi.md +138 -0
- package/docs/VariantsResponse.md +22 -0
- package/docs/Video.md +31 -0
- package/docs/VideoFile.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# VariantsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.podos.io*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getVariant**](#getvariant) | **GET** /v1/catalog/variants/{variantId} | Get variant|
|
|
8
|
+
|[**listVariants**](#listvariants) | **GET** /v1/catalog/variants | List variants|
|
|
9
|
+
|
|
10
|
+
# **getVariant**
|
|
11
|
+
> Variant getVariant()
|
|
12
|
+
|
|
13
|
+
Gets a variant by a given ID.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
VariantsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@teemill/product-catalog';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new VariantsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let project: string; //What project it is (default to undefined)
|
|
27
|
+
let variantId: string; //Variants unique identifier (default to undefined)
|
|
28
|
+
let fields: string; //Filter response fields to only include a subset of the resource. (optional) (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.getVariant(
|
|
31
|
+
project,
|
|
32
|
+
variantId,
|
|
33
|
+
fields
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
42
|
+
| **variantId** | [**string**] | Variants unique identifier | defaults to undefined|
|
|
43
|
+
| **fields** | [**string**] | Filter response fields to only include a subset of the resource. | (optional) defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**Variant**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: Not defined
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | Successfully retrieved a variant. | - |
|
|
64
|
+
|**400** | Failed validation. | - |
|
|
65
|
+
|**401** | Not authorised to access this resource. | - |
|
|
66
|
+
|**403** | Refuse to authorize. | - |
|
|
67
|
+
|**404** | Resource not found. | - |
|
|
68
|
+
|**500** | Unknown server error. | - |
|
|
69
|
+
|
|
70
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
71
|
+
|
|
72
|
+
# **listVariants**
|
|
73
|
+
> VariantsResponse listVariants()
|
|
74
|
+
|
|
75
|
+
Lists all variants that belong to enabled products attached to the given project.
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
VariantsApi,
|
|
82
|
+
Configuration
|
|
83
|
+
} from '@teemill/product-catalog';
|
|
84
|
+
|
|
85
|
+
const configuration = new Configuration();
|
|
86
|
+
const apiInstance = new VariantsApi(configuration);
|
|
87
|
+
|
|
88
|
+
let project: string; //What project it is (default to undefined)
|
|
89
|
+
let search: string; //Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', and \'tag:\"tag name\"\'. Multiple filters can be combined with spaces and commas. (optional) (default to 'enabled:true')
|
|
90
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
91
|
+
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)
|
|
92
|
+
let fields: string; //Filter response fields to only include a subset of the resource. (optional) (default to undefined)
|
|
93
|
+
|
|
94
|
+
const { status, data } = await apiInstance.listVariants(
|
|
95
|
+
project,
|
|
96
|
+
search,
|
|
97
|
+
pageToken,
|
|
98
|
+
pageSize,
|
|
99
|
+
fields
|
|
100
|
+
);
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Parameters
|
|
104
|
+
|
|
105
|
+
|Name | Type | Description | Notes|
|
|
106
|
+
|------------- | ------------- | ------------- | -------------|
|
|
107
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
108
|
+
| **search** | [**string**] | Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', and \'tag:\"tag name\"\'. Multiple filters can be combined with spaces and commas. | (optional) defaults to 'enabled:true'|
|
|
109
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
110
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
111
|
+
| **fields** | [**string**] | Filter response fields to only include a subset of the resource. | (optional) defaults to undefined|
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Return type
|
|
115
|
+
|
|
116
|
+
**VariantsResponse**
|
|
117
|
+
|
|
118
|
+
### Authorization
|
|
119
|
+
|
|
120
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
121
|
+
|
|
122
|
+
### HTTP request headers
|
|
123
|
+
|
|
124
|
+
- **Content-Type**: Not defined
|
|
125
|
+
- **Accept**: application/json
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### HTTP response details
|
|
129
|
+
| Status code | Description | Response headers |
|
|
130
|
+
|-------------|-------------|------------------|
|
|
131
|
+
|**200** | Successfully retrieved all variants. | - |
|
|
132
|
+
|**400** | Failed validation. | - |
|
|
133
|
+
|**401** | Not authorised to access this resource. | - |
|
|
134
|
+
|**403** | Refuse to authorize. | - |
|
|
135
|
+
|**500** | Unknown server error. | - |
|
|
136
|
+
|
|
137
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
138
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VariantsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**variants** | [**Array<Variant>**](Variant.md) | | [optional] [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | The token referencing the next page number | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VariantsResponse } from '@teemill/product-catalog';
|
|
15
|
+
|
|
16
|
+
const instance: VariantsResponse = {
|
|
17
|
+
variants,
|
|
18
|
+
nextPageToken,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Video.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Video
|
|
2
|
+
|
|
3
|
+
Video object
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique object identifier | [optional] [default to undefined]
|
|
10
|
+
**src** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**alt** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**sortOrder** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { Video } from '@teemill/product-catalog';
|
|
20
|
+
|
|
21
|
+
const instance: Video = {
|
|
22
|
+
id,
|
|
23
|
+
src,
|
|
24
|
+
alt,
|
|
25
|
+
sortOrder,
|
|
26
|
+
createdAt,
|
|
27
|
+
updatedAt,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VideoFile
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**src** | **string** | Publicly available file URL. | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VideoFile } from '@teemill/product-catalog';
|
|
14
|
+
|
|
15
|
+
const instance: VideoFile = {
|
|
16
|
+
src,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.50.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|