@digital8/lighting-illusions-ts-sdk 0.0.621 → 0.0.623

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