@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
|
@@ -15,29 +15,29 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
AttachAttributeProductTypeRequest,
|
|
19
18
|
GenericResponse,
|
|
20
19
|
GetAllProductTypeRequest,
|
|
21
20
|
IndexProductTypeRequest,
|
|
22
|
-
|
|
21
|
+
LinkAttributeProductTypeRequest,
|
|
23
22
|
PaginatedProductTypeLiteResourceResponse,
|
|
23
|
+
PaginatedProductTypeResourceResponse,
|
|
24
24
|
ProductTypeResource,
|
|
25
25
|
StoreProductTypeRequest,
|
|
26
26
|
UpdateProductTypeRequest,
|
|
27
27
|
} from '../models/index';
|
|
28
28
|
import {
|
|
29
|
-
AttachAttributeProductTypeRequestFromJSON,
|
|
30
|
-
AttachAttributeProductTypeRequestToJSON,
|
|
31
29
|
GenericResponseFromJSON,
|
|
32
30
|
GenericResponseToJSON,
|
|
33
31
|
GetAllProductTypeRequestFromJSON,
|
|
34
32
|
GetAllProductTypeRequestToJSON,
|
|
35
33
|
IndexProductTypeRequestFromJSON,
|
|
36
34
|
IndexProductTypeRequestToJSON,
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
LinkAttributeProductTypeRequestFromJSON,
|
|
36
|
+
LinkAttributeProductTypeRequestToJSON,
|
|
39
37
|
PaginatedProductTypeLiteResourceResponseFromJSON,
|
|
40
38
|
PaginatedProductTypeLiteResourceResponseToJSON,
|
|
39
|
+
PaginatedProductTypeResourceResponseFromJSON,
|
|
40
|
+
PaginatedProductTypeResourceResponseToJSON,
|
|
41
41
|
ProductTypeResourceFromJSON,
|
|
42
42
|
ProductTypeResourceToJSON,
|
|
43
43
|
StoreProductTypeRequestFromJSON,
|
|
@@ -46,20 +46,10 @@ import {
|
|
|
46
46
|
UpdateProductTypeRequestToJSON,
|
|
47
47
|
} from '../models/index';
|
|
48
48
|
|
|
49
|
-
export interface AttachAttributeProductTypeOperationRequest {
|
|
50
|
-
productType: number;
|
|
51
|
-
attachAttributeProductTypeRequest?: AttachAttributeProductTypeRequest;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
49
|
export interface DestroyProductTypeRequest {
|
|
55
50
|
productType: number;
|
|
56
51
|
}
|
|
57
52
|
|
|
58
|
-
export interface DetachAttributeProductTypeRequest {
|
|
59
|
-
productType: number;
|
|
60
|
-
attribute: number;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
53
|
export interface GetAllProductTypeOperationRequest {
|
|
64
54
|
getAllProductTypeRequest?: GetAllProductTypeRequest;
|
|
65
55
|
}
|
|
@@ -68,6 +58,11 @@ export interface IndexProductTypeOperationRequest {
|
|
|
68
58
|
indexProductTypeRequest?: IndexProductTypeRequest;
|
|
69
59
|
}
|
|
70
60
|
|
|
61
|
+
export interface LinkAttributeProductTypeOperationRequest {
|
|
62
|
+
productType: number;
|
|
63
|
+
linkAttributeProductTypeRequest?: LinkAttributeProductTypeRequest;
|
|
64
|
+
}
|
|
65
|
+
|
|
71
66
|
export interface ShowProductTypeRequest {
|
|
72
67
|
productType: number;
|
|
73
68
|
}
|
|
@@ -76,9 +71,14 @@ export interface StoreProductTypeOperationRequest {
|
|
|
76
71
|
storeProductTypeRequest?: StoreProductTypeRequest;
|
|
77
72
|
}
|
|
78
73
|
|
|
79
|
-
export interface
|
|
74
|
+
export interface UnlinkAttributeProductTypeRequest {
|
|
75
|
+
productType: number;
|
|
76
|
+
attribute: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface UpdateLinkedAttributeProductTypeRequest {
|
|
80
80
|
productType: number;
|
|
81
|
-
|
|
81
|
+
linkAttributeProductTypeRequest?: LinkAttributeProductTypeRequest;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface UpdateProductTypeOperationRequest {
|
|
@@ -91,46 +91,6 @@ export interface UpdateProductTypeOperationRequest {
|
|
|
91
91
|
*/
|
|
92
92
|
export class ProductTypeApi extends runtime.BaseAPI {
|
|
93
93
|
|
|
94
|
-
/**
|
|
95
|
-
* Auto-generated: attachAttributeProductType
|
|
96
|
-
*/
|
|
97
|
-
async attachAttributeProductTypeRaw(requestParameters: AttachAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
98
|
-
if (requestParameters['productType'] == null) {
|
|
99
|
-
throw new runtime.RequiredError(
|
|
100
|
-
'productType',
|
|
101
|
-
'Required parameter "productType" was null or undefined when calling attachAttributeProductType().'
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const queryParameters: any = {};
|
|
106
|
-
|
|
107
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
108
|
-
|
|
109
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
let urlPath = `/admin-api/product-type/{productType}/attach-attribute`;
|
|
113
|
-
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
114
|
-
|
|
115
|
-
const response = await this.request({
|
|
116
|
-
path: urlPath,
|
|
117
|
-
method: 'POST',
|
|
118
|
-
headers: headerParameters,
|
|
119
|
-
query: queryParameters,
|
|
120
|
-
body: AttachAttributeProductTypeRequestToJSON(requestParameters['attachAttributeProductTypeRequest']),
|
|
121
|
-
}, initOverrides);
|
|
122
|
-
|
|
123
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Auto-generated: attachAttributeProductType
|
|
128
|
-
*/
|
|
129
|
-
async attachAttributeProductType(requestParameters: AttachAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
130
|
-
const response = await this.attachAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
131
|
-
return await response.value();
|
|
132
|
-
}
|
|
133
|
-
|
|
134
94
|
/**
|
|
135
95
|
* Auto-generated: destroyProductType
|
|
136
96
|
*/
|
|
@@ -169,54 +129,41 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
169
129
|
}
|
|
170
130
|
|
|
171
131
|
/**
|
|
172
|
-
* Auto-generated:
|
|
132
|
+
* Auto-generated: getAllProductType
|
|
173
133
|
*/
|
|
174
|
-
async
|
|
175
|
-
if (requestParameters['productType'] == null) {
|
|
176
|
-
throw new runtime.RequiredError(
|
|
177
|
-
'productType',
|
|
178
|
-
'Required parameter "productType" was null or undefined when calling detachAttributeProductType().'
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
if (requestParameters['attribute'] == null) {
|
|
183
|
-
throw new runtime.RequiredError(
|
|
184
|
-
'attribute',
|
|
185
|
-
'Required parameter "attribute" was null or undefined when calling detachAttributeProductType().'
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
|
|
134
|
+
async getAllProductTypeRaw(requestParameters: GetAllProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeLiteResourceResponse>> {
|
|
189
135
|
const queryParameters: any = {};
|
|
190
136
|
|
|
191
137
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
192
138
|
|
|
139
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
193
140
|
|
|
194
|
-
|
|
195
|
-
urlPath =
|
|
196
|
-
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
141
|
+
|
|
142
|
+
let urlPath = `/admin-api/product-type/all`;
|
|
197
143
|
|
|
198
144
|
const response = await this.request({
|
|
199
145
|
path: urlPath,
|
|
200
146
|
method: 'POST',
|
|
201
147
|
headers: headerParameters,
|
|
202
148
|
query: queryParameters,
|
|
149
|
+
body: GetAllProductTypeRequestToJSON(requestParameters['getAllProductTypeRequest']),
|
|
203
150
|
}, initOverrides);
|
|
204
151
|
|
|
205
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeLiteResourceResponseFromJSON(jsonValue));
|
|
206
153
|
}
|
|
207
154
|
|
|
208
155
|
/**
|
|
209
|
-
* Auto-generated:
|
|
156
|
+
* Auto-generated: getAllProductType
|
|
210
157
|
*/
|
|
211
|
-
async
|
|
212
|
-
const response = await this.
|
|
158
|
+
async getAllProductType(requestParameters: GetAllProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeLiteResourceResponse> {
|
|
159
|
+
const response = await this.getAllProductTypeRaw(requestParameters, initOverrides);
|
|
213
160
|
return await response.value();
|
|
214
161
|
}
|
|
215
162
|
|
|
216
163
|
/**
|
|
217
|
-
* Auto-generated:
|
|
164
|
+
* Auto-generated: indexProductType
|
|
218
165
|
*/
|
|
219
|
-
async
|
|
166
|
+
async indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeResourceResponse>> {
|
|
220
167
|
const queryParameters: any = {};
|
|
221
168
|
|
|
222
169
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -224,31 +171,38 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
224
171
|
headerParameters['Content-Type'] = 'application/json';
|
|
225
172
|
|
|
226
173
|
|
|
227
|
-
let urlPath = `/admin-api/product-type/
|
|
174
|
+
let urlPath = `/admin-api/product-type/list`;
|
|
228
175
|
|
|
229
176
|
const response = await this.request({
|
|
230
177
|
path: urlPath,
|
|
231
178
|
method: 'POST',
|
|
232
179
|
headers: headerParameters,
|
|
233
180
|
query: queryParameters,
|
|
234
|
-
body:
|
|
181
|
+
body: IndexProductTypeRequestToJSON(requestParameters['indexProductTypeRequest']),
|
|
235
182
|
}, initOverrides);
|
|
236
183
|
|
|
237
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeResourceResponseFromJSON(jsonValue));
|
|
238
185
|
}
|
|
239
186
|
|
|
240
187
|
/**
|
|
241
|
-
* Auto-generated:
|
|
188
|
+
* Auto-generated: indexProductType
|
|
242
189
|
*/
|
|
243
|
-
async
|
|
244
|
-
const response = await this.
|
|
190
|
+
async indexProductType(requestParameters: IndexProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeResourceResponse> {
|
|
191
|
+
const response = await this.indexProductTypeRaw(requestParameters, initOverrides);
|
|
245
192
|
return await response.value();
|
|
246
193
|
}
|
|
247
194
|
|
|
248
195
|
/**
|
|
249
|
-
* Auto-generated:
|
|
196
|
+
* Auto-generated: linkAttributeProductType
|
|
250
197
|
*/
|
|
251
|
-
async
|
|
198
|
+
async linkAttributeProductTypeRaw(requestParameters: LinkAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
199
|
+
if (requestParameters['productType'] == null) {
|
|
200
|
+
throw new runtime.RequiredError(
|
|
201
|
+
'productType',
|
|
202
|
+
'Required parameter "productType" was null or undefined when calling linkAttributeProductType().'
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
252
206
|
const queryParameters: any = {};
|
|
253
207
|
|
|
254
208
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -256,24 +210,25 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
256
210
|
headerParameters['Content-Type'] = 'application/json';
|
|
257
211
|
|
|
258
212
|
|
|
259
|
-
let urlPath = `/admin-api/product-type/
|
|
213
|
+
let urlPath = `/admin-api/product-type/{productType}/link-attribute`;
|
|
214
|
+
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
260
215
|
|
|
261
216
|
const response = await this.request({
|
|
262
217
|
path: urlPath,
|
|
263
218
|
method: 'POST',
|
|
264
219
|
headers: headerParameters,
|
|
265
220
|
query: queryParameters,
|
|
266
|
-
body:
|
|
221
|
+
body: LinkAttributeProductTypeRequestToJSON(requestParameters['linkAttributeProductTypeRequest']),
|
|
267
222
|
}, initOverrides);
|
|
268
223
|
|
|
269
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
270
225
|
}
|
|
271
226
|
|
|
272
227
|
/**
|
|
273
|
-
* Auto-generated:
|
|
228
|
+
* Auto-generated: linkAttributeProductType
|
|
274
229
|
*/
|
|
275
|
-
async
|
|
276
|
-
const response = await this.
|
|
230
|
+
async linkAttributeProductType(requestParameters: LinkAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
231
|
+
const response = await this.linkAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
277
232
|
return await response.value();
|
|
278
233
|
}
|
|
279
234
|
|
|
@@ -347,13 +302,58 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
347
302
|
}
|
|
348
303
|
|
|
349
304
|
/**
|
|
350
|
-
* Auto-generated:
|
|
305
|
+
* Auto-generated: unlinkAttributeProductType
|
|
306
|
+
*/
|
|
307
|
+
async unlinkAttributeProductTypeRaw(requestParameters: UnlinkAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
308
|
+
if (requestParameters['productType'] == null) {
|
|
309
|
+
throw new runtime.RequiredError(
|
|
310
|
+
'productType',
|
|
311
|
+
'Required parameter "productType" was null or undefined when calling unlinkAttributeProductType().'
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if (requestParameters['attribute'] == null) {
|
|
316
|
+
throw new runtime.RequiredError(
|
|
317
|
+
'attribute',
|
|
318
|
+
'Required parameter "attribute" was null or undefined when calling unlinkAttributeProductType().'
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const queryParameters: any = {};
|
|
323
|
+
|
|
324
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
let urlPath = `/admin-api/product-type/{productType}/remove-attribute/{attribute}`;
|
|
328
|
+
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
329
|
+
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
330
|
+
|
|
331
|
+
const response = await this.request({
|
|
332
|
+
path: urlPath,
|
|
333
|
+
method: 'POST',
|
|
334
|
+
headers: headerParameters,
|
|
335
|
+
query: queryParameters,
|
|
336
|
+
}, initOverrides);
|
|
337
|
+
|
|
338
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Auto-generated: unlinkAttributeProductType
|
|
343
|
+
*/
|
|
344
|
+
async unlinkAttributeProductType(requestParameters: UnlinkAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
345
|
+
const response = await this.unlinkAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
346
|
+
return await response.value();
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Auto-generated: updateLinkedAttributeProductType
|
|
351
351
|
*/
|
|
352
|
-
async
|
|
352
|
+
async updateLinkedAttributeProductTypeRaw(requestParameters: UpdateLinkedAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
353
353
|
if (requestParameters['productType'] == null) {
|
|
354
354
|
throw new runtime.RequiredError(
|
|
355
355
|
'productType',
|
|
356
|
-
'Required parameter "productType" was null or undefined when calling
|
|
356
|
+
'Required parameter "productType" was null or undefined when calling updateLinkedAttributeProductType().'
|
|
357
357
|
);
|
|
358
358
|
}
|
|
359
359
|
|
|
@@ -372,17 +372,17 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
372
372
|
method: 'PUT',
|
|
373
373
|
headers: headerParameters,
|
|
374
374
|
query: queryParameters,
|
|
375
|
-
body:
|
|
375
|
+
body: LinkAttributeProductTypeRequestToJSON(requestParameters['linkAttributeProductTypeRequest']),
|
|
376
376
|
}, initOverrides);
|
|
377
377
|
|
|
378
378
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
|
-
* Auto-generated:
|
|
382
|
+
* Auto-generated: updateLinkedAttributeProductType
|
|
383
383
|
*/
|
|
384
|
-
async
|
|
385
|
-
const response = await this.
|
|
384
|
+
async updateLinkedAttributeProductType(requestParameters: UpdateLinkedAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
385
|
+
const response = await this.updateLinkedAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
386
386
|
return await response.value();
|
|
387
387
|
}
|
|
388
388
|
|
package/src/apis/SiteApi.ts
CHANGED
|
@@ -18,8 +18,8 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
IndexSiteNotificationRequest,
|
|
20
20
|
IndexSiteRequest,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
PaginatedSiteNotificationResourceResponse,
|
|
22
|
+
PaginatedSiteResourceResponse,
|
|
23
23
|
SiteLiteResourceArrayResponse,
|
|
24
24
|
SiteNotificationResource,
|
|
25
25
|
SiteResource,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
IndexSiteNotificationRequestToJSON,
|
|
35
35
|
IndexSiteRequestFromJSON,
|
|
36
36
|
IndexSiteRequestToJSON,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
PaginatedSiteNotificationResourceResponseFromJSON,
|
|
38
|
+
PaginatedSiteNotificationResourceResponseToJSON,
|
|
39
|
+
PaginatedSiteResourceResponseFromJSON,
|
|
40
|
+
PaginatedSiteResourceResponseToJSON,
|
|
41
41
|
SiteLiteResourceArrayResponseFromJSON,
|
|
42
42
|
SiteLiteResourceArrayResponseToJSON,
|
|
43
43
|
SiteNotificationResourceFromJSON,
|
|
@@ -163,7 +163,7 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
163
163
|
/**
|
|
164
164
|
* Auto-generated: indexSite
|
|
165
165
|
*/
|
|
166
|
-
async indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
166
|
+
async indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteResourceResponse>> {
|
|
167
167
|
const queryParameters: any = {};
|
|
168
168
|
|
|
169
169
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -181,13 +181,13 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
181
181
|
body: IndexSiteRequestToJSON(requestParameters['indexSiteRequest']),
|
|
182
182
|
}, initOverrides);
|
|
183
183
|
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteResourceResponseFromJSON(jsonValue));
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Auto-generated: indexSite
|
|
189
189
|
*/
|
|
190
|
-
async indexSite(requestParameters: IndexSiteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
190
|
+
async indexSite(requestParameters: IndexSiteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteResourceResponse> {
|
|
191
191
|
const response = await this.indexSiteRaw(requestParameters, initOverrides);
|
|
192
192
|
return await response.value();
|
|
193
193
|
}
|
|
@@ -195,7 +195,7 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
195
195
|
/**
|
|
196
196
|
* Auto-generated: indexSiteNotification
|
|
197
197
|
*/
|
|
198
|
-
async indexSiteNotificationRaw(requestParameters: IndexSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
198
|
+
async indexSiteNotificationRaw(requestParameters: IndexSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteNotificationResourceResponse>> {
|
|
199
199
|
const queryParameters: any = {};
|
|
200
200
|
|
|
201
201
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -213,13 +213,13 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
213
213
|
body: IndexSiteNotificationRequestToJSON(requestParameters['indexSiteNotificationRequest']),
|
|
214
214
|
}, initOverrides);
|
|
215
215
|
|
|
216
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
216
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteNotificationResourceResponseFromJSON(jsonValue));
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* Auto-generated: indexSiteNotification
|
|
221
221
|
*/
|
|
222
|
-
async indexSiteNotification(requestParameters: IndexSiteNotificationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
222
|
+
async indexSiteNotification(requestParameters: IndexSiteNotificationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteNotificationResourceResponse> {
|
|
223
223
|
const response = await this.indexSiteNotificationRaw(requestParameters, initOverrides);
|
|
224
224
|
return await response.value();
|
|
225
225
|
}
|
package/src/apis/SupplierApi.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
GetAllSupplierRequest,
|
|
20
20
|
IndexSupplierRequest,
|
|
21
|
-
|
|
21
|
+
PaginatedSupplierResourceResponse,
|
|
22
22
|
StoreSupplierRequest,
|
|
23
23
|
SupplierLiteResourceArrayResponse,
|
|
24
24
|
SupplierResource,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
GetAllSupplierRequestToJSON,
|
|
32
32
|
IndexSupplierRequestFromJSON,
|
|
33
33
|
IndexSupplierRequestToJSON,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
PaginatedSupplierResourceResponseFromJSON,
|
|
35
|
+
PaginatedSupplierResourceResponseToJSON,
|
|
36
36
|
StoreSupplierRequestFromJSON,
|
|
37
37
|
StoreSupplierRequestToJSON,
|
|
38
38
|
SupplierLiteResourceArrayResponseFromJSON,
|
|
@@ -242,7 +242,7 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
242
242
|
/**
|
|
243
243
|
* Auto-generated: indexSupplier
|
|
244
244
|
*/
|
|
245
|
-
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
245
|
+
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierResourceResponse>> {
|
|
246
246
|
const queryParameters: any = {};
|
|
247
247
|
|
|
248
248
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -260,13 +260,13 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
260
260
|
body: IndexSupplierRequestToJSON(requestParameters['indexSupplierRequest']),
|
|
261
261
|
}, initOverrides);
|
|
262
262
|
|
|
263
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
263
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupplierResourceResponseFromJSON(jsonValue));
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* Auto-generated: indexSupplier
|
|
268
268
|
*/
|
|
269
|
-
async indexSupplier(requestParameters: IndexSupplierOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
269
|
+
async indexSupplier(requestParameters: IndexSupplierOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierResourceResponse> {
|
|
270
270
|
const response = await this.indexSupplierRaw(requestParameters, initOverrides);
|
|
271
271
|
return await response.value();
|
|
272
272
|
}
|