@digital8/lighting-illusions-ts-sdk 0.0.530 → 0.0.532
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/.openapi-generator/FILES +42 -24
- package/README.md +30 -14
- package/dist/apis/ProductCategoryApi.d.ts +105 -0
- package/dist/apis/ProductCategoryApi.js +445 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
- package/dist/models/CategoryAutomationComparisonType.js +55 -0
- package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
- package/dist/models/CategoryAutomationConditionType.js +51 -0
- package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
- package/dist/models/CategoryAutomationFieldType.js +56 -0
- package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
- package/dist/models/CategoryAutomationRuleResource.js +67 -0
- package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
- package/dist/models/GetAllProductCategoryRequest.js +94 -0
- package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
- package/dist/models/IndexProductCategoryRequest.js +98 -0
- package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
- package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
- package/dist/models/ProductCategoryHierarchyResource.js +69 -0
- package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryListResource.d.ts +75 -0
- package/dist/models/ProductCategoryListResource.js +78 -0
- package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
- package/dist/models/ProductCategoryLiteResource.js +53 -0
- package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryResource.d.ts +107 -0
- package/dist/models/ProductCategoryResource.js +96 -0
- package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +105 -0
- package/dist/models/StoreProductCategoryRequest.js +86 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +62 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +63 -0
- package/dist/models/UpdateProductCategoryRequest.d.ts +105 -0
- package/dist/models/UpdateProductCategoryRequest.js +74 -0
- package/dist/models/index.d.ts +20 -12
- package/dist/models/index.js +20 -12
- package/docs/{ProductSortBy.md → CategoryAutomationComparisonType.md} +4 -4
- package/docs/{ProductStatus.md → CategoryAutomationConditionType.md} +4 -4
- package/docs/{ProductRating.md → CategoryAutomationFieldType.md} +4 -4
- package/docs/CategoryAutomationRuleResource.md +46 -0
- package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
- package/docs/GetAllProductCategoryRequest.md +52 -0
- package/docs/IndexProductCategoryRequest.md +56 -0
- package/docs/{PaginatedProductSearchResultResourceResponse.md → PaginatedProductCategoryListResourceResponse.md} +5 -5
- package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
- package/docs/ProductCategoryApi.md +534 -0
- package/docs/{ProductAggregationResource.md → ProductCategoryHierarchyResource.md} +16 -12
- package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryListResource.md +48 -0
- package/docs/{ProductSearchResultResourceArrayResponse.md → ProductCategoryListResourceArrayResponse.md} +5 -5
- package/docs/ProductCategoryLiteResource.md +36 -0
- package/docs/{ProductSearchResponseResourceArrayResponse.md → ProductCategoryLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductCategoryResource.md +58 -0
- package/docs/{ProductAggregationResourceArrayResponse.md → ProductCategoryResourceArrayResponse.md} +5 -5
- package/docs/StoreProductCategoryRequest.md +58 -0
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
- package/docs/UpdateProductCategoryRequest.md +58 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +363 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CategoryAutomationComparisonType.ts +57 -0
- package/src/models/CategoryAutomationConditionType.ts +53 -0
- package/src/models/CategoryAutomationFieldType.ts +58 -0
- package/src/models/CategoryAutomationRuleResource.ts +116 -0
- package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductCategoryRequest.ts +171 -0
- package/src/models/IndexProductCategoryRequest.ts +187 -0
- package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
- package/src/models/ProductCategoryHierarchyResource.ts +110 -0
- package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryListResource.ts +136 -0
- package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryLiteResource.ts +74 -0
- package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryResource.ts +193 -0
- package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductCategoryRequest.ts +175 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +107 -0
- package/src/models/UpdateProductCategoryRequest.ts +169 -0
- package/src/models/index.ts +20 -12
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +0 -57
- package/dist/models/ProductAggregationResource.d.ts +0 -50
- package/dist/models/ProductAggregationResource.js +0 -63
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductAggregationResourceArrayResponse.js +0 -50
- package/dist/models/ProductRating.d.ts +0 -26
- package/dist/models/ProductRating.js +0 -52
- package/dist/models/ProductSearchResponseResource.d.ts +0 -54
- package/dist/models/ProductSearchResponseResource.js +0 -67
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.js +0 -63
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +0 -63
- package/dist/models/ProductSearchResultResource.d.ts +0 -116
- package/dist/models/ProductSearchResultResource.js +0 -105
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResultResourceArrayResponse.js +0 -50
- package/dist/models/ProductSortBy.d.ts +0 -32
- package/dist/models/ProductSortBy.js +0 -58
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/docs/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceMeta.md +0 -40
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +0 -90
- package/src/models/ProductAggregationResource.ts +0 -93
- package/src/models/ProductAggregationResourceArrayResponse.ts +0 -73
- package/src/models/ProductRating.ts +0 -54
- package/src/models/ProductSearchResponseResource.ts +0 -122
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +0 -73
- package/src/models/ProductSearchResponseResourceMeta.ts +0 -93
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +0 -93
- package/src/models/ProductSearchResultResource.ts +0 -191
- package/src/models/ProductSearchResultResourceArrayResponse.ts +0 -73
- package/src/models/ProductSortBy.ts +0 -60
- package/src/models/ProductStatus.ts +0 -52
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductCategoryLiteResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ProductCategoryLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies ProductCategoryLiteResource
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductCategoryLiteResource
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductCategoryLiteResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ProductCategoryLiteResource>](ProductCategoryLiteResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ProductCategoryLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ProductCategoryLiteResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductCategoryLiteResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductCategoryResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`siteId` | number
|
|
11
|
+
`name` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`parentId` | string
|
|
14
|
+
`isDisabled` | boolean
|
|
15
|
+
`isAutomated` | boolean
|
|
16
|
+
`index` | number
|
|
17
|
+
`automatedConditionType` | string
|
|
18
|
+
`thumbnail` | [AssetResource](AssetResource.md)
|
|
19
|
+
`automationRules` | object
|
|
20
|
+
`parent` | [ProductCategoryLiteResource](ProductCategoryLiteResource.md)
|
|
21
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { ProductCategoryResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"id": null,
|
|
31
|
+
"siteId": null,
|
|
32
|
+
"name": null,
|
|
33
|
+
"slug": null,
|
|
34
|
+
"parentId": null,
|
|
35
|
+
"isDisabled": null,
|
|
36
|
+
"isAutomated": null,
|
|
37
|
+
"index": null,
|
|
38
|
+
"automatedConditionType": null,
|
|
39
|
+
"thumbnail": null,
|
|
40
|
+
"automationRules": null,
|
|
41
|
+
"parent": null,
|
|
42
|
+
"site": null,
|
|
43
|
+
} satisfies ProductCategoryResource
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductCategoryResource
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|
package/docs/{ProductAggregationResourceArrayResponse.md → ProductCategoryResourceArrayResponse.md}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductCategoryResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ProductCategoryResource>](ProductCategoryResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ProductCategoryResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ProductCategoryResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductCategoryResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreProductCategoryRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`siteId` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`slug` | string
|
|
12
|
+
`parentId` | string
|
|
13
|
+
`isDisabled` | boolean
|
|
14
|
+
`hideFromFrontend` | boolean
|
|
15
|
+
`isAutomated` | boolean
|
|
16
|
+
`index` | number
|
|
17
|
+
`automatedConditionType` | string
|
|
18
|
+
`automationRules` | [Array<StoreProductCategoryRequestAutomationRulesInner>](StoreProductCategoryRequestAutomationRulesInner.md)
|
|
19
|
+
`altText` | string
|
|
20
|
+
`mimeType` | string
|
|
21
|
+
`fileId` | number
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { StoreProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"siteId": null,
|
|
31
|
+
"name": null,
|
|
32
|
+
"slug": null,
|
|
33
|
+
"parentId": null,
|
|
34
|
+
"isDisabled": null,
|
|
35
|
+
"hideFromFrontend": null,
|
|
36
|
+
"isAutomated": null,
|
|
37
|
+
"index": null,
|
|
38
|
+
"automatedConditionType": null,
|
|
39
|
+
"automationRules": null,
|
|
40
|
+
"altText": null,
|
|
41
|
+
"mimeType": null,
|
|
42
|
+
"fileId": null,
|
|
43
|
+
} satisfies StoreProductCategoryRequest
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreProductCategoryRequest
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreProductCategoryRequestAutomationRulesInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`fieldType` | string
|
|
10
|
+
`comparisonType` | string
|
|
11
|
+
`groupId` | number
|
|
12
|
+
`relatedId` | string
|
|
13
|
+
`value` | string
|
|
14
|
+
`valueId` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { StoreProductCategoryRequestAutomationRulesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"fieldType": null,
|
|
24
|
+
"comparisonType": null,
|
|
25
|
+
"groupId": null,
|
|
26
|
+
"relatedId": null,
|
|
27
|
+
"value": null,
|
|
28
|
+
"valueId": null,
|
|
29
|
+
} satisfies StoreProductCategoryRequestAutomationRulesInner
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreProductCategoryRequestAutomationRulesInner
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateProductCategoryRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`siteId` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`slug` | string
|
|
12
|
+
`parentId` | string
|
|
13
|
+
`isDisabled` | boolean
|
|
14
|
+
`hideFromFrontend` | boolean
|
|
15
|
+
`isAutomated` | boolean
|
|
16
|
+
`index` | number
|
|
17
|
+
`automatedConditionType` | string
|
|
18
|
+
`automationRules` | [Array<StoreProductCategoryRequestAutomationRulesInner>](StoreProductCategoryRequestAutomationRulesInner.md)
|
|
19
|
+
`altText` | string
|
|
20
|
+
`mimeType` | string
|
|
21
|
+
`fileId` | number
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { UpdateProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"siteId": null,
|
|
31
|
+
"name": null,
|
|
32
|
+
"slug": null,
|
|
33
|
+
"parentId": null,
|
|
34
|
+
"isDisabled": null,
|
|
35
|
+
"hideFromFrontend": null,
|
|
36
|
+
"isAutomated": null,
|
|
37
|
+
"index": null,
|
|
38
|
+
"automatedConditionType": null,
|
|
39
|
+
"automationRules": null,
|
|
40
|
+
"altText": null,
|
|
41
|
+
"mimeType": null,
|
|
42
|
+
"fileId": null,
|
|
43
|
+
} satisfies UpdateProductCategoryRequest
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateProductCategoryRequest
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|