@digital8/lighting-illusions-ts-sdk 0.0.488 → 0.0.490
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 +8 -22
- package/README.md +10 -15
- package/dist/apis/DocumentApi.d.ts +24 -1
- package/dist/apis/DocumentApi.js +96 -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/GetAllDocumentRequest.d.ts +26 -0
- package/dist/models/GetAllDocumentRequest.js +14 -1
- package/dist/models/GetAllProductChildRequest.d.ts +1 -0
- package/dist/models/GetAllProductChildRequest.js +2 -1
- package/dist/models/IndexDocumentRequest.d.ts +26 -0
- package/dist/models/IndexDocumentRequest.js +14 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +0 -6
- package/dist/models/IndexExternalApiLogRequest.js +0 -2
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +2 -8
- package/dist/models/ProductChildSiteDetailResource.js +4 -4
- 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/UpdateDocumentRequest.d.ts +44 -0
- package/dist/models/UpdateDocumentRequest.js +57 -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 +4 -11
- package/dist/models/index.js +4 -11
- package/docs/{ProductAggregationResourceArrayResponse.md → DescriptionResource.md} +12 -6
- package/docs/{ProductRating.md → DescriptionResourceArrayResponse.md} +6 -4
- package/docs/DocumentApi.md +137 -2
- package/docs/GetAllDocumentRequest.md +6 -0
- package/docs/IndexDocumentRequest.md +6 -0
- package/docs/IndexExternalApiLogRequest.md +0 -2
- package/docs/ProductChildSiteDetailResource.md +2 -4
- package/docs/SEOResource.md +4 -10
- package/docs/StoreProductChildRequestSitesInner.md +4 -8
- package/docs/StoreSupplierRequest.md +2 -0
- package/docs/{ProductSearchResponseResourceMeta.md → StoreSupplierRequestDescriptionsInner.md} +10 -12
- 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/{ProductSortBy.md → UpdateDocumentRequest.md} +10 -4
- package/docs/UpdateSupplierRequest.md +2 -0
- package/docs/UpdateTagRequest.md +6 -8
- package/package.json +1 -1
- package/src/apis/DocumentApi.ts +91 -2
- package/src/models/DescriptionResource.ts +93 -0
- package/src/models/DescriptionResourceArrayResponse.ts +73 -0
- package/src/models/GetAllDocumentRequest.ts +33 -0
- package/src/models/GetAllProductChildRequest.ts +2 -1
- package/src/models/IndexDocumentRequest.ts +33 -0
- package/src/models/IndexExternalApiLogRequest.ts +0 -8
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/ProductChildSiteDetailResource.ts +5 -12
- 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/UpdateDocumentRequest.ts +83 -0
- package/src/models/UpdateSupplierRequest.ts +16 -0
- package/src/models/UpdateTagRequest.ts +9 -17
- package/src/models/index.ts +4 -11
- 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/docs/PaginatedProductSearchResultResourceResponse.md +0 -36
- package/docs/ProductAggregationResource.md +0 -40
- package/docs/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceArrayResponse.md +0 -34
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- package/docs/ProductSearchResultResourceArrayResponse.md +0 -34
- 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
|
@@ -116,6 +116,7 @@ export declare const GetAllProductChildRequestRelatedTypeEnum: {
|
|
|
116
116
|
readonly OverlayTemplate: "overlayTemplate";
|
|
117
117
|
readonly Supplier: "supplier";
|
|
118
118
|
readonly Tag: "tag";
|
|
119
|
+
readonly Document: "document";
|
|
119
120
|
};
|
|
120
121
|
export type GetAllProductChildRequestRelatedTypeEnum = typeof GetAllProductChildRequestRelatedTypeEnum[keyof typeof GetAllProductChildRequestRelatedTypeEnum];
|
|
121
122
|
/**
|
|
@@ -50,7 +50,8 @@ exports.GetAllProductChildRequestSortDirectionEnum = {
|
|
|
50
50
|
exports.GetAllProductChildRequestRelatedTypeEnum = {
|
|
51
51
|
OverlayTemplate: 'overlayTemplate',
|
|
52
52
|
Supplier: 'supplier',
|
|
53
|
-
Tag: 'tag'
|
|
53
|
+
Tag: 'tag',
|
|
54
|
+
Document: 'document'
|
|
54
55
|
};
|
|
55
56
|
/**
|
|
56
57
|
* Check if a given object implements the GetAllProductChildRequest interface.
|
|
@@ -45,6 +45,24 @@ export interface IndexDocumentRequest {
|
|
|
45
45
|
* @memberof IndexDocumentRequest
|
|
46
46
|
*/
|
|
47
47
|
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof IndexDocumentRequest
|
|
52
|
+
*/
|
|
53
|
+
relatedId?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof IndexDocumentRequest
|
|
58
|
+
*/
|
|
59
|
+
relatedType?: IndexDocumentRequestRelatedTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof IndexDocumentRequest
|
|
64
|
+
*/
|
|
65
|
+
includesRelations?: boolean;
|
|
48
66
|
}
|
|
49
67
|
/**
|
|
50
68
|
* @export
|
|
@@ -64,6 +82,14 @@ export declare const IndexDocumentRequestSortDirectionEnum: {
|
|
|
64
82
|
readonly Desc: "desc";
|
|
65
83
|
};
|
|
66
84
|
export type IndexDocumentRequestSortDirectionEnum = typeof IndexDocumentRequestSortDirectionEnum[keyof typeof IndexDocumentRequestSortDirectionEnum];
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const IndexDocumentRequestRelatedTypeEnum: {
|
|
89
|
+
readonly ProductChild: "productChild";
|
|
90
|
+
readonly ProductRangeSite: "productRangeSite";
|
|
91
|
+
};
|
|
92
|
+
export type IndexDocumentRequestRelatedTypeEnum = typeof IndexDocumentRequestRelatedTypeEnum[keyof typeof IndexDocumentRequestRelatedTypeEnum];
|
|
67
93
|
/**
|
|
68
94
|
* Check if a given object implements the IndexDocumentRequest interface.
|
|
69
95
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.IndexDocumentRequestSortDirectionEnum = exports.IndexDocumentRequestSortByEnum = void 0;
|
|
16
|
+
exports.IndexDocumentRequestRelatedTypeEnum = exports.IndexDocumentRequestSortDirectionEnum = exports.IndexDocumentRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfIndexDocumentRequest = instanceOfIndexDocumentRequest;
|
|
18
18
|
exports.IndexDocumentRequestFromJSON = IndexDocumentRequestFromJSON;
|
|
19
19
|
exports.IndexDocumentRequestFromJSONTyped = IndexDocumentRequestFromJSONTyped;
|
|
@@ -35,6 +35,13 @@ exports.IndexDocumentRequestSortDirectionEnum = {
|
|
|
35
35
|
Asc: 'asc',
|
|
36
36
|
Desc: 'desc'
|
|
37
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.IndexDocumentRequestRelatedTypeEnum = {
|
|
42
|
+
ProductChild: 'productChild',
|
|
43
|
+
ProductRangeSite: 'productRangeSite'
|
|
44
|
+
};
|
|
38
45
|
/**
|
|
39
46
|
* Check if a given object implements the IndexDocumentRequest interface.
|
|
40
47
|
*/
|
|
@@ -54,6 +61,9 @@ function IndexDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
61
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
55
62
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
56
63
|
'page': json['page'] == null ? undefined : json['page'],
|
|
64
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
65
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
66
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
57
67
|
};
|
|
58
68
|
}
|
|
59
69
|
function IndexDocumentRequestToJSON(json) {
|
|
@@ -70,5 +80,8 @@ function IndexDocumentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
80
|
'sortDirection': value['sortDirection'],
|
|
71
81
|
'per_page': value['perPage'],
|
|
72
82
|
'page': value['page'],
|
|
83
|
+
'related_id': value['relatedId'],
|
|
84
|
+
'related_type': value['relatedType'],
|
|
85
|
+
'includes_relations': value['includesRelations'],
|
|
73
86
|
};
|
|
74
87
|
}
|
|
@@ -81,12 +81,6 @@ export interface IndexExternalApiLogRequest {
|
|
|
81
81
|
* @memberof IndexExternalApiLogRequest
|
|
82
82
|
*/
|
|
83
83
|
siteId?: Array<string>;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {Array<string>}
|
|
87
|
-
* @memberof IndexExternalApiLogRequest
|
|
88
|
-
*/
|
|
89
|
-
productChildId?: Array<string>;
|
|
90
84
|
/**
|
|
91
85
|
*
|
|
92
86
|
* @type {number}
|
|
@@ -63,7 +63,6 @@ function IndexExternalApiLogRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
|
|
64
64
|
'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
|
|
65
65
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
66
|
-
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
67
66
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
68
67
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
69
68
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -89,7 +88,6 @@ function IndexExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
88
|
'external_api_loggable_type': value['externalApiLoggableType'],
|
|
90
89
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
91
90
|
'site_id': value['siteId'],
|
|
92
|
-
'product_child_id': value['productChildId'],
|
|
93
91
|
'related_id': value['relatedId'],
|
|
94
92
|
'related_type': value['relatedType'],
|
|
95
93
|
'includes_relations': value['includesRelations'],
|
|
@@ -128,6 +128,7 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
|
|
|
128
128
|
readonly OverlayTemplate: "overlayTemplate";
|
|
129
129
|
readonly Supplier: "supplier";
|
|
130
130
|
readonly Tag: "tag";
|
|
131
|
+
readonly Document: "document";
|
|
131
132
|
readonly Attribute: "attribute";
|
|
132
133
|
readonly AttributeValue: "attributeValue";
|
|
133
134
|
};
|
|
@@ -79,16 +79,10 @@ export interface ProductChildSiteDetailResource {
|
|
|
79
79
|
seo: SEOResource | null;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
|
-
* @type {
|
|
83
|
-
* @memberof ProductChildSiteDetailResource
|
|
84
|
-
*/
|
|
85
|
-
omnisendId?: string | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {string}
|
|
82
|
+
* @type {object}
|
|
89
83
|
* @memberof ProductChildSiteDetailResource
|
|
90
84
|
*/
|
|
91
|
-
|
|
85
|
+
documents: object;
|
|
92
86
|
}
|
|
93
87
|
/**
|
|
94
88
|
* Check if a given object implements the ProductChildSiteDetailResource interface.
|
|
@@ -44,6 +44,8 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
+
if (!('documents' in value) || value['documents'] === undefined)
|
|
48
|
+
return false;
|
|
47
49
|
return true;
|
|
48
50
|
}
|
|
49
51
|
function ProductChildSiteDetailResourceFromJSON(json) {
|
|
@@ -64,8 +66,7 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
64
66
|
'salePrice': json['salePrice'],
|
|
65
67
|
'isDisabled': json['isDisabled'],
|
|
66
68
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
67
|
-
'
|
|
68
|
-
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
69
|
+
'documents': json['documents'],
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
72
|
function ProductChildSiteDetailResourceToJSON(json) {
|
|
@@ -87,7 +88,6 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
87
88
|
'salePrice': value['salePrice'],
|
|
88
89
|
'isDisabled': value['isDisabled'],
|
|
89
90
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
90
|
-
'
|
|
91
|
-
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
91
|
+
'documents': value['documents'],
|
|
92
92
|
};
|
|
93
93
|
}
|
|
@@ -26,37 +26,19 @@ export interface SEOResource {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SEOResource
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
seoTitle: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof SEOResource
|
|
34
34
|
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SEOResource
|
|
40
|
-
*/
|
|
41
|
-
keywords: string;
|
|
35
|
+
seoDescription: string;
|
|
42
36
|
/**
|
|
43
37
|
*
|
|
44
38
|
* @type {number}
|
|
45
39
|
* @memberof SEOResource
|
|
46
40
|
*/
|
|
47
41
|
siteId: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof SEOResource
|
|
52
|
-
*/
|
|
53
|
-
footerDescription: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SEOResource
|
|
58
|
-
*/
|
|
59
|
-
pageDescription: string;
|
|
60
42
|
}
|
|
61
43
|
/**
|
|
62
44
|
* Check if a given object implements the SEOResource interface.
|
|
@@ -24,18 +24,12 @@ exports.SEOResourceToJSONTyped = SEOResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfSEOResource(value) {
|
|
25
25
|
if (!('id' in value) || value['id'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('seoTitle' in value) || value['seoTitle'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
30
|
-
return false;
|
|
31
|
-
if (!('keywords' in value) || value['keywords'] === undefined)
|
|
29
|
+
if (!('seoDescription' in value) || value['seoDescription'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
34
32
|
return false;
|
|
35
|
-
if (!('footerDescription' in value) || value['footerDescription'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('pageDescription' in value) || value['pageDescription'] === undefined)
|
|
38
|
-
return false;
|
|
39
33
|
return true;
|
|
40
34
|
}
|
|
41
35
|
function SEOResourceFromJSON(json) {
|
|
@@ -47,12 +41,9 @@ function SEOResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
41
|
}
|
|
48
42
|
return {
|
|
49
43
|
'id': json['id'],
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'siteId': json['site_id'],
|
|
54
|
-
'footerDescription': json['footerDescription'],
|
|
55
|
-
'pageDescription': json['pageDescription'],
|
|
44
|
+
'seoTitle': json['seoTitle'],
|
|
45
|
+
'seoDescription': json['seoDescription'],
|
|
46
|
+
'siteId': json['siteId'],
|
|
56
47
|
};
|
|
57
48
|
}
|
|
58
49
|
function SEOResourceToJSON(json) {
|
|
@@ -65,11 +56,8 @@ function SEOResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
56
|
}
|
|
66
57
|
return {
|
|
67
58
|
'id': value['id'],
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'site_id': value['siteId'],
|
|
72
|
-
'footerDescription': value['footerDescription'],
|
|
73
|
-
'pageDescription': value['pageDescription'],
|
|
59
|
+
'seoTitle': value['seoTitle'],
|
|
60
|
+
'seoDescription': value['seoDescription'],
|
|
61
|
+
'siteId': value['siteId'],
|
|
74
62
|
};
|
|
75
63
|
}
|
|
@@ -38,7 +38,7 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof StoreProductChildRequestSitesInner
|
|
40
40
|
*/
|
|
41
|
-
description
|
|
41
|
+
description: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -68,25 +68,13 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreProductChildRequestSitesInner
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
seoTitle?: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof StoreProductChildRequestSitesInner
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof StoreProductChildRequestSitesInner
|
|
82
|
-
*/
|
|
83
|
-
footerDescription?: string;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof StoreProductChildRequestSitesInner
|
|
88
|
-
*/
|
|
89
|
-
pageDescription?: string;
|
|
77
|
+
seoDescription?: string;
|
|
90
78
|
}
|
|
91
79
|
/**
|
|
92
80
|
* Check if a given object implements the StoreProductChildRequestSitesInner interface.
|
|
@@ -24,6 +24,8 @@ exports.StoreProductChildRequestSitesInnerToJSONTyped = StoreProductChildRequest
|
|
|
24
24
|
function instanceOfStoreProductChildRequestSitesInner(value) {
|
|
25
25
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
@@ -45,15 +47,13 @@ function StoreProductChildRequestSitesInnerFromJSONTyped(json, ignoreDiscriminat
|
|
|
45
47
|
'siteId': json['site_id'],
|
|
46
48
|
'name': json['name'] == null ? undefined : json['name'],
|
|
47
49
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
48
|
-
'description': json['description']
|
|
50
|
+
'description': json['description'],
|
|
49
51
|
'rrpPrice': json['rrp_price'],
|
|
50
52
|
'salePrice': json['sale_price'],
|
|
51
53
|
'slug': json['slug'],
|
|
52
54
|
'documents': json['documents'],
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
56
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
55
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
56
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function StoreProductChildRequestSitesInnerToJSON(json) {
|
|
@@ -73,9 +73,7 @@ function StoreProductChildRequestSitesInnerToJSONTyped(value, ignoreDiscriminato
|
|
|
73
73
|
'sale_price': value['salePrice'],
|
|
74
74
|
'slug': value['slug'],
|
|
75
75
|
'documents': value['documents'],
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'footer_description': value['footerDescription'],
|
|
79
|
-
'page_description': value['pageDescription'],
|
|
76
|
+
'seo_title': value['seoTitle'],
|
|
77
|
+
'seo_description': value['seoDescription'],
|
|
80
78
|
};
|
|
81
79
|
}
|
|
@@ -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 StoreSupplierRequest {
|
|
|
58
59
|
* @memberof StoreSupplierRequest
|
|
59
60
|
*/
|
|
60
61
|
assetFileId: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<StoreSupplierRequestDescriptionsInner>}
|
|
65
|
+
* @memberof StoreSupplierRequest
|
|
66
|
+
*/
|
|
67
|
+
descriptions: Array<StoreSupplierRequestDescriptionsInner>;
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* Check if a given object implements the StoreSupplierRequest interface.
|
|
@@ -19,6 +19,7 @@ exports.StoreSupplierRequestFromJSONTyped = StoreSupplierRequestFromJSONTyped;
|
|
|
19
19
|
exports.StoreSupplierRequestToJSON = StoreSupplierRequestToJSON;
|
|
20
20
|
exports.StoreSupplierRequestToJSONTyped = StoreSupplierRequestToJSONTyped;
|
|
21
21
|
var StoreSupplierRequestSeoInner_1 = require("./StoreSupplierRequestSeoInner");
|
|
22
|
+
var StoreSupplierRequestDescriptionsInner_1 = require("./StoreSupplierRequestDescriptionsInner");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the StoreSupplierRequest interface.
|
|
24
25
|
*/
|
|
@@ -35,6 +36,8 @@ function instanceOfStoreSupplierRequest(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 StoreSupplierRequestFromJSON(json) {
|
|
@@ -52,6 +55,7 @@ function StoreSupplierRequestFromJSONTyped(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 StoreSupplierRequestToJSON(json) {
|
|
@@ -70,5 +74,6 @@ function StoreSupplierRequestToJSONTyped(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
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StoreSupplierRequestDescriptionsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreSupplierRequestDescriptionsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
22
|
+
*/
|
|
23
|
+
headerDescription?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
28
|
+
*/
|
|
29
|
+
footerDescription?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
34
|
+
*/
|
|
35
|
+
siteId: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StoreSupplierRequestDescriptionsInner interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStoreSupplierRequestDescriptionsInner(value: object): value is StoreSupplierRequestDescriptionsInner;
|
|
41
|
+
export declare function StoreSupplierRequestDescriptionsInnerFromJSON(json: any): StoreSupplierRequestDescriptionsInner;
|
|
42
|
+
export declare function StoreSupplierRequestDescriptionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreSupplierRequestDescriptionsInner;
|
|
43
|
+
export declare function StoreSupplierRequestDescriptionsInnerToJSON(json: any): StoreSupplierRequestDescriptionsInner;
|
|
44
|
+
export declare function StoreSupplierRequestDescriptionsInnerToJSONTyped(value?: StoreSupplierRequestDescriptionsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
}
|