@digital8/lighting-illusions-ts-sdk 0.0.1672 → 0.0.1673
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 +36 -0
- package/README.md +34 -2
- package/dist/apis/BlogCategoryApi.d.ts +109 -0
- package/dist/apis/BlogCategoryApi.js +433 -0
- package/dist/apis/FrontendComponentApi.d.ts +33 -0
- package/dist/apis/FrontendComponentApi.js +138 -0
- package/dist/apis/PageApi.d.ts +109 -0
- package/dist/apis/PageApi.js +433 -0
- package/dist/apis/PageComponentApi.d.ts +94 -0
- package/dist/apis/PageComponentApi.js +375 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllBlogCategoryRequest.d.ts +78 -0
- package/dist/models/GetAllBlogCategoryRequest.js +74 -0
- package/dist/models/GetAllFrontendComponentRequest.d.ts +78 -0
- package/dist/models/GetAllFrontendComponentRequest.js +74 -0
- package/dist/models/GetAllPageComponentRequest.d.ts +90 -0
- package/dist/models/GetAllPageComponentRequest.js +78 -0
- package/dist/models/GetAllPageRequest.d.ts +91 -0
- package/dist/models/GetAllPageRequest.js +79 -0
- package/dist/models/IndexBlogCategoryRequest.d.ts +90 -0
- package/dist/models/IndexBlogCategoryRequest.js +78 -0
- package/dist/models/IndexPageRequest.d.ts +103 -0
- package/dist/models/IndexPageRequest.js +83 -0
- package/dist/models/StoreBlogCategoryRequest.d.ts +45 -0
- package/dist/models/StoreBlogCategoryRequest.js +60 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StorePageComponentRequest.d.ts +81 -0
- package/dist/models/StorePageComponentRequest.js +72 -0
- package/dist/models/StorePageComponentRequestRelationsInner.d.ts +44 -0
- package/dist/models/StorePageComponentRequestRelationsInner.js +53 -0
- package/dist/models/StorePageRequest.d.ts +85 -0
- package/dist/models/StorePageRequest.js +84 -0
- package/dist/models/StorePageRequestBlog.d.ts +50 -0
- package/dist/models/StorePageRequestBlog.js +55 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/UpdateBlogCategoryRequest.d.ts +45 -0
- package/dist/models/UpdateBlogCategoryRequest.js +60 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +69 -0
- package/dist/models/UpdatePageComponentRequest.js +64 -0
- package/dist/models/UpdatePageRequest.d.ts +70 -0
- package/dist/models/UpdatePageRequest.js +69 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/BlogCategoryApi.md +407 -0
- package/docs/FrontendComponentApi.md +74 -0
- package/docs/GetAllBlogCategoryRequest.md +44 -0
- package/docs/GetAllFrontendComponentRequest.md +44 -0
- package/docs/GetAllPageComponentRequest.md +48 -0
- package/docs/GetAllPageRequest.md +48 -0
- package/docs/IndexBlogCategoryRequest.md +48 -0
- package/docs/IndexPageRequest.md +52 -0
- package/docs/PageApi.md +407 -0
- package/docs/PageComponentApi.md +341 -0
- package/docs/StoreBlogCategoryRequest.md +38 -0
- package/docs/StorePageComponentRequest.md +50 -0
- package/docs/StorePageComponentRequestRelationsInner.md +38 -0
- package/docs/StorePageRequest.md +48 -0
- package/docs/StorePageRequestBlog.md +40 -0
- package/docs/UpdateBlogCategoryRequest.md +38 -0
- package/docs/UpdatePageComponentRequest.md +46 -0
- package/docs/UpdatePageRequest.md +46 -0
- package/package.json +1 -1
- package/src/apis/BlogCategoryApi.ts +334 -0
- package/src/apis/FrontendComponentApi.ts +77 -0
- package/src/apis/PageApi.ts +334 -0
- package/src/apis/PageComponentApi.ts +284 -0
- package/src/apis/index.ts +4 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllBlogCategoryRequest.ts +125 -0
- package/src/models/GetAllFrontendComponentRequest.ts +125 -0
- package/src/models/GetAllPageComponentRequest.ts +141 -0
- package/src/models/GetAllPageRequest.ts +142 -0
- package/src/models/IndexBlogCategoryRequest.ts +141 -0
- package/src/models/IndexPageRequest.ts +158 -0
- package/src/models/StoreBlogCategoryRequest.ts +92 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StorePageComponentRequest.ts +140 -0
- package/src/models/StorePageComponentRequestRelationsInner.ts +81 -0
- package/src/models/StorePageRequest.ts +153 -0
- package/src/models/StorePageRequestBlog.ts +89 -0
- package/src/models/StoreResource.ts +3 -2
- package/src/models/UpdateBlogCategoryRequest.ts +92 -0
- package/src/models/UpdatePageComponentRequest.ts +122 -0
- package/src/models/UpdatePageRequest.ts +131 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,433 @@
|
|
|
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.BlogCategoryApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var BlogCategoryApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(BlogCategoryApi, _super);
|
|
75
|
+
function BlogCategoryApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for destroyBlogCategory without sending the request
|
|
80
|
+
*/
|
|
81
|
+
BlogCategoryApi.prototype.destroyBlogCategoryRequestOpts = 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['blogCategory'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('blogCategory', 'Required parameter "blogCategory" was null or undefined when calling destroyBlogCategory().');
|
|
87
|
+
}
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
urlPath = "/admin-api/blog-category/{blogCategory}/delete";
|
|
91
|
+
urlPath = urlPath.replace("{".concat("blogCategory", "}"), encodeURIComponent(String(requestParameters['blogCategory'])));
|
|
92
|
+
return [2 /*return*/, {
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'DELETE',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
}];
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Auto-generated: destroyBlogCategory
|
|
103
|
+
*/
|
|
104
|
+
BlogCategoryApi.prototype.destroyBlogCategoryRaw = function (requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
+
var requestOptions, response;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0: return [4 /*yield*/, this.destroyBlogCategoryRequestOpts(requestParameters)];
|
|
110
|
+
case 1:
|
|
111
|
+
requestOptions = _a.sent();
|
|
112
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
113
|
+
case 2:
|
|
114
|
+
response = _a.sent();
|
|
115
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Auto-generated: destroyBlogCategory
|
|
122
|
+
*/
|
|
123
|
+
BlogCategoryApi.prototype.destroyBlogCategory = function (requestParameters, initOverrides) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
125
|
+
var response;
|
|
126
|
+
return __generator(this, function (_a) {
|
|
127
|
+
switch (_a.label) {
|
|
128
|
+
case 0: return [4 /*yield*/, this.destroyBlogCategoryRaw(requestParameters, initOverrides)];
|
|
129
|
+
case 1:
|
|
130
|
+
response = _a.sent();
|
|
131
|
+
return [4 /*yield*/, response.value()];
|
|
132
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for getAllBlogCategory without sending the request
|
|
139
|
+
*/
|
|
140
|
+
BlogCategoryApi.prototype.getAllBlogCategoryRequestOpts = function (requestParameters) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
142
|
+
var queryParameters, headerParameters, urlPath;
|
|
143
|
+
return __generator(this, function (_a) {
|
|
144
|
+
queryParameters = {};
|
|
145
|
+
headerParameters = {};
|
|
146
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
147
|
+
urlPath = "/admin-api/blog-category/all";
|
|
148
|
+
return [2 /*return*/, {
|
|
149
|
+
path: urlPath,
|
|
150
|
+
method: 'POST',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
body: (0, index_1.GetAllBlogCategoryRequestToJSON)(requestParameters['getAllBlogCategoryRequest']),
|
|
154
|
+
}];
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Auto-generated: getAllBlogCategory
|
|
160
|
+
*/
|
|
161
|
+
BlogCategoryApi.prototype.getAllBlogCategoryRaw = function (requestParameters, initOverrides) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
163
|
+
var requestOptions, response;
|
|
164
|
+
return __generator(this, function (_a) {
|
|
165
|
+
switch (_a.label) {
|
|
166
|
+
case 0: return [4 /*yield*/, this.getAllBlogCategoryRequestOpts(requestParameters)];
|
|
167
|
+
case 1:
|
|
168
|
+
requestOptions = _a.sent();
|
|
169
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
170
|
+
case 2:
|
|
171
|
+
response = _a.sent();
|
|
172
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BlogCategoryLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Auto-generated: getAllBlogCategory
|
|
179
|
+
*/
|
|
180
|
+
BlogCategoryApi.prototype.getAllBlogCategory = function () {
|
|
181
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
182
|
+
var response;
|
|
183
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
switch (_a.label) {
|
|
186
|
+
case 0: return [4 /*yield*/, this.getAllBlogCategoryRaw(requestParameters, initOverrides)];
|
|
187
|
+
case 1:
|
|
188
|
+
response = _a.sent();
|
|
189
|
+
return [4 /*yield*/, response.value()];
|
|
190
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for indexBlogCategory without sending the request
|
|
197
|
+
*/
|
|
198
|
+
BlogCategoryApi.prototype.indexBlogCategoryRequestOpts = function (requestParameters) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
+
var queryParameters, headerParameters, urlPath;
|
|
201
|
+
return __generator(this, function (_a) {
|
|
202
|
+
queryParameters = {};
|
|
203
|
+
headerParameters = {};
|
|
204
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
205
|
+
urlPath = "/admin-api/blog-category/list";
|
|
206
|
+
return [2 /*return*/, {
|
|
207
|
+
path: urlPath,
|
|
208
|
+
method: 'POST',
|
|
209
|
+
headers: headerParameters,
|
|
210
|
+
query: queryParameters,
|
|
211
|
+
body: (0, index_1.IndexBlogCategoryRequestToJSON)(requestParameters['indexBlogCategoryRequest']),
|
|
212
|
+
}];
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Auto-generated: indexBlogCategory
|
|
218
|
+
*/
|
|
219
|
+
BlogCategoryApi.prototype.indexBlogCategoryRaw = function (requestParameters, initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
221
|
+
var requestOptions, response;
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
|
+
case 0: return [4 /*yield*/, this.indexBlogCategoryRequestOpts(requestParameters)];
|
|
225
|
+
case 1:
|
|
226
|
+
requestOptions = _a.sent();
|
|
227
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
228
|
+
case 2:
|
|
229
|
+
response = _a.sent();
|
|
230
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedBlogCategoryListResourceResponseFromJSON)(jsonValue); })];
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Auto-generated: indexBlogCategory
|
|
237
|
+
*/
|
|
238
|
+
BlogCategoryApi.prototype.indexBlogCategory = function () {
|
|
239
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
240
|
+
var response;
|
|
241
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
242
|
+
return __generator(this, function (_a) {
|
|
243
|
+
switch (_a.label) {
|
|
244
|
+
case 0: return [4 /*yield*/, this.indexBlogCategoryRaw(requestParameters, initOverrides)];
|
|
245
|
+
case 1:
|
|
246
|
+
response = _a.sent();
|
|
247
|
+
return [4 /*yield*/, response.value()];
|
|
248
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Creates request options for showBlogCategory without sending the request
|
|
255
|
+
*/
|
|
256
|
+
BlogCategoryApi.prototype.showBlogCategoryRequestOpts = function (requestParameters) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
258
|
+
var queryParameters, headerParameters, urlPath;
|
|
259
|
+
return __generator(this, function (_a) {
|
|
260
|
+
if (requestParameters['blogCategory'] == null) {
|
|
261
|
+
throw new runtime.RequiredError('blogCategory', 'Required parameter "blogCategory" was null or undefined when calling showBlogCategory().');
|
|
262
|
+
}
|
|
263
|
+
queryParameters = {};
|
|
264
|
+
headerParameters = {};
|
|
265
|
+
urlPath = "/admin-api/blog-category/{blogCategory}";
|
|
266
|
+
urlPath = urlPath.replace("{".concat("blogCategory", "}"), encodeURIComponent(String(requestParameters['blogCategory'])));
|
|
267
|
+
return [2 /*return*/, {
|
|
268
|
+
path: urlPath,
|
|
269
|
+
method: 'GET',
|
|
270
|
+
headers: headerParameters,
|
|
271
|
+
query: queryParameters,
|
|
272
|
+
}];
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* Auto-generated: showBlogCategory
|
|
278
|
+
*/
|
|
279
|
+
BlogCategoryApi.prototype.showBlogCategoryRaw = function (requestParameters, initOverrides) {
|
|
280
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
281
|
+
var requestOptions, response;
|
|
282
|
+
return __generator(this, function (_a) {
|
|
283
|
+
switch (_a.label) {
|
|
284
|
+
case 0: return [4 /*yield*/, this.showBlogCategoryRequestOpts(requestParameters)];
|
|
285
|
+
case 1:
|
|
286
|
+
requestOptions = _a.sent();
|
|
287
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
288
|
+
case 2:
|
|
289
|
+
response = _a.sent();
|
|
290
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BlogCategoryResourceFromJSON)(jsonValue); })];
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* Auto-generated: showBlogCategory
|
|
297
|
+
*/
|
|
298
|
+
BlogCategoryApi.prototype.showBlogCategory = function (requestParameters, initOverrides) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
300
|
+
var response;
|
|
301
|
+
return __generator(this, function (_a) {
|
|
302
|
+
switch (_a.label) {
|
|
303
|
+
case 0: return [4 /*yield*/, this.showBlogCategoryRaw(requestParameters, initOverrides)];
|
|
304
|
+
case 1:
|
|
305
|
+
response = _a.sent();
|
|
306
|
+
return [4 /*yield*/, response.value()];
|
|
307
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Creates request options for storeBlogCategory without sending the request
|
|
314
|
+
*/
|
|
315
|
+
BlogCategoryApi.prototype.storeBlogCategoryRequestOpts = function (requestParameters) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
317
|
+
var queryParameters, headerParameters, urlPath;
|
|
318
|
+
return __generator(this, function (_a) {
|
|
319
|
+
queryParameters = {};
|
|
320
|
+
headerParameters = {};
|
|
321
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
322
|
+
urlPath = "/admin-api/blog-category/create";
|
|
323
|
+
return [2 /*return*/, {
|
|
324
|
+
path: urlPath,
|
|
325
|
+
method: 'POST',
|
|
326
|
+
headers: headerParameters,
|
|
327
|
+
query: queryParameters,
|
|
328
|
+
body: (0, index_1.StoreBlogCategoryRequestToJSON)(requestParameters['storeBlogCategoryRequest']),
|
|
329
|
+
}];
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Auto-generated: storeBlogCategory
|
|
335
|
+
*/
|
|
336
|
+
BlogCategoryApi.prototype.storeBlogCategoryRaw = function (requestParameters, initOverrides) {
|
|
337
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
338
|
+
var requestOptions, response;
|
|
339
|
+
return __generator(this, function (_a) {
|
|
340
|
+
switch (_a.label) {
|
|
341
|
+
case 0: return [4 /*yield*/, this.storeBlogCategoryRequestOpts(requestParameters)];
|
|
342
|
+
case 1:
|
|
343
|
+
requestOptions = _a.sent();
|
|
344
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
345
|
+
case 2:
|
|
346
|
+
response = _a.sent();
|
|
347
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BlogCategoryResourceFromJSON)(jsonValue); })];
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Auto-generated: storeBlogCategory
|
|
354
|
+
*/
|
|
355
|
+
BlogCategoryApi.prototype.storeBlogCategory = function () {
|
|
356
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
357
|
+
var response;
|
|
358
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
359
|
+
return __generator(this, function (_a) {
|
|
360
|
+
switch (_a.label) {
|
|
361
|
+
case 0: return [4 /*yield*/, this.storeBlogCategoryRaw(requestParameters, initOverrides)];
|
|
362
|
+
case 1:
|
|
363
|
+
response = _a.sent();
|
|
364
|
+
return [4 /*yield*/, response.value()];
|
|
365
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Creates request options for updateBlogCategory without sending the request
|
|
372
|
+
*/
|
|
373
|
+
BlogCategoryApi.prototype.updateBlogCategoryRequestOpts = function (requestParameters) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
375
|
+
var queryParameters, headerParameters, urlPath;
|
|
376
|
+
return __generator(this, function (_a) {
|
|
377
|
+
if (requestParameters['blogCategory'] == null) {
|
|
378
|
+
throw new runtime.RequiredError('blogCategory', 'Required parameter "blogCategory" was null or undefined when calling updateBlogCategory().');
|
|
379
|
+
}
|
|
380
|
+
queryParameters = {};
|
|
381
|
+
headerParameters = {};
|
|
382
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
383
|
+
urlPath = "/admin-api/blog-category/{blogCategory}/update";
|
|
384
|
+
urlPath = urlPath.replace("{".concat("blogCategory", "}"), encodeURIComponent(String(requestParameters['blogCategory'])));
|
|
385
|
+
return [2 /*return*/, {
|
|
386
|
+
path: urlPath,
|
|
387
|
+
method: 'PUT',
|
|
388
|
+
headers: headerParameters,
|
|
389
|
+
query: queryParameters,
|
|
390
|
+
body: (0, index_1.UpdateBlogCategoryRequestToJSON)(requestParameters['updateBlogCategoryRequest']),
|
|
391
|
+
}];
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Auto-generated: updateBlogCategory
|
|
397
|
+
*/
|
|
398
|
+
BlogCategoryApi.prototype.updateBlogCategoryRaw = function (requestParameters, initOverrides) {
|
|
399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
400
|
+
var requestOptions, response;
|
|
401
|
+
return __generator(this, function (_a) {
|
|
402
|
+
switch (_a.label) {
|
|
403
|
+
case 0: return [4 /*yield*/, this.updateBlogCategoryRequestOpts(requestParameters)];
|
|
404
|
+
case 1:
|
|
405
|
+
requestOptions = _a.sent();
|
|
406
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
407
|
+
case 2:
|
|
408
|
+
response = _a.sent();
|
|
409
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BlogCategoryResourceFromJSON)(jsonValue); })];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Auto-generated: updateBlogCategory
|
|
416
|
+
*/
|
|
417
|
+
BlogCategoryApi.prototype.updateBlogCategory = function (requestParameters, initOverrides) {
|
|
418
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
419
|
+
var response;
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
switch (_a.label) {
|
|
422
|
+
case 0: return [4 /*yield*/, this.updateBlogCategoryRaw(requestParameters, initOverrides)];
|
|
423
|
+
case 1:
|
|
424
|
+
response = _a.sent();
|
|
425
|
+
return [4 /*yield*/, response.value()];
|
|
426
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
};
|
|
431
|
+
return BlogCategoryApi;
|
|
432
|
+
}(runtime.BaseAPI));
|
|
433
|
+
exports.BlogCategoryApi = BlogCategoryApi;
|
|
@@ -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 * as runtime from '../runtime';
|
|
13
|
+
import type { FrontendComponentResourceArrayResponse, GetAllFrontendComponentRequest } from '../models/index';
|
|
14
|
+
export interface GetAllFrontendComponentOperationRequest {
|
|
15
|
+
getAllFrontendComponentRequest?: GetAllFrontendComponentRequest;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class FrontendComponentApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for getAllFrontendComponent without sending the request
|
|
23
|
+
*/
|
|
24
|
+
getAllFrontendComponentRequestOpts(requestParameters: GetAllFrontendComponentOperationRequest): Promise<runtime.RequestOpts>;
|
|
25
|
+
/**
|
|
26
|
+
* Auto-generated: getAllFrontendComponent
|
|
27
|
+
*/
|
|
28
|
+
getAllFrontendComponentRaw(requestParameters: GetAllFrontendComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FrontendComponentResourceArrayResponse>>;
|
|
29
|
+
/**
|
|
30
|
+
* Auto-generated: getAllFrontendComponent
|
|
31
|
+
*/
|
|
32
|
+
getAllFrontendComponent(requestParameters?: GetAllFrontendComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FrontendComponentResourceArrayResponse>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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.FrontendComponentApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var FrontendComponentApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(FrontendComponentApi, _super);
|
|
75
|
+
function FrontendComponentApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for getAllFrontendComponent without sending the request
|
|
80
|
+
*/
|
|
81
|
+
FrontendComponentApi.prototype.getAllFrontendComponentRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
queryParameters = {};
|
|
86
|
+
headerParameters = {};
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
urlPath = "/admin-api/frontend-component/all";
|
|
89
|
+
return [2 /*return*/, {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: (0, index_1.GetAllFrontendComponentRequestToJSON)(requestParameters['getAllFrontendComponentRequest']),
|
|
95
|
+
}];
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Auto-generated: getAllFrontendComponent
|
|
101
|
+
*/
|
|
102
|
+
FrontendComponentApi.prototype.getAllFrontendComponentRaw = function (requestParameters, initOverrides) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
104
|
+
var requestOptions, response;
|
|
105
|
+
return __generator(this, function (_a) {
|
|
106
|
+
switch (_a.label) {
|
|
107
|
+
case 0: return [4 /*yield*/, this.getAllFrontendComponentRequestOpts(requestParameters)];
|
|
108
|
+
case 1:
|
|
109
|
+
requestOptions = _a.sent();
|
|
110
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
111
|
+
case 2:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FrontendComponentResourceArrayResponseFromJSON)(jsonValue); })];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Auto-generated: getAllFrontendComponent
|
|
120
|
+
*/
|
|
121
|
+
FrontendComponentApi.prototype.getAllFrontendComponent = function () {
|
|
122
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
123
|
+
var response;
|
|
124
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
switch (_a.label) {
|
|
127
|
+
case 0: return [4 /*yield*/, this.getAllFrontendComponentRaw(requestParameters, initOverrides)];
|
|
128
|
+
case 1:
|
|
129
|
+
response = _a.sent();
|
|
130
|
+
return [4 /*yield*/, response.value()];
|
|
131
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
return FrontendComponentApi;
|
|
137
|
+
}(runtime.BaseAPI));
|
|
138
|
+
exports.FrontendComponentApi = FrontendComponentApi;
|