@digital8/lighting-illusions-ts-sdk 0.0.1627 → 0.0.1629
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 +10 -0
- package/README.md +12 -2
- package/dist/apis/BlogCategoriesApi.d.ts +109 -0
- package/dist/apis/BlogCategoriesApi.js +433 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/GetAllBlogCategoryRequest.d.ts +78 -0
- package/dist/models/GetAllBlogCategoryRequest.js +74 -0
- package/dist/models/IndexBlogCategoryRequest.d.ts +90 -0
- package/dist/models/IndexBlogCategoryRequest.js +78 -0
- package/dist/models/StoreBlogCategoryRequest.d.ts +45 -0
- package/dist/models/StoreBlogCategoryRequest.js +60 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/UpdateBlogCategoryRequest.d.ts +45 -0
- package/dist/models/UpdateBlogCategoryRequest.js +60 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/BlogCategoriesApi.md +407 -0
- package/docs/GetAllBlogCategoryRequest.md +44 -0
- package/docs/IndexBlogCategoryRequest.md +48 -0
- package/docs/StoreBlogCategoryRequest.md +38 -0
- package/docs/UpdateBlogCategoryRequest.md +38 -0
- package/package.json +1 -1
- package/src/apis/BlogCategoriesApi.ts +334 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/GetAllBlogCategoryRequest.ts +125 -0
- package/src/models/IndexBlogCategoryRequest.ts +141 -0
- package/src/models/StoreBlogCategoryRequest.ts +92 -0
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/UpdateBlogCategoryRequest.ts +92 -0
- package/src/models/index.ts +4 -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.BlogCategoriesApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var BlogCategoriesApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(BlogCategoriesApi, _super);
|
|
75
|
+
function BlogCategoriesApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for destroyBlogCategory without sending the request
|
|
80
|
+
*/
|
|
81
|
+
BlogCategoriesApi.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-categories/{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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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-categories/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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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-categories/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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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-categories/{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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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-categories/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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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-categories/{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
|
+
BlogCategoriesApi.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
|
+
BlogCategoriesApi.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 BlogCategoriesApi;
|
|
432
|
+
}(runtime.BaseAPI));
|
|
433
|
+
exports.BlogCategoriesApi = BlogCategoriesApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -19,6 +19,7 @@ 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("./BlogCategoriesApi"), exports);
|
|
22
23
|
__exportStar(require("./DefinitionApi"), exports);
|
|
23
24
|
__exportStar(require("./DocumentApi"), exports);
|
|
24
25
|
__exportStar(require("./ExternalApiLogApi"), exports);
|
|
@@ -22,6 +22,8 @@ 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;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -44,7 +46,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
return json;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
'company': json['company']
|
|
49
|
+
'company': json['company'],
|
|
48
50
|
'line1': json['line1'],
|
|
49
51
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
50
52
|
'postcode': json['postcode'],
|
|
@@ -26,7 +26,7 @@ export interface AddressResource {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof AddressResource
|
|
28
28
|
*/
|
|
29
|
-
company
|
|
29
|
+
company: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
@@ -38,7 +38,7 @@ export interface AddressResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressResource
|
|
40
40
|
*/
|
|
41
|
-
line2
|
|
41
|
+
line2?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -22,9 +22,9 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -47,9 +47,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'company': json['company']
|
|
50
|
+
'company': json['company'],
|
|
51
51
|
'line1': json['line_1'],
|
|
52
|
-
'line2': json['line_2'],
|
|
52
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
53
53
|
'postcode': json['postcode'],
|
|
54
54
|
'suburb': json['suburb'],
|
|
55
55
|
'country': json['country'],
|
|
@@ -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
|
+
}
|