@teemill/product-catalog 1.58.1 → 1.61.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.
Files changed (42) hide show
  1. package/README.md +13 -2
  2. package/api.ts +301 -18
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +288 -18
  7. package/dist/api.js +23 -2
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +1 -1
  14. package/dist/esm/api.d.ts +288 -18
  15. package/dist/esm/api.js +22 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +1 -1
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/Application.md +2 -2
  27. package/docs/ApplicationProperties.md +4 -1
  28. package/docs/ApplicationPropertiesMetadata.md +20 -0
  29. package/docs/ApplicationPropertiesMetadataPersonalization.md +24 -0
  30. package/docs/ApplicationPropertiesPersonalization.md +22 -0
  31. package/docs/ApplicationPropertiesPersonalizationRules.md +20 -0
  32. package/docs/ApplicationPropertiesPosition.md +5 -3
  33. package/docs/ApplicationPropertiesPositionInference.md +23 -0
  34. package/docs/ApplicationPropertiesProperties.md +40 -0
  35. package/docs/CreateApplication.md +2 -2
  36. package/docs/CreateApplicationProperties.md +18 -3
  37. package/docs/TextApplicationProperties.md +34 -0
  38. package/docs/TextApplicationPropertiesPersonalization.md +24 -0
  39. package/docs/TextApplicationPropertiesPersonalizationRules.md +30 -0
  40. package/docs/TextApplicationPropertiesPosition.md +24 -0
  41. package/index.ts +1 -1
  42. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ # ApplicationPropertiesPersonalization
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **label** | **string** | The label to be displayed on the personalization field. | [optional] [default to undefined]
9
+ **rules** | [**ApplicationPropertiesPersonalizationRules**](ApplicationPropertiesPersonalizationRules.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApplicationPropertiesPersonalization } from '@teemill/product-catalog';
15
+
16
+ const instance: ApplicationPropertiesPersonalization = {
17
+ label,
18
+ rules,
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)
@@ -0,0 +1,20 @@
1
+ # ApplicationPropertiesPersonalizationRules
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **fit** | **string** | The fit of the image. This determines how an uploaded image will be resized to fit the application. | [optional] [default to FitEnum_Contain]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ApplicationPropertiesPersonalizationRules } from '@teemill/product-catalog';
14
+
15
+ const instance: ApplicationPropertiesPersonalizationRules = {
16
+ fit,
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)
@@ -1,13 +1,14 @@
1
1
  # ApplicationPropertiesPosition
2
2
 
3
- Position of the application
3
+ Position of the application relative to the bounding box of the product
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **x** | **number** | X coordinate of the application in pixels relative to the bounding box of the product | [default to undefined]
10
- **y** | **number** | Y coordinate of the application in pixels relative to the bounding box of the product | [default to undefined]
9
+ **x** | **number** | X coordinate of the application in pixels | [default to undefined]
10
+ **y** | **number** | Y coordinate of the application in pixels | [default to undefined]
11
+ **z** | **number** | The z layer of the application. This doesn\'t affect printing, but is used for ordering the applications when displaying them in a mockup. | [optional] [default to 0]
11
12
 
12
13
  ## Example
13
14
 
@@ -17,6 +18,7 @@ import { ApplicationPropertiesPosition } from '@teemill/product-catalog';
17
18
  const instance: ApplicationPropertiesPosition = {
18
19
  x,
19
20
  y,
21
+ z,
20
22
  };
21
23
  ```
22
24
 
@@ -0,0 +1,23 @@
1
+ # ApplicationPropertiesPositionInference
2
+
3
+ Set these properties when you don\'t have position information for the application. We will use the mockup and baseFlat to calculate the position of the application relative to the bounding box of the warehouse product.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **mockup** | **string** | Old mockup with applications. This is used to infer the position of the application. | [default to undefined]
10
+ **baseFlat** | **string** | Base flat image. This is used to infer the position of the application. | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ApplicationPropertiesPositionInference } from '@teemill/product-catalog';
16
+
17
+ const instance: ApplicationPropertiesPositionInference = {
18
+ mockup,
19
+ baseFlat,
20
+ };
21
+ ```
22
+
23
+ [[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,40 @@
1
+ # ApplicationPropertiesProperties
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **position** | [**ApplicationPropertiesPosition**](ApplicationPropertiesPosition.md) | | [optional] [default to undefined]
9
+ **positionInference** | [**ApplicationPropertiesPositionInference**](ApplicationPropertiesPositionInference.md) | | [optional] [default to undefined]
10
+ **lines** | **Array<string>** | An array of text lines. | [optional] [default to undefined]
11
+ **font** | **string** | The font to be used for the text. This font must be available in the PodOS font library. | [optional] [default to undefined]
12
+ **fontSize** | **number** | The size of the text in pixels. | [optional] [default to undefined]
13
+ **fontWeight** | **string** | The weight of the text. This must be a valid CSS font-weight value. | [optional] [default to FontWeightEnum_Normal]
14
+ **fontStyle** | **string** | The style of the text. This must be a valid CSS font-style value. | [optional] [default to FontStyleEnum_Normal]
15
+ **color** | **string** | The colour of the text in hex format. | [optional] [default to undefined]
16
+ **width** | **number** | Width of the application in pixels | [optional] [default to undefined]
17
+ **height** | **number** | Height of the application in pixels | [optional] [default to undefined]
18
+ **metadata** | [**ApplicationPropertiesMetadata**](ApplicationPropertiesMetadata.md) | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { ApplicationPropertiesProperties } from '@teemill/product-catalog';
24
+
25
+ const instance: ApplicationPropertiesProperties = {
26
+ position,
27
+ positionInference,
28
+ lines,
29
+ font,
30
+ fontSize,
31
+ fontWeight,
32
+ fontStyle,
33
+ color,
34
+ width,
35
+ height,
36
+ metadata,
37
+ };
38
+ ```
39
+
40
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
8
8
  **technology** | **string** | Technology to use for the application. | [default to undefined]
9
9
  **placement** | **string** | Placement of the application. Available placements depend on the chosen product and technology. | [default to undefined]
10
10
  **additionalInstructions** | **string** | Any additional instructions for the application | [optional] [default to undefined]
11
- **src** | **string** | Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files. | [default to undefined]
11
+ **src** | **string** | Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. | [default to undefined]
12
12
  **stockedOnly** | **boolean** | If set to true, transfers for this application will not be printed on demand, and will need to be stocked in trays in the factory. Note that this can only be set if the technology is stockable, such as DTF. | [optional] [default to undefined]
13
- **properties** | [**ApplicationProperties**](ApplicationProperties.md) | | [optional] [default to undefined]
13
+ **properties** | [**CreateApplicationProperties**](CreateApplicationProperties.md) | | [optional] [default to undefined]
14
14
 
15
15
  ## Example
16
16
 
@@ -1,14 +1,21 @@
1
1
  # CreateApplicationProperties
2
2
 
3
- Optional properties for the application. Leave width, height and position empty and the system will automatically calculate the size for the application.
4
3
 
5
4
  ## Properties
6
5
 
7
6
  Name | Type | Description | Notes
8
7
  ------------ | ------------- | ------------- | -------------
8
+ **position** | [**ApplicationPropertiesPosition**](ApplicationPropertiesPosition.md) | | [optional] [default to undefined]
9
+ **positionInference** | [**ApplicationPropertiesPositionInference**](ApplicationPropertiesPositionInference.md) | | [optional] [default to undefined]
10
+ **lines** | **Array<string>** | An array of text lines. | [optional] [default to undefined]
11
+ **font** | **string** | The font to be used for the text. This font must be available in the PodOS font library. | [optional] [default to undefined]
12
+ **fontSize** | **number** | The size of the text in pixels. | [optional] [default to undefined]
13
+ **fontWeight** | **string** | The weight of the text. This must be a valid CSS font-weight value. | [optional] [default to FontWeightEnum_Normal]
14
+ **fontStyle** | **string** | The style of the text. This must be a valid CSS font-style value. | [optional] [default to FontStyleEnum_Normal]
15
+ **color** | **string** | The colour of the text in hex format. | [optional] [default to undefined]
9
16
  **width** | **number** | Width of the application in pixels | [optional] [default to undefined]
10
17
  **height** | **number** | Height of the application in pixels | [optional] [default to undefined]
11
- **position** | [**CreateApplicationPropertiesPosition**](CreateApplicationPropertiesPosition.md) | | [optional] [default to undefined]
18
+ **metadata** | [**ApplicationPropertiesMetadata**](ApplicationPropertiesMetadata.md) | | [optional] [default to undefined]
12
19
 
13
20
  ## Example
14
21
 
@@ -16,9 +23,17 @@ Name | Type | Description | Notes
16
23
  import { CreateApplicationProperties } from '@teemill/product-catalog';
17
24
 
18
25
  const instance: CreateApplicationProperties = {
26
+ position,
27
+ positionInference,
28
+ lines,
29
+ font,
30
+ fontSize,
31
+ fontWeight,
32
+ fontStyle,
33
+ color,
19
34
  width,
20
35
  height,
21
- position,
36
+ metadata,
22
37
  };
23
38
  ```
24
39
 
@@ -0,0 +1,34 @@
1
+ # TextApplicationProperties
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **position** | [**TextApplicationPropertiesPosition**](TextApplicationPropertiesPosition.md) | | [optional] [default to undefined]
9
+ **positionInference** | [**ApplicationPropertiesPositionInference**](ApplicationPropertiesPositionInference.md) | | [optional] [default to undefined]
10
+ **lines** | **Array<string>** | An array of text lines. | [optional] [default to undefined]
11
+ **font** | **string** | The font to be used for the text. This font must be available in the PodOS font library. | [optional] [default to undefined]
12
+ **fontSize** | **number** | The size of the text in pixels. | [optional] [default to undefined]
13
+ **fontWeight** | **string** | The weight of the text. This must be a valid CSS font-weight value. | [optional] [default to FontWeightEnum_Normal]
14
+ **fontStyle** | **string** | The style of the text. This must be a valid CSS font-style value. | [optional] [default to FontStyleEnum_Normal]
15
+ **color** | **string** | The colour of the text in hex format. | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { TextApplicationProperties } from '@teemill/product-catalog';
21
+
22
+ const instance: TextApplicationProperties = {
23
+ position,
24
+ positionInference,
25
+ lines,
26
+ font,
27
+ fontSize,
28
+ fontWeight,
29
+ fontStyle,
30
+ color,
31
+ };
32
+ ```
33
+
34
+ [[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,24 @@
1
+ # TextApplicationPropertiesPersonalization
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **label** | **string** | The label to be displayed on the personalization field. | [optional] [default to undefined]
9
+ **type** | **string** | The type of the personalization field | [optional] [default to undefined]
10
+ **rules** | [**TextApplicationPropertiesPersonalizationRules**](TextApplicationPropertiesPersonalizationRules.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { TextApplicationPropertiesPersonalization } from '@teemill/product-catalog';
16
+
17
+ const instance: TextApplicationPropertiesPersonalization = {
18
+ label,
19
+ type,
20
+ rules,
21
+ };
22
+ ```
23
+
24
+ [[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,30 @@
1
+ # TextApplicationPropertiesPersonalizationRules
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **maxLength** | **number** | The maximum length of the text, in characters. | [optional] [default to 100]
9
+ **profanityFilter** | **boolean** | If true, suspected profanities will be replaced by *. Only valid when metadata.personalization.type is \"text\" | [optional] [default to false]
10
+ **scaleToFit** | **boolean** | If true, and the inputted text is longer than the original text, the font size will be reduced to keep the text within the application\'s original bounds. | [optional] [default to false]
11
+ **maxValue** | **number** | The maximum value of the number. Only valid when metadata.personalization.type is \"number\" | [optional] [default to 100]
12
+ **minValue** | **number** | The minimum value of the number. Only valid when metadata.personalization.type is \"number\" | [optional] [default to 0]
13
+ **pad** | **number** | If the entered number is below the specified digits it will be padded with 0s. E.g. 7 will become 007 when pad is 3. Only valid when metadata.personalization.type is number | [optional] [default to 0]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { TextApplicationPropertiesPersonalizationRules } from '@teemill/product-catalog';
19
+
20
+ const instance: TextApplicationPropertiesPersonalizationRules = {
21
+ maxLength,
22
+ profanityFilter,
23
+ scaleToFit,
24
+ maxValue,
25
+ minValue,
26
+ pad,
27
+ };
28
+ ```
29
+
30
+ [[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,24 @@
1
+ # TextApplicationPropertiesPosition
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **x** | **number** | The x position of the application in pixels. | [default to 0]
9
+ **y** | **number** | The y position of the application in pixels. | [default to 0]
10
+ **z** | **number** | The z layer of the application. This doesn\'t affect printing, but is used for ordering the applications when displaying them in a mockup. | [optional] [default to 0]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { TextApplicationPropertiesPosition } from '@teemill/product-catalog';
16
+
17
+ const instance: TextApplicationPropertiesPosition = {
18
+ x,
19
+ y,
20
+ z,
21
+ };
22
+ ```
23
+
24
+ [[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.58.1
7
+ * The version of the OpenAPI document: 1.61.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.58.1",
3
+ "version": "1.61.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {