@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
|
@@ -15,29 +15,29 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AttachAttributeProductTypeRequest,
|
|
18
19
|
GenericResponse,
|
|
19
20
|
GetAllProductTypeRequest,
|
|
20
21
|
IndexProductTypeRequest,
|
|
21
|
-
|
|
22
|
+
PaginatedProductTypeListResourceResponse,
|
|
22
23
|
PaginatedProductTypeLiteResourceResponse,
|
|
23
|
-
PaginatedProductTypeResourceResponse,
|
|
24
24
|
ProductTypeResource,
|
|
25
25
|
StoreProductTypeRequest,
|
|
26
26
|
UpdateProductTypeRequest,
|
|
27
27
|
} from '../models/index';
|
|
28
28
|
import {
|
|
29
|
+
AttachAttributeProductTypeRequestFromJSON,
|
|
30
|
+
AttachAttributeProductTypeRequestToJSON,
|
|
29
31
|
GenericResponseFromJSON,
|
|
30
32
|
GenericResponseToJSON,
|
|
31
33
|
GetAllProductTypeRequestFromJSON,
|
|
32
34
|
GetAllProductTypeRequestToJSON,
|
|
33
35
|
IndexProductTypeRequestFromJSON,
|
|
34
36
|
IndexProductTypeRequestToJSON,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
PaginatedProductTypeListResourceResponseFromJSON,
|
|
38
|
+
PaginatedProductTypeListResourceResponseToJSON,
|
|
37
39
|
PaginatedProductTypeLiteResourceResponseFromJSON,
|
|
38
40
|
PaginatedProductTypeLiteResourceResponseToJSON,
|
|
39
|
-
PaginatedProductTypeResourceResponseFromJSON,
|
|
40
|
-
PaginatedProductTypeResourceResponseToJSON,
|
|
41
41
|
ProductTypeResourceFromJSON,
|
|
42
42
|
ProductTypeResourceToJSON,
|
|
43
43
|
StoreProductTypeRequestFromJSON,
|
|
@@ -46,10 +46,20 @@ import {
|
|
|
46
46
|
UpdateProductTypeRequestToJSON,
|
|
47
47
|
} from '../models/index';
|
|
48
48
|
|
|
49
|
+
export interface AttachAttributeProductTypeOperationRequest {
|
|
50
|
+
productType: number;
|
|
51
|
+
attachAttributeProductTypeRequest?: AttachAttributeProductTypeRequest;
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
export interface DestroyProductTypeRequest {
|
|
50
55
|
productType: number;
|
|
51
56
|
}
|
|
52
57
|
|
|
58
|
+
export interface DetachAttributeProductTypeRequest {
|
|
59
|
+
productType: number;
|
|
60
|
+
attribute: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
export interface GetAllProductTypeOperationRequest {
|
|
54
64
|
getAllProductTypeRequest?: GetAllProductTypeRequest;
|
|
55
65
|
}
|
|
@@ -58,11 +68,6 @@ export interface IndexProductTypeOperationRequest {
|
|
|
58
68
|
indexProductTypeRequest?: IndexProductTypeRequest;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
export interface LinkAttributeProductTypeOperationRequest {
|
|
62
|
-
productType: number;
|
|
63
|
-
linkAttributeProductTypeRequest?: LinkAttributeProductTypeRequest;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
71
|
export interface ShowProductTypeRequest {
|
|
67
72
|
productType: number;
|
|
68
73
|
}
|
|
@@ -71,14 +76,9 @@ export interface StoreProductTypeOperationRequest {
|
|
|
71
76
|
storeProductTypeRequest?: StoreProductTypeRequest;
|
|
72
77
|
}
|
|
73
78
|
|
|
74
|
-
export interface
|
|
75
|
-
productType: number;
|
|
76
|
-
attribute: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface UpdateLinkedAttributeProductTypeRequest {
|
|
79
|
+
export interface UpdateAttachedAttributeProductTypeRequest {
|
|
80
80
|
productType: number;
|
|
81
|
-
|
|
81
|
+
attachAttributeProductTypeRequest?: AttachAttributeProductTypeRequest;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface UpdateProductTypeOperationRequest {
|
|
@@ -91,6 +91,46 @@ 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
|
+
|
|
94
134
|
/**
|
|
95
135
|
* Auto-generated: destroyProductType
|
|
96
136
|
*/
|
|
@@ -129,41 +169,54 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
129
169
|
}
|
|
130
170
|
|
|
131
171
|
/**
|
|
132
|
-
* Auto-generated:
|
|
172
|
+
* Auto-generated: detachAttributeProductType
|
|
133
173
|
*/
|
|
134
|
-
async
|
|
174
|
+
async detachAttributeProductTypeRaw(requestParameters: DetachAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
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
|
+
|
|
135
189
|
const queryParameters: any = {};
|
|
136
190
|
|
|
137
191
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
138
192
|
|
|
139
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
140
|
-
|
|
141
193
|
|
|
142
|
-
let urlPath = `/admin-api/product-type/
|
|
194
|
+
let urlPath = `/admin-api/product-type/{productType}/detach-attribute/{attribute}`;
|
|
195
|
+
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
196
|
+
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
143
197
|
|
|
144
198
|
const response = await this.request({
|
|
145
199
|
path: urlPath,
|
|
146
200
|
method: 'POST',
|
|
147
201
|
headers: headerParameters,
|
|
148
202
|
query: queryParameters,
|
|
149
|
-
body: GetAllProductTypeRequestToJSON(requestParameters['getAllProductTypeRequest']),
|
|
150
203
|
}, initOverrides);
|
|
151
204
|
|
|
152
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
153
206
|
}
|
|
154
207
|
|
|
155
208
|
/**
|
|
156
|
-
* Auto-generated:
|
|
209
|
+
* Auto-generated: detachAttributeProductType
|
|
157
210
|
*/
|
|
158
|
-
async
|
|
159
|
-
const response = await this.
|
|
211
|
+
async detachAttributeProductType(requestParameters: DetachAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
212
|
+
const response = await this.detachAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
160
213
|
return await response.value();
|
|
161
214
|
}
|
|
162
215
|
|
|
163
216
|
/**
|
|
164
|
-
* Auto-generated:
|
|
217
|
+
* Auto-generated: getAllProductType
|
|
165
218
|
*/
|
|
166
|
-
async
|
|
219
|
+
async getAllProductTypeRaw(requestParameters: GetAllProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeLiteResourceResponse>> {
|
|
167
220
|
const queryParameters: any = {};
|
|
168
221
|
|
|
169
222
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -171,38 +224,31 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
171
224
|
headerParameters['Content-Type'] = 'application/json';
|
|
172
225
|
|
|
173
226
|
|
|
174
|
-
let urlPath = `/admin-api/product-type/
|
|
227
|
+
let urlPath = `/admin-api/product-type/all`;
|
|
175
228
|
|
|
176
229
|
const response = await this.request({
|
|
177
230
|
path: urlPath,
|
|
178
231
|
method: 'POST',
|
|
179
232
|
headers: headerParameters,
|
|
180
233
|
query: queryParameters,
|
|
181
|
-
body:
|
|
234
|
+
body: GetAllProductTypeRequestToJSON(requestParameters['getAllProductTypeRequest']),
|
|
182
235
|
}, initOverrides);
|
|
183
236
|
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeLiteResourceResponseFromJSON(jsonValue));
|
|
185
238
|
}
|
|
186
239
|
|
|
187
240
|
/**
|
|
188
|
-
* Auto-generated:
|
|
241
|
+
* Auto-generated: getAllProductType
|
|
189
242
|
*/
|
|
190
|
-
async
|
|
191
|
-
const response = await this.
|
|
243
|
+
async getAllProductType(requestParameters: GetAllProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeLiteResourceResponse> {
|
|
244
|
+
const response = await this.getAllProductTypeRaw(requestParameters, initOverrides);
|
|
192
245
|
return await response.value();
|
|
193
246
|
}
|
|
194
247
|
|
|
195
248
|
/**
|
|
196
|
-
* Auto-generated:
|
|
249
|
+
* Auto-generated: indexProductType
|
|
197
250
|
*/
|
|
198
|
-
async
|
|
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
|
-
|
|
251
|
+
async indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeListResourceResponse>> {
|
|
206
252
|
const queryParameters: any = {};
|
|
207
253
|
|
|
208
254
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -210,25 +256,24 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
210
256
|
headerParameters['Content-Type'] = 'application/json';
|
|
211
257
|
|
|
212
258
|
|
|
213
|
-
let urlPath = `/admin-api/product-type/
|
|
214
|
-
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
259
|
+
let urlPath = `/admin-api/product-type/list`;
|
|
215
260
|
|
|
216
261
|
const response = await this.request({
|
|
217
262
|
path: urlPath,
|
|
218
263
|
method: 'POST',
|
|
219
264
|
headers: headerParameters,
|
|
220
265
|
query: queryParameters,
|
|
221
|
-
body:
|
|
266
|
+
body: IndexProductTypeRequestToJSON(requestParameters['indexProductTypeRequest']),
|
|
222
267
|
}, initOverrides);
|
|
223
268
|
|
|
224
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeListResourceResponseFromJSON(jsonValue));
|
|
225
270
|
}
|
|
226
271
|
|
|
227
272
|
/**
|
|
228
|
-
* Auto-generated:
|
|
273
|
+
* Auto-generated: indexProductType
|
|
229
274
|
*/
|
|
230
|
-
async
|
|
231
|
-
const response = await this.
|
|
275
|
+
async indexProductType(requestParameters: IndexProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeListResourceResponse> {
|
|
276
|
+
const response = await this.indexProductTypeRaw(requestParameters, initOverrides);
|
|
232
277
|
return await response.value();
|
|
233
278
|
}
|
|
234
279
|
|
|
@@ -302,58 +347,13 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
302
347
|
}
|
|
303
348
|
|
|
304
349
|
/**
|
|
305
|
-
* Auto-generated:
|
|
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
|
|
350
|
+
* Auto-generated: updateAttachedAttributeProductType
|
|
351
351
|
*/
|
|
352
|
-
async
|
|
352
|
+
async updateAttachedAttributeProductTypeRaw(requestParameters: UpdateAttachedAttributeProductTypeRequest, 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 updateAttachedAttributeProductType().'
|
|
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: AttachAttributeProductTypeRequestToJSON(requestParameters['attachAttributeProductTypeRequest']),
|
|
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: updateAttachedAttributeProductType
|
|
383
383
|
*/
|
|
384
|
-
async
|
|
385
|
-
const response = await this.
|
|
384
|
+
async updateAttachedAttributeProductType(requestParameters: UpdateAttachedAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
385
|
+
const response = await this.updateAttachedAttributeProductTypeRaw(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
|
+
PaginatedSiteListResourceResponse,
|
|
22
|
+
PaginatedSiteNotificationListResourceResponse,
|
|
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
|
+
PaginatedSiteListResourceResponseFromJSON,
|
|
38
|
+
PaginatedSiteListResourceResponseToJSON,
|
|
39
|
+
PaginatedSiteNotificationListResourceResponseFromJSON,
|
|
40
|
+
PaginatedSiteNotificationListResourceResponseToJSON,
|
|
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<PaginatedSiteListResourceResponse>> {
|
|
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) => PaginatedSiteListResourceResponseFromJSON(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<PaginatedSiteListResourceResponse> {
|
|
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<PaginatedSiteNotificationListResourceResponse>> {
|
|
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) => PaginatedSiteNotificationListResourceResponseFromJSON(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<PaginatedSiteNotificationListResourceResponse> {
|
|
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
|
+
PaginatedSupplierListResourceResponse,
|
|
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
|
+
PaginatedSupplierListResourceResponseFromJSON,
|
|
35
|
+
PaginatedSupplierListResourceResponseToJSON,
|
|
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<PaginatedSupplierListResourceResponse>> {
|
|
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) => PaginatedSupplierListResourceResponseFromJSON(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<PaginatedSupplierListResourceResponse> {
|
|
270
270
|
const response = await this.indexSupplierRaw(requestParameters, initOverrides);
|
|
271
271
|
return await response.value();
|
|
272
272
|
}
|