@digital8/lighting-illusions-ts-sdk 0.0.472 → 0.0.473
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 +10 -72
- package/README.md +20 -56
- package/dist/apis/AttributeApi.d.ts +33 -33
- package/dist/apis/AttributeApi.js +92 -92
- package/dist/apis/OverlayTemplateApi.d.ts +39 -39
- package/dist/apis/OverlayTemplateApi.js +110 -110
- package/dist/apis/ProductApi.d.ts +17 -78
- package/dist/apis/ProductApi.js +24 -271
- package/dist/apis/ProductTypeApi.d.ts +33 -33
- package/dist/apis/ProductTypeApi.js +89 -89
- package/dist/apis/SiteApi.d.ts +5 -5
- package/dist/apis/SiteApi.js +2 -2
- package/dist/apis/SupplierApi.d.ts +3 -3
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/TagApi.d.ts +27 -27
- package/dist/apis/TagApi.js +81 -81
- package/dist/models/AssetLiteResource.d.ts +0 -6
- package/dist/models/AssetLiteResource.js +0 -4
- package/dist/models/GetAllAttributeRequest.d.ts +9 -15
- package/dist/models/GetAllAttributeRequest.js +4 -6
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +6 -12
- package/dist/models/GetAllOverlayTemplateRequest.js +2 -4
- package/dist/models/GetAllProductChildRequest.d.ts +0 -6
- package/dist/models/GetAllProductChildRequest.js +0 -2
- package/dist/models/GetAllProductRequest.d.ts +0 -36
- package/dist/models/GetAllProductRequest.js +0 -12
- package/dist/models/GetAllProductTypeRequest.d.ts +0 -6
- package/dist/models/GetAllProductTypeRequest.js +0 -2
- package/dist/models/GetAllSupplierRequest.d.ts +0 -6
- package/dist/models/GetAllSupplierRequest.js +0 -2
- package/dist/models/IndexAttributeRequest.d.ts +0 -25
- package/dist/models/IndexAttributeRequest.js +1 -13
- package/dist/models/IndexExternalApiLogRequest.d.ts +3 -21
- package/dist/models/IndexExternalApiLogRequest.js +4 -10
- package/dist/models/IndexOverlayTemplateRequest.d.ts +0 -25
- package/dist/models/IndexOverlayTemplateRequest.js +1 -13
- package/dist/models/IndexProductChildRequest.d.ts +0 -6
- package/dist/models/IndexProductChildRequest.js +0 -2
- package/dist/models/IndexProductTypeRequest.d.ts +0 -25
- package/dist/models/IndexProductTypeRequest.js +1 -13
- package/dist/models/IndexSiteNotificationRequest.d.ts +0 -18
- package/dist/models/IndexSiteNotificationRequest.js +0 -6
- package/dist/models/IndexSiteRequest.d.ts +0 -18
- package/dist/models/IndexSiteRequest.js +0 -6
- package/dist/models/IndexSupplierRequest.d.ts +0 -25
- package/dist/models/IndexSupplierRequest.js +1 -13
- package/dist/models/IndexTagRequest.d.ts +0 -25
- package/dist/models/IndexTagRequest.js +1 -13
- package/dist/models/LinkAssetsOverlayTemplateRequest.d.ts +32 -0
- package/dist/models/LinkAssetsOverlayTemplateRequest.js +51 -0
- package/dist/models/LinkAttributeProductTypeRequest.d.ts +48 -0
- package/dist/models/LinkAttributeProductTypeRequest.js +65 -0
- package/dist/models/LinkProductChildrenTagRequest.d.ts +32 -0
- package/dist/models/LinkProductChildrenTagRequest.js +51 -0
- package/dist/models/LinkProductTypeAttributeRequest.d.ts +48 -0
- package/dist/models/LinkProductTypeAttributeRequest.js +65 -0
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +45 -0
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.js +62 -0
- package/dist/models/index.d.ts +5 -36
- package/dist/models/index.js +5 -36
- package/docs/AssetLiteResource.md +0 -2
- package/docs/AttributeApi.md +117 -117
- package/docs/GetAllAttributeRequest.md +4 -6
- package/docs/GetAllOverlayTemplateRequest.md +2 -4
- package/docs/GetAllProductChildRequest.md +0 -2
- package/docs/GetAllProductRequest.md +0 -12
- package/docs/GetAllProductTypeRequest.md +0 -2
- package/docs/GetAllSupplierRequest.md +0 -2
- package/docs/IndexAttributeRequest.md +0 -6
- package/docs/IndexExternalApiLogRequest.md +4 -10
- package/docs/IndexOverlayTemplateRequest.md +0 -6
- package/docs/IndexProductChildRequest.md +0 -2
- package/docs/IndexProductTypeRequest.md +0 -6
- package/docs/IndexSiteNotificationRequest.md +0 -6
- package/docs/IndexSiteRequest.md +0 -6
- package/docs/IndexSupplierRequest.md +0 -6
- package/docs/IndexTagRequest.md +0 -6
- package/docs/{AttachAssetsOverlayTemplateRequest.md → LinkAssetsOverlayTemplateRequest.md} +4 -4
- package/docs/{AttachAttributeProductTypeRequest.md → LinkAttributeProductTypeRequest.md} +4 -4
- package/docs/{AttachAccessoriesProductChildRequest.md → LinkProductChildrenTagRequest.md} +4 -4
- package/docs/{AttachProductTypeAttributeRequest.md → LinkProductTypeAttributeRequest.md} +4 -4
- package/docs/OverlayTemplateApi.md +115 -115
- package/docs/ProductApi.md +29 -377
- package/docs/ProductTypeApi.md +94 -94
- package/docs/SiteApi.md +6 -6
- package/docs/SupplierApi.md +3 -3
- package/docs/TagApi.md +84 -84
- package/docs/{DetachAssetableOverlayTemplateRequest.md → UnlinkAssetableOverlayTemplateRequest.md} +4 -6
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +108 -108
- package/src/apis/OverlayTemplateApi.ts +141 -141
- package/src/apis/ProductApi.ts +32 -282
- package/src/apis/ProductTypeApi.ts +104 -104
- package/src/apis/SiteApi.ts +12 -12
- package/src/apis/SupplierApi.ts +6 -6
- package/src/apis/TagApi.ts +94 -94
- package/src/models/AssetLiteResource.ts +0 -9
- package/src/models/GetAllAttributeRequest.ts +13 -21
- package/src/models/GetAllOverlayTemplateRequest.ts +8 -16
- package/src/models/GetAllProductChildRequest.ts +0 -8
- package/src/models/GetAllProductRequest.ts +0 -48
- package/src/models/GetAllProductTypeRequest.ts +0 -8
- package/src/models/GetAllSupplierRequest.ts +0 -8
- package/src/models/IndexAttributeRequest.ts +0 -32
- package/src/models/IndexExternalApiLogRequest.ts +7 -31
- package/src/models/IndexOverlayTemplateRequest.ts +0 -32
- package/src/models/IndexProductChildRequest.ts +0 -8
- package/src/models/IndexProductTypeRequest.ts +0 -32
- package/src/models/IndexSiteNotificationRequest.ts +0 -24
- package/src/models/IndexSiteRequest.ts +0 -24
- package/src/models/IndexSupplierRequest.ts +0 -32
- package/src/models/IndexTagRequest.ts +0 -32
- package/src/models/LinkAssetsOverlayTemplateRequest.ts +66 -0
- package/src/models/LinkAttributeProductTypeRequest.ts +88 -0
- package/src/models/LinkProductChildrenTagRequest.ts +66 -0
- package/src/models/LinkProductTypeAttributeRequest.ts +88 -0
- package/src/models/UnlinkAssetableOverlayTemplateRequest.ts +85 -0
- package/src/models/index.ts +5 -36
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +0 -32
- package/dist/models/AttachAccessoriesProductChildRequest.js +0 -51
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +0 -32
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +0 -51
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +0 -48
- package/dist/models/AttachAttributeProductTypeRequest.js +0 -65
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +0 -48
- package/dist/models/AttachProductTypeAttributeRequest.js +0 -65
- package/dist/models/AttributeListResource.d.ts +0 -56
- package/dist/models/AttributeListResource.js +0 -67
- package/dist/models/AttributeListResourceArrayResponse.d.ts +0 -33
- package/dist/models/AttributeListResourceArrayResponse.js +0 -50
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +0 -51
- package/dist/models/DetachAssetableOverlayTemplateRequest.js +0 -64
- package/dist/models/ExternalApiLogListResource.d.ts +0 -56
- package/dist/models/ExternalApiLogListResource.js +0 -63
- package/dist/models/ExternalApiLogListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ExternalApiLogListResourceArrayResponse.js +0 -50
- package/dist/models/IndexProductRequest.d.ts +0 -130
- package/dist/models/IndexProductRequest.js +0 -97
- package/dist/models/OverlayTemplateListResource.d.ts +0 -45
- package/dist/models/OverlayTemplateListResource.js +0 -60
- package/dist/models/OverlayTemplateListResourceArrayResponse.d.ts +0 -33
- package/dist/models/OverlayTemplateListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedAttributeListResourceResponse.js +0 -57
- package/dist/models/PaginatedExternalApiLogListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedExternalApiLogListResourceResponse.js +0 -57
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductChildListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductChildListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductTypeListResourceResponse.js +0 -57
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedSiteListResourceResponse.js +0 -57
- package/dist/models/PaginatedSiteNotificationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedSiteNotificationListResourceResponse.js +0 -57
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedSupplierListResourceResponse.js +0 -57
- package/dist/models/PaginatedTagListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTagListResourceResponse.js +0 -57
- package/dist/models/ProductChildListResource.d.ts +0 -63
- package/dist/models/ProductChildListResource.js +0 -72
- package/dist/models/ProductChildListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildListResourceArrayResponse.js +0 -50
- package/dist/models/ProductListResource.d.ts +0 -38
- package/dist/models/ProductListResource.js +0 -55
- package/dist/models/ProductListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductListResourceArrayResponse.js +0 -50
- package/dist/models/ProductTypeListResource.d.ts +0 -44
- package/dist/models/ProductTypeListResource.js +0 -59
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductTypeListResourceArrayResponse.js +0 -50
- package/dist/models/SiteListResource.d.ts +0 -50
- package/dist/models/SiteListResource.js +0 -63
- package/dist/models/SiteListResourceArrayResponse.d.ts +0 -33
- package/dist/models/SiteListResourceArrayResponse.js +0 -50
- package/dist/models/SiteNotificationListResource.d.ts +0 -87
- package/dist/models/SiteNotificationListResource.js +0 -84
- package/dist/models/SiteNotificationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/SiteNotificationListResourceArrayResponse.js +0 -50
- package/dist/models/SupplierListResource.d.ts +0 -57
- package/dist/models/SupplierListResource.js +0 -68
- package/dist/models/SupplierListResourceArrayResponse.d.ts +0 -33
- package/dist/models/SupplierListResourceArrayResponse.js +0 -50
- package/dist/models/TagListResource.d.ts +0 -57
- package/dist/models/TagListResource.js +0 -68
- package/dist/models/TagListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TagListResourceArrayResponse.js +0 -50
- package/docs/AttributeListResource.md +0 -42
- package/docs/AttributeListResourceArrayResponse.md +0 -34
- package/docs/ExternalApiLogListResource.md +0 -42
- package/docs/ExternalApiLogListResourceArrayResponse.md +0 -34
- package/docs/IndexProductRequest.md +0 -58
- package/docs/OverlayTemplateListResource.md +0 -38
- package/docs/OverlayTemplateListResourceArrayResponse.md +0 -34
- package/docs/PaginatedAttributeListResourceResponse.md +0 -36
- package/docs/PaginatedExternalApiLogListResourceResponse.md +0 -36
- package/docs/PaginatedOverlayTemplateListResourceResponse.md +0 -36
- package/docs/PaginatedProductChildListResourceResponse.md +0 -36
- package/docs/PaginatedProductListResourceResponse.md +0 -36
- package/docs/PaginatedProductTypeListResourceResponse.md +0 -36
- package/docs/PaginatedSiteListResourceResponse.md +0 -36
- package/docs/PaginatedSiteNotificationListResourceResponse.md +0 -36
- package/docs/PaginatedSupplierListResourceResponse.md +0 -36
- package/docs/PaginatedTagListResourceResponse.md +0 -36
- package/docs/ProductChildListResource.md +0 -44
- package/docs/ProductChildListResourceArrayResponse.md +0 -34
- package/docs/ProductListResource.md +0 -36
- package/docs/ProductListResourceArrayResponse.md +0 -34
- package/docs/ProductTypeListResource.md +0 -38
- package/docs/ProductTypeListResourceArrayResponse.md +0 -34
- package/docs/SiteListResource.md +0 -40
- package/docs/SiteListResourceArrayResponse.md +0 -34
- package/docs/SiteNotificationListResource.md +0 -52
- package/docs/SiteNotificationListResourceArrayResponse.md +0 -34
- package/docs/SupplierListResource.md +0 -42
- package/docs/SupplierListResourceArrayResponse.md +0 -34
- package/docs/TagListResource.md +0 -42
- package/docs/TagListResourceArrayResponse.md +0 -34
- package/src/models/AttachAccessoriesProductChildRequest.ts +0 -66
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +0 -66
- package/src/models/AttachAttributeProductTypeRequest.ts +0 -88
- package/src/models/AttachProductTypeAttributeRequest.ts +0 -88
- package/src/models/AttributeListResource.ts +0 -102
- package/src/models/AttributeListResourceArrayResponse.ts +0 -73
- package/src/models/DetachAssetableOverlayTemplateRequest.ts +0 -93
- package/src/models/ExternalApiLogListResource.ts +0 -100
- package/src/models/ExternalApiLogListResourceArrayResponse.ts +0 -73
- package/src/models/IndexProductRequest.ts +0 -192
- package/src/models/OverlayTemplateListResource.ts +0 -92
- package/src/models/OverlayTemplateListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedAttributeListResourceResponse.ts +0 -90
- package/src/models/PaginatedExternalApiLogListResourceResponse.ts +0 -90
- package/src/models/PaginatedOverlayTemplateListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductChildListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductTypeListResourceResponse.ts +0 -90
- package/src/models/PaginatedSiteListResourceResponse.ts +0 -90
- package/src/models/PaginatedSiteNotificationListResourceResponse.ts +0 -90
- package/src/models/PaginatedSupplierListResourceResponse.ts +0 -90
- package/src/models/PaginatedTagListResourceResponse.ts +0 -90
- package/src/models/ProductChildListResource.ts +0 -119
- package/src/models/ProductChildListResourceArrayResponse.ts +0 -73
- package/src/models/ProductListResource.ts +0 -75
- package/src/models/ProductListResourceArrayResponse.ts +0 -73
- package/src/models/ProductTypeListResource.ts +0 -84
- package/src/models/ProductTypeListResourceArrayResponse.ts +0 -73
- package/src/models/SiteListResource.ts +0 -93
- package/src/models/SiteListResourceArrayResponse.ts +0 -73
- package/src/models/SiteNotificationListResource.ts +0 -153
- package/src/models/SiteNotificationListResourceArrayResponse.ts +0 -73
- package/src/models/SupplierListResource.ts +0 -110
- package/src/models/SupplierListResourceArrayResponse.ts +0 -73
- package/src/models/TagListResource.ts +0 -110
- package/src/models/TagListResourceArrayResponse.ts +0 -73
package/src/apis/AttributeApi.ts
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
AttachProductTypeAttributeRequest,
|
|
19
18
|
AttributeLiteResourceArrayResponse,
|
|
20
19
|
AttributeResource,
|
|
21
20
|
AttributeResourceArrayResponse,
|
|
@@ -23,8 +22,9 @@ import type {
|
|
|
23
22
|
GenericResponse,
|
|
24
23
|
GetAllAttributeRequest,
|
|
25
24
|
IndexAttributeRequest,
|
|
25
|
+
LinkProductTypeAttributeRequest,
|
|
26
26
|
ModelAttributeResourceArrayResponse,
|
|
27
|
-
|
|
27
|
+
PaginatedAttributeResourceResponse,
|
|
28
28
|
StoreAttributeRequest,
|
|
29
29
|
StoreAttributeValueRequest,
|
|
30
30
|
UpdateAttributeRequest,
|
|
@@ -33,8 +33,6 @@ import type {
|
|
|
33
33
|
UpdateModelAttributeRequest,
|
|
34
34
|
} from '../models/index';
|
|
35
35
|
import {
|
|
36
|
-
AttachProductTypeAttributeRequestFromJSON,
|
|
37
|
-
AttachProductTypeAttributeRequestToJSON,
|
|
38
36
|
AttributeLiteResourceArrayResponseFromJSON,
|
|
39
37
|
AttributeLiteResourceArrayResponseToJSON,
|
|
40
38
|
AttributeResourceFromJSON,
|
|
@@ -49,10 +47,12 @@ import {
|
|
|
49
47
|
GetAllAttributeRequestToJSON,
|
|
50
48
|
IndexAttributeRequestFromJSON,
|
|
51
49
|
IndexAttributeRequestToJSON,
|
|
50
|
+
LinkProductTypeAttributeRequestFromJSON,
|
|
51
|
+
LinkProductTypeAttributeRequestToJSON,
|
|
52
52
|
ModelAttributeResourceArrayResponseFromJSON,
|
|
53
53
|
ModelAttributeResourceArrayResponseToJSON,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
PaginatedAttributeResourceResponseFromJSON,
|
|
55
|
+
PaginatedAttributeResourceResponseToJSON,
|
|
56
56
|
StoreAttributeRequestFromJSON,
|
|
57
57
|
StoreAttributeRequestToJSON,
|
|
58
58
|
StoreAttributeValueRequestFromJSON,
|
|
@@ -67,11 +67,6 @@ import {
|
|
|
67
67
|
UpdateModelAttributeRequestToJSON,
|
|
68
68
|
} from '../models/index';
|
|
69
69
|
|
|
70
|
-
export interface AttachProductTypeAttributeOperationRequest {
|
|
71
|
-
attribute: number;
|
|
72
|
-
attachProductTypeAttributeRequest?: AttachProductTypeAttributeRequest;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
70
|
export interface DestroyAttributeRequest {
|
|
76
71
|
attribute: number;
|
|
77
72
|
}
|
|
@@ -81,11 +76,6 @@ export interface DestroyAttributeValueOperationRequest {
|
|
|
81
76
|
destroyAttributeValueRequest?: DestroyAttributeValueRequest;
|
|
82
77
|
}
|
|
83
78
|
|
|
84
|
-
export interface DetachProductTypeAttributeRequest {
|
|
85
|
-
attribute: number;
|
|
86
|
-
productType: number;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
79
|
export interface GetAllAttributeOperationRequest {
|
|
90
80
|
getAllAttributeRequest?: GetAllAttributeRequest;
|
|
91
81
|
}
|
|
@@ -94,6 +84,11 @@ export interface IndexAttributeOperationRequest {
|
|
|
94
84
|
indexAttributeRequest?: IndexAttributeRequest;
|
|
95
85
|
}
|
|
96
86
|
|
|
87
|
+
export interface LinkProductTypeAttributeOperationRequest {
|
|
88
|
+
attribute: number;
|
|
89
|
+
linkProductTypeAttributeRequest?: LinkProductTypeAttributeRequest;
|
|
90
|
+
}
|
|
91
|
+
|
|
97
92
|
export interface ShowAttributeRequest {
|
|
98
93
|
attribute: number;
|
|
99
94
|
}
|
|
@@ -106,9 +101,9 @@ export interface StoreAttributeValueOperationRequest {
|
|
|
106
101
|
storeAttributeValueRequest?: StoreAttributeValueRequest;
|
|
107
102
|
}
|
|
108
103
|
|
|
109
|
-
export interface
|
|
104
|
+
export interface UnlinkProductTypeAttributeRequest {
|
|
110
105
|
attribute: number;
|
|
111
|
-
|
|
106
|
+
productType: number;
|
|
112
107
|
}
|
|
113
108
|
|
|
114
109
|
export interface UpdateAttributeOperationRequest {
|
|
@@ -125,6 +120,11 @@ export interface UpdateFilterOrderAttributeOperationRequest {
|
|
|
125
120
|
updateFilterOrderAttributeRequest?: UpdateFilterOrderAttributeRequest;
|
|
126
121
|
}
|
|
127
122
|
|
|
123
|
+
export interface UpdateLinkedProductTypeAttributeRequest {
|
|
124
|
+
attribute: number;
|
|
125
|
+
linkProductTypeAttributeRequest?: LinkProductTypeAttributeRequest;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
128
|
export interface UpdateModelAttributeOperationRequest {
|
|
129
129
|
modelAttribute: number;
|
|
130
130
|
updateModelAttributeRequest?: UpdateModelAttributeRequest;
|
|
@@ -135,46 +135,6 @@ export interface UpdateModelAttributeOperationRequest {
|
|
|
135
135
|
*/
|
|
136
136
|
export class AttributeApi extends runtime.BaseAPI {
|
|
137
137
|
|
|
138
|
-
/**
|
|
139
|
-
* Auto-generated: attachProductTypeAttribute
|
|
140
|
-
*/
|
|
141
|
-
async attachProductTypeAttributeRaw(requestParameters: AttachProductTypeAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeResource>> {
|
|
142
|
-
if (requestParameters['attribute'] == null) {
|
|
143
|
-
throw new runtime.RequiredError(
|
|
144
|
-
'attribute',
|
|
145
|
-
'Required parameter "attribute" was null or undefined when calling attachProductTypeAttribute().'
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
const queryParameters: any = {};
|
|
150
|
-
|
|
151
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
152
|
-
|
|
153
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
let urlPath = `/admin-api/attribute/{attribute}/attach-product-type`;
|
|
157
|
-
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
158
|
-
|
|
159
|
-
const response = await this.request({
|
|
160
|
-
path: urlPath,
|
|
161
|
-
method: 'POST',
|
|
162
|
-
headers: headerParameters,
|
|
163
|
-
query: queryParameters,
|
|
164
|
-
body: AttachProductTypeAttributeRequestToJSON(requestParameters['attachProductTypeAttributeRequest']),
|
|
165
|
-
}, initOverrides);
|
|
166
|
-
|
|
167
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeResourceFromJSON(jsonValue));
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Auto-generated: attachProductTypeAttribute
|
|
172
|
-
*/
|
|
173
|
-
async attachProductTypeAttribute(requestParameters: AttachProductTypeAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource> {
|
|
174
|
-
const response = await this.attachProductTypeAttributeRaw(requestParameters, initOverrides);
|
|
175
|
-
return await response.value();
|
|
176
|
-
}
|
|
177
|
-
|
|
178
138
|
/**
|
|
179
139
|
* Auto-generated: destroyAttribute
|
|
180
140
|
*/
|
|
@@ -253,54 +213,41 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
253
213
|
}
|
|
254
214
|
|
|
255
215
|
/**
|
|
256
|
-
* Auto-generated:
|
|
216
|
+
* Auto-generated: getAllAttribute
|
|
257
217
|
*/
|
|
258
|
-
async
|
|
259
|
-
if (requestParameters['attribute'] == null) {
|
|
260
|
-
throw new runtime.RequiredError(
|
|
261
|
-
'attribute',
|
|
262
|
-
'Required parameter "attribute" was null or undefined when calling detachProductTypeAttribute().'
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
if (requestParameters['productType'] == null) {
|
|
267
|
-
throw new runtime.RequiredError(
|
|
268
|
-
'productType',
|
|
269
|
-
'Required parameter "productType" was null or undefined when calling detachProductTypeAttribute().'
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
|
|
218
|
+
async getAllAttributeRaw(requestParameters: GetAllAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeLiteResourceArrayResponse>> {
|
|
273
219
|
const queryParameters: any = {};
|
|
274
220
|
|
|
275
221
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
276
222
|
|
|
223
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
277
224
|
|
|
278
|
-
|
|
279
|
-
urlPath =
|
|
280
|
-
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
225
|
+
|
|
226
|
+
let urlPath = `/admin-api/attribute/all`;
|
|
281
227
|
|
|
282
228
|
const response = await this.request({
|
|
283
229
|
path: urlPath,
|
|
284
230
|
method: 'POST',
|
|
285
231
|
headers: headerParameters,
|
|
286
232
|
query: queryParameters,
|
|
233
|
+
body: GetAllAttributeRequestToJSON(requestParameters['getAllAttributeRequest']),
|
|
287
234
|
}, initOverrides);
|
|
288
235
|
|
|
289
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
236
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeLiteResourceArrayResponseFromJSON(jsonValue));
|
|
290
237
|
}
|
|
291
238
|
|
|
292
239
|
/**
|
|
293
|
-
* Auto-generated:
|
|
240
|
+
* Auto-generated: getAllAttribute
|
|
294
241
|
*/
|
|
295
|
-
async
|
|
296
|
-
const response = await this.
|
|
242
|
+
async getAllAttribute(requestParameters: GetAllAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeLiteResourceArrayResponse> {
|
|
243
|
+
const response = await this.getAllAttributeRaw(requestParameters, initOverrides);
|
|
297
244
|
return await response.value();
|
|
298
245
|
}
|
|
299
246
|
|
|
300
247
|
/**
|
|
301
|
-
* Auto-generated:
|
|
248
|
+
* Auto-generated: indexAttribute
|
|
302
249
|
*/
|
|
303
|
-
async
|
|
250
|
+
async indexAttributeRaw(requestParameters: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeResourceResponse>> {
|
|
304
251
|
const queryParameters: any = {};
|
|
305
252
|
|
|
306
253
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -308,31 +255,38 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
308
255
|
headerParameters['Content-Type'] = 'application/json';
|
|
309
256
|
|
|
310
257
|
|
|
311
|
-
let urlPath = `/admin-api/attribute/
|
|
258
|
+
let urlPath = `/admin-api/attribute/list`;
|
|
312
259
|
|
|
313
260
|
const response = await this.request({
|
|
314
261
|
path: urlPath,
|
|
315
262
|
method: 'POST',
|
|
316
263
|
headers: headerParameters,
|
|
317
264
|
query: queryParameters,
|
|
318
|
-
body:
|
|
265
|
+
body: IndexAttributeRequestToJSON(requestParameters['indexAttributeRequest']),
|
|
319
266
|
}, initOverrides);
|
|
320
267
|
|
|
321
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
268
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAttributeResourceResponseFromJSON(jsonValue));
|
|
322
269
|
}
|
|
323
270
|
|
|
324
271
|
/**
|
|
325
|
-
* Auto-generated:
|
|
272
|
+
* Auto-generated: indexAttribute
|
|
326
273
|
*/
|
|
327
|
-
async
|
|
328
|
-
const response = await this.
|
|
274
|
+
async indexAttribute(requestParameters: IndexAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeResourceResponse> {
|
|
275
|
+
const response = await this.indexAttributeRaw(requestParameters, initOverrides);
|
|
329
276
|
return await response.value();
|
|
330
277
|
}
|
|
331
278
|
|
|
332
279
|
/**
|
|
333
|
-
* Auto-generated:
|
|
280
|
+
* Auto-generated: linkProductTypeAttribute
|
|
334
281
|
*/
|
|
335
|
-
async
|
|
282
|
+
async linkProductTypeAttributeRaw(requestParameters: LinkProductTypeAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeResource>> {
|
|
283
|
+
if (requestParameters['attribute'] == null) {
|
|
284
|
+
throw new runtime.RequiredError(
|
|
285
|
+
'attribute',
|
|
286
|
+
'Required parameter "attribute" was null or undefined when calling linkProductTypeAttribute().'
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
|
|
336
290
|
const queryParameters: any = {};
|
|
337
291
|
|
|
338
292
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -340,24 +294,25 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
340
294
|
headerParameters['Content-Type'] = 'application/json';
|
|
341
295
|
|
|
342
296
|
|
|
343
|
-
let urlPath = `/admin-api/attribute/
|
|
297
|
+
let urlPath = `/admin-api/attribute/{attribute}/link-product-type`;
|
|
298
|
+
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
344
299
|
|
|
345
300
|
const response = await this.request({
|
|
346
301
|
path: urlPath,
|
|
347
302
|
method: 'POST',
|
|
348
303
|
headers: headerParameters,
|
|
349
304
|
query: queryParameters,
|
|
350
|
-
body:
|
|
305
|
+
body: LinkProductTypeAttributeRequestToJSON(requestParameters['linkProductTypeAttributeRequest']),
|
|
351
306
|
}, initOverrides);
|
|
352
307
|
|
|
353
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
308
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeResourceFromJSON(jsonValue));
|
|
354
309
|
}
|
|
355
310
|
|
|
356
311
|
/**
|
|
357
|
-
* Auto-generated:
|
|
312
|
+
* Auto-generated: linkProductTypeAttribute
|
|
358
313
|
*/
|
|
359
|
-
async
|
|
360
|
-
const response = await this.
|
|
314
|
+
async linkProductTypeAttribute(requestParameters: LinkProductTypeAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource> {
|
|
315
|
+
const response = await this.linkProductTypeAttributeRaw(requestParameters, initOverrides);
|
|
361
316
|
return await response.value();
|
|
362
317
|
}
|
|
363
318
|
|
|
@@ -463,13 +418,20 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
463
418
|
}
|
|
464
419
|
|
|
465
420
|
/**
|
|
466
|
-
* Auto-generated:
|
|
421
|
+
* Auto-generated: unlinkProductTypeAttribute
|
|
467
422
|
*/
|
|
468
|
-
async
|
|
423
|
+
async unlinkProductTypeAttributeRaw(requestParameters: UnlinkProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeResource>> {
|
|
469
424
|
if (requestParameters['attribute'] == null) {
|
|
470
425
|
throw new runtime.RequiredError(
|
|
471
426
|
'attribute',
|
|
472
|
-
'Required parameter "attribute" was null or undefined when calling
|
|
427
|
+
'Required parameter "attribute" was null or undefined when calling unlinkProductTypeAttribute().'
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
if (requestParameters['productType'] == null) {
|
|
432
|
+
throw new runtime.RequiredError(
|
|
433
|
+
'productType',
|
|
434
|
+
'Required parameter "productType" was null or undefined when calling unlinkProductTypeAttribute().'
|
|
473
435
|
);
|
|
474
436
|
}
|
|
475
437
|
|
|
@@ -477,28 +439,26 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
477
439
|
|
|
478
440
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
479
441
|
|
|
480
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
481
|
-
|
|
482
442
|
|
|
483
|
-
let urlPath = `/admin-api/attribute/{attribute}/
|
|
443
|
+
let urlPath = `/admin-api/attribute/{attribute}/remove-product-type/{productType}`;
|
|
484
444
|
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
445
|
+
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
485
446
|
|
|
486
447
|
const response = await this.request({
|
|
487
448
|
path: urlPath,
|
|
488
|
-
method: '
|
|
449
|
+
method: 'POST',
|
|
489
450
|
headers: headerParameters,
|
|
490
451
|
query: queryParameters,
|
|
491
|
-
body: AttachProductTypeAttributeRequestToJSON(requestParameters['attachProductTypeAttributeRequest']),
|
|
492
452
|
}, initOverrides);
|
|
493
453
|
|
|
494
454
|
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeResourceFromJSON(jsonValue));
|
|
495
455
|
}
|
|
496
456
|
|
|
497
457
|
/**
|
|
498
|
-
* Auto-generated:
|
|
458
|
+
* Auto-generated: unlinkProductTypeAttribute
|
|
499
459
|
*/
|
|
500
|
-
async
|
|
501
|
-
const response = await this.
|
|
460
|
+
async unlinkProductTypeAttribute(requestParameters: UnlinkProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource> {
|
|
461
|
+
const response = await this.unlinkProductTypeAttributeRaw(requestParameters, initOverrides);
|
|
502
462
|
return await response.value();
|
|
503
463
|
}
|
|
504
464
|
|
|
@@ -614,6 +574,46 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
614
574
|
return await response.value();
|
|
615
575
|
}
|
|
616
576
|
|
|
577
|
+
/**
|
|
578
|
+
* Auto-generated: updateLinkedProductTypeAttribute
|
|
579
|
+
*/
|
|
580
|
+
async updateLinkedProductTypeAttributeRaw(requestParameters: UpdateLinkedProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeResource>> {
|
|
581
|
+
if (requestParameters['attribute'] == null) {
|
|
582
|
+
throw new runtime.RequiredError(
|
|
583
|
+
'attribute',
|
|
584
|
+
'Required parameter "attribute" was null or undefined when calling updateLinkedProductTypeAttribute().'
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
const queryParameters: any = {};
|
|
589
|
+
|
|
590
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
591
|
+
|
|
592
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
let urlPath = `/admin-api/attribute/{attribute}/update-product-type`;
|
|
596
|
+
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
597
|
+
|
|
598
|
+
const response = await this.request({
|
|
599
|
+
path: urlPath,
|
|
600
|
+
method: 'PUT',
|
|
601
|
+
headers: headerParameters,
|
|
602
|
+
query: queryParameters,
|
|
603
|
+
body: LinkProductTypeAttributeRequestToJSON(requestParameters['linkProductTypeAttributeRequest']),
|
|
604
|
+
}, initOverrides);
|
|
605
|
+
|
|
606
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeResourceFromJSON(jsonValue));
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Auto-generated: updateLinkedProductTypeAttribute
|
|
611
|
+
*/
|
|
612
|
+
async updateLinkedProductTypeAttribute(requestParameters: UpdateLinkedProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource> {
|
|
613
|
+
const response = await this.updateLinkedProductTypeAttributeRaw(requestParameters, initOverrides);
|
|
614
|
+
return await response.value();
|
|
615
|
+
}
|
|
616
|
+
|
|
617
617
|
/**
|
|
618
618
|
* Auto-generated: updateModelAttribute
|
|
619
619
|
*/
|