@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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfStoreSupplierRequestDescriptionsInner = instanceOfStoreSupplierRequestDescriptionsInner;
|
|
17
|
+
exports.StoreSupplierRequestDescriptionsInnerFromJSON = StoreSupplierRequestDescriptionsInnerFromJSON;
|
|
18
|
+
exports.StoreSupplierRequestDescriptionsInnerFromJSONTyped = StoreSupplierRequestDescriptionsInnerFromJSONTyped;
|
|
19
|
+
exports.StoreSupplierRequestDescriptionsInnerToJSON = StoreSupplierRequestDescriptionsInnerToJSON;
|
|
20
|
+
exports.StoreSupplierRequestDescriptionsInnerToJSONTyped = StoreSupplierRequestDescriptionsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreSupplierRequestDescriptionsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreSupplierRequestDescriptionsInner(value) {
|
|
25
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StoreSupplierRequestDescriptionsInnerFromJSON(json) {
|
|
30
|
+
return StoreSupplierRequestDescriptionsInnerFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StoreSupplierRequestDescriptionsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'headerDescription': json['header_description'] == null ? undefined : json['header_description'],
|
|
38
|
+
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
39
|
+
'siteId': json['site_id'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function StoreSupplierRequestDescriptionsInnerToJSON(json) {
|
|
43
|
+
return StoreSupplierRequestDescriptionsInnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function StoreSupplierRequestDescriptionsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'header_description': value['headerDescription'],
|
|
52
|
+
'footer_description': value['footerDescription'],
|
|
53
|
+
'site_id': value['siteId'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -20,31 +20,13 @@ export interface StoreSupplierRequestSeoInner {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof StoreSupplierRequestSeoInner
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
seoTitle?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof StoreSupplierRequestSeoInner
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof StoreSupplierRequestSeoInner
|
|
34
|
-
*/
|
|
35
|
-
keywords?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof StoreSupplierRequestSeoInner
|
|
40
|
-
*/
|
|
41
|
-
footerDescription?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof StoreSupplierRequestSeoInner
|
|
46
|
-
*/
|
|
47
|
-
pageDescription?: string;
|
|
29
|
+
seoDescription?: string;
|
|
48
30
|
/**
|
|
49
31
|
*
|
|
50
32
|
* @type {number}
|
|
@@ -34,11 +34,8 @@ function StoreSupplierRequestSeoInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'keywords': json['keywords'] == null ? undefined : json['keywords'],
|
|
40
|
-
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
41
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
37
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
38
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
42
39
|
'siteId': json['site_id'],
|
|
43
40
|
};
|
|
44
41
|
}
|
|
@@ -51,11 +48,8 @@ function StoreSupplierRequestSeoInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
48
|
return value;
|
|
52
49
|
}
|
|
53
50
|
return {
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'keywords': value['keywords'],
|
|
57
|
-
'footer_description': value['footerDescription'],
|
|
58
|
-
'page_description': value['pageDescription'],
|
|
51
|
+
'seo_title': value['seoTitle'],
|
|
52
|
+
'seo_description': value['seoDescription'],
|
|
59
53
|
'site_id': value['siteId'],
|
|
60
54
|
};
|
|
61
55
|
}
|
|
@@ -44,31 +44,25 @@ export interface StoreTagRequest {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof StoreTagRequest
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
seoTitle?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof StoreTagRequest
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
seoDescription?: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof StoreTagRequest
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
headerDescription?: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof StoreTagRequest
|
|
64
64
|
*/
|
|
65
65
|
footerDescription?: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof StoreTagRequest
|
|
70
|
-
*/
|
|
71
|
-
pageDescription?: string;
|
|
72
66
|
}
|
|
73
67
|
/**
|
|
74
68
|
* @export
|
|
@@ -52,11 +52,10 @@ function StoreTagRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'slug': json['slug'],
|
|
53
53
|
'siteId': json['site_id'],
|
|
54
54
|
'type': json['type'],
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
55
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
56
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
57
|
+
'headerDescription': json['header_description'] == null ? undefined : json['header_description'],
|
|
58
58
|
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
59
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
60
59
|
};
|
|
61
60
|
}
|
|
62
61
|
function StoreTagRequestToJSON(json) {
|
|
@@ -72,10 +71,9 @@ function StoreTagRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
71
|
'slug': value['slug'],
|
|
73
72
|
'site_id': value['siteId'],
|
|
74
73
|
'type': value['type'],
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
74
|
+
'seo_title': value['seoTitle'],
|
|
75
|
+
'seo_description': value['seoDescription'],
|
|
76
|
+
'header_description': value['headerDescription'],
|
|
78
77
|
'footer_description': value['footerDescription'],
|
|
79
|
-
'page_description': value['pageDescription'],
|
|
80
78
|
};
|
|
81
79
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
12
13
|
import type { AssetResource } from './AssetResource';
|
|
13
14
|
import type { SEOResource } from './SEOResource';
|
|
14
15
|
/**
|
|
@@ -53,6 +54,12 @@ export interface SupplierFrontendResource {
|
|
|
53
54
|
* @memberof SupplierFrontendResource
|
|
54
55
|
*/
|
|
55
56
|
seo: SEOResource | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<DescriptionResource>}
|
|
60
|
+
* @memberof SupplierFrontendResource
|
|
61
|
+
*/
|
|
62
|
+
descriptions: Array<DescriptionResource> | null;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* Check if a given object implements the SupplierFrontendResource interface.
|
|
@@ -18,6 +18,7 @@ exports.SupplierFrontendResourceFromJSON = SupplierFrontendResourceFromJSON;
|
|
|
18
18
|
exports.SupplierFrontendResourceFromJSONTyped = SupplierFrontendResourceFromJSONTyped;
|
|
19
19
|
exports.SupplierFrontendResourceToJSON = SupplierFrontendResourceToJSON;
|
|
20
20
|
exports.SupplierFrontendResourceToJSONTyped = SupplierFrontendResourceToJSONTyped;
|
|
21
|
+
var DescriptionResource_1 = require("./DescriptionResource");
|
|
21
22
|
var AssetResource_1 = require("./AssetResource");
|
|
22
23
|
var SEOResource_1 = require("./SEOResource");
|
|
23
24
|
/**
|
|
@@ -36,6 +37,8 @@ function instanceOfSupplierFrontendResource(value) {
|
|
|
36
37
|
return false;
|
|
37
38
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
38
39
|
return false;
|
|
40
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
41
|
+
return false;
|
|
39
42
|
return true;
|
|
40
43
|
}
|
|
41
44
|
function SupplierFrontendResourceFromJSON(json) {
|
|
@@ -52,6 +55,7 @@ function SupplierFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
53
56
|
'supplierEta': json['supplierEta'],
|
|
54
57
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
58
|
+
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
function SupplierFrontendResourceToJSON(json) {
|
|
@@ -69,5 +73,6 @@ function SupplierFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
73
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
70
74
|
'supplierEta': value['supplierEta'],
|
|
71
75
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
76
|
+
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
72
77
|
};
|
|
73
78
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
12
13
|
import type { AssetResource } from './AssetResource';
|
|
13
14
|
import type { SEOResource } from './SEOResource';
|
|
14
15
|
/**
|
|
@@ -53,6 +54,12 @@ export interface SupplierResource {
|
|
|
53
54
|
* @memberof SupplierResource
|
|
54
55
|
*/
|
|
55
56
|
seo: Array<SEOResource> | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<DescriptionResource>}
|
|
60
|
+
* @memberof SupplierResource
|
|
61
|
+
*/
|
|
62
|
+
descriptions: Array<DescriptionResource> | null;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* Check if a given object implements the SupplierResource interface.
|
|
@@ -18,6 +18,7 @@ exports.SupplierResourceFromJSON = SupplierResourceFromJSON;
|
|
|
18
18
|
exports.SupplierResourceFromJSONTyped = SupplierResourceFromJSONTyped;
|
|
19
19
|
exports.SupplierResourceToJSON = SupplierResourceToJSON;
|
|
20
20
|
exports.SupplierResourceToJSONTyped = SupplierResourceToJSONTyped;
|
|
21
|
+
var DescriptionResource_1 = require("./DescriptionResource");
|
|
21
22
|
var AssetResource_1 = require("./AssetResource");
|
|
22
23
|
var SEOResource_1 = require("./SEOResource");
|
|
23
24
|
/**
|
|
@@ -36,6 +37,8 @@ function instanceOfSupplierResource(value) {
|
|
|
36
37
|
return false;
|
|
37
38
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
38
39
|
return false;
|
|
40
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
41
|
+
return false;
|
|
39
42
|
return true;
|
|
40
43
|
}
|
|
41
44
|
function SupplierResourceFromJSON(json) {
|
|
@@ -52,6 +55,7 @@ function SupplierResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
53
56
|
'supplierEta': json['supplierEta'],
|
|
54
57
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
58
|
+
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
function SupplierResourceToJSON(json) {
|
|
@@ -69,5 +73,6 @@ function SupplierResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
73
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
70
74
|
'supplierEta': value['supplierEta'],
|
|
71
75
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
76
|
+
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
72
77
|
};
|
|
73
78
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
13
14
|
import type { SEOResource } from './SEOResource';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -53,6 +54,12 @@ export interface TagResource {
|
|
|
53
54
|
* @memberof TagResource
|
|
54
55
|
*/
|
|
55
56
|
seo: SEOResource | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {DescriptionResource}
|
|
60
|
+
* @memberof TagResource
|
|
61
|
+
*/
|
|
62
|
+
description: DescriptionResource | null;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* Check if a given object implements the TagResource interface.
|
|
@@ -19,6 +19,7 @@ exports.TagResourceFromJSONTyped = TagResourceFromJSONTyped;
|
|
|
19
19
|
exports.TagResourceToJSON = TagResourceToJSON;
|
|
20
20
|
exports.TagResourceToJSONTyped = TagResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
23
|
var SEOResource_1 = require("./SEOResource");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the TagResource interface.
|
|
@@ -36,6 +37,8 @@ function instanceOfTagResource(value) {
|
|
|
36
37
|
return false;
|
|
37
38
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
38
39
|
return false;
|
|
40
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
41
|
+
return false;
|
|
39
42
|
return true;
|
|
40
43
|
}
|
|
41
44
|
function TagResourceFromJSON(json) {
|
|
@@ -52,6 +55,7 @@ function TagResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'type': json['type'],
|
|
53
56
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
54
57
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
58
|
+
'description': (0, DescriptionResource_1.DescriptionResourceFromJSON)(json['description']),
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
function TagResourceToJSON(json) {
|
|
@@ -69,5 +73,6 @@ function TagResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
73
|
'type': value['type'],
|
|
70
74
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
71
75
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
76
|
+
'description': (0, DescriptionResource_1.DescriptionResourceToJSON)(value['description']),
|
|
72
77
|
};
|
|
73
78
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StoreSupplierRequestSeoInner } from './StoreSupplierRequestSeoInner';
|
|
13
|
+
import type { StoreSupplierRequestDescriptionsInner } from './StoreSupplierRequestDescriptionsInner';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -58,6 +59,12 @@ export interface UpdateSupplierRequest {
|
|
|
58
59
|
* @memberof UpdateSupplierRequest
|
|
59
60
|
*/
|
|
60
61
|
assetFileId: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<StoreSupplierRequestDescriptionsInner>}
|
|
65
|
+
* @memberof UpdateSupplierRequest
|
|
66
|
+
*/
|
|
67
|
+
descriptions: Array<StoreSupplierRequestDescriptionsInner>;
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* Check if a given object implements the UpdateSupplierRequest interface.
|
|
@@ -19,6 +19,7 @@ exports.UpdateSupplierRequestFromJSONTyped = UpdateSupplierRequestFromJSONTyped;
|
|
|
19
19
|
exports.UpdateSupplierRequestToJSON = UpdateSupplierRequestToJSON;
|
|
20
20
|
exports.UpdateSupplierRequestToJSONTyped = UpdateSupplierRequestToJSONTyped;
|
|
21
21
|
var StoreSupplierRequestSeoInner_1 = require("./StoreSupplierRequestSeoInner");
|
|
22
|
+
var StoreSupplierRequestDescriptionsInner_1 = require("./StoreSupplierRequestDescriptionsInner");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the UpdateSupplierRequest interface.
|
|
24
25
|
*/
|
|
@@ -35,6 +36,8 @@ function instanceOfUpdateSupplierRequest(value) {
|
|
|
35
36
|
return false;
|
|
36
37
|
if (!('assetFileId' in value) || value['assetFileId'] === undefined)
|
|
37
38
|
return false;
|
|
39
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
40
|
+
return false;
|
|
38
41
|
return true;
|
|
39
42
|
}
|
|
40
43
|
function UpdateSupplierRequestFromJSON(json) {
|
|
@@ -52,6 +55,7 @@ function UpdateSupplierRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
53
56
|
'mimeType': json['mime_type'],
|
|
54
57
|
'assetFileId': json['asset_file_id'],
|
|
58
|
+
'descriptions': (json['descriptions'].map(StoreSupplierRequestDescriptionsInner_1.StoreSupplierRequestDescriptionsInnerFromJSON)),
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
function UpdateSupplierRequestToJSON(json) {
|
|
@@ -70,5 +74,6 @@ function UpdateSupplierRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
74
|
'alt_text': value['altText'],
|
|
71
75
|
'mime_type': value['mimeType'],
|
|
72
76
|
'asset_file_id': value['assetFileId'],
|
|
77
|
+
'descriptions': (value['descriptions'].map(StoreSupplierRequestDescriptionsInner_1.StoreSupplierRequestDescriptionsInnerToJSON)),
|
|
73
78
|
};
|
|
74
79
|
}
|
|
@@ -38,31 +38,25 @@ export interface UpdateTagRequest {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof UpdateTagRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
seoTitle?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UpdateTagRequest
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
seoDescription?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof UpdateTagRequest
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
headerDescription?: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof UpdateTagRequest
|
|
58
58
|
*/
|
|
59
59
|
footerDescription?: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof UpdateTagRequest
|
|
64
|
-
*/
|
|
65
|
-
pageDescription?: string;
|
|
66
60
|
}
|
|
67
61
|
/**
|
|
68
62
|
* @export
|
|
@@ -49,11 +49,10 @@ function UpdateTagRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'name': json['name'],
|
|
50
50
|
'slug': json['slug'],
|
|
51
51
|
'type': json['type'],
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
52
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
53
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
54
|
+
'headerDescription': json['header_description'] == null ? undefined : json['header_description'],
|
|
55
55
|
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
56
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
57
56
|
};
|
|
58
57
|
}
|
|
59
58
|
function UpdateTagRequestToJSON(json) {
|
|
@@ -68,10 +67,9 @@ function UpdateTagRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
67
|
'name': value['name'],
|
|
69
68
|
'slug': value['slug'],
|
|
70
69
|
'type': value['type'],
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
70
|
+
'seo_title': value['seoTitle'],
|
|
71
|
+
'seo_description': value['seoDescription'],
|
|
72
|
+
'header_description': value['headerDescription'],
|
|
74
73
|
'footer_description': value['footerDescription'],
|
|
75
|
-
'page_description': value['pageDescription'],
|
|
76
74
|
};
|
|
77
75
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export * from './AttributeType';
|
|
|
25
25
|
export * from './AttributeValueResource';
|
|
26
26
|
export * from './AttributeValueResourceArrayResponse';
|
|
27
27
|
export * from './CouponDiscountType';
|
|
28
|
+
export * from './DescriptionResource';
|
|
29
|
+
export * from './DescriptionResourceArrayResponse';
|
|
28
30
|
export * from './DestroyAttributeValueRequest';
|
|
29
31
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
30
32
|
export * from './DetachDocumentablesDocumentRequest';
|
|
@@ -164,6 +166,7 @@ export * from './StoreProductRequestCategoriesInner';
|
|
|
164
166
|
export * from './StoreProductTypeRequest';
|
|
165
167
|
export * from './StoreSiteNotificationRequest';
|
|
166
168
|
export * from './StoreSupplierRequest';
|
|
169
|
+
export * from './StoreSupplierRequestDescriptionsInner';
|
|
167
170
|
export * from './StoreSupplierRequestSeoInner';
|
|
168
171
|
export * from './StoreTagRequest';
|
|
169
172
|
export * from './SupplierFrontendResource';
|
package/dist/models/index.js
CHANGED
|
@@ -43,6 +43,8 @@ __exportStar(require("./AttributeType"), exports);
|
|
|
43
43
|
__exportStar(require("./AttributeValueResource"), exports);
|
|
44
44
|
__exportStar(require("./AttributeValueResourceArrayResponse"), exports);
|
|
45
45
|
__exportStar(require("./CouponDiscountType"), exports);
|
|
46
|
+
__exportStar(require("./DescriptionResource"), exports);
|
|
47
|
+
__exportStar(require("./DescriptionResourceArrayResponse"), exports);
|
|
46
48
|
__exportStar(require("./DestroyAttributeValueRequest"), exports);
|
|
47
49
|
__exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
|
|
48
50
|
__exportStar(require("./DetachDocumentablesDocumentRequest"), exports);
|
|
@@ -182,6 +184,7 @@ __exportStar(require("./StoreProductRequestCategoriesInner"), exports);
|
|
|
182
184
|
__exportStar(require("./StoreProductTypeRequest"), exports);
|
|
183
185
|
__exportStar(require("./StoreSiteNotificationRequest"), exports);
|
|
184
186
|
__exportStar(require("./StoreSupplierRequest"), exports);
|
|
187
|
+
__exportStar(require("./StoreSupplierRequestDescriptionsInner"), exports);
|
|
185
188
|
__exportStar(require("./StoreSupplierRequestSeoInner"), exports);
|
|
186
189
|
__exportStar(require("./StoreTagRequest"), exports);
|
|
187
190
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# DescriptionResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`headerDescription` | string
|
|
11
|
+
`footerDescription` | string
|
|
12
|
+
`siteId` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { DescriptionResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"id": null,
|
|
22
|
+
"headerDescription": null,
|
|
23
|
+
"footerDescription": null,
|
|
24
|
+
"siteId": null,
|
|
25
|
+
} satisfies DescriptionResource
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as DescriptionResource
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# DescriptionResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { DescriptionResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies DescriptionResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as DescriptionResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -12,8 +12,6 @@ Name | Type
|
|
|
12
12
|
`relatedId` | number
|
|
13
13
|
`relatedType` | string
|
|
14
14
|
`includesRelations` | boolean
|
|
15
|
-
`parentProductTypeId` | Array<string>
|
|
16
|
-
`parentSupplierId` | Array<string>
|
|
17
15
|
`siteDetailsSiteId` | Array<string>
|
|
18
16
|
`isDisabled` | Array<string>
|
|
19
17
|
`hasNetsuiteId` | Array<string>
|
|
@@ -31,8 +29,6 @@ const example = {
|
|
|
31
29
|
"relatedId": null,
|
|
32
30
|
"relatedType": null,
|
|
33
31
|
"includesRelations": null,
|
|
34
|
-
"parentProductTypeId": null,
|
|
35
|
-
"parentSupplierId": null,
|
|
36
32
|
"siteDetailsSiteId": null,
|
|
37
33
|
"isDisabled": null,
|
|
38
34
|
"hasNetsuiteId": null,
|
|
@@ -11,8 +11,6 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
-
`parentProductTypeId` | Array<string>
|
|
15
|
-
`parentSupplierId` | Array<string>
|
|
16
14
|
`siteDetailsSiteId` | Array<string>
|
|
17
15
|
`isDisabled` | Array<string>
|
|
18
16
|
`hasNetsuiteId` | Array<string>
|
|
@@ -32,8 +30,6 @@ const example = {
|
|
|
32
30
|
"sortDirection": null,
|
|
33
31
|
"perPage": null,
|
|
34
32
|
"page": null,
|
|
35
|
-
"parentProductTypeId": null,
|
|
36
|
-
"parentSupplierId": null,
|
|
37
33
|
"siteDetailsSiteId": null,
|
|
38
34
|
"isDisabled": null,
|
|
39
35
|
"hasNetsuiteId": null,
|
package/docs/SEOResource.md
CHANGED
|
@@ -7,12 +7,9 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`
|
|
11
|
-
`
|
|
12
|
-
`keywords` | string
|
|
10
|
+
`seoTitle` | string
|
|
11
|
+
`seoDescription` | string
|
|
13
12
|
`siteId` | number
|
|
14
|
-
`footerDescription` | string
|
|
15
|
-
`pageDescription` | string
|
|
16
13
|
|
|
17
14
|
## Example
|
|
18
15
|
|
|
@@ -22,12 +19,9 @@ import type { SEOResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
22
19
|
// TODO: Update the object below with actual values
|
|
23
20
|
const example = {
|
|
24
21
|
"id": null,
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"keywords": null,
|
|
22
|
+
"seoTitle": null,
|
|
23
|
+
"seoDescription": null,
|
|
28
24
|
"siteId": null,
|
|
29
|
-
"footerDescription": null,
|
|
30
|
-
"pageDescription": null,
|
|
31
25
|
} satisfies SEOResource
|
|
32
26
|
|
|
33
27
|
console.log(example)
|