@digital8/lighting-illusions-ts-sdk 0.0.493 → 0.0.495
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 +6 -0
- package/README.md +5 -2
- package/dist/models/DescriptionResource.d.ts +50 -0
- package/dist/models/DescriptionResource.js +63 -0
- package/dist/models/DescriptionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DescriptionResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllProductChildRequest.d.ts +0 -12
- package/dist/models/GetAllProductChildRequest.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +2 -12
- package/dist/models/IndexProductChildRequest.js +3 -5
- package/dist/models/SEOResource.d.ts +2 -20
- package/dist/models/SEOResource.js +8 -20
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +3 -15
- package/dist/models/StoreProductChildRequestSitesInner.js +7 -9
- package/dist/models/StoreSupplierRequest.d.ts +7 -0
- package/dist/models/StoreSupplierRequest.js +5 -0
- package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +44 -0
- package/dist/models/StoreSupplierRequestDescriptionsInner.js +55 -0
- package/dist/models/StoreSupplierRequestSeoInner.d.ts +2 -20
- package/dist/models/StoreSupplierRequestSeoInner.js +4 -10
- package/dist/models/StoreTagRequest.d.ts +3 -9
- package/dist/models/StoreTagRequest.js +6 -8
- package/dist/models/SupplierFrontendResource.d.ts +7 -0
- package/dist/models/SupplierFrontendResource.js +5 -0
- package/dist/models/SupplierResource.d.ts +7 -0
- package/dist/models/SupplierResource.js +5 -0
- package/dist/models/TagResource.d.ts +7 -0
- package/dist/models/TagResource.js +5 -0
- package/dist/models/UpdateSupplierRequest.d.ts +7 -0
- package/dist/models/UpdateSupplierRequest.js +5 -0
- package/dist/models/UpdateTagRequest.d.ts +3 -9
- package/dist/models/UpdateTagRequest.js +6 -8
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/DescriptionResource.md +40 -0
- package/docs/DescriptionResourceArrayResponse.md +34 -0
- package/docs/GetAllProductChildRequest.md +0 -4
- package/docs/IndexProductChildRequest.md +0 -4
- package/docs/SEOResource.md +4 -10
- package/docs/StoreProductChildRequestSitesInner.md +4 -8
- package/docs/StoreSupplierRequest.md +2 -0
- package/docs/StoreSupplierRequestDescriptionsInner.md +38 -0
- package/docs/StoreSupplierRequestSeoInner.md +4 -10
- package/docs/StoreTagRequest.md +6 -8
- package/docs/SupplierFrontendResource.md +2 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/TagResource.md +2 -0
- package/docs/UpdateSupplierRequest.md +2 -0
- package/docs/UpdateTagRequest.md +6 -8
- package/package.json +1 -1
- package/src/models/DescriptionResource.ts +93 -0
- package/src/models/DescriptionResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllProductChildRequest.ts +0 -16
- package/src/models/IndexProductChildRequest.ts +3 -17
- package/src/models/SEOResource.ts +10 -37
- package/src/models/StoreProductChildRequestSitesInner.ts +9 -24
- package/src/models/StoreSupplierRequest.ts +16 -0
- package/src/models/StoreSupplierRequestDescriptionsInner.ts +82 -0
- package/src/models/StoreSupplierRequestSeoInner.ts +6 -30
- package/src/models/StoreTagRequest.ts +9 -17
- package/src/models/SupplierFrontendResource.ts +16 -0
- package/src/models/SupplierResource.ts +16 -0
- package/src/models/TagResource.ts +16 -0
- package/src/models/UpdateSupplierRequest.ts +16 -0
- package/src/models/UpdateTagRequest.ts +9 -17
- package/src/models/index.ts +3 -0
|
@@ -14,10 +14,8 @@ Name | Type
|
|
|
14
14
|
`salePrice` | number
|
|
15
15
|
`slug` | string
|
|
16
16
|
`documents` | Array<number>
|
|
17
|
-
`
|
|
18
|
-
`
|
|
19
|
-
`footerDescription` | string
|
|
20
|
-
`pageDescription` | string
|
|
17
|
+
`seoTitle` | string
|
|
18
|
+
`seoDescription` | string
|
|
21
19
|
|
|
22
20
|
## Example
|
|
23
21
|
|
|
@@ -34,10 +32,8 @@ const example = {
|
|
|
34
32
|
"salePrice": null,
|
|
35
33
|
"slug": null,
|
|
36
34
|
"documents": null,
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"footerDescription": null,
|
|
40
|
-
"pageDescription": null,
|
|
35
|
+
"seoTitle": null,
|
|
36
|
+
"seoDescription": null,
|
|
41
37
|
} satisfies StoreProductChildRequestSitesInner
|
|
42
38
|
|
|
43
39
|
console.log(example)
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`assetFileId` | number
|
|
16
|
+
`descriptions` | [Array<StoreSupplierRequestDescriptionsInner>](StoreSupplierRequestDescriptionsInner.md)
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"altText": null,
|
|
29
30
|
"mimeType": null,
|
|
30
31
|
"assetFileId": null,
|
|
32
|
+
"descriptions": null,
|
|
31
33
|
} satisfies StoreSupplierRequest
|
|
32
34
|
|
|
33
35
|
console.log(example)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreSupplierRequestDescriptionsInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`headerDescription` | string
|
|
10
|
+
`footerDescription` | string
|
|
11
|
+
`siteId` | number
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { StoreSupplierRequestDescriptionsInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"headerDescription": null,
|
|
21
|
+
"footerDescription": null,
|
|
22
|
+
"siteId": null,
|
|
23
|
+
} satisfies StoreSupplierRequestDescriptionsInner
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreSupplierRequestDescriptionsInner
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
11
|
-
`keywords` | string
|
|
12
|
-
`footerDescription` | string
|
|
13
|
-
`pageDescription` | string
|
|
9
|
+
`seoTitle` | string
|
|
10
|
+
`seoDescription` | string
|
|
14
11
|
`siteId` | number
|
|
15
12
|
|
|
16
13
|
## Example
|
|
@@ -20,11 +17,8 @@ import type { StoreSupplierRequestSeoInner } from '@digital8/lighting-illusions-
|
|
|
20
17
|
|
|
21
18
|
// TODO: Update the object below with actual values
|
|
22
19
|
const example = {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"keywords": null,
|
|
26
|
-
"footerDescription": null,
|
|
27
|
-
"pageDescription": null,
|
|
20
|
+
"seoTitle": null,
|
|
21
|
+
"seoDescription": null,
|
|
28
22
|
"siteId": null,
|
|
29
23
|
} satisfies StoreSupplierRequestSeoInner
|
|
30
24
|
|
package/docs/StoreTagRequest.md
CHANGED
|
@@ -10,11 +10,10 @@ Name | Type
|
|
|
10
10
|
`slug` | string
|
|
11
11
|
`siteId` | number
|
|
12
12
|
`type` | string
|
|
13
|
-
`
|
|
14
|
-
`
|
|
15
|
-
`
|
|
13
|
+
`seoTitle` | string
|
|
14
|
+
`seoDescription` | string
|
|
15
|
+
`headerDescription` | string
|
|
16
16
|
`footerDescription` | string
|
|
17
|
-
`pageDescription` | string
|
|
18
17
|
|
|
19
18
|
## Example
|
|
20
19
|
|
|
@@ -27,11 +26,10 @@ const example = {
|
|
|
27
26
|
"slug": null,
|
|
28
27
|
"siteId": null,
|
|
29
28
|
"type": null,
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
29
|
+
"seoTitle": null,
|
|
30
|
+
"seoDescription": null,
|
|
31
|
+
"headerDescription": null,
|
|
33
32
|
"footerDescription": null,
|
|
34
|
-
"pageDescription": null,
|
|
35
33
|
} satisfies StoreTagRequest
|
|
36
34
|
|
|
37
35
|
console.log(example)
|
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`thumbnail` | [AssetResource](AssetResource.md)
|
|
13
13
|
`supplierEta` | number
|
|
14
14
|
`seo` | [SEOResource](SEOResource.md)
|
|
15
|
+
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"thumbnail": null,
|
|
27
28
|
"supplierEta": null,
|
|
28
29
|
"seo": null,
|
|
30
|
+
"descriptions": null,
|
|
29
31
|
} satisfies SupplierFrontendResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
package/docs/SupplierResource.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`thumbnail` | [AssetResource](AssetResource.md)
|
|
13
13
|
`supplierEta` | number
|
|
14
14
|
`seo` | [Array<SEOResource>](SEOResource.md)
|
|
15
|
+
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"thumbnail": null,
|
|
27
28
|
"supplierEta": null,
|
|
28
29
|
"seo": null,
|
|
30
|
+
"descriptions": null,
|
|
29
31
|
} satisfies SupplierResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
package/docs/TagResource.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`type` | string
|
|
13
13
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
14
14
|
`seo` | [SEOResource](SEOResource.md)
|
|
15
|
+
`description` | [DescriptionResource](DescriptionResource.md)
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"type": null,
|
|
27
28
|
"site": null,
|
|
28
29
|
"seo": null,
|
|
30
|
+
"description": null,
|
|
29
31
|
} satisfies TagResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`assetFileId` | number
|
|
16
|
+
`descriptions` | [Array<StoreSupplierRequestDescriptionsInner>](StoreSupplierRequestDescriptionsInner.md)
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"altText": null,
|
|
29
30
|
"mimeType": null,
|
|
30
31
|
"assetFileId": null,
|
|
32
|
+
"descriptions": null,
|
|
31
33
|
} satisfies UpdateSupplierRequest
|
|
32
34
|
|
|
33
35
|
console.log(example)
|
package/docs/UpdateTagRequest.md
CHANGED
|
@@ -9,11 +9,10 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`type` | string
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
12
|
+
`seoTitle` | string
|
|
13
|
+
`seoDescription` | string
|
|
14
|
+
`headerDescription` | string
|
|
15
15
|
`footerDescription` | string
|
|
16
|
-
`pageDescription` | string
|
|
17
16
|
|
|
18
17
|
## Example
|
|
19
18
|
|
|
@@ -25,11 +24,10 @@ const example = {
|
|
|
25
24
|
"name": null,
|
|
26
25
|
"slug": null,
|
|
27
26
|
"type": null,
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
27
|
+
"seoTitle": null,
|
|
28
|
+
"seoDescription": null,
|
|
29
|
+
"headerDescription": null,
|
|
31
30
|
"footerDescription": null,
|
|
32
|
-
"pageDescription": null,
|
|
33
31
|
} satisfies UpdateTagRequest
|
|
34
32
|
|
|
35
33
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -0,0 +1,93 @@
|
|
|
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 DescriptionResource
|
|
20
|
+
*/
|
|
21
|
+
export interface DescriptionResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DescriptionResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DescriptionResource
|
|
32
|
+
*/
|
|
33
|
+
headerDescription: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DescriptionResource
|
|
38
|
+
*/
|
|
39
|
+
footerDescription: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof DescriptionResource
|
|
44
|
+
*/
|
|
45
|
+
siteId: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DescriptionResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDescriptionResource(value: object): value is DescriptionResource {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('headerDescription' in value) || value['headerDescription'] === undefined) return false;
|
|
54
|
+
if (!('footerDescription' in value) || value['footerDescription'] === undefined) return false;
|
|
55
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DescriptionResourceFromJSON(json: any): DescriptionResource {
|
|
60
|
+
return DescriptionResourceFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DescriptionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResource {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'headerDescription': json['headerDescription'],
|
|
71
|
+
'footerDescription': json['footerDescription'],
|
|
72
|
+
'siteId': json['siteId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function DescriptionResourceToJSON(json: any): DescriptionResource {
|
|
77
|
+
return DescriptionResourceToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function DescriptionResourceToJSONTyped(value?: DescriptionResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'headerDescription': value['headerDescription'],
|
|
89
|
+
'footerDescription': value['footerDescription'],
|
|
90
|
+
'siteId': value['siteId'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
17
|
+
import {
|
|
18
|
+
DescriptionResourceFromJSON,
|
|
19
|
+
DescriptionResourceFromJSONTyped,
|
|
20
|
+
DescriptionResourceToJSON,
|
|
21
|
+
DescriptionResourceToJSONTyped,
|
|
22
|
+
} from './DescriptionResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DescriptionResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface DescriptionResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<DescriptionResource>}
|
|
33
|
+
* @memberof DescriptionResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<DescriptionResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the DescriptionResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfDescriptionResourceArrayResponse(value: object): value is DescriptionResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DescriptionResourceArrayResponseFromJSON(json: any): DescriptionResourceArrayResponse {
|
|
46
|
+
return DescriptionResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DescriptionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DescriptionResourceArrayResponseToJSON(json: any): DescriptionResourceArrayResponse {
|
|
60
|
+
return DescriptionResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DescriptionResourceArrayResponseToJSONTyped(value?: DescriptionResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -55,18 +55,6 @@ export interface GetAllProductChildRequest {
|
|
|
55
55
|
* @memberof GetAllProductChildRequest
|
|
56
56
|
*/
|
|
57
57
|
includesRelations?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof GetAllProductChildRequest
|
|
62
|
-
*/
|
|
63
|
-
parentProductTypeId?: Array<string>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Array<string>}
|
|
67
|
-
* @memberof GetAllProductChildRequest
|
|
68
|
-
*/
|
|
69
|
-
parentSupplierId?: Array<string>;
|
|
70
58
|
/**
|
|
71
59
|
*
|
|
72
60
|
* @type {Array<string>}
|
|
@@ -152,8 +140,6 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
152
140
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
153
141
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
154
142
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
155
|
-
'parentProductTypeId': json['parent-product_type_id'] == null ? undefined : json['parent-product_type_id'],
|
|
156
|
-
'parentSupplierId': json['parent-supplier_id'] == null ? undefined : json['parent-supplier_id'],
|
|
157
143
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
158
144
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
159
145
|
'hasNetsuiteId': json['has_netsuite_id'] == null ? undefined : json['has_netsuite_id'],
|
|
@@ -177,8 +163,6 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
177
163
|
'related_id': value['relatedId'],
|
|
178
164
|
'related_type': value['relatedType'],
|
|
179
165
|
'includes_relations': value['includesRelations'],
|
|
180
|
-
'parent-product_type_id': value['parentProductTypeId'],
|
|
181
|
-
'parent-supplier_id': value['parentSupplierId'],
|
|
182
166
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
183
167
|
'is_disabled': value['isDisabled'],
|
|
184
168
|
'has_netsuite_id': value['hasNetsuiteId'],
|
|
@@ -49,18 +49,6 @@ export interface IndexProductChildRequest {
|
|
|
49
49
|
* @memberof IndexProductChildRequest
|
|
50
50
|
*/
|
|
51
51
|
page?: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<string>}
|
|
55
|
-
* @memberof IndexProductChildRequest
|
|
56
|
-
*/
|
|
57
|
-
parentProductTypeId?: Array<string>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof IndexProductChildRequest
|
|
62
|
-
*/
|
|
63
|
-
parentSupplierId?: Array<string>;
|
|
64
52
|
/**
|
|
65
53
|
*
|
|
66
54
|
* @type {Array<string>}
|
|
@@ -138,7 +126,9 @@ export const IndexProductChildRequestRelatedTypeEnum = {
|
|
|
138
126
|
Tag: 'tag',
|
|
139
127
|
Document: 'document',
|
|
140
128
|
Attribute: 'attribute',
|
|
141
|
-
AttributeValue: 'attributeValue'
|
|
129
|
+
AttributeValue: 'attributeValue',
|
|
130
|
+
ProductType: 'productType',
|
|
131
|
+
Site: 'site'
|
|
142
132
|
} as const;
|
|
143
133
|
export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
|
|
144
134
|
|
|
@@ -165,8 +155,6 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
165
155
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
166
156
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
167
157
|
'page': json['page'] == null ? undefined : json['page'],
|
|
168
|
-
'parentProductTypeId': json['parent-product_type_id'] == null ? undefined : json['parent-product_type_id'],
|
|
169
|
-
'parentSupplierId': json['parent-supplier_id'] == null ? undefined : json['parent-supplier_id'],
|
|
170
158
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
171
159
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
172
160
|
'hasNetsuiteId': json['has_netsuite_id'] == null ? undefined : json['has_netsuite_id'],
|
|
@@ -192,8 +180,6 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
|
|
|
192
180
|
'sortDirection': value['sortDirection'],
|
|
193
181
|
'per_page': value['perPage'],
|
|
194
182
|
'page': value['page'],
|
|
195
|
-
'parent-product_type_id': value['parentProductTypeId'],
|
|
196
|
-
'parent-supplier_id': value['parentSupplierId'],
|
|
197
183
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
198
184
|
'is_disabled': value['isDisabled'],
|
|
199
185
|
'has_netsuite_id': value['hasNetsuiteId'],
|
|
@@ -30,37 +30,19 @@ export interface SEOResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof SEOResource
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
seoTitle: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof SEOResource
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof SEOResource
|
|
44
|
-
*/
|
|
45
|
-
keywords: string;
|
|
39
|
+
seoDescription: string;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {number}
|
|
49
43
|
* @memberof SEOResource
|
|
50
44
|
*/
|
|
51
45
|
siteId: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof SEOResource
|
|
56
|
-
*/
|
|
57
|
-
footerDescription: string;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof SEOResource
|
|
62
|
-
*/
|
|
63
|
-
pageDescription: string;
|
|
64
46
|
}
|
|
65
47
|
|
|
66
48
|
/**
|
|
@@ -68,12 +50,9 @@ export interface SEOResource {
|
|
|
68
50
|
*/
|
|
69
51
|
export function instanceOfSEOResource(value: object): value is SEOResource {
|
|
70
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
-
if (!('
|
|
72
|
-
if (!('
|
|
73
|
-
if (!('keywords' in value) || value['keywords'] === undefined) return false;
|
|
53
|
+
if (!('seoTitle' in value) || value['seoTitle'] === undefined) return false;
|
|
54
|
+
if (!('seoDescription' in value) || value['seoDescription'] === undefined) return false;
|
|
74
55
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
75
|
-
if (!('footerDescription' in value) || value['footerDescription'] === undefined) return false;
|
|
76
|
-
if (!('pageDescription' in value) || value['pageDescription'] === undefined) return false;
|
|
77
56
|
return true;
|
|
78
57
|
}
|
|
79
58
|
|
|
@@ -88,12 +67,9 @@ export function SEOResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
88
67
|
return {
|
|
89
68
|
|
|
90
69
|
'id': json['id'],
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'siteId': json['site_id'],
|
|
95
|
-
'footerDescription': json['footerDescription'],
|
|
96
|
-
'pageDescription': json['pageDescription'],
|
|
70
|
+
'seoTitle': json['seoTitle'],
|
|
71
|
+
'seoDescription': json['seoDescription'],
|
|
72
|
+
'siteId': json['siteId'],
|
|
97
73
|
};
|
|
98
74
|
}
|
|
99
75
|
|
|
@@ -109,12 +85,9 @@ export function SEOResourceToJSONTyped(value?: SEOResource | null, ignoreDiscrim
|
|
|
109
85
|
return {
|
|
110
86
|
|
|
111
87
|
'id': value['id'],
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'site_id': value['siteId'],
|
|
116
|
-
'footerDescription': value['footerDescription'],
|
|
117
|
-
'pageDescription': value['pageDescription'],
|
|
88
|
+
'seoTitle': value['seoTitle'],
|
|
89
|
+
'seoDescription': value['seoDescription'],
|
|
90
|
+
'siteId': value['siteId'],
|
|
118
91
|
};
|
|
119
92
|
}
|
|
120
93
|
|