@digital8/lighting-illusions-ts-sdk 0.0.979 → 0.0.981
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/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/AssetApi.d.ts +16 -0
- package/dist/apis/AssetApi.js +110 -58
- package/dist/apis/AttributeApi.d.ts +60 -0
- package/dist/apis/AttributeApi.js +424 -229
- package/dist/apis/DefinitionApi.d.ts +24 -0
- package/dist/apis/DefinitionApi.js +164 -86
- package/dist/apis/DocumentApi.d.ts +36 -0
- package/dist/apis/DocumentApi.js +250 -133
- package/dist/apis/ExternalApiLogApi.d.ts +4 -0
- package/dist/apis/ExternalApiLogApi.js +26 -13
- package/dist/apis/GoogleCategoryApi.d.ts +4 -0
- package/dist/apis/GoogleCategoryApi.js +26 -13
- package/dist/apis/OverlayTemplateApi.d.ts +48 -0
- package/dist/apis/OverlayTemplateApi.js +340 -184
- package/dist/apis/ProductApi.d.ts +84 -0
- package/dist/apis/ProductApi.js +600 -327
- package/dist/apis/ProductCategoryApi.d.ts +52 -0
- package/dist/apis/ProductCategoryApi.js +364 -195
- package/dist/apis/ProductTypeApi.d.ts +36 -0
- package/dist/apis/ProductTypeApi.js +256 -139
- package/dist/apis/SiteApi.d.ts +32 -0
- package/dist/apis/SiteApi.js +220 -116
- package/dist/apis/SupplierApi.d.ts +32 -0
- package/dist/apis/SupplierApi.js +234 -130
- package/dist/apis/TagApi.d.ts +32 -0
- package/dist/apis/TagApi.js +226 -122
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +1 -1
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +1 -1
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +1 -1
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
- package/dist/models/GetAllAttributeRequest.d.ts +3 -3
- package/dist/models/GetAllDefinitionRequest.d.ts +2 -2
- package/dist/models/GetAllDocumentRequest.d.ts +3 -3
- package/dist/models/GetAllGoogleCategoryRequest.d.ts +2 -2
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +3 -3
- package/dist/models/GetAllProductCategoryRequest.d.ts +3 -3
- package/dist/models/GetAllProductChildRequest.d.ts +3 -3
- package/dist/models/GetAllProductRequest.d.ts +3 -3
- package/dist/models/GetAllProductTypeRequest.d.ts +3 -3
- package/dist/models/GetAllSupplierRequest.d.ts +3 -3
- package/dist/models/IndexAttributeRequest.d.ts +3 -3
- package/dist/models/IndexAttributeValueRequest.d.ts +3 -3
- package/dist/models/IndexDefinitionRequest.d.ts +2 -2
- package/dist/models/IndexDocumentRequest.d.ts +3 -3
- package/dist/models/IndexExternalApiLogRequest.d.ts +2 -2
- package/dist/models/IndexOverlayTemplateRequest.d.ts +3 -3
- package/dist/models/IndexProductCategoryRequest.d.ts +3 -3
- package/dist/models/IndexProductChildRequest.d.ts +3 -3
- package/dist/models/IndexProductRequest.d.ts +3 -3
- package/dist/models/IndexProductTypeRequest.d.ts +3 -3
- package/dist/models/IndexSiteNotificationRequest.d.ts +2 -2
- package/dist/models/IndexSiteRequest.d.ts +2 -2
- package/dist/models/IndexSupplierRequest.d.ts +3 -3
- package/dist/models/IndexTagRequest.d.ts +3 -3
- package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +1 -1
- package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
- package/dist/models/StoreAttributeRequest.d.ts +1 -1
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
- package/dist/models/StoreTagRequest.d.ts +1 -1
- package/dist/models/UpdateAttributeRequest.d.ts +1 -1
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/UpdateProductCategoryRequest.d.ts +1 -1
- package/dist/models/UpdateSiteRequest.d.ts +1 -1
- package/dist/models/UpdateTagRequest.d.ts +1 -1
- package/package.json +1 -1
- package/src/apis/AssetApi.ts +48 -16
- package/src/apis/AttributeApi.ts +180 -60
- package/src/apis/DefinitionApi.ts +72 -24
- package/src/apis/DocumentApi.ts +108 -36
- package/src/apis/ExternalApiLogApi.ts +12 -4
- package/src/apis/GoogleCategoryApi.ts +12 -4
- package/src/apis/OverlayTemplateApi.ts +144 -48
- package/src/apis/ProductApi.ts +252 -84
- package/src/apis/ProductCategoryApi.ts +156 -52
- package/src/apis/ProductTypeApi.ts +108 -36
- package/src/apis/SiteApi.ts +96 -32
- package/src/apis/SupplierApi.ts +96 -32
- package/src/apis/TagApi.ts +96 -32
- package/src/models/AttachAttributeProductTypeRequest.ts +1 -1
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
- package/src/models/AttachProductTypeAttributeRequest.ts +1 -1
- package/src/models/DetachAssetableOverlayTemplateRequest.ts +1 -1
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
- package/src/models/GetAllAttributeRequest.ts +3 -3
- package/src/models/GetAllDefinitionRequest.ts +2 -2
- package/src/models/GetAllDocumentRequest.ts +3 -3
- package/src/models/GetAllGoogleCategoryRequest.ts +2 -2
- package/src/models/GetAllOverlayTemplateRequest.ts +3 -3
- package/src/models/GetAllProductCategoryRequest.ts +3 -3
- package/src/models/GetAllProductChildRequest.ts +3 -3
- package/src/models/GetAllProductRequest.ts +3 -3
- package/src/models/GetAllProductTypeRequest.ts +3 -3
- package/src/models/GetAllSupplierRequest.ts +3 -3
- package/src/models/IndexAttributeRequest.ts +3 -3
- package/src/models/IndexAttributeValueRequest.ts +3 -3
- package/src/models/IndexDefinitionRequest.ts +2 -2
- package/src/models/IndexDocumentRequest.ts +3 -3
- package/src/models/IndexExternalApiLogRequest.ts +2 -2
- package/src/models/IndexOverlayTemplateRequest.ts +3 -3
- package/src/models/IndexProductCategoryRequest.ts +3 -3
- package/src/models/IndexProductChildRequest.ts +3 -3
- package/src/models/IndexProductRequest.ts +3 -3
- package/src/models/IndexProductTypeRequest.ts +3 -3
- package/src/models/IndexSiteNotificationRequest.ts +2 -2
- package/src/models/IndexSiteRequest.ts +2 -2
- package/src/models/IndexSupplierRequest.ts +3 -3
- package/src/models/IndexTagRequest.ts +3 -3
- package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +1 -1
- package/src/models/StoreAssetForAssetableRequest.ts +1 -1
- package/src/models/StoreAttributeRequest.ts +1 -1
- package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
- package/src/models/StoreTagRequest.ts +1 -1
- package/src/models/UpdateAttributeRequest.ts +1 -1
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/UpdateProductCategoryRequest.ts +1 -1
- package/src/models/UpdateSiteRequest.ts +1 -1
- package/src/models/UpdateTagRequest.ts +1 -1
|
@@ -46,6 +46,10 @@ export interface UpdateProductTypeOperationRequest {
|
|
|
46
46
|
*
|
|
47
47
|
*/
|
|
48
48
|
export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for attachAttributeProductType without sending the request
|
|
51
|
+
*/
|
|
52
|
+
attachAttributeProductTypeRequestOpts(requestParameters: AttachAttributeProductTypeOperationRequest): Promise<runtime.RequestOpts>;
|
|
49
53
|
/**
|
|
50
54
|
* Auto-generated: attachAttributeProductType
|
|
51
55
|
*/
|
|
@@ -54,6 +58,10 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
|
54
58
|
* Auto-generated: attachAttributeProductType
|
|
55
59
|
*/
|
|
56
60
|
attachAttributeProductType(requestParameters: AttachAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for destroyProductType without sending the request
|
|
63
|
+
*/
|
|
64
|
+
destroyProductTypeRequestOpts(requestParameters: DestroyProductTypeRequest): Promise<runtime.RequestOpts>;
|
|
57
65
|
/**
|
|
58
66
|
* Auto-generated: destroyProductType
|
|
59
67
|
*/
|
|
@@ -62,6 +70,10 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
|
62
70
|
* Auto-generated: destroyProductType
|
|
63
71
|
*/
|
|
64
72
|
destroyProductType(requestParameters: DestroyProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Creates request options for detachAttributeProductType without sending the request
|
|
75
|
+
*/
|
|
76
|
+
detachAttributeProductTypeRequestOpts(requestParameters: DetachAttributeProductTypeRequest): Promise<runtime.RequestOpts>;
|
|
65
77
|
/**
|
|
66
78
|
* Auto-generated: detachAttributeProductType
|
|
67
79
|
*/
|
|
@@ -70,6 +82,10 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
|
70
82
|
* Auto-generated: detachAttributeProductType
|
|
71
83
|
*/
|
|
72
84
|
detachAttributeProductType(requestParameters: DetachAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource>;
|
|
85
|
+
/**
|
|
86
|
+
* Creates request options for getAllProductType without sending the request
|
|
87
|
+
*/
|
|
88
|
+
getAllProductTypeRequestOpts(requestParameters: GetAllProductTypeOperationRequest): Promise<runtime.RequestOpts>;
|
|
73
89
|
/**
|
|
74
90
|
* Auto-generated: getAllProductType
|
|
75
91
|
*/
|
|
@@ -78,6 +94,10 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
|
78
94
|
* Auto-generated: getAllProductType
|
|
79
95
|
*/
|
|
80
96
|
getAllProductType(requestParameters?: GetAllProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeLiteResourceResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* Creates request options for indexProductType without sending the request
|
|
99
|
+
*/
|
|
100
|
+
indexProductTypeRequestOpts(requestParameters: IndexProductTypeOperationRequest): Promise<runtime.RequestOpts>;
|
|
81
101
|
/**
|
|
82
102
|
* Auto-generated: indexProductType
|
|
83
103
|
*/
|
|
@@ -86,6 +106,10 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
|
86
106
|
* Auto-generated: indexProductType
|
|
87
107
|
*/
|
|
88
108
|
indexProductType(requestParameters?: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeListResourceResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Creates request options for showProductType without sending the request
|
|
111
|
+
*/
|
|
112
|
+
showProductTypeRequestOpts(requestParameters: ShowProductTypeRequest): Promise<runtime.RequestOpts>;
|
|
89
113
|
/**
|
|
90
114
|
* Auto-generated: showProductType
|
|
91
115
|
*/
|
|
@@ -94,6 +118,10 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
|
94
118
|
* Auto-generated: showProductType
|
|
95
119
|
*/
|
|
96
120
|
showProductType(requestParameters: ShowProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource>;
|
|
121
|
+
/**
|
|
122
|
+
* Creates request options for storeProductType without sending the request
|
|
123
|
+
*/
|
|
124
|
+
storeProductTypeRequestOpts(requestParameters: StoreProductTypeOperationRequest): Promise<runtime.RequestOpts>;
|
|
97
125
|
/**
|
|
98
126
|
* Auto-generated: storeProductType
|
|
99
127
|
*/
|
|
@@ -102,6 +130,10 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
|
102
130
|
* Auto-generated: storeProductType
|
|
103
131
|
*/
|
|
104
132
|
storeProductType(requestParameters?: StoreProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource>;
|
|
133
|
+
/**
|
|
134
|
+
* Creates request options for updateAttachedAttributeProductType without sending the request
|
|
135
|
+
*/
|
|
136
|
+
updateAttachedAttributeProductTypeRequestOpts(requestParameters: UpdateAttachedAttributeProductTypeRequest): Promise<runtime.RequestOpts>;
|
|
105
137
|
/**
|
|
106
138
|
* Auto-generated: updateAttachedAttributeProductType
|
|
107
139
|
*/
|
|
@@ -110,6 +142,10 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
|
|
|
110
142
|
* Auto-generated: updateAttachedAttributeProductType
|
|
111
143
|
*/
|
|
112
144
|
updateAttachedAttributeProductType(requestParameters: UpdateAttachedAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource>;
|
|
145
|
+
/**
|
|
146
|
+
* Creates request options for updateProductType without sending the request
|
|
147
|
+
*/
|
|
148
|
+
updateProductTypeRequestOpts(requestParameters: UpdateProductTypeOperationRequest): Promise<runtime.RequestOpts>;
|
|
113
149
|
/**
|
|
114
150
|
* Auto-generated: updateProductType
|
|
115
151
|
*/
|
|
@@ -75,31 +75,44 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ProductTypeApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for attachAttributeProductType without sending the request
|
|
80
|
+
*/
|
|
81
|
+
ProductTypeApi.prototype.attachAttributeProductTypeRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
if (requestParameters['productType'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling attachAttributeProductType().');
|
|
87
|
+
}
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
+
urlPath = "/admin-api/product-type/{productType}/attach-attribute";
|
|
92
|
+
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
93
|
+
return [2 /*return*/, {
|
|
94
|
+
path: urlPath,
|
|
95
|
+
method: 'POST',
|
|
96
|
+
headers: headerParameters,
|
|
97
|
+
query: queryParameters,
|
|
98
|
+
body: (0, index_1.AttachAttributeProductTypeRequestToJSON)(requestParameters['attachAttributeProductTypeRequest']),
|
|
99
|
+
}];
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|
|
78
103
|
/**
|
|
79
104
|
* Auto-generated: attachAttributeProductType
|
|
80
105
|
*/
|
|
81
106
|
ProductTypeApi.prototype.attachAttributeProductTypeRaw = function (requestParameters, initOverrides) {
|
|
82
107
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var
|
|
108
|
+
var requestOptions, response;
|
|
84
109
|
return __generator(this, function (_a) {
|
|
85
110
|
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters['productType'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling attachAttributeProductType().');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
urlPath = "/admin-api/product-type/{productType}/attach-attribute";
|
|
94
|
-
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
95
|
-
return [4 /*yield*/, this.request({
|
|
96
|
-
path: urlPath,
|
|
97
|
-
method: 'POST',
|
|
98
|
-
headers: headerParameters,
|
|
99
|
-
query: queryParameters,
|
|
100
|
-
body: (0, index_1.AttachAttributeProductTypeRequestToJSON)(requestParameters['attachAttributeProductTypeRequest']),
|
|
101
|
-
}, initOverrides)];
|
|
111
|
+
case 0: return [4 /*yield*/, this.attachAttributeProductTypeRequestOpts(requestParameters)];
|
|
102
112
|
case 1:
|
|
113
|
+
requestOptions = _a.sent();
|
|
114
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
115
|
+
case 2:
|
|
103
116
|
response = _a.sent();
|
|
104
117
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductTypeResourceFromJSON)(jsonValue); })];
|
|
105
118
|
}
|
|
@@ -123,29 +136,42 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
123
136
|
});
|
|
124
137
|
});
|
|
125
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Creates request options for destroyProductType without sending the request
|
|
141
|
+
*/
|
|
142
|
+
ProductTypeApi.prototype.destroyProductTypeRequestOpts = function (requestParameters) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
144
|
+
var queryParameters, headerParameters, urlPath;
|
|
145
|
+
return __generator(this, function (_a) {
|
|
146
|
+
if (requestParameters['productType'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling destroyProductType().');
|
|
148
|
+
}
|
|
149
|
+
queryParameters = {};
|
|
150
|
+
headerParameters = {};
|
|
151
|
+
urlPath = "/admin-api/product-type/{productType}/delete";
|
|
152
|
+
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
153
|
+
return [2 /*return*/, {
|
|
154
|
+
path: urlPath,
|
|
155
|
+
method: 'DELETE',
|
|
156
|
+
headers: headerParameters,
|
|
157
|
+
query: queryParameters,
|
|
158
|
+
}];
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
};
|
|
126
162
|
/**
|
|
127
163
|
* Auto-generated: destroyProductType
|
|
128
164
|
*/
|
|
129
165
|
ProductTypeApi.prototype.destroyProductTypeRaw = function (requestParameters, initOverrides) {
|
|
130
166
|
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
-
var
|
|
167
|
+
var requestOptions, response;
|
|
132
168
|
return __generator(this, function (_a) {
|
|
133
169
|
switch (_a.label) {
|
|
134
|
-
case 0:
|
|
135
|
-
if (requestParameters['productType'] == null) {
|
|
136
|
-
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling destroyProductType().');
|
|
137
|
-
}
|
|
138
|
-
queryParameters = {};
|
|
139
|
-
headerParameters = {};
|
|
140
|
-
urlPath = "/admin-api/product-type/{productType}/delete";
|
|
141
|
-
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
142
|
-
return [4 /*yield*/, this.request({
|
|
143
|
-
path: urlPath,
|
|
144
|
-
method: 'DELETE',
|
|
145
|
-
headers: headerParameters,
|
|
146
|
-
query: queryParameters,
|
|
147
|
-
}, initOverrides)];
|
|
170
|
+
case 0: return [4 /*yield*/, this.destroyProductTypeRequestOpts(requestParameters)];
|
|
148
171
|
case 1:
|
|
172
|
+
requestOptions = _a.sent();
|
|
173
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
174
|
+
case 2:
|
|
149
175
|
response = _a.sent();
|
|
150
176
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
151
177
|
}
|
|
@@ -169,33 +195,46 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
169
195
|
});
|
|
170
196
|
});
|
|
171
197
|
};
|
|
198
|
+
/**
|
|
199
|
+
* Creates request options for detachAttributeProductType without sending the request
|
|
200
|
+
*/
|
|
201
|
+
ProductTypeApi.prototype.detachAttributeProductTypeRequestOpts = function (requestParameters) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
203
|
+
var queryParameters, headerParameters, urlPath;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
if (requestParameters['productType'] == null) {
|
|
206
|
+
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling detachAttributeProductType().');
|
|
207
|
+
}
|
|
208
|
+
if (requestParameters['attribute'] == null) {
|
|
209
|
+
throw new runtime.RequiredError('attribute', 'Required parameter "attribute" was null or undefined when calling detachAttributeProductType().');
|
|
210
|
+
}
|
|
211
|
+
queryParameters = {};
|
|
212
|
+
headerParameters = {};
|
|
213
|
+
urlPath = "/admin-api/product-type/{productType}/detach-attribute/{attribute}";
|
|
214
|
+
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
215
|
+
urlPath = urlPath.replace("{".concat("attribute", "}"), encodeURIComponent(String(requestParameters['attribute'])));
|
|
216
|
+
return [2 /*return*/, {
|
|
217
|
+
path: urlPath,
|
|
218
|
+
method: 'POST',
|
|
219
|
+
headers: headerParameters,
|
|
220
|
+
query: queryParameters,
|
|
221
|
+
}];
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
172
225
|
/**
|
|
173
226
|
* Auto-generated: detachAttributeProductType
|
|
174
227
|
*/
|
|
175
228
|
ProductTypeApi.prototype.detachAttributeProductTypeRaw = function (requestParameters, initOverrides) {
|
|
176
229
|
return __awaiter(this, void 0, void 0, function () {
|
|
177
|
-
var
|
|
230
|
+
var requestOptions, response;
|
|
178
231
|
return __generator(this, function (_a) {
|
|
179
232
|
switch (_a.label) {
|
|
180
|
-
case 0:
|
|
181
|
-
if (requestParameters['productType'] == null) {
|
|
182
|
-
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling detachAttributeProductType().');
|
|
183
|
-
}
|
|
184
|
-
if (requestParameters['attribute'] == null) {
|
|
185
|
-
throw new runtime.RequiredError('attribute', 'Required parameter "attribute" was null or undefined when calling detachAttributeProductType().');
|
|
186
|
-
}
|
|
187
|
-
queryParameters = {};
|
|
188
|
-
headerParameters = {};
|
|
189
|
-
urlPath = "/admin-api/product-type/{productType}/detach-attribute/{attribute}";
|
|
190
|
-
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
191
|
-
urlPath = urlPath.replace("{".concat("attribute", "}"), encodeURIComponent(String(requestParameters['attribute'])));
|
|
192
|
-
return [4 /*yield*/, this.request({
|
|
193
|
-
path: urlPath,
|
|
194
|
-
method: 'POST',
|
|
195
|
-
headers: headerParameters,
|
|
196
|
-
query: queryParameters,
|
|
197
|
-
}, initOverrides)];
|
|
233
|
+
case 0: return [4 /*yield*/, this.detachAttributeProductTypeRequestOpts(requestParameters)];
|
|
198
234
|
case 1:
|
|
235
|
+
requestOptions = _a.sent();
|
|
236
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
237
|
+
case 2:
|
|
199
238
|
response = _a.sent();
|
|
200
239
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductTypeResourceFromJSON)(jsonValue); })];
|
|
201
240
|
}
|
|
@@ -219,27 +258,40 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
219
258
|
});
|
|
220
259
|
});
|
|
221
260
|
};
|
|
261
|
+
/**
|
|
262
|
+
* Creates request options for getAllProductType without sending the request
|
|
263
|
+
*/
|
|
264
|
+
ProductTypeApi.prototype.getAllProductTypeRequestOpts = function (requestParameters) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
266
|
+
var queryParameters, headerParameters, urlPath;
|
|
267
|
+
return __generator(this, function (_a) {
|
|
268
|
+
queryParameters = {};
|
|
269
|
+
headerParameters = {};
|
|
270
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
271
|
+
urlPath = "/admin-api/product-type/all";
|
|
272
|
+
return [2 /*return*/, {
|
|
273
|
+
path: urlPath,
|
|
274
|
+
method: 'POST',
|
|
275
|
+
headers: headerParameters,
|
|
276
|
+
query: queryParameters,
|
|
277
|
+
body: (0, index_1.GetAllProductTypeRequestToJSON)(requestParameters['getAllProductTypeRequest']),
|
|
278
|
+
}];
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
};
|
|
222
282
|
/**
|
|
223
283
|
* Auto-generated: getAllProductType
|
|
224
284
|
*/
|
|
225
285
|
ProductTypeApi.prototype.getAllProductTypeRaw = function (requestParameters, initOverrides) {
|
|
226
286
|
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
-
var
|
|
287
|
+
var requestOptions, response;
|
|
228
288
|
return __generator(this, function (_a) {
|
|
229
289
|
switch (_a.label) {
|
|
230
|
-
case 0:
|
|
231
|
-
queryParameters = {};
|
|
232
|
-
headerParameters = {};
|
|
233
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
234
|
-
urlPath = "/admin-api/product-type/all";
|
|
235
|
-
return [4 /*yield*/, this.request({
|
|
236
|
-
path: urlPath,
|
|
237
|
-
method: 'POST',
|
|
238
|
-
headers: headerParameters,
|
|
239
|
-
query: queryParameters,
|
|
240
|
-
body: (0, index_1.GetAllProductTypeRequestToJSON)(requestParameters['getAllProductTypeRequest']),
|
|
241
|
-
}, initOverrides)];
|
|
290
|
+
case 0: return [4 /*yield*/, this.getAllProductTypeRequestOpts(requestParameters)];
|
|
242
291
|
case 1:
|
|
292
|
+
requestOptions = _a.sent();
|
|
293
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
294
|
+
case 2:
|
|
243
295
|
response = _a.sent();
|
|
244
296
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductTypeLiteResourceResponseFromJSON)(jsonValue); })];
|
|
245
297
|
}
|
|
@@ -264,27 +316,40 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
264
316
|
});
|
|
265
317
|
});
|
|
266
318
|
};
|
|
319
|
+
/**
|
|
320
|
+
* Creates request options for indexProductType without sending the request
|
|
321
|
+
*/
|
|
322
|
+
ProductTypeApi.prototype.indexProductTypeRequestOpts = function (requestParameters) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
324
|
+
var queryParameters, headerParameters, urlPath;
|
|
325
|
+
return __generator(this, function (_a) {
|
|
326
|
+
queryParameters = {};
|
|
327
|
+
headerParameters = {};
|
|
328
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
329
|
+
urlPath = "/admin-api/product-type/list";
|
|
330
|
+
return [2 /*return*/, {
|
|
331
|
+
path: urlPath,
|
|
332
|
+
method: 'POST',
|
|
333
|
+
headers: headerParameters,
|
|
334
|
+
query: queryParameters,
|
|
335
|
+
body: (0, index_1.IndexProductTypeRequestToJSON)(requestParameters['indexProductTypeRequest']),
|
|
336
|
+
}];
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
};
|
|
267
340
|
/**
|
|
268
341
|
* Auto-generated: indexProductType
|
|
269
342
|
*/
|
|
270
343
|
ProductTypeApi.prototype.indexProductTypeRaw = function (requestParameters, initOverrides) {
|
|
271
344
|
return __awaiter(this, void 0, void 0, function () {
|
|
272
|
-
var
|
|
345
|
+
var requestOptions, response;
|
|
273
346
|
return __generator(this, function (_a) {
|
|
274
347
|
switch (_a.label) {
|
|
275
|
-
case 0:
|
|
276
|
-
queryParameters = {};
|
|
277
|
-
headerParameters = {};
|
|
278
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
279
|
-
urlPath = "/admin-api/product-type/list";
|
|
280
|
-
return [4 /*yield*/, this.request({
|
|
281
|
-
path: urlPath,
|
|
282
|
-
method: 'POST',
|
|
283
|
-
headers: headerParameters,
|
|
284
|
-
query: queryParameters,
|
|
285
|
-
body: (0, index_1.IndexProductTypeRequestToJSON)(requestParameters['indexProductTypeRequest']),
|
|
286
|
-
}, initOverrides)];
|
|
348
|
+
case 0: return [4 /*yield*/, this.indexProductTypeRequestOpts(requestParameters)];
|
|
287
349
|
case 1:
|
|
350
|
+
requestOptions = _a.sent();
|
|
351
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
352
|
+
case 2:
|
|
288
353
|
response = _a.sent();
|
|
289
354
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductTypeListResourceResponseFromJSON)(jsonValue); })];
|
|
290
355
|
}
|
|
@@ -309,29 +374,42 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
309
374
|
});
|
|
310
375
|
});
|
|
311
376
|
};
|
|
377
|
+
/**
|
|
378
|
+
* Creates request options for showProductType without sending the request
|
|
379
|
+
*/
|
|
380
|
+
ProductTypeApi.prototype.showProductTypeRequestOpts = function (requestParameters) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
+
var queryParameters, headerParameters, urlPath;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
if (requestParameters['productType'] == null) {
|
|
385
|
+
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling showProductType().');
|
|
386
|
+
}
|
|
387
|
+
queryParameters = {};
|
|
388
|
+
headerParameters = {};
|
|
389
|
+
urlPath = "/admin-api/product-type/{productType}";
|
|
390
|
+
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
391
|
+
return [2 /*return*/, {
|
|
392
|
+
path: urlPath,
|
|
393
|
+
method: 'GET',
|
|
394
|
+
headers: headerParameters,
|
|
395
|
+
query: queryParameters,
|
|
396
|
+
}];
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
};
|
|
312
400
|
/**
|
|
313
401
|
* Auto-generated: showProductType
|
|
314
402
|
*/
|
|
315
403
|
ProductTypeApi.prototype.showProductTypeRaw = function (requestParameters, initOverrides) {
|
|
316
404
|
return __awaiter(this, void 0, void 0, function () {
|
|
317
|
-
var
|
|
405
|
+
var requestOptions, response;
|
|
318
406
|
return __generator(this, function (_a) {
|
|
319
407
|
switch (_a.label) {
|
|
320
|
-
case 0:
|
|
321
|
-
if (requestParameters['productType'] == null) {
|
|
322
|
-
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling showProductType().');
|
|
323
|
-
}
|
|
324
|
-
queryParameters = {};
|
|
325
|
-
headerParameters = {};
|
|
326
|
-
urlPath = "/admin-api/product-type/{productType}";
|
|
327
|
-
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
328
|
-
return [4 /*yield*/, this.request({
|
|
329
|
-
path: urlPath,
|
|
330
|
-
method: 'GET',
|
|
331
|
-
headers: headerParameters,
|
|
332
|
-
query: queryParameters,
|
|
333
|
-
}, initOverrides)];
|
|
408
|
+
case 0: return [4 /*yield*/, this.showProductTypeRequestOpts(requestParameters)];
|
|
334
409
|
case 1:
|
|
410
|
+
requestOptions = _a.sent();
|
|
411
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
412
|
+
case 2:
|
|
335
413
|
response = _a.sent();
|
|
336
414
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductTypeResourceFromJSON)(jsonValue); })];
|
|
337
415
|
}
|
|
@@ -355,27 +433,40 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
355
433
|
});
|
|
356
434
|
});
|
|
357
435
|
};
|
|
436
|
+
/**
|
|
437
|
+
* Creates request options for storeProductType without sending the request
|
|
438
|
+
*/
|
|
439
|
+
ProductTypeApi.prototype.storeProductTypeRequestOpts = function (requestParameters) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
441
|
+
var queryParameters, headerParameters, urlPath;
|
|
442
|
+
return __generator(this, function (_a) {
|
|
443
|
+
queryParameters = {};
|
|
444
|
+
headerParameters = {};
|
|
445
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
446
|
+
urlPath = "/admin-api/product-type/create";
|
|
447
|
+
return [2 /*return*/, {
|
|
448
|
+
path: urlPath,
|
|
449
|
+
method: 'POST',
|
|
450
|
+
headers: headerParameters,
|
|
451
|
+
query: queryParameters,
|
|
452
|
+
body: (0, index_1.StoreProductTypeRequestToJSON)(requestParameters['storeProductTypeRequest']),
|
|
453
|
+
}];
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
};
|
|
358
457
|
/**
|
|
359
458
|
* Auto-generated: storeProductType
|
|
360
459
|
*/
|
|
361
460
|
ProductTypeApi.prototype.storeProductTypeRaw = function (requestParameters, initOverrides) {
|
|
362
461
|
return __awaiter(this, void 0, void 0, function () {
|
|
363
|
-
var
|
|
462
|
+
var requestOptions, response;
|
|
364
463
|
return __generator(this, function (_a) {
|
|
365
464
|
switch (_a.label) {
|
|
366
|
-
case 0:
|
|
367
|
-
queryParameters = {};
|
|
368
|
-
headerParameters = {};
|
|
369
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
370
|
-
urlPath = "/admin-api/product-type/create";
|
|
371
|
-
return [4 /*yield*/, this.request({
|
|
372
|
-
path: urlPath,
|
|
373
|
-
method: 'POST',
|
|
374
|
-
headers: headerParameters,
|
|
375
|
-
query: queryParameters,
|
|
376
|
-
body: (0, index_1.StoreProductTypeRequestToJSON)(requestParameters['storeProductTypeRequest']),
|
|
377
|
-
}, initOverrides)];
|
|
465
|
+
case 0: return [4 /*yield*/, this.storeProductTypeRequestOpts(requestParameters)];
|
|
378
466
|
case 1:
|
|
467
|
+
requestOptions = _a.sent();
|
|
468
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
469
|
+
case 2:
|
|
379
470
|
response = _a.sent();
|
|
380
471
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductTypeResourceFromJSON)(jsonValue); })];
|
|
381
472
|
}
|
|
@@ -400,31 +491,44 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
400
491
|
});
|
|
401
492
|
});
|
|
402
493
|
};
|
|
494
|
+
/**
|
|
495
|
+
* Creates request options for updateAttachedAttributeProductType without sending the request
|
|
496
|
+
*/
|
|
497
|
+
ProductTypeApi.prototype.updateAttachedAttributeProductTypeRequestOpts = function (requestParameters) {
|
|
498
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
499
|
+
var queryParameters, headerParameters, urlPath;
|
|
500
|
+
return __generator(this, function (_a) {
|
|
501
|
+
if (requestParameters['productType'] == null) {
|
|
502
|
+
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling updateAttachedAttributeProductType().');
|
|
503
|
+
}
|
|
504
|
+
queryParameters = {};
|
|
505
|
+
headerParameters = {};
|
|
506
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
507
|
+
urlPath = "/admin-api/product-type/{productType}/update-attribute";
|
|
508
|
+
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
509
|
+
return [2 /*return*/, {
|
|
510
|
+
path: urlPath,
|
|
511
|
+
method: 'PUT',
|
|
512
|
+
headers: headerParameters,
|
|
513
|
+
query: queryParameters,
|
|
514
|
+
body: (0, index_1.AttachAttributeProductTypeRequestToJSON)(requestParameters['attachAttributeProductTypeRequest']),
|
|
515
|
+
}];
|
|
516
|
+
});
|
|
517
|
+
});
|
|
518
|
+
};
|
|
403
519
|
/**
|
|
404
520
|
* Auto-generated: updateAttachedAttributeProductType
|
|
405
521
|
*/
|
|
406
522
|
ProductTypeApi.prototype.updateAttachedAttributeProductTypeRaw = function (requestParameters, initOverrides) {
|
|
407
523
|
return __awaiter(this, void 0, void 0, function () {
|
|
408
|
-
var
|
|
524
|
+
var requestOptions, response;
|
|
409
525
|
return __generator(this, function (_a) {
|
|
410
526
|
switch (_a.label) {
|
|
411
|
-
case 0:
|
|
412
|
-
if (requestParameters['productType'] == null) {
|
|
413
|
-
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling updateAttachedAttributeProductType().');
|
|
414
|
-
}
|
|
415
|
-
queryParameters = {};
|
|
416
|
-
headerParameters = {};
|
|
417
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
418
|
-
urlPath = "/admin-api/product-type/{productType}/update-attribute";
|
|
419
|
-
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
420
|
-
return [4 /*yield*/, this.request({
|
|
421
|
-
path: urlPath,
|
|
422
|
-
method: 'PUT',
|
|
423
|
-
headers: headerParameters,
|
|
424
|
-
query: queryParameters,
|
|
425
|
-
body: (0, index_1.AttachAttributeProductTypeRequestToJSON)(requestParameters['attachAttributeProductTypeRequest']),
|
|
426
|
-
}, initOverrides)];
|
|
527
|
+
case 0: return [4 /*yield*/, this.updateAttachedAttributeProductTypeRequestOpts(requestParameters)];
|
|
427
528
|
case 1:
|
|
529
|
+
requestOptions = _a.sent();
|
|
530
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
531
|
+
case 2:
|
|
428
532
|
response = _a.sent();
|
|
429
533
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductTypeResourceFromJSON)(jsonValue); })];
|
|
430
534
|
}
|
|
@@ -448,31 +552,44 @@ var ProductTypeApi = /** @class */ (function (_super) {
|
|
|
448
552
|
});
|
|
449
553
|
});
|
|
450
554
|
};
|
|
555
|
+
/**
|
|
556
|
+
* Creates request options for updateProductType without sending the request
|
|
557
|
+
*/
|
|
558
|
+
ProductTypeApi.prototype.updateProductTypeRequestOpts = function (requestParameters) {
|
|
559
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
560
|
+
var queryParameters, headerParameters, urlPath;
|
|
561
|
+
return __generator(this, function (_a) {
|
|
562
|
+
if (requestParameters['productType'] == null) {
|
|
563
|
+
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling updateProductType().');
|
|
564
|
+
}
|
|
565
|
+
queryParameters = {};
|
|
566
|
+
headerParameters = {};
|
|
567
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
568
|
+
urlPath = "/admin-api/product-type/{productType}/update";
|
|
569
|
+
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
570
|
+
return [2 /*return*/, {
|
|
571
|
+
path: urlPath,
|
|
572
|
+
method: 'PUT',
|
|
573
|
+
headers: headerParameters,
|
|
574
|
+
query: queryParameters,
|
|
575
|
+
body: (0, index_1.UpdateProductTypeRequestToJSON)(requestParameters['updateProductTypeRequest']),
|
|
576
|
+
}];
|
|
577
|
+
});
|
|
578
|
+
});
|
|
579
|
+
};
|
|
451
580
|
/**
|
|
452
581
|
* Auto-generated: updateProductType
|
|
453
582
|
*/
|
|
454
583
|
ProductTypeApi.prototype.updateProductTypeRaw = function (requestParameters, initOverrides) {
|
|
455
584
|
return __awaiter(this, void 0, void 0, function () {
|
|
456
|
-
var
|
|
585
|
+
var requestOptions, response;
|
|
457
586
|
return __generator(this, function (_a) {
|
|
458
587
|
switch (_a.label) {
|
|
459
|
-
case 0:
|
|
460
|
-
if (requestParameters['productType'] == null) {
|
|
461
|
-
throw new runtime.RequiredError('productType', 'Required parameter "productType" was null or undefined when calling updateProductType().');
|
|
462
|
-
}
|
|
463
|
-
queryParameters = {};
|
|
464
|
-
headerParameters = {};
|
|
465
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
466
|
-
urlPath = "/admin-api/product-type/{productType}/update";
|
|
467
|
-
urlPath = urlPath.replace("{".concat("productType", "}"), encodeURIComponent(String(requestParameters['productType'])));
|
|
468
|
-
return [4 /*yield*/, this.request({
|
|
469
|
-
path: urlPath,
|
|
470
|
-
method: 'PUT',
|
|
471
|
-
headers: headerParameters,
|
|
472
|
-
query: queryParameters,
|
|
473
|
-
body: (0, index_1.UpdateProductTypeRequestToJSON)(requestParameters['updateProductTypeRequest']),
|
|
474
|
-
}, initOverrides)];
|
|
588
|
+
case 0: return [4 /*yield*/, this.updateProductTypeRequestOpts(requestParameters)];
|
|
475
589
|
case 1:
|
|
590
|
+
requestOptions = _a.sent();
|
|
591
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
592
|
+
case 2:
|
|
476
593
|
response = _a.sent();
|
|
477
594
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductTypeResourceFromJSON)(jsonValue); })];
|
|
478
595
|
}
|