@digital8/lighting-illusions-ts-sdk 0.0.473 → 0.0.474
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 +72 -10
- package/README.md +56 -20
- 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 +78 -17
- package/dist/apis/ProductApi.js +271 -24
- 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 +6 -0
- package/dist/models/AssetLiteResource.js +4 -0
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductChildRequest.js +51 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +32 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +51 -0
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +48 -0
- package/dist/models/AttachAttributeProductTypeRequest.js +65 -0
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +48 -0
- package/dist/models/AttachProductTypeAttributeRequest.js +65 -0
- package/dist/models/AttributeListResource.d.ts +56 -0
- package/dist/models/AttributeListResource.js +67 -0
- package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/AttributeListResourceArrayResponse.js +50 -0
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +51 -0
- package/dist/models/DetachAssetableOverlayTemplateRequest.js +64 -0
- package/dist/models/ExternalApiLogListResource.d.ts +56 -0
- package/dist/models/ExternalApiLogListResource.js +63 -0
- package/dist/models/ExternalApiLogListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ExternalApiLogListResourceArrayResponse.js +50 -0
- package/dist/models/GetAllAttributeRequest.d.ts +15 -9
- package/dist/models/GetAllAttributeRequest.js +6 -4
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +12 -6
- package/dist/models/GetAllOverlayTemplateRequest.js +4 -2
- package/dist/models/GetAllProductChildRequest.d.ts +6 -0
- package/dist/models/GetAllProductChildRequest.js +2 -0
- package/dist/models/GetAllProductRequest.d.ts +36 -0
- package/dist/models/GetAllProductRequest.js +12 -0
- package/dist/models/GetAllProductTypeRequest.d.ts +6 -0
- package/dist/models/GetAllProductTypeRequest.js +2 -0
- package/dist/models/GetAllSupplierRequest.d.ts +6 -0
- package/dist/models/GetAllSupplierRequest.js +2 -0
- package/dist/models/IndexAttributeRequest.d.ts +25 -0
- package/dist/models/IndexAttributeRequest.js +13 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +21 -3
- package/dist/models/IndexExternalApiLogRequest.js +10 -4
- package/dist/models/IndexOverlayTemplateRequest.d.ts +25 -0
- package/dist/models/IndexOverlayTemplateRequest.js +13 -1
- package/dist/models/IndexProductChildRequest.d.ts +6 -0
- package/dist/models/IndexProductChildRequest.js +2 -0
- package/dist/models/IndexProductRequest.d.ts +130 -0
- package/dist/models/IndexProductRequest.js +97 -0
- package/dist/models/IndexProductTypeRequest.d.ts +25 -0
- package/dist/models/IndexProductTypeRequest.js +13 -1
- package/dist/models/IndexSiteNotificationRequest.d.ts +18 -0
- package/dist/models/IndexSiteNotificationRequest.js +6 -0
- package/dist/models/IndexSiteRequest.d.ts +18 -0
- package/dist/models/IndexSiteRequest.js +6 -0
- package/dist/models/IndexSupplierRequest.d.ts +25 -0
- package/dist/models/IndexSupplierRequest.js +13 -1
- package/dist/models/IndexTagRequest.d.ts +25 -0
- package/dist/models/IndexTagRequest.js +13 -1
- package/dist/models/OverlayTemplateListResource.d.ts +45 -0
- package/dist/models/OverlayTemplateListResource.js +60 -0
- package/dist/models/OverlayTemplateListResourceArrayResponse.d.ts +33 -0
- package/dist/models/OverlayTemplateListResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedExternalApiLogListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedExternalApiLogListResourceResponse.js +57 -0
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductChildListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductChildListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteNotificationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteNotificationListResourceResponse.js +57 -0
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
- package/dist/models/PaginatedTagListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTagListResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +63 -0
- package/dist/models/ProductChildListResource.js +72 -0
- package/dist/models/ProductChildListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildListResourceArrayResponse.js +50 -0
- package/dist/models/ProductListResource.d.ts +38 -0
- package/dist/models/ProductListResource.js +55 -0
- package/dist/models/ProductListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductListResourceArrayResponse.js +50 -0
- package/dist/models/ProductTypeListResource.d.ts +44 -0
- package/dist/models/ProductTypeListResource.js +59 -0
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
- package/dist/models/SiteListResource.d.ts +50 -0
- package/dist/models/SiteListResource.js +63 -0
- package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteListResourceArrayResponse.js +50 -0
- package/dist/models/SiteNotificationListResource.d.ts +87 -0
- package/dist/models/SiteNotificationListResource.js +84 -0
- package/dist/models/SiteNotificationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteNotificationListResourceArrayResponse.js +50 -0
- package/dist/models/SupplierListResource.d.ts +57 -0
- package/dist/models/SupplierListResource.js +68 -0
- package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SupplierListResourceArrayResponse.js +50 -0
- package/dist/models/TagListResource.d.ts +57 -0
- package/dist/models/TagListResource.js +68 -0
- package/dist/models/TagListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TagListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +36 -5
- package/dist/models/index.js +36 -5
- package/docs/AssetLiteResource.md +2 -0
- package/docs/{LinkProductChildrenTagRequest.md → AttachAccessoriesProductChildRequest.md} +4 -4
- package/docs/{LinkAssetsOverlayTemplateRequest.md → AttachAssetsOverlayTemplateRequest.md} +4 -4
- package/docs/{LinkAttributeProductTypeRequest.md → AttachAttributeProductTypeRequest.md} +4 -4
- package/docs/{LinkProductTypeAttributeRequest.md → AttachProductTypeAttributeRequest.md} +4 -4
- package/docs/AttributeApi.md +117 -117
- package/docs/AttributeListResource.md +42 -0
- package/docs/AttributeListResourceArrayResponse.md +34 -0
- package/docs/{UnlinkAssetableOverlayTemplateRequest.md → DetachAssetableOverlayTemplateRequest.md} +6 -4
- package/docs/ExternalApiLogListResource.md +42 -0
- package/docs/ExternalApiLogListResourceArrayResponse.md +34 -0
- package/docs/GetAllAttributeRequest.md +6 -4
- package/docs/GetAllOverlayTemplateRequest.md +4 -2
- package/docs/GetAllProductChildRequest.md +2 -0
- package/docs/GetAllProductRequest.md +12 -0
- package/docs/GetAllProductTypeRequest.md +2 -0
- package/docs/GetAllSupplierRequest.md +2 -0
- package/docs/IndexAttributeRequest.md +6 -0
- package/docs/IndexExternalApiLogRequest.md +10 -4
- package/docs/IndexOverlayTemplateRequest.md +6 -0
- package/docs/IndexProductChildRequest.md +2 -0
- package/docs/IndexProductRequest.md +58 -0
- package/docs/IndexProductTypeRequest.md +6 -0
- package/docs/IndexSiteNotificationRequest.md +6 -0
- package/docs/IndexSiteRequest.md +6 -0
- package/docs/IndexSupplierRequest.md +6 -0
- package/docs/IndexTagRequest.md +6 -0
- package/docs/OverlayTemplateApi.md +115 -115
- package/docs/OverlayTemplateListResource.md +38 -0
- package/docs/OverlayTemplateListResourceArrayResponse.md +34 -0
- package/docs/PaginatedAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedExternalApiLogListResourceResponse.md +36 -0
- package/docs/PaginatedOverlayTemplateListResourceResponse.md +36 -0
- package/docs/PaginatedProductChildListResourceResponse.md +36 -0
- package/docs/PaginatedProductListResourceResponse.md +36 -0
- package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSiteNotificationListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/PaginatedTagListResourceResponse.md +36 -0
- package/docs/ProductApi.md +377 -29
- package/docs/ProductChildListResource.md +44 -0
- package/docs/ProductChildListResourceArrayResponse.md +34 -0
- package/docs/ProductListResource.md +36 -0
- package/docs/ProductListResourceArrayResponse.md +34 -0
- package/docs/ProductTypeApi.md +94 -94
- package/docs/ProductTypeListResource.md +38 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -0
- package/docs/SiteApi.md +6 -6
- package/docs/SiteListResource.md +40 -0
- package/docs/SiteListResourceArrayResponse.md +34 -0
- package/docs/SiteNotificationListResource.md +52 -0
- package/docs/SiteNotificationListResourceArrayResponse.md +34 -0
- package/docs/SupplierApi.md +3 -3
- package/docs/SupplierListResource.md +42 -0
- package/docs/SupplierListResourceArrayResponse.md +34 -0
- package/docs/TagApi.md +84 -84
- package/docs/TagListResource.md +42 -0
- package/docs/TagListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +108 -108
- package/src/apis/OverlayTemplateApi.ts +141 -141
- package/src/apis/ProductApi.ts +282 -32
- 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 +9 -0
- package/src/models/AttachAccessoriesProductChildRequest.ts +66 -0
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +66 -0
- package/src/models/AttachAttributeProductTypeRequest.ts +88 -0
- package/src/models/AttachProductTypeAttributeRequest.ts +88 -0
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/DetachAssetableOverlayTemplateRequest.ts +93 -0
- package/src/models/ExternalApiLogListResource.ts +100 -0
- package/src/models/ExternalApiLogListResourceArrayResponse.ts +73 -0
- package/src/models/GetAllAttributeRequest.ts +21 -13
- package/src/models/GetAllOverlayTemplateRequest.ts +16 -8
- package/src/models/GetAllProductChildRequest.ts +8 -0
- package/src/models/GetAllProductRequest.ts +48 -0
- package/src/models/GetAllProductTypeRequest.ts +8 -0
- package/src/models/GetAllSupplierRequest.ts +8 -0
- package/src/models/IndexAttributeRequest.ts +32 -0
- package/src/models/IndexExternalApiLogRequest.ts +31 -7
- package/src/models/IndexOverlayTemplateRequest.ts +32 -0
- package/src/models/IndexProductChildRequest.ts +8 -0
- package/src/models/IndexProductRequest.ts +192 -0
- package/src/models/IndexProductTypeRequest.ts +32 -0
- package/src/models/IndexSiteNotificationRequest.ts +24 -0
- package/src/models/IndexSiteRequest.ts +24 -0
- package/src/models/IndexSupplierRequest.ts +32 -0
- package/src/models/IndexTagRequest.ts +32 -0
- package/src/models/OverlayTemplateListResource.ts +92 -0
- package/src/models/OverlayTemplateListResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedExternalApiLogListResourceResponse.ts +90 -0
- package/src/models/PaginatedOverlayTemplateListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductChildListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteNotificationListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/PaginatedTagListResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +119 -0
- package/src/models/ProductChildListResourceArrayResponse.ts +73 -0
- package/src/models/ProductListResource.ts +75 -0
- package/src/models/ProductListResourceArrayResponse.ts +73 -0
- package/src/models/ProductTypeListResource.ts +84 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
- package/src/models/SiteListResource.ts +93 -0
- package/src/models/SiteListResourceArrayResponse.ts +73 -0
- package/src/models/SiteNotificationListResource.ts +153 -0
- package/src/models/SiteNotificationListResourceArrayResponse.ts +73 -0
- package/src/models/SupplierListResource.ts +110 -0
- package/src/models/SupplierListResourceArrayResponse.ts +73 -0
- package/src/models/TagListResource.ts +110 -0
- package/src/models/TagListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +36 -5
- package/dist/models/LinkAssetsOverlayTemplateRequest.d.ts +0 -32
- package/dist/models/LinkAssetsOverlayTemplateRequest.js +0 -51
- package/dist/models/LinkAttributeProductTypeRequest.d.ts +0 -48
- package/dist/models/LinkAttributeProductTypeRequest.js +0 -65
- package/dist/models/LinkProductChildrenTagRequest.d.ts +0 -32
- package/dist/models/LinkProductChildrenTagRequest.js +0 -51
- package/dist/models/LinkProductTypeAttributeRequest.d.ts +0 -48
- package/dist/models/LinkProductTypeAttributeRequest.js +0 -65
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +0 -45
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.js +0 -62
- package/src/models/LinkAssetsOverlayTemplateRequest.ts +0 -66
- package/src/models/LinkAttributeProductTypeRequest.ts +0 -88
- package/src/models/LinkProductChildrenTagRequest.ts +0 -66
- package/src/models/LinkProductTypeAttributeRequest.ts +0 -88
- package/src/models/UnlinkAssetableOverlayTemplateRequest.ts +0 -85
package/src/apis/TagApi.ts
CHANGED
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AttachAccessoriesProductChildRequest,
|
|
18
19
|
GenericResponse,
|
|
19
20
|
IndexTagRequest,
|
|
20
|
-
|
|
21
|
-
PaginatedTagResourceResponse,
|
|
21
|
+
PaginatedTagListResourceResponse,
|
|
22
22
|
ProductChildRelationResourceArrayResponse,
|
|
23
23
|
StoreTagRequest,
|
|
24
24
|
TagLiteResourceArrayResponse,
|
|
@@ -26,14 +26,14 @@ import type {
|
|
|
26
26
|
UpdateTagRequest,
|
|
27
27
|
} from '../models/index';
|
|
28
28
|
import {
|
|
29
|
+
AttachAccessoriesProductChildRequestFromJSON,
|
|
30
|
+
AttachAccessoriesProductChildRequestToJSON,
|
|
29
31
|
GenericResponseFromJSON,
|
|
30
32
|
GenericResponseToJSON,
|
|
31
33
|
IndexTagRequestFromJSON,
|
|
32
34
|
IndexTagRequestToJSON,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
PaginatedTagResourceResponseFromJSON,
|
|
36
|
-
PaginatedTagResourceResponseToJSON,
|
|
35
|
+
PaginatedTagListResourceResponseFromJSON,
|
|
36
|
+
PaginatedTagListResourceResponseToJSON,
|
|
37
37
|
ProductChildRelationResourceArrayResponseFromJSON,
|
|
38
38
|
ProductChildRelationResourceArrayResponseToJSON,
|
|
39
39
|
StoreTagRequestFromJSON,
|
|
@@ -46,10 +46,20 @@ import {
|
|
|
46
46
|
UpdateTagRequestToJSON,
|
|
47
47
|
} from '../models/index';
|
|
48
48
|
|
|
49
|
+
export interface AttachProductChildrenTagRequest {
|
|
50
|
+
tag: number;
|
|
51
|
+
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
export interface DestroyTagRequest {
|
|
50
55
|
tag: number;
|
|
51
56
|
}
|
|
52
57
|
|
|
58
|
+
export interface DetachProductChildTagRequest {
|
|
59
|
+
tag: number;
|
|
60
|
+
productChild: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
export interface GetAllTagRequest {
|
|
54
64
|
indexTagRequest?: IndexTagRequest;
|
|
55
65
|
}
|
|
@@ -58,11 +68,6 @@ export interface IndexTagOperationRequest {
|
|
|
58
68
|
indexTagRequest?: IndexTagRequest;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
export interface LinkProductChildrenTagOperationRequest {
|
|
62
|
-
tag: number;
|
|
63
|
-
linkProductChildrenTagRequest?: LinkProductChildrenTagRequest;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
71
|
export interface ShowTagRequest {
|
|
67
72
|
tag: number;
|
|
68
73
|
}
|
|
@@ -71,11 +76,6 @@ export interface StoreTagOperationRequest {
|
|
|
71
76
|
storeTagRequest?: StoreTagRequest;
|
|
72
77
|
}
|
|
73
78
|
|
|
74
|
-
export interface UnlinkProductChildTagRequest {
|
|
75
|
-
tag: number;
|
|
76
|
-
productChild: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
79
|
export interface UpdateTagOperationRequest {
|
|
80
80
|
tag: number;
|
|
81
81
|
updateTagRequest?: UpdateTagRequest;
|
|
@@ -86,6 +86,46 @@ export interface UpdateTagOperationRequest {
|
|
|
86
86
|
*/
|
|
87
87
|
export class TagApi extends runtime.BaseAPI {
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Auto-generated: attachProductChildrenTag
|
|
91
|
+
*/
|
|
92
|
+
async attachProductChildrenTagRaw(requestParameters: AttachProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
93
|
+
if (requestParameters['tag'] == null) {
|
|
94
|
+
throw new runtime.RequiredError(
|
|
95
|
+
'tag',
|
|
96
|
+
'Required parameter "tag" was null or undefined when calling attachProductChildrenTag().'
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const queryParameters: any = {};
|
|
101
|
+
|
|
102
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
103
|
+
|
|
104
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
let urlPath = `/admin-api/tag/{tag}/attach-product-children`;
|
|
108
|
+
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
109
|
+
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: urlPath,
|
|
112
|
+
method: 'POST',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
body: AttachAccessoriesProductChildRequestToJSON(requestParameters['attachAccessoriesProductChildRequest']),
|
|
116
|
+
}, initOverrides);
|
|
117
|
+
|
|
118
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Auto-generated: attachProductChildrenTag
|
|
123
|
+
*/
|
|
124
|
+
async attachProductChildrenTag(requestParameters: AttachProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
|
|
125
|
+
const response = await this.attachProductChildrenTagRaw(requestParameters, initOverrides);
|
|
126
|
+
return await response.value();
|
|
127
|
+
}
|
|
128
|
+
|
|
89
129
|
/**
|
|
90
130
|
* Auto-generated: destroyTag
|
|
91
131
|
*/
|
|
@@ -124,41 +164,54 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
124
164
|
}
|
|
125
165
|
|
|
126
166
|
/**
|
|
127
|
-
* Auto-generated:
|
|
167
|
+
* Auto-generated: detachProductChildTag
|
|
128
168
|
*/
|
|
129
|
-
async
|
|
169
|
+
async detachProductChildTagRaw(requestParameters: DetachProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
170
|
+
if (requestParameters['tag'] == null) {
|
|
171
|
+
throw new runtime.RequiredError(
|
|
172
|
+
'tag',
|
|
173
|
+
'Required parameter "tag" was null or undefined when calling detachProductChildTag().'
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (requestParameters['productChild'] == null) {
|
|
178
|
+
throw new runtime.RequiredError(
|
|
179
|
+
'productChild',
|
|
180
|
+
'Required parameter "productChild" was null or undefined when calling detachProductChildTag().'
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
130
184
|
const queryParameters: any = {};
|
|
131
185
|
|
|
132
186
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
133
187
|
|
|
134
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
135
|
-
|
|
136
188
|
|
|
137
|
-
let urlPath = `/admin-api/tag/
|
|
189
|
+
let urlPath = `/admin-api/tag/{tag}/detach-product-child/{productChild}`;
|
|
190
|
+
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
191
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
138
192
|
|
|
139
193
|
const response = await this.request({
|
|
140
194
|
path: urlPath,
|
|
141
195
|
method: 'POST',
|
|
142
196
|
headers: headerParameters,
|
|
143
197
|
query: queryParameters,
|
|
144
|
-
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
145
198
|
}, initOverrides);
|
|
146
199
|
|
|
147
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
200
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
148
201
|
}
|
|
149
202
|
|
|
150
203
|
/**
|
|
151
|
-
* Auto-generated:
|
|
204
|
+
* Auto-generated: detachProductChildTag
|
|
152
205
|
*/
|
|
153
|
-
async
|
|
154
|
-
const response = await this.
|
|
206
|
+
async detachProductChildTag(requestParameters: DetachProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
|
|
207
|
+
const response = await this.detachProductChildTagRaw(requestParameters, initOverrides);
|
|
155
208
|
return await response.value();
|
|
156
209
|
}
|
|
157
210
|
|
|
158
211
|
/**
|
|
159
|
-
* Auto-generated:
|
|
212
|
+
* Auto-generated: getAllTag
|
|
160
213
|
*/
|
|
161
|
-
async
|
|
214
|
+
async getAllTagRaw(requestParameters: GetAllTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagLiteResourceArrayResponse>> {
|
|
162
215
|
const queryParameters: any = {};
|
|
163
216
|
|
|
164
217
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -166,7 +219,7 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
166
219
|
headerParameters['Content-Type'] = 'application/json';
|
|
167
220
|
|
|
168
221
|
|
|
169
|
-
let urlPath = `/admin-api/tag/
|
|
222
|
+
let urlPath = `/admin-api/tag/all`;
|
|
170
223
|
|
|
171
224
|
const response = await this.request({
|
|
172
225
|
path: urlPath,
|
|
@@ -176,28 +229,21 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
176
229
|
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
177
230
|
}, initOverrides);
|
|
178
231
|
|
|
179
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
232
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TagLiteResourceArrayResponseFromJSON(jsonValue));
|
|
180
233
|
}
|
|
181
234
|
|
|
182
235
|
/**
|
|
183
|
-
* Auto-generated:
|
|
236
|
+
* Auto-generated: getAllTag
|
|
184
237
|
*/
|
|
185
|
-
async
|
|
186
|
-
const response = await this.
|
|
238
|
+
async getAllTag(requestParameters: GetAllTagRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagLiteResourceArrayResponse> {
|
|
239
|
+
const response = await this.getAllTagRaw(requestParameters, initOverrides);
|
|
187
240
|
return await response.value();
|
|
188
241
|
}
|
|
189
242
|
|
|
190
243
|
/**
|
|
191
|
-
* Auto-generated:
|
|
244
|
+
* Auto-generated: indexTag
|
|
192
245
|
*/
|
|
193
|
-
async
|
|
194
|
-
if (requestParameters['tag'] == null) {
|
|
195
|
-
throw new runtime.RequiredError(
|
|
196
|
-
'tag',
|
|
197
|
-
'Required parameter "tag" was null or undefined when calling linkProductChildrenTag().'
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
246
|
+
async indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagListResourceResponse>> {
|
|
201
247
|
const queryParameters: any = {};
|
|
202
248
|
|
|
203
249
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -205,25 +251,24 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
205
251
|
headerParameters['Content-Type'] = 'application/json';
|
|
206
252
|
|
|
207
253
|
|
|
208
|
-
let urlPath = `/admin-api/tag/
|
|
209
|
-
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
254
|
+
let urlPath = `/admin-api/tag/list`;
|
|
210
255
|
|
|
211
256
|
const response = await this.request({
|
|
212
257
|
path: urlPath,
|
|
213
258
|
method: 'POST',
|
|
214
259
|
headers: headerParameters,
|
|
215
260
|
query: queryParameters,
|
|
216
|
-
body:
|
|
261
|
+
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
217
262
|
}, initOverrides);
|
|
218
263
|
|
|
219
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
264
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTagListResourceResponseFromJSON(jsonValue));
|
|
220
265
|
}
|
|
221
266
|
|
|
222
267
|
/**
|
|
223
|
-
* Auto-generated:
|
|
268
|
+
* Auto-generated: indexTag
|
|
224
269
|
*/
|
|
225
|
-
async
|
|
226
|
-
const response = await this.
|
|
270
|
+
async indexTag(requestParameters: IndexTagOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagListResourceResponse> {
|
|
271
|
+
const response = await this.indexTagRaw(requestParameters, initOverrides);
|
|
227
272
|
return await response.value();
|
|
228
273
|
}
|
|
229
274
|
|
|
@@ -296,51 +341,6 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
296
341
|
return await response.value();
|
|
297
342
|
}
|
|
298
343
|
|
|
299
|
-
/**
|
|
300
|
-
* Auto-generated: unlinkProductChildTag
|
|
301
|
-
*/
|
|
302
|
-
async unlinkProductChildTagRaw(requestParameters: UnlinkProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
303
|
-
if (requestParameters['tag'] == null) {
|
|
304
|
-
throw new runtime.RequiredError(
|
|
305
|
-
'tag',
|
|
306
|
-
'Required parameter "tag" was null or undefined when calling unlinkProductChildTag().'
|
|
307
|
-
);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
if (requestParameters['productChild'] == null) {
|
|
311
|
-
throw new runtime.RequiredError(
|
|
312
|
-
'productChild',
|
|
313
|
-
'Required parameter "productChild" was null or undefined when calling unlinkProductChildTag().'
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
const queryParameters: any = {};
|
|
318
|
-
|
|
319
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
let urlPath = `/admin-api/tag/{tag}/remove-product-child/{productChild}`;
|
|
323
|
-
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
324
|
-
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
325
|
-
|
|
326
|
-
const response = await this.request({
|
|
327
|
-
path: urlPath,
|
|
328
|
-
method: 'POST',
|
|
329
|
-
headers: headerParameters,
|
|
330
|
-
query: queryParameters,
|
|
331
|
-
}, initOverrides);
|
|
332
|
-
|
|
333
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Auto-generated: unlinkProductChildTag
|
|
338
|
-
*/
|
|
339
|
-
async unlinkProductChildTag(requestParameters: UnlinkProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
|
|
340
|
-
const response = await this.unlinkProductChildTagRaw(requestParameters, initOverrides);
|
|
341
|
-
return await response.value();
|
|
342
|
-
}
|
|
343
|
-
|
|
344
344
|
/**
|
|
345
345
|
* Auto-generated: updateTag
|
|
346
346
|
*/
|
|
@@ -37,6 +37,12 @@ export interface AssetLiteResource {
|
|
|
37
37
|
* @memberof AssetLiteResource
|
|
38
38
|
*/
|
|
39
39
|
fileName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AssetLiteResource
|
|
44
|
+
*/
|
|
45
|
+
altText: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -46,6 +52,7 @@ export function instanceOfAssetLiteResource(value: object): value is AssetLiteRe
|
|
|
46
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
53
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
48
54
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
55
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
49
56
|
return true;
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -62,6 +69,7 @@ export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
62
69
|
'id': json['id'],
|
|
63
70
|
'filePath': json['filePath'],
|
|
64
71
|
'fileName': json['fileName'],
|
|
72
|
+
'altText': json['altText'],
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -79,6 +87,7 @@ export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, i
|
|
|
79
87
|
'id': value['id'],
|
|
80
88
|
'filePath': value['filePath'],
|
|
81
89
|
'fileName': value['fileName'],
|
|
90
|
+
'altText': value['altText'],
|
|
82
91
|
};
|
|
83
92
|
}
|
|
84
93
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttachAccessoriesProductChildRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachAccessoriesProductChildRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof AttachAccessoriesProductChildRequest
|
|
26
|
+
*/
|
|
27
|
+
productChildIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AttachAccessoriesProductChildRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAttachAccessoriesProductChildRequest(value: object): value is AttachAccessoriesProductChildRequest {
|
|
34
|
+
if (!('productChildIds' in value) || value['productChildIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AttachAccessoriesProductChildRequestFromJSON(json: any): AttachAccessoriesProductChildRequest {
|
|
39
|
+
return AttachAccessoriesProductChildRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AttachAccessoriesProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAccessoriesProductChildRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'productChildIds': json['product_child_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AttachAccessoriesProductChildRequestToJSON(json: any): AttachAccessoriesProductChildRequest {
|
|
53
|
+
return AttachAccessoriesProductChildRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AttachAccessoriesProductChildRequestToJSONTyped(value?: AttachAccessoriesProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'product_child_ids': value['productChildIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttachAssetsOverlayTemplateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachAssetsOverlayTemplateRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof AttachAssetsOverlayTemplateRequest
|
|
26
|
+
*/
|
|
27
|
+
assetIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AttachAssetsOverlayTemplateRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAttachAssetsOverlayTemplateRequest(value: object): value is AttachAssetsOverlayTemplateRequest {
|
|
34
|
+
if (!('assetIds' in value) || value['assetIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AttachAssetsOverlayTemplateRequestFromJSON(json: any): AttachAssetsOverlayTemplateRequest {
|
|
39
|
+
return AttachAssetsOverlayTemplateRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AttachAssetsOverlayTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAssetsOverlayTemplateRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'assetIds': json['asset_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AttachAssetsOverlayTemplateRequestToJSON(json: any): AttachAssetsOverlayTemplateRequest {
|
|
53
|
+
return AttachAssetsOverlayTemplateRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AttachAssetsOverlayTemplateRequestToJSONTyped(value?: AttachAssetsOverlayTemplateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'asset_ids': value['assetIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttachAttributeProductTypeRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachAttributeProductTypeRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AttachAttributeProductTypeRequest
|
|
26
|
+
*/
|
|
27
|
+
attributeId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AttachAttributeProductTypeRequest
|
|
32
|
+
*/
|
|
33
|
+
fieldType: AttachAttributeProductTypeRequestFieldTypeEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const AttachAttributeProductTypeRequestFieldTypeEnum = {
|
|
41
|
+
Performance: 'performance',
|
|
42
|
+
Specification: 'specification',
|
|
43
|
+
Dimension: 'dimension',
|
|
44
|
+
Other: 'other'
|
|
45
|
+
} as const;
|
|
46
|
+
export type AttachAttributeProductTypeRequestFieldTypeEnum = typeof AttachAttributeProductTypeRequestFieldTypeEnum[keyof typeof AttachAttributeProductTypeRequestFieldTypeEnum];
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AttachAttributeProductTypeRequest interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfAttachAttributeProductTypeRequest(value: object): value is AttachAttributeProductTypeRequest {
|
|
53
|
+
if (!('attributeId' in value) || value['attributeId'] === undefined) return false;
|
|
54
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AttachAttributeProductTypeRequestFromJSON(json: any): AttachAttributeProductTypeRequest {
|
|
59
|
+
return AttachAttributeProductTypeRequestFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AttachAttributeProductTypeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAttributeProductTypeRequest {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'attributeId': json['attribute_id'],
|
|
69
|
+
'fieldType': json['field_type'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function AttachAttributeProductTypeRequestToJSON(json: any): AttachAttributeProductTypeRequest {
|
|
74
|
+
return AttachAttributeProductTypeRequestToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function AttachAttributeProductTypeRequestToJSONTyped(value?: AttachAttributeProductTypeRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'attribute_id': value['attributeId'],
|
|
85
|
+
'field_type': value['fieldType'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttachProductTypeAttributeRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachProductTypeAttributeRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AttachProductTypeAttributeRequest
|
|
26
|
+
*/
|
|
27
|
+
productTypeId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AttachProductTypeAttributeRequest
|
|
32
|
+
*/
|
|
33
|
+
fieldType: AttachProductTypeAttributeRequestFieldTypeEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const AttachProductTypeAttributeRequestFieldTypeEnum = {
|
|
41
|
+
Performance: 'performance',
|
|
42
|
+
Specification: 'specification',
|
|
43
|
+
Dimension: 'dimension',
|
|
44
|
+
Other: 'other'
|
|
45
|
+
} as const;
|
|
46
|
+
export type AttachProductTypeAttributeRequestFieldTypeEnum = typeof AttachProductTypeAttributeRequestFieldTypeEnum[keyof typeof AttachProductTypeAttributeRequestFieldTypeEnum];
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AttachProductTypeAttributeRequest interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfAttachProductTypeAttributeRequest(value: object): value is AttachProductTypeAttributeRequest {
|
|
53
|
+
if (!('productTypeId' in value) || value['productTypeId'] === undefined) return false;
|
|
54
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AttachProductTypeAttributeRequestFromJSON(json: any): AttachProductTypeAttributeRequest {
|
|
59
|
+
return AttachProductTypeAttributeRequestFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AttachProductTypeAttributeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachProductTypeAttributeRequest {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'productTypeId': json['product_type_id'],
|
|
69
|
+
'fieldType': json['field_type'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function AttachProductTypeAttributeRequestToJSON(json: any): AttachProductTypeAttributeRequest {
|
|
74
|
+
return AttachProductTypeAttributeRequestToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function AttachProductTypeAttributeRequestToJSONTyped(value?: AttachProductTypeAttributeRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'product_type_id': value['productTypeId'],
|
|
85
|
+
'field_type': value['fieldType'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|