@digital8/lighting-illusions-ts-sdk 0.0.534 → 0.0.535
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 +4 -4
- package/README.md +4 -4
- package/dist/models/ProductCategoryResource.d.ts +14 -0
- package/dist/models/ProductCategoryResource.js +10 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +14 -0
- package/dist/models/StoreProductCategoryRequest.js +6 -0
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.d.ts +44 -0
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.js +55 -0
- package/dist/models/StoreProductCategoryRequestSeoInner.d.ts +44 -0
- package/dist/models/StoreProductCategoryRequestSeoInner.js +55 -0
- package/dist/models/StoreSupplierRequest.d.ts +6 -6
- package/dist/models/StoreSupplierRequest.js +6 -6
- package/dist/models/UpdateProductCategoryRequest.d.ts +15 -1
- package/dist/models/UpdateProductCategoryRequest.js +9 -1
- package/dist/models/UpdateSupplierRequest.d.ts +6 -6
- package/dist/models/UpdateSupplierRequest.js +6 -6
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/docs/ProductCategoryResource.md +4 -0
- package/docs/StoreProductCategoryRequest.md +4 -0
- package/docs/{StoreSupplierRequestDescriptionsInner.md → StoreProductCategoryRequestDescriptionsInner.md} +4 -4
- package/docs/{StoreSupplierRequestSeoInner.md → StoreProductCategoryRequestSeoInner.md} +4 -4
- package/docs/StoreSupplierRequest.md +2 -2
- package/docs/UpdateProductCategoryRequest.md +4 -0
- package/docs/UpdateSupplierRequest.md +2 -2
- package/package.json +1 -1
- package/src/models/ProductCategoryResource.ts +32 -0
- package/src/models/StoreProductCategoryRequest.ts +30 -0
- package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +82 -0
- package/src/models/{StoreSupplierRequestSeoInner.ts → StoreProductCategoryRequestSeoInner.ts} +13 -13
- package/src/models/StoreSupplierRequest.ts +20 -20
- package/src/models/UpdateProductCategoryRequest.ts +33 -2
- package/src/models/UpdateSupplierRequest.ts +20 -20
- package/src/models/index.ts +2 -2
- package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +0 -44
- package/dist/models/StoreSupplierRequestDescriptionsInner.js +0 -55
- package/dist/models/StoreSupplierRequestSeoInner.d.ts +0 -44
- package/dist/models/StoreSupplierRequestSeoInner.js +0 -55
- package/src/models/StoreSupplierRequestDescriptionsInner.ts +0 -82
package/dist/models/index.js
CHANGED
|
@@ -198,6 +198,8 @@ __exportStar(require("./StoreOverlayTemplateAssetRequest"), exports);
|
|
|
198
198
|
__exportStar(require("./StoreOverlayTemplateRequest"), exports);
|
|
199
199
|
__exportStar(require("./StoreProductCategoryRequest"), exports);
|
|
200
200
|
__exportStar(require("./StoreProductCategoryRequestAutomationRulesInner"), exports);
|
|
201
|
+
__exportStar(require("./StoreProductCategoryRequestDescriptionsInner"), exports);
|
|
202
|
+
__exportStar(require("./StoreProductCategoryRequestSeoInner"), exports);
|
|
201
203
|
__exportStar(require("./StoreProductChildRequest"), exports);
|
|
202
204
|
__exportStar(require("./StoreProductChildRequestAssetsInner"), exports);
|
|
203
205
|
__exportStar(require("./StoreProductChildRequestAttributeValuesInner"), exports);
|
|
@@ -207,8 +209,6 @@ __exportStar(require("./StoreProductRequestCategoriesInner"), exports);
|
|
|
207
209
|
__exportStar(require("./StoreProductTypeRequest"), exports);
|
|
208
210
|
__exportStar(require("./StoreSiteNotificationRequest"), exports);
|
|
209
211
|
__exportStar(require("./StoreSupplierRequest"), exports);
|
|
210
|
-
__exportStar(require("./StoreSupplierRequestDescriptionsInner"), exports);
|
|
211
|
-
__exportStar(require("./StoreSupplierRequestSeoInner"), exports);
|
|
212
212
|
__exportStar(require("./StoreTagRequest"), exports);
|
|
213
213
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
214
214
|
__exportStar(require("./SupplierFrontendResourceArrayResponse"), exports);
|
|
@@ -19,6 +19,8 @@ Name | Type
|
|
|
19
19
|
`automationRules` | object
|
|
20
20
|
`parent` | [ProductCategoryLiteResource](ProductCategoryLiteResource.md)
|
|
21
21
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
22
|
+
`seo` | [Array<SEOResource>](SEOResource.md)
|
|
23
|
+
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
22
24
|
|
|
23
25
|
## Example
|
|
24
26
|
|
|
@@ -40,6 +42,8 @@ const example = {
|
|
|
40
42
|
"automationRules": null,
|
|
41
43
|
"parent": null,
|
|
42
44
|
"site": null,
|
|
45
|
+
"seo": null,
|
|
46
|
+
"descriptions": null,
|
|
43
47
|
} satisfies ProductCategoryResource
|
|
44
48
|
|
|
45
49
|
console.log(example)
|
|
@@ -19,6 +19,8 @@ Name | Type
|
|
|
19
19
|
`altText` | string
|
|
20
20
|
`mimeType` | string
|
|
21
21
|
`fileId` | number
|
|
22
|
+
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
23
|
+
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
22
24
|
|
|
23
25
|
## Example
|
|
24
26
|
|
|
@@ -40,6 +42,8 @@ const example = {
|
|
|
40
42
|
"altText": null,
|
|
41
43
|
"mimeType": null,
|
|
42
44
|
"fileId": null,
|
|
45
|
+
"seo": null,
|
|
46
|
+
"descriptions": null,
|
|
43
47
|
} satisfies StoreProductCategoryRequest
|
|
44
48
|
|
|
45
49
|
console.log(example)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StoreProductCategoryRequestDescriptionsInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -13,14 +13,14 @@ Name | Type
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
17
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
20
|
"headerDescription": null,
|
|
21
21
|
"footerDescription": null,
|
|
22
22
|
"siteId": null,
|
|
23
|
-
} satisfies
|
|
23
|
+
} satisfies StoreProductCategoryRequestDescriptionsInner
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
29
|
console.log(exampleJSON)
|
|
30
30
|
|
|
31
31
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreProductCategoryRequestDescriptionsInner
|
|
33
33
|
console.log(exampleParsed)
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StoreProductCategoryRequestSeoInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -13,14 +13,14 @@ Name | Type
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
17
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
20
|
"seoTitle": null,
|
|
21
21
|
"seoDescription": null,
|
|
22
22
|
"siteId": null,
|
|
23
|
-
} satisfies
|
|
23
|
+
} satisfies StoreProductCategoryRequestSeoInner
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
29
|
console.log(exampleJSON)
|
|
30
30
|
|
|
31
31
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreProductCategoryRequestSeoInner
|
|
33
33
|
console.log(exampleParsed)
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -9,11 +9,11 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`supplierEta` | number
|
|
12
|
-
`seo` | [Array<
|
|
12
|
+
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`fileId` | number
|
|
16
|
-
`descriptions` | [Array<
|
|
16
|
+
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
17
17
|
|
|
18
18
|
## Example
|
|
19
19
|
|
|
@@ -19,6 +19,8 @@ Name | Type
|
|
|
19
19
|
`altText` | string
|
|
20
20
|
`mimeType` | string
|
|
21
21
|
`fileId` | number
|
|
22
|
+
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
23
|
+
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
22
24
|
|
|
23
25
|
## Example
|
|
24
26
|
|
|
@@ -40,6 +42,8 @@ const example = {
|
|
|
40
42
|
"altText": null,
|
|
41
43
|
"mimeType": null,
|
|
42
44
|
"fileId": null,
|
|
45
|
+
"seo": null,
|
|
46
|
+
"descriptions": null,
|
|
43
47
|
} satisfies UpdateProductCategoryRequest
|
|
44
48
|
|
|
45
49
|
console.log(example)
|
|
@@ -9,11 +9,11 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`supplierEta` | number
|
|
12
|
-
`seo` | [Array<
|
|
12
|
+
`seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`fileId` | number
|
|
16
|
-
`descriptions` | [Array<
|
|
16
|
+
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
17
17
|
|
|
18
18
|
## Example
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SiteLiteResourceToJSON,
|
|
21
21
|
SiteLiteResourceToJSONTyped,
|
|
22
22
|
} from './SiteLiteResource';
|
|
23
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
24
|
+
import {
|
|
25
|
+
DescriptionResourceFromJSON,
|
|
26
|
+
DescriptionResourceFromJSONTyped,
|
|
27
|
+
DescriptionResourceToJSON,
|
|
28
|
+
DescriptionResourceToJSONTyped,
|
|
29
|
+
} from './DescriptionResource';
|
|
23
30
|
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
24
31
|
import {
|
|
25
32
|
ProductCategoryLiteResourceFromJSON,
|
|
@@ -34,6 +41,13 @@ import {
|
|
|
34
41
|
AssetResourceToJSON,
|
|
35
42
|
AssetResourceToJSONTyped,
|
|
36
43
|
} from './AssetResource';
|
|
44
|
+
import type { SEOResource } from './SEOResource';
|
|
45
|
+
import {
|
|
46
|
+
SEOResourceFromJSON,
|
|
47
|
+
SEOResourceFromJSONTyped,
|
|
48
|
+
SEOResourceToJSON,
|
|
49
|
+
SEOResourceToJSONTyped,
|
|
50
|
+
} from './SEOResource';
|
|
37
51
|
|
|
38
52
|
/**
|
|
39
53
|
*
|
|
@@ -119,6 +133,18 @@ export interface ProductCategoryResource {
|
|
|
119
133
|
* @memberof ProductCategoryResource
|
|
120
134
|
*/
|
|
121
135
|
site: SiteLiteResource | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {Array<SEOResource>}
|
|
139
|
+
* @memberof ProductCategoryResource
|
|
140
|
+
*/
|
|
141
|
+
seo: Array<SEOResource> | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {Array<DescriptionResource>}
|
|
145
|
+
* @memberof ProductCategoryResource
|
|
146
|
+
*/
|
|
147
|
+
descriptions: Array<DescriptionResource> | null;
|
|
122
148
|
}
|
|
123
149
|
|
|
124
150
|
/**
|
|
@@ -135,6 +161,8 @@ export function instanceOfProductCategoryResource(value: object): value is Produ
|
|
|
135
161
|
if (!('automationRules' in value) || value['automationRules'] === undefined) return false;
|
|
136
162
|
if (!('parent' in value) || value['parent'] === undefined) return false;
|
|
137
163
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
164
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
165
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
138
166
|
return true;
|
|
139
167
|
}
|
|
140
168
|
|
|
@@ -161,6 +189,8 @@ export function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
161
189
|
'automationRules': json['automationRules'],
|
|
162
190
|
'parent': ProductCategoryLiteResourceFromJSON(json['parent']),
|
|
163
191
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
192
|
+
'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
|
|
193
|
+
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
164
194
|
};
|
|
165
195
|
}
|
|
166
196
|
|
|
@@ -188,6 +218,8 @@ export function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResour
|
|
|
188
218
|
'automationRules': value['automationRules'],
|
|
189
219
|
'parent': ProductCategoryLiteResourceToJSON(value['parent']),
|
|
190
220
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
221
|
+
'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
|
|
222
|
+
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
191
223
|
};
|
|
192
224
|
}
|
|
193
225
|
|
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductCategoryRequestSeoInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestSeoInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestSeoInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestSeoInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestSeoInner';
|
|
23
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
24
|
+
import {
|
|
25
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
16
30
|
import type { StoreProductCategoryRequestAutomationRulesInner } from './StoreProductCategoryRequestAutomationRulesInner';
|
|
17
31
|
import {
|
|
18
32
|
StoreProductCategoryRequestAutomationRulesInnerFromJSON,
|
|
@@ -105,6 +119,18 @@ export interface StoreProductCategoryRequest {
|
|
|
105
119
|
* @memberof StoreProductCategoryRequest
|
|
106
120
|
*/
|
|
107
121
|
fileId: number;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
125
|
+
* @memberof StoreProductCategoryRequest
|
|
126
|
+
*/
|
|
127
|
+
seo?: Array<StoreProductCategoryRequestSeoInner>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
131
|
+
* @memberof StoreProductCategoryRequest
|
|
132
|
+
*/
|
|
133
|
+
descriptions?: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
108
134
|
}
|
|
109
135
|
|
|
110
136
|
/**
|
|
@@ -143,6 +169,8 @@ export function StoreProductCategoryRequestFromJSONTyped(json: any, ignoreDiscri
|
|
|
143
169
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
144
170
|
'mimeType': json['mime_type'],
|
|
145
171
|
'fileId': json['file_id'],
|
|
172
|
+
'seo': json['seo'] == null ? undefined : ((json['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
173
|
+
'descriptions': json['descriptions'] == null ? undefined : ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
146
174
|
};
|
|
147
175
|
}
|
|
148
176
|
|
|
@@ -170,6 +198,8 @@ export function StoreProductCategoryRequestToJSONTyped(value?: StoreProductCateg
|
|
|
170
198
|
'alt_text': value['altText'],
|
|
171
199
|
'mime_type': value['mimeType'],
|
|
172
200
|
'file_id': value['fileId'],
|
|
201
|
+
'seo': value['seo'] == null ? undefined : ((value['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerToJSON)),
|
|
202
|
+
'descriptions': value['descriptions'] == null ? undefined : ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
173
203
|
};
|
|
174
204
|
}
|
|
175
205
|
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StoreProductCategoryRequestDescriptionsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreProductCategoryRequestDescriptionsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
26
|
+
*/
|
|
27
|
+
headerDescription?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
32
|
+
*/
|
|
33
|
+
footerDescription?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof StoreProductCategoryRequestDescriptionsInner
|
|
38
|
+
*/
|
|
39
|
+
siteId: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the StoreProductCategoryRequestDescriptionsInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfStoreProductCategoryRequestDescriptionsInner(value: object): value is StoreProductCategoryRequestDescriptionsInner {
|
|
46
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function StoreProductCategoryRequestDescriptionsInnerFromJSON(json: any): StoreProductCategoryRequestDescriptionsInner {
|
|
51
|
+
return StoreProductCategoryRequestDescriptionsInnerFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function StoreProductCategoryRequestDescriptionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestDescriptionsInner {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'headerDescription': json['header_description'] == null ? undefined : json['header_description'],
|
|
61
|
+
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
62
|
+
'siteId': json['site_id'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function StoreProductCategoryRequestDescriptionsInnerToJSON(json: any): StoreProductCategoryRequestDescriptionsInner {
|
|
67
|
+
return StoreProductCategoryRequestDescriptionsInnerToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function StoreProductCategoryRequestDescriptionsInnerToJSONTyped(value?: StoreProductCategoryRequestDescriptionsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'header_description': value['headerDescription'],
|
|
78
|
+
'footer_description': value['footerDescription'],
|
|
79
|
+
'site_id': value['siteId'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
package/src/models/{StoreSupplierRequestSeoInner.ts → StoreProductCategoryRequestSeoInner.ts}
RENAMED
|
@@ -16,42 +16,42 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface StoreProductCategoryRequestSeoInner
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface StoreProductCategoryRequestSeoInner {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
26
26
|
*/
|
|
27
27
|
seoTitle?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
32
32
|
*/
|
|
33
33
|
seoDescription?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof StoreProductCategoryRequestSeoInner
|
|
38
38
|
*/
|
|
39
39
|
siteId: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Check if a given object implements the
|
|
43
|
+
* Check if a given object implements the StoreProductCategoryRequestSeoInner interface.
|
|
44
44
|
*/
|
|
45
|
-
export function
|
|
45
|
+
export function instanceOfStoreProductCategoryRequestSeoInner(value: object): value is StoreProductCategoryRequestSeoInner {
|
|
46
46
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export function
|
|
51
|
-
return
|
|
50
|
+
export function StoreProductCategoryRequestSeoInnerFromJSON(json: any): StoreProductCategoryRequestSeoInner {
|
|
51
|
+
return StoreProductCategoryRequestSeoInnerFromJSONTyped(json, false);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export function
|
|
54
|
+
export function StoreProductCategoryRequestSeoInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestSeoInner {
|
|
55
55
|
if (json == null) {
|
|
56
56
|
return json;
|
|
57
57
|
}
|
|
@@ -63,11 +63,11 @@ export function StoreSupplierRequestSeoInnerFromJSONTyped(json: any, ignoreDiscr
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export function
|
|
67
|
-
return
|
|
66
|
+
export function StoreProductCategoryRequestSeoInnerToJSON(json: any): StoreProductCategoryRequestSeoInner {
|
|
67
|
+
return StoreProductCategoryRequestSeoInnerToJSONTyped(json, false);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
export function
|
|
70
|
+
export function StoreProductCategoryRequestSeoInnerToJSONTyped(value?: StoreProductCategoryRequestSeoInner | null, ignoreDiscriminator: boolean = false): any {
|
|
71
71
|
if (value == null) {
|
|
72
72
|
return value;
|
|
73
73
|
}
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
23
|
-
import type {
|
|
18
|
+
StoreProductCategoryRequestSeoInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestSeoInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestSeoInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestSeoInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestSeoInner';
|
|
23
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -54,10 +54,10 @@ export interface StoreSupplierRequest {
|
|
|
54
54
|
supplierEta: number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {Array<
|
|
57
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
58
58
|
* @memberof StoreSupplierRequest
|
|
59
59
|
*/
|
|
60
|
-
seo: Array<
|
|
60
|
+
seo: Array<StoreProductCategoryRequestSeoInner>;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -78,10 +78,10 @@ export interface StoreSupplierRequest {
|
|
|
78
78
|
fileId: number;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
|
-
* @type {Array<
|
|
81
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
82
82
|
* @memberof StoreSupplierRequest
|
|
83
83
|
*/
|
|
84
|
-
descriptions: Array<
|
|
84
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -111,11 +111,11 @@ export function StoreSupplierRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
111
111
|
'name': json['name'],
|
|
112
112
|
'slug': json['slug'],
|
|
113
113
|
'supplierEta': json['supplier_eta'],
|
|
114
|
-
'seo': ((json['seo'] as Array<any>).map(
|
|
114
|
+
'seo': ((json['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
115
115
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
116
116
|
'mimeType': json['mime_type'],
|
|
117
117
|
'fileId': json['file_id'],
|
|
118
|
-
'descriptions': ((json['descriptions'] as Array<any>).map(
|
|
118
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -133,11 +133,11 @@ export function StoreSupplierRequestToJSONTyped(value?: StoreSupplierRequest | n
|
|
|
133
133
|
'name': value['name'],
|
|
134
134
|
'slug': value['slug'],
|
|
135
135
|
'supplier_eta': value['supplierEta'],
|
|
136
|
-
'seo': ((value['seo'] as Array<any>).map(
|
|
136
|
+
'seo': ((value['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerToJSON)),
|
|
137
137
|
'alt_text': value['altText'],
|
|
138
138
|
'mime_type': value['mimeType'],
|
|
139
139
|
'file_id': value['fileId'],
|
|
140
|
-
'descriptions': ((value['descriptions'] as Array<any>).map(
|
|
140
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductCategoryRequestSeoInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestSeoInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestSeoInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestSeoInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestSeoInner';
|
|
23
|
+
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
24
|
+
import {
|
|
25
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
26
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
27
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
28
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
16
30
|
import type { StoreProductCategoryRequestAutomationRulesInner } from './StoreProductCategoryRequestAutomationRulesInner';
|
|
17
31
|
import {
|
|
18
32
|
StoreProductCategoryRequestAutomationRulesInnerFromJSON,
|
|
@@ -32,7 +46,7 @@ export interface UpdateProductCategoryRequest {
|
|
|
32
46
|
* @type {string}
|
|
33
47
|
* @memberof UpdateProductCategoryRequest
|
|
34
48
|
*/
|
|
35
|
-
siteId
|
|
49
|
+
siteId: string;
|
|
36
50
|
/**
|
|
37
51
|
*
|
|
38
52
|
* @type {string}
|
|
@@ -105,12 +119,25 @@ export interface UpdateProductCategoryRequest {
|
|
|
105
119
|
* @memberof UpdateProductCategoryRequest
|
|
106
120
|
*/
|
|
107
121
|
fileId?: number;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
125
|
+
* @memberof UpdateProductCategoryRequest
|
|
126
|
+
*/
|
|
127
|
+
seo?: Array<StoreProductCategoryRequestSeoInner>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
131
|
+
* @memberof UpdateProductCategoryRequest
|
|
132
|
+
*/
|
|
133
|
+
descriptions?: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
108
134
|
}
|
|
109
135
|
|
|
110
136
|
/**
|
|
111
137
|
* Check if a given object implements the UpdateProductCategoryRequest interface.
|
|
112
138
|
*/
|
|
113
139
|
export function instanceOfUpdateProductCategoryRequest(value: object): value is UpdateProductCategoryRequest {
|
|
140
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
114
141
|
return true;
|
|
115
142
|
}
|
|
116
143
|
|
|
@@ -124,7 +151,7 @@ export function UpdateProductCategoryRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
124
151
|
}
|
|
125
152
|
return {
|
|
126
153
|
|
|
127
|
-
'siteId': json['site_id']
|
|
154
|
+
'siteId': json['site_id'],
|
|
128
155
|
'name': json['name'] == null ? undefined : json['name'],
|
|
129
156
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
130
157
|
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
@@ -137,6 +164,8 @@ export function UpdateProductCategoryRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
137
164
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
138
165
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
139
166
|
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
167
|
+
'seo': json['seo'] == null ? undefined : ((json['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
168
|
+
'descriptions': json['descriptions'] == null ? undefined : ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
140
169
|
};
|
|
141
170
|
}
|
|
142
171
|
|
|
@@ -164,6 +193,8 @@ export function UpdateProductCategoryRequestToJSONTyped(value?: UpdateProductCat
|
|
|
164
193
|
'alt_text': value['altText'],
|
|
165
194
|
'mime_type': value['mimeType'],
|
|
166
195
|
'file_id': value['fileId'],
|
|
196
|
+
'seo': value['seo'] == null ? undefined : ((value['seo'] as Array<any>).map(StoreProductCategoryRequestSeoInnerToJSON)),
|
|
197
|
+
'descriptions': value['descriptions'] == null ? undefined : ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
167
198
|
};
|
|
168
199
|
}
|
|
169
200
|
|