@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,375 @@
|
|
|
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.PageComponentApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var PageComponentApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(PageComponentApi, _super);
|
|
75
|
+
function PageComponentApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for destroyPageComponent without sending the request
|
|
80
|
+
*/
|
|
81
|
+
PageComponentApi.prototype.destroyPageComponentRequestOpts = 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['pageComponent'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('pageComponent', 'Required parameter "pageComponent" was null or undefined when calling destroyPageComponent().');
|
|
87
|
+
}
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
urlPath = "/admin-api/page-component/{pageComponent}/delete";
|
|
91
|
+
urlPath = urlPath.replace("{".concat("pageComponent", "}"), encodeURIComponent(String(requestParameters['pageComponent'])));
|
|
92
|
+
return [2 /*return*/, {
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'DELETE',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
}];
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Auto-generated: destroyPageComponent
|
|
103
|
+
*/
|
|
104
|
+
PageComponentApi.prototype.destroyPageComponentRaw = 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.destroyPageComponentRequestOpts(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: destroyPageComponent
|
|
122
|
+
*/
|
|
123
|
+
PageComponentApi.prototype.destroyPageComponent = 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.destroyPageComponentRaw(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 getAllPageComponent without sending the request
|
|
139
|
+
*/
|
|
140
|
+
PageComponentApi.prototype.getAllPageComponentRequestOpts = 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/page-component/all";
|
|
148
|
+
return [2 /*return*/, {
|
|
149
|
+
path: urlPath,
|
|
150
|
+
method: 'POST',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
body: (0, index_1.GetAllPageComponentRequestToJSON)(requestParameters['getAllPageComponentRequest']),
|
|
154
|
+
}];
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Auto-generated: getAllPageComponent
|
|
160
|
+
*/
|
|
161
|
+
PageComponentApi.prototype.getAllPageComponentRaw = 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.getAllPageComponentRequestOpts(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.PageComponentLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Auto-generated: getAllPageComponent
|
|
179
|
+
*/
|
|
180
|
+
PageComponentApi.prototype.getAllPageComponent = 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.getAllPageComponentRaw(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 showPageComponent without sending the request
|
|
197
|
+
*/
|
|
198
|
+
PageComponentApi.prototype.showPageComponentRequestOpts = function (requestParameters) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
+
var queryParameters, headerParameters, urlPath;
|
|
201
|
+
return __generator(this, function (_a) {
|
|
202
|
+
if (requestParameters['pageComponent'] == null) {
|
|
203
|
+
throw new runtime.RequiredError('pageComponent', 'Required parameter "pageComponent" was null or undefined when calling showPageComponent().');
|
|
204
|
+
}
|
|
205
|
+
queryParameters = {};
|
|
206
|
+
headerParameters = {};
|
|
207
|
+
urlPath = "/admin-api/page-component/{pageComponent}";
|
|
208
|
+
urlPath = urlPath.replace("{".concat("pageComponent", "}"), encodeURIComponent(String(requestParameters['pageComponent'])));
|
|
209
|
+
return [2 /*return*/, {
|
|
210
|
+
path: urlPath,
|
|
211
|
+
method: 'GET',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
}];
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Auto-generated: showPageComponent
|
|
220
|
+
*/
|
|
221
|
+
PageComponentApi.prototype.showPageComponentRaw = function (requestParameters, initOverrides) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
223
|
+
var requestOptions, response;
|
|
224
|
+
return __generator(this, function (_a) {
|
|
225
|
+
switch (_a.label) {
|
|
226
|
+
case 0: return [4 /*yield*/, this.showPageComponentRequestOpts(requestParameters)];
|
|
227
|
+
case 1:
|
|
228
|
+
requestOptions = _a.sent();
|
|
229
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
230
|
+
case 2:
|
|
231
|
+
response = _a.sent();
|
|
232
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PageComponentResourceFromJSON)(jsonValue); })];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Auto-generated: showPageComponent
|
|
239
|
+
*/
|
|
240
|
+
PageComponentApi.prototype.showPageComponent = function (requestParameters, initOverrides) {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
242
|
+
var response;
|
|
243
|
+
return __generator(this, function (_a) {
|
|
244
|
+
switch (_a.label) {
|
|
245
|
+
case 0: return [4 /*yield*/, this.showPageComponentRaw(requestParameters, initOverrides)];
|
|
246
|
+
case 1:
|
|
247
|
+
response = _a.sent();
|
|
248
|
+
return [4 /*yield*/, response.value()];
|
|
249
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Creates request options for storePageComponent without sending the request
|
|
256
|
+
*/
|
|
257
|
+
PageComponentApi.prototype.storePageComponentRequestOpts = function (requestParameters) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
259
|
+
var queryParameters, headerParameters, urlPath;
|
|
260
|
+
return __generator(this, function (_a) {
|
|
261
|
+
queryParameters = {};
|
|
262
|
+
headerParameters = {};
|
|
263
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
264
|
+
urlPath = "/admin-api/page-component/create";
|
|
265
|
+
return [2 /*return*/, {
|
|
266
|
+
path: urlPath,
|
|
267
|
+
method: 'POST',
|
|
268
|
+
headers: headerParameters,
|
|
269
|
+
query: queryParameters,
|
|
270
|
+
body: (0, index_1.StorePageComponentRequestToJSON)(requestParameters['storePageComponentRequest']),
|
|
271
|
+
}];
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Auto-generated: storePageComponent
|
|
277
|
+
*/
|
|
278
|
+
PageComponentApi.prototype.storePageComponentRaw = function (requestParameters, initOverrides) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
280
|
+
var requestOptions, response;
|
|
281
|
+
return __generator(this, function (_a) {
|
|
282
|
+
switch (_a.label) {
|
|
283
|
+
case 0: return [4 /*yield*/, this.storePageComponentRequestOpts(requestParameters)];
|
|
284
|
+
case 1:
|
|
285
|
+
requestOptions = _a.sent();
|
|
286
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
287
|
+
case 2:
|
|
288
|
+
response = _a.sent();
|
|
289
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PageComponentResourceFromJSON)(jsonValue); })];
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* Auto-generated: storePageComponent
|
|
296
|
+
*/
|
|
297
|
+
PageComponentApi.prototype.storePageComponent = function () {
|
|
298
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
299
|
+
var response;
|
|
300
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
301
|
+
return __generator(this, function (_a) {
|
|
302
|
+
switch (_a.label) {
|
|
303
|
+
case 0: return [4 /*yield*/, this.storePageComponentRaw(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 updatePageComponent without sending the request
|
|
314
|
+
*/
|
|
315
|
+
PageComponentApi.prototype.updatePageComponentRequestOpts = function (requestParameters) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
317
|
+
var queryParameters, headerParameters, urlPath;
|
|
318
|
+
return __generator(this, function (_a) {
|
|
319
|
+
if (requestParameters['pageComponent'] == null) {
|
|
320
|
+
throw new runtime.RequiredError('pageComponent', 'Required parameter "pageComponent" was null or undefined when calling updatePageComponent().');
|
|
321
|
+
}
|
|
322
|
+
queryParameters = {};
|
|
323
|
+
headerParameters = {};
|
|
324
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
325
|
+
urlPath = "/admin-api/page-component/{pageComponent}/update";
|
|
326
|
+
urlPath = urlPath.replace("{".concat("pageComponent", "}"), encodeURIComponent(String(requestParameters['pageComponent'])));
|
|
327
|
+
return [2 /*return*/, {
|
|
328
|
+
path: urlPath,
|
|
329
|
+
method: 'PUT',
|
|
330
|
+
headers: headerParameters,
|
|
331
|
+
query: queryParameters,
|
|
332
|
+
body: (0, index_1.UpdatePageComponentRequestToJSON)(requestParameters['updatePageComponentRequest']),
|
|
333
|
+
}];
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Auto-generated: updatePageComponent
|
|
339
|
+
*/
|
|
340
|
+
PageComponentApi.prototype.updatePageComponentRaw = function (requestParameters, initOverrides) {
|
|
341
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
342
|
+
var requestOptions, response;
|
|
343
|
+
return __generator(this, function (_a) {
|
|
344
|
+
switch (_a.label) {
|
|
345
|
+
case 0: return [4 /*yield*/, this.updatePageComponentRequestOpts(requestParameters)];
|
|
346
|
+
case 1:
|
|
347
|
+
requestOptions = _a.sent();
|
|
348
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
349
|
+
case 2:
|
|
350
|
+
response = _a.sent();
|
|
351
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PageComponentResourceFromJSON)(jsonValue); })];
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Auto-generated: updatePageComponent
|
|
358
|
+
*/
|
|
359
|
+
PageComponentApi.prototype.updatePageComponent = function (requestParameters, initOverrides) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
361
|
+
var response;
|
|
362
|
+
return __generator(this, function (_a) {
|
|
363
|
+
switch (_a.label) {
|
|
364
|
+
case 0: return [4 /*yield*/, this.updatePageComponentRaw(requestParameters, initOverrides)];
|
|
365
|
+
case 1:
|
|
366
|
+
response = _a.sent();
|
|
367
|
+
return [4 /*yield*/, response.value()];
|
|
368
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
return PageComponentApi;
|
|
374
|
+
}(runtime.BaseAPI));
|
|
375
|
+
exports.PageComponentApi = PageComponentApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export * from './AdminApi';
|
|
2
2
|
export * from './AssetApi';
|
|
3
3
|
export * from './AttributeApi';
|
|
4
|
+
export * from './BlogCategoryApi';
|
|
4
5
|
export * from './DefinitionApi';
|
|
5
6
|
export * from './DocumentApi';
|
|
6
7
|
export * from './ExternalApiLogApi';
|
|
8
|
+
export * from './FrontendComponentApi';
|
|
7
9
|
export * from './GoogleCategoryApi';
|
|
8
10
|
export * from './LabelApi';
|
|
9
11
|
export * from './OverlayTemplateApi';
|
|
12
|
+
export * from './PageApi';
|
|
13
|
+
export * from './PageComponentApi';
|
|
10
14
|
export * from './ProductApi';
|
|
11
15
|
export * from './ProductCategoryApi';
|
|
12
16
|
export * from './ProductRangeApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -19,12 +19,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AdminApi"), exports);
|
|
20
20
|
__exportStar(require("./AssetApi"), exports);
|
|
21
21
|
__exportStar(require("./AttributeApi"), exports);
|
|
22
|
+
__exportStar(require("./BlogCategoryApi"), exports);
|
|
22
23
|
__exportStar(require("./DefinitionApi"), exports);
|
|
23
24
|
__exportStar(require("./DocumentApi"), exports);
|
|
24
25
|
__exportStar(require("./ExternalApiLogApi"), exports);
|
|
26
|
+
__exportStar(require("./FrontendComponentApi"), exports);
|
|
25
27
|
__exportStar(require("./GoogleCategoryApi"), exports);
|
|
26
28
|
__exportStar(require("./LabelApi"), exports);
|
|
27
29
|
__exportStar(require("./OverlayTemplateApi"), exports);
|
|
30
|
+
__exportStar(require("./PageApi"), exports);
|
|
31
|
+
__exportStar(require("./PageComponentApi"), exports);
|
|
28
32
|
__exportStar(require("./ProductApi"), exports);
|
|
29
33
|
__exportStar(require("./ProductCategoryApi"), exports);
|
|
30
34
|
__exportStar(require("./ProductRangeApi"), exports);
|
|
@@ -22,8 +22,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
44
|
return json;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
|
-
'company': json['company'],
|
|
47
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
50
48
|
'line1': json['line1'],
|
|
51
49
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
52
50
|
'postcode': json['postcode'],
|
|
@@ -22,8 +22,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -47,7 +45,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'company': json['company'],
|
|
48
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
51
49
|
'line1': json['line_1'],
|
|
52
50
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
53
51
|
'postcode': json['postcode'],
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetAllBlogCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetAllBlogCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetAllBlogCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetAllBlogCategoryRequestSortByEnum}
|
|
27
|
+
* @memberof GetAllBlogCategoryRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: GetAllBlogCategoryRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {GetAllBlogCategoryRequestSortDirectionEnum}
|
|
33
|
+
* @memberof GetAllBlogCategoryRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: GetAllBlogCategoryRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetAllBlogCategoryRequest
|
|
40
|
+
*/
|
|
41
|
+
relatedId?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetAllBlogCategoryRequest
|
|
46
|
+
*/
|
|
47
|
+
relatedType?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetAllBlogCategoryRequest
|
|
52
|
+
*/
|
|
53
|
+
includesRelations?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const GetAllBlogCategoryRequestSortByEnum: {
|
|
59
|
+
readonly Id: "id";
|
|
60
|
+
readonly Name: "name";
|
|
61
|
+
};
|
|
62
|
+
export type GetAllBlogCategoryRequestSortByEnum = typeof GetAllBlogCategoryRequestSortByEnum[keyof typeof GetAllBlogCategoryRequestSortByEnum];
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const GetAllBlogCategoryRequestSortDirectionEnum: {
|
|
67
|
+
readonly Asc: "asc";
|
|
68
|
+
readonly Desc: "desc";
|
|
69
|
+
};
|
|
70
|
+
export type GetAllBlogCategoryRequestSortDirectionEnum = typeof GetAllBlogCategoryRequestSortDirectionEnum[keyof typeof GetAllBlogCategoryRequestSortDirectionEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the GetAllBlogCategoryRequest interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfGetAllBlogCategoryRequest(value: object): value is GetAllBlogCategoryRequest;
|
|
75
|
+
export declare function GetAllBlogCategoryRequestFromJSON(json: any): GetAllBlogCategoryRequest;
|
|
76
|
+
export declare function GetAllBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllBlogCategoryRequest;
|
|
77
|
+
export declare function GetAllBlogCategoryRequestToJSON(json: any): GetAllBlogCategoryRequest;
|
|
78
|
+
export declare function GetAllBlogCategoryRequestToJSONTyped(value?: GetAllBlogCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.GetAllBlogCategoryRequestSortDirectionEnum = exports.GetAllBlogCategoryRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfGetAllBlogCategoryRequest = instanceOfGetAllBlogCategoryRequest;
|
|
18
|
+
exports.GetAllBlogCategoryRequestFromJSON = GetAllBlogCategoryRequestFromJSON;
|
|
19
|
+
exports.GetAllBlogCategoryRequestFromJSONTyped = GetAllBlogCategoryRequestFromJSONTyped;
|
|
20
|
+
exports.GetAllBlogCategoryRequestToJSON = GetAllBlogCategoryRequestToJSON;
|
|
21
|
+
exports.GetAllBlogCategoryRequestToJSONTyped = GetAllBlogCategoryRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetAllBlogCategoryRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
Name: 'name'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.GetAllBlogCategoryRequestSortDirectionEnum = {
|
|
33
|
+
Asc: 'asc',
|
|
34
|
+
Desc: 'desc'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetAllBlogCategoryRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfGetAllBlogCategoryRequest(value) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function GetAllBlogCategoryRequestFromJSON(json) {
|
|
43
|
+
return GetAllBlogCategoryRequestFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function GetAllBlogCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
51
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
52
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
53
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
54
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
55
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function GetAllBlogCategoryRequestToJSON(json) {
|
|
59
|
+
return GetAllBlogCategoryRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function GetAllBlogCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'search': value['search'],
|
|
68
|
+
'sortBy': value['sortBy'],
|
|
69
|
+
'sortDirection': value['sortDirection'],
|
|
70
|
+
'related_id': value['relatedId'],
|
|
71
|
+
'related_type': value['relatedType'],
|
|
72
|
+
'includes_relations': value['includesRelations'],
|
|
73
|
+
};
|
|
74
|
+
}
|