@digital8/lighting-illusions-ts-sdk 0.0.649 → 0.0.651
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 +38 -10
- package/README.md +26 -7
- package/dist/apis/DefinitionApi.d.ts +85 -0
- package/dist/apis/DefinitionApi.js +355 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/CategoryFrontendResource.d.ts +70 -0
- package/dist/models/CategoryFrontendResource.js +73 -0
- package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryFrontendResourceArrayResponse.js +50 -0
- package/dist/models/CategoryWithChildrenFrontendResource.d.ts +39 -0
- package/dist/models/CategoryWithChildrenFrontendResource.js +56 -0
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +50 -0
- package/dist/models/DefinitionListResource.d.ts +38 -0
- package/dist/models/DefinitionListResource.js +55 -0
- package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
- package/dist/models/DefinitionResource.d.ts +44 -0
- package/dist/models/DefinitionResource.js +59 -0
- package/dist/models/DefinitionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDefinitionRequest.d.ts +80 -0
- package/dist/models/GetAllDefinitionRequest.js +76 -0
- package/dist/models/GlobalSearchProductResource.d.ts +6 -0
- package/dist/models/GlobalSearchProductResource.js +4 -0
- package/dist/models/IndexDefinitionRequest.d.ts +92 -0
- package/dist/models/IndexDefinitionRequest.js +80 -0
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +3 -2
- package/dist/models/OverlayTemplateAssetFrontendResource.js +3 -2
- package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
- package/dist/models/OverlayTemplateAssetResource.js +3 -3
- package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCategoryFrontendResourceResponse.js +57 -0
- package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionListResourceResponse.js +57 -0
- package/dist/models/PaginatedDefinitionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionResourceResponse.js +57 -0
- package/dist/models/ProductAvailability.d.ts +26 -0
- package/dist/models/ProductAvailability.js +52 -0
- package/dist/models/ProductCompareResource.d.ts +2 -2
- package/dist/models/ProductSearchResultResource.d.ts +12 -6
- package/dist/models/ProductSearchResultResource.js +8 -4
- package/dist/models/StoreDefinitionRequest.d.ts +38 -0
- package/dist/models/StoreDefinitionRequest.js +55 -0
- package/dist/models/SupplierFrontendResource.d.ts +7 -8
- package/dist/models/SupplierFrontendResource.js +8 -9
- package/dist/models/TagFrontendResource.d.ts +63 -0
- package/dist/models/TagFrontendResource.js +72 -0
- package/dist/models/TagFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/TagFrontendResourceArrayResponse.js +50 -0
- package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
- package/dist/models/UpdateDefinitionRequest.js +55 -0
- package/dist/models/index.d.ts +18 -5
- package/dist/models/index.js +18 -5
- package/docs/CategoryFrontendResource.md +46 -0
- package/docs/CategoryFrontendResourceArrayResponse.md +34 -0
- package/docs/CategoryWithChildrenFrontendResource.md +36 -0
- package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +34 -0
- package/docs/DefinitionApi.md +407 -0
- package/docs/{WishlistToggleResource.md → DefinitionListResource.md} +8 -8
- package/docs/{WishlistToggleResourceArrayResponse.md → DefinitionListResourceArrayResponse.md} +5 -5
- package/docs/DefinitionResource.md +38 -0
- package/docs/{WishlistCheckResourceArrayResponse.md → DefinitionResourceArrayResponse.md} +5 -5
- package/docs/GetAllDefinitionRequest.md +44 -0
- package/docs/GlobalSearchProductResource.md +2 -0
- package/docs/IndexDefinitionRequest.md +48 -0
- package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/PaginatedCategoryFrontendResourceResponse.md +36 -0
- package/docs/PaginatedDefinitionListResourceResponse.md +36 -0
- package/docs/PaginatedDefinitionResourceResponse.md +36 -0
- package/docs/{ProductStatus.md → ProductAvailability.md} +4 -4
- package/docs/ProductCompareResource.md +1 -1
- package/docs/ProductSearchResultResource.md +4 -2
- package/docs/{WishlistCheckResource.md → StoreDefinitionRequest.md} +8 -6
- package/docs/SupplierFrontendResource.md +4 -4
- package/docs/TagFrontendResource.md +44 -0
- package/docs/TagFrontendResourceArrayResponse.md +34 -0
- package/docs/UpdateDefinitionRequest.md +36 -0
- package/package.json +1 -1
- package/src/apis/DefinitionApi.ts +286 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CategoryFrontendResource.ts +133 -0
- package/src/models/CategoryFrontendResourceArrayResponse.ts +73 -0
- package/src/models/CategoryWithChildrenFrontendResource.ts +83 -0
- package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +73 -0
- package/src/models/DefinitionListResource.ts +75 -0
- package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
- package/src/models/DefinitionResource.ts +84 -0
- package/src/models/DefinitionResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDefinitionRequest.ts +127 -0
- package/src/models/GlobalSearchProductResource.ts +9 -0
- package/src/models/IndexDefinitionRequest.ts +143 -0
- package/src/models/OverlayTemplateAssetFrontendResource.ts +12 -4
- package/src/models/OverlayTemplateAssetResource.ts +10 -10
- package/src/models/PaginatedCategoryFrontendResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionResourceResponse.ts +90 -0
- package/src/models/ProductAvailability.ts +54 -0
- package/src/models/ProductCompareResource.ts +2 -2
- package/src/models/ProductSearchResultResource.ts +18 -9
- package/src/models/StoreDefinitionRequest.ts +75 -0
- package/src/models/SupplierFrontendResource.ts +20 -27
- package/src/models/TagFrontendResource.ts +119 -0
- package/src/models/TagFrontendResourceArrayResponse.ts +73 -0
- package/src/models/UpdateDefinitionRequest.ts +75 -0
- package/src/models/index.ts +18 -5
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/dist/models/WishlistCheckResource.d.ts +0 -32
- package/dist/models/WishlistCheckResource.js +0 -51
- package/dist/models/WishlistCheckResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistCheckResourceArrayResponse.js +0 -50
- package/dist/models/WishlistToggleResource.d.ts +0 -38
- package/dist/models/WishlistToggleResource.js +0 -55
- package/dist/models/WishlistToggleResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistToggleResourceArrayResponse.js +0 -50
- package/src/models/ProductStatus.ts +0 -52
- package/src/models/WishlistCheckResource.ts +0 -66
- package/src/models/WishlistCheckResourceArrayResponse.ts +0 -73
- package/src/models/WishlistToggleResource.ts +0 -75
- package/src/models/WishlistToggleResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DefinitionApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var DefinitionApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(DefinitionApi, _super);
|
|
75
|
+
function DefinitionApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Auto-generated: destroyDefinition
|
|
80
|
+
*/
|
|
81
|
+
DefinitionApi.prototype.destroyDefinitionRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['definition'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('definition', 'Required parameter "definition" was null or undefined when calling destroyDefinition().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
urlPath = "/admin-api/definition/{definition}/delete";
|
|
93
|
+
urlPath = urlPath.replace("{".concat("definition", "}"), encodeURIComponent(String(requestParameters['definition'])));
|
|
94
|
+
return [4 /*yield*/, this.request({
|
|
95
|
+
path: urlPath,
|
|
96
|
+
method: 'DELETE',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
}, initOverrides)];
|
|
100
|
+
case 1:
|
|
101
|
+
response = _a.sent();
|
|
102
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Auto-generated: destroyDefinition
|
|
109
|
+
*/
|
|
110
|
+
DefinitionApi.prototype.destroyDefinition = function (requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
+
var response;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0: return [4 /*yield*/, this.destroyDefinitionRaw(requestParameters, initOverrides)];
|
|
116
|
+
case 1:
|
|
117
|
+
response = _a.sent();
|
|
118
|
+
return [4 /*yield*/, response.value()];
|
|
119
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Auto-generated: getAllDefinition
|
|
126
|
+
*/
|
|
127
|
+
DefinitionApi.prototype.getAllDefinitionRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
queryParameters = {};
|
|
134
|
+
headerParameters = {};
|
|
135
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
136
|
+
urlPath = "/admin-api/definition/all";
|
|
137
|
+
return [4 /*yield*/, this.request({
|
|
138
|
+
path: urlPath,
|
|
139
|
+
method: 'POST',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
body: (0, index_1.GetAllDefinitionRequestToJSON)(requestParameters['getAllDefinitionRequest']),
|
|
143
|
+
}, initOverrides)];
|
|
144
|
+
case 1:
|
|
145
|
+
response = _a.sent();
|
|
146
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DefinitionListResourceArrayResponseFromJSON)(jsonValue); })];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Auto-generated: getAllDefinition
|
|
153
|
+
*/
|
|
154
|
+
DefinitionApi.prototype.getAllDefinition = function () {
|
|
155
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
156
|
+
var response;
|
|
157
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0: return [4 /*yield*/, this.getAllDefinitionRaw(requestParameters, initOverrides)];
|
|
161
|
+
case 1:
|
|
162
|
+
response = _a.sent();
|
|
163
|
+
return [4 /*yield*/, response.value()];
|
|
164
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Auto-generated: indexDefinition
|
|
171
|
+
*/
|
|
172
|
+
DefinitionApi.prototype.indexDefinitionRaw = function (requestParameters, initOverrides) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
174
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
175
|
+
return __generator(this, function (_a) {
|
|
176
|
+
switch (_a.label) {
|
|
177
|
+
case 0:
|
|
178
|
+
queryParameters = {};
|
|
179
|
+
headerParameters = {};
|
|
180
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
181
|
+
urlPath = "/admin-api/definition/list";
|
|
182
|
+
return [4 /*yield*/, this.request({
|
|
183
|
+
path: urlPath,
|
|
184
|
+
method: 'POST',
|
|
185
|
+
headers: headerParameters,
|
|
186
|
+
query: queryParameters,
|
|
187
|
+
body: (0, index_1.IndexDefinitionRequestToJSON)(requestParameters['indexDefinitionRequest']),
|
|
188
|
+
}, initOverrides)];
|
|
189
|
+
case 1:
|
|
190
|
+
response = _a.sent();
|
|
191
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedDefinitionListResourceResponseFromJSON)(jsonValue); })];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Auto-generated: indexDefinition
|
|
198
|
+
*/
|
|
199
|
+
DefinitionApi.prototype.indexDefinition = function () {
|
|
200
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
201
|
+
var response;
|
|
202
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
203
|
+
return __generator(this, function (_a) {
|
|
204
|
+
switch (_a.label) {
|
|
205
|
+
case 0: return [4 /*yield*/, this.indexDefinitionRaw(requestParameters, initOverrides)];
|
|
206
|
+
case 1:
|
|
207
|
+
response = _a.sent();
|
|
208
|
+
return [4 /*yield*/, response.value()];
|
|
209
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Auto-generated: showDefinition
|
|
216
|
+
*/
|
|
217
|
+
DefinitionApi.prototype.showDefinitionRaw = function (requestParameters, initOverrides) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
219
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
220
|
+
return __generator(this, function (_a) {
|
|
221
|
+
switch (_a.label) {
|
|
222
|
+
case 0:
|
|
223
|
+
if (requestParameters['definition'] == null) {
|
|
224
|
+
throw new runtime.RequiredError('definition', 'Required parameter "definition" was null or undefined when calling showDefinition().');
|
|
225
|
+
}
|
|
226
|
+
queryParameters = {};
|
|
227
|
+
headerParameters = {};
|
|
228
|
+
urlPath = "/admin-api/definition/{definition}";
|
|
229
|
+
urlPath = urlPath.replace("{".concat("definition", "}"), encodeURIComponent(String(requestParameters['definition'])));
|
|
230
|
+
return [4 /*yield*/, this.request({
|
|
231
|
+
path: urlPath,
|
|
232
|
+
method: 'GET',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
}, initOverrides)];
|
|
236
|
+
case 1:
|
|
237
|
+
response = _a.sent();
|
|
238
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DefinitionResourceFromJSON)(jsonValue); })];
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Auto-generated: showDefinition
|
|
245
|
+
*/
|
|
246
|
+
DefinitionApi.prototype.showDefinition = function (requestParameters, initOverrides) {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
248
|
+
var response;
|
|
249
|
+
return __generator(this, function (_a) {
|
|
250
|
+
switch (_a.label) {
|
|
251
|
+
case 0: return [4 /*yield*/, this.showDefinitionRaw(requestParameters, initOverrides)];
|
|
252
|
+
case 1:
|
|
253
|
+
response = _a.sent();
|
|
254
|
+
return [4 /*yield*/, response.value()];
|
|
255
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Auto-generated: storeDefinition
|
|
262
|
+
*/
|
|
263
|
+
DefinitionApi.prototype.storeDefinitionRaw = function (requestParameters, initOverrides) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
265
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
266
|
+
return __generator(this, function (_a) {
|
|
267
|
+
switch (_a.label) {
|
|
268
|
+
case 0:
|
|
269
|
+
queryParameters = {};
|
|
270
|
+
headerParameters = {};
|
|
271
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
272
|
+
urlPath = "/admin-api/definition/create";
|
|
273
|
+
return [4 /*yield*/, this.request({
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'POST',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
body: (0, index_1.StoreDefinitionRequestToJSON)(requestParameters['storeDefinitionRequest']),
|
|
279
|
+
}, initOverrides)];
|
|
280
|
+
case 1:
|
|
281
|
+
response = _a.sent();
|
|
282
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DefinitionResourceFromJSON)(jsonValue); })];
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* Auto-generated: storeDefinition
|
|
289
|
+
*/
|
|
290
|
+
DefinitionApi.prototype.storeDefinition = function () {
|
|
291
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
292
|
+
var response;
|
|
293
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
294
|
+
return __generator(this, function (_a) {
|
|
295
|
+
switch (_a.label) {
|
|
296
|
+
case 0: return [4 /*yield*/, this.storeDefinitionRaw(requestParameters, initOverrides)];
|
|
297
|
+
case 1:
|
|
298
|
+
response = _a.sent();
|
|
299
|
+
return [4 /*yield*/, response.value()];
|
|
300
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Auto-generated: updateDefinition
|
|
307
|
+
*/
|
|
308
|
+
DefinitionApi.prototype.updateDefinitionRaw = function (requestParameters, initOverrides) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
310
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
311
|
+
return __generator(this, function (_a) {
|
|
312
|
+
switch (_a.label) {
|
|
313
|
+
case 0:
|
|
314
|
+
if (requestParameters['definition'] == null) {
|
|
315
|
+
throw new runtime.RequiredError('definition', 'Required parameter "definition" was null or undefined when calling updateDefinition().');
|
|
316
|
+
}
|
|
317
|
+
queryParameters = {};
|
|
318
|
+
headerParameters = {};
|
|
319
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
320
|
+
urlPath = "/admin-api/definition/{definition}/update";
|
|
321
|
+
urlPath = urlPath.replace("{".concat("definition", "}"), encodeURIComponent(String(requestParameters['definition'])));
|
|
322
|
+
return [4 /*yield*/, this.request({
|
|
323
|
+
path: urlPath,
|
|
324
|
+
method: 'PUT',
|
|
325
|
+
headers: headerParameters,
|
|
326
|
+
query: queryParameters,
|
|
327
|
+
body: (0, index_1.UpdateDefinitionRequestToJSON)(requestParameters['updateDefinitionRequest']),
|
|
328
|
+
}, initOverrides)];
|
|
329
|
+
case 1:
|
|
330
|
+
response = _a.sent();
|
|
331
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DefinitionResourceFromJSON)(jsonValue); })];
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Auto-generated: updateDefinition
|
|
338
|
+
*/
|
|
339
|
+
DefinitionApi.prototype.updateDefinition = function (requestParameters, initOverrides) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
341
|
+
var response;
|
|
342
|
+
return __generator(this, function (_a) {
|
|
343
|
+
switch (_a.label) {
|
|
344
|
+
case 0: return [4 /*yield*/, this.updateDefinitionRaw(requestParameters, initOverrides)];
|
|
345
|
+
case 1:
|
|
346
|
+
response = _a.sent();
|
|
347
|
+
return [4 /*yield*/, response.value()];
|
|
348
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
return DefinitionApi;
|
|
354
|
+
}(runtime.BaseAPI));
|
|
355
|
+
exports.DefinitionApi = DefinitionApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AssetApi"), exports);
|
|
20
20
|
__exportStar(require("./AttributeApi"), exports);
|
|
21
|
+
__exportStar(require("./DefinitionApi"), exports);
|
|
21
22
|
__exportStar(require("./DocumentApi"), exports);
|
|
22
23
|
__exportStar(require("./ExternalApiLogApi"), exports);
|
|
23
24
|
__exportStar(require("./GoogleCategoryApi"), exports);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
13
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CategoryFrontendResource
|
|
18
|
+
*/
|
|
19
|
+
export interface CategoryFrontendResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof CategoryFrontendResource
|
|
24
|
+
*/
|
|
25
|
+
id?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CategoryFrontendResource
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CategoryFrontendResource
|
|
36
|
+
*/
|
|
37
|
+
slug: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CategoryFrontendResource
|
|
42
|
+
*/
|
|
43
|
+
parentId?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {AssetLiteResource}
|
|
47
|
+
* @memberof CategoryFrontendResource
|
|
48
|
+
*/
|
|
49
|
+
thumbnail: AssetLiteResource | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {object}
|
|
53
|
+
* @memberof CategoryFrontendResource
|
|
54
|
+
*/
|
|
55
|
+
seo: object;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<DescriptionResource>}
|
|
59
|
+
* @memberof CategoryFrontendResource
|
|
60
|
+
*/
|
|
61
|
+
descriptions: Array<DescriptionResource> | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the CategoryFrontendResource interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfCategoryFrontendResource(value: object): value is CategoryFrontendResource;
|
|
67
|
+
export declare function CategoryFrontendResourceFromJSON(json: any): CategoryFrontendResource;
|
|
68
|
+
export declare function CategoryFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryFrontendResource;
|
|
69
|
+
export declare function CategoryFrontendResourceToJSON(json: any): CategoryFrontendResource;
|
|
70
|
+
export declare function CategoryFrontendResourceToJSONTyped(value?: CategoryFrontendResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCategoryFrontendResource = instanceOfCategoryFrontendResource;
|
|
17
|
+
exports.CategoryFrontendResourceFromJSON = CategoryFrontendResourceFromJSON;
|
|
18
|
+
exports.CategoryFrontendResourceFromJSONTyped = CategoryFrontendResourceFromJSONTyped;
|
|
19
|
+
exports.CategoryFrontendResourceToJSON = CategoryFrontendResourceToJSON;
|
|
20
|
+
exports.CategoryFrontendResourceToJSONTyped = CategoryFrontendResourceToJSONTyped;
|
|
21
|
+
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
|
+
var DescriptionResource_1 = require("./DescriptionResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CategoryFrontendResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCategoryFrontendResource(value) {
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function CategoryFrontendResourceFromJSON(json) {
|
|
40
|
+
return CategoryFrontendResourceFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CategoryFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'slug': json['slug'],
|
|
50
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
51
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
52
|
+
'seo': json['seo'],
|
|
53
|
+
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function CategoryFrontendResourceToJSON(json) {
|
|
57
|
+
return CategoryFrontendResourceToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function CategoryFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'slug': value['slug'],
|
|
68
|
+
'parentId': value['parentId'],
|
|
69
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
70
|
+
'seo': value['seo'],
|
|
71
|
+
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CategoryFrontendResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CategoryFrontendResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CategoryFrontendResource>}
|
|
22
|
+
* @memberof CategoryFrontendResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CategoryFrontendResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CategoryFrontendResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCategoryFrontendResourceArrayResponse(value: object): value is CategoryFrontendResourceArrayResponse;
|
|
30
|
+
export declare function CategoryFrontendResourceArrayResponseFromJSON(json: any): CategoryFrontendResourceArrayResponse;
|
|
31
|
+
export declare function CategoryFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryFrontendResourceArrayResponse;
|
|
32
|
+
export declare function CategoryFrontendResourceArrayResponseToJSON(json: any): CategoryFrontendResourceArrayResponse;
|
|
33
|
+
export declare function CategoryFrontendResourceArrayResponseToJSONTyped(value?: CategoryFrontendResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCategoryFrontendResourceArrayResponse = instanceOfCategoryFrontendResourceArrayResponse;
|
|
17
|
+
exports.CategoryFrontendResourceArrayResponseFromJSON = CategoryFrontendResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CategoryFrontendResourceArrayResponseFromJSONTyped = CategoryFrontendResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CategoryFrontendResourceArrayResponseToJSON = CategoryFrontendResourceArrayResponseToJSON;
|
|
20
|
+
exports.CategoryFrontendResourceArrayResponseToJSONTyped = CategoryFrontendResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CategoryFrontendResource_1 = require("./CategoryFrontendResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CategoryFrontendResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCategoryFrontendResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CategoryFrontendResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CategoryFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CategoryFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CategoryFrontendResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CategoryFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CategoryFrontendResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CategoryWithChildrenFrontendResource
|
|
17
|
+
*/
|
|
18
|
+
export interface CategoryWithChildrenFrontendResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CategoryFrontendResource}
|
|
22
|
+
* @memberof CategoryWithChildrenFrontendResource
|
|
23
|
+
*/
|
|
24
|
+
category: CategoryFrontendResource | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<CategoryFrontendResource>}
|
|
28
|
+
* @memberof CategoryWithChildrenFrontendResource
|
|
29
|
+
*/
|
|
30
|
+
children: Array<CategoryFrontendResource> | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CategoryWithChildrenFrontendResource interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCategoryWithChildrenFrontendResource(value: object): value is CategoryWithChildrenFrontendResource;
|
|
36
|
+
export declare function CategoryWithChildrenFrontendResourceFromJSON(json: any): CategoryWithChildrenFrontendResource;
|
|
37
|
+
export declare function CategoryWithChildrenFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResource;
|
|
38
|
+
export declare function CategoryWithChildrenFrontendResourceToJSON(json: any): CategoryWithChildrenFrontendResource;
|
|
39
|
+
export declare function CategoryWithChildrenFrontendResourceToJSONTyped(value?: CategoryWithChildrenFrontendResource | null, ignoreDiscriminator?: boolean): any;
|