@digital8/lighting-illusions-ts-sdk 0.0.1580 → 0.0.1582
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 +18 -0
- package/README.md +11 -2
- package/dist/apis/RedirectApi.d.ts +33 -0
- package/dist/apis/RedirectApi.js +138 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/IndexRedirectRequest.d.ts +112 -0
- package/dist/models/IndexRedirectRequest.js +91 -0
- package/dist/models/ModelAttributeFrontendResource.d.ts +38 -0
- package/dist/models/ModelAttributeFrontendResource.js +55 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedRedirectListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedRedirectListResourceResponse.js +57 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +7 -0
- package/dist/models/ProductRangeFrontendResource.js +5 -0
- package/dist/models/RedirectFrontendResource.d.ts +62 -0
- package/dist/models/RedirectFrontendResource.js +71 -0
- package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/RedirectFrontendResourceArrayResponse.js +50 -0
- package/dist/models/RedirectListResource.d.ts +69 -0
- package/dist/models/RedirectListResource.js +76 -0
- package/dist/models/RedirectListResourceArrayResponse.d.ts +33 -0
- package/dist/models/RedirectListResourceArrayResponse.js +50 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/IndexRedirectRequest.md +52 -0
- package/docs/ModelAttributeFrontendResource.md +36 -0
- package/docs/ModelAttributeFrontendResourceArrayResponse.md +34 -0
- package/docs/PaginatedRedirectListResourceResponse.md +36 -0
- package/docs/ProductRangeFrontendResource.md +2 -0
- package/docs/RedirectApi.md +74 -0
- package/docs/RedirectFrontendResource.md +44 -0
- package/docs/RedirectFrontendResourceArrayResponse.md +34 -0
- package/docs/RedirectListResource.md +46 -0
- package/docs/RedirectListResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/RedirectApi.ts +77 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +3 -2
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/IndexRedirectRequest.ts +168 -0
- package/src/models/ModelAttributeFrontendResource.ts +75 -0
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedRedirectListResourceResponse.ts +90 -0
- package/src/models/ProductRangeFrontendResource.ts +16 -0
- package/src/models/RedirectFrontendResource.ts +111 -0
- package/src/models/RedirectFrontendResourceArrayResponse.ts +73 -0
- package/src/models/RedirectListResource.ts +128 -0
- package/src/models/RedirectListResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -134,6 +134,7 @@ docs/IndexProductChildRequest.md
|
|
|
134
134
|
docs/IndexProductRangeRequest.md
|
|
135
135
|
docs/IndexProductRequest.md
|
|
136
136
|
docs/IndexProductTypeRequest.md
|
|
137
|
+
docs/IndexRedirectRequest.md
|
|
137
138
|
docs/IndexSiteNotificationRequest.md
|
|
138
139
|
docs/IndexSiteRequest.md
|
|
139
140
|
docs/IndexStoreRequest.md
|
|
@@ -162,6 +163,8 @@ docs/MenuListResourceArrayResponse.md
|
|
|
162
163
|
docs/MenuPosition.md
|
|
163
164
|
docs/MenuResource.md
|
|
164
165
|
docs/MenuResourceArrayResponse.md
|
|
166
|
+
docs/ModelAttributeFrontendResource.md
|
|
167
|
+
docs/ModelAttributeFrontendResourceArrayResponse.md
|
|
165
168
|
docs/ModelAttributeListResource.md
|
|
166
169
|
docs/ModelAttributeListResourceArrayResponse.md
|
|
167
170
|
docs/ModelAttributeResource.md
|
|
@@ -215,6 +218,7 @@ docs/PaginatedProductSearchResultResourceResponse.md
|
|
|
215
218
|
docs/PaginatedProductTypeListResourceResponse.md
|
|
216
219
|
docs/PaginatedProductTypeLiteResourceResponse.md
|
|
217
220
|
docs/PaginatedProductTypeResourceResponse.md
|
|
221
|
+
docs/PaginatedRedirectListResourceResponse.md
|
|
218
222
|
docs/PaginatedSiteListResourceResponse.md
|
|
219
223
|
docs/PaginatedSiteLiteResourceResponse.md
|
|
220
224
|
docs/PaginatedSiteNotificationListResourceResponse.md
|
|
@@ -311,6 +315,11 @@ docs/ProductTypeLiteResource.md
|
|
|
311
315
|
docs/ProductTypeLiteResourceArrayResponse.md
|
|
312
316
|
docs/ProductTypeResource.md
|
|
313
317
|
docs/ProductTypeResourceArrayResponse.md
|
|
318
|
+
docs/RedirectApi.md
|
|
319
|
+
docs/RedirectFrontendResource.md
|
|
320
|
+
docs/RedirectFrontendResourceArrayResponse.md
|
|
321
|
+
docs/RedirectListResource.md
|
|
322
|
+
docs/RedirectListResourceArrayResponse.md
|
|
314
323
|
docs/SEOResource.md
|
|
315
324
|
docs/SEOResourceArrayResponse.md
|
|
316
325
|
docs/SearchLinkablesMenuItemRequest.md
|
|
@@ -443,6 +452,7 @@ src/apis/ProductApi.ts
|
|
|
443
452
|
src/apis/ProductCategoryApi.ts
|
|
444
453
|
src/apis/ProductRangeApi.ts
|
|
445
454
|
src/apis/ProductTypeApi.ts
|
|
455
|
+
src/apis/RedirectApi.ts
|
|
446
456
|
src/apis/SiteApi.ts
|
|
447
457
|
src/apis/StoreApi.ts
|
|
448
458
|
src/apis/SupplierApi.ts
|
|
@@ -574,6 +584,7 @@ src/models/IndexProductChildRequest.ts
|
|
|
574
584
|
src/models/IndexProductRangeRequest.ts
|
|
575
585
|
src/models/IndexProductRequest.ts
|
|
576
586
|
src/models/IndexProductTypeRequest.ts
|
|
587
|
+
src/models/IndexRedirectRequest.ts
|
|
577
588
|
src/models/IndexSiteNotificationRequest.ts
|
|
578
589
|
src/models/IndexSiteRequest.ts
|
|
579
590
|
src/models/IndexStoreRequest.ts
|
|
@@ -599,6 +610,8 @@ src/models/MenuListResourceArrayResponse.ts
|
|
|
599
610
|
src/models/MenuPosition.ts
|
|
600
611
|
src/models/MenuResource.ts
|
|
601
612
|
src/models/MenuResourceArrayResponse.ts
|
|
613
|
+
src/models/ModelAttributeFrontendResource.ts
|
|
614
|
+
src/models/ModelAttributeFrontendResourceArrayResponse.ts
|
|
602
615
|
src/models/ModelAttributeListResource.ts
|
|
603
616
|
src/models/ModelAttributeListResourceArrayResponse.ts
|
|
604
617
|
src/models/ModelAttributeResource.ts
|
|
@@ -651,6 +664,7 @@ src/models/PaginatedProductSearchResultResourceResponse.ts
|
|
|
651
664
|
src/models/PaginatedProductTypeListResourceResponse.ts
|
|
652
665
|
src/models/PaginatedProductTypeLiteResourceResponse.ts
|
|
653
666
|
src/models/PaginatedProductTypeResourceResponse.ts
|
|
667
|
+
src/models/PaginatedRedirectListResourceResponse.ts
|
|
654
668
|
src/models/PaginatedSiteListResourceResponse.ts
|
|
655
669
|
src/models/PaginatedSiteLiteResourceResponse.ts
|
|
656
670
|
src/models/PaginatedSiteNotificationListResourceResponse.ts
|
|
@@ -743,6 +757,10 @@ src/models/ProductTypeLiteResource.ts
|
|
|
743
757
|
src/models/ProductTypeLiteResourceArrayResponse.ts
|
|
744
758
|
src/models/ProductTypeResource.ts
|
|
745
759
|
src/models/ProductTypeResourceArrayResponse.ts
|
|
760
|
+
src/models/RedirectFrontendResource.ts
|
|
761
|
+
src/models/RedirectFrontendResourceArrayResponse.ts
|
|
762
|
+
src/models/RedirectListResource.ts
|
|
763
|
+
src/models/RedirectListResourceArrayResponse.ts
|
|
746
764
|
src/models/SEOResource.ts
|
|
747
765
|
src/models/SEOResourceArrayResponse.ts
|
|
748
766
|
src/models/SearchLinkablesMenuItemRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1582
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -184,6 +184,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
184
184
|
*ProductTypeApi* | [**storeProductType**](docs/ProductTypeApi.md#storeproducttypeoperation) | **POST** /admin-api/product-type/create | Auto-generated: storeProductType
|
|
185
185
|
*ProductTypeApi* | [**updateAttachedAttributeProductType**](docs/ProductTypeApi.md#updateattachedattributeproducttype) | **PUT** /admin-api/product-type/{productType}/update-attribute | Auto-generated: updateAttachedAttributeProductType
|
|
186
186
|
*ProductTypeApi* | [**updateProductType**](docs/ProductTypeApi.md#updateproducttypeoperation) | **PUT** /admin-api/product-type/{productType}/update | Auto-generated: updateProductType
|
|
187
|
+
*RedirectApi* | [**indexRedirect**](docs/RedirectApi.md#indexredirectoperation) | **POST** /admin-api/redirect/list | Auto-generated: indexRedirect
|
|
187
188
|
*SiteApi* | [**destroySiteNotification**](docs/SiteApi.md#destroysitenotification) | **DELETE** /admin-api/site/notification/{siteNotification}/delete | Auto-generated: destroySiteNotification
|
|
188
189
|
*SiteApi* | [**getAllSite**](docs/SiteApi.md#getallsite) | **POST** /admin-api/site/all | Auto-generated: getAllSite
|
|
189
190
|
*SiteApi* | [**indexSite**](docs/SiteApi.md#indexsiteoperation) | **POST** /admin-api/site/list | Auto-generated: indexSite
|
|
@@ -350,6 +351,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
350
351
|
- [IndexProductRangeRequest](docs/IndexProductRangeRequest.md)
|
|
351
352
|
- [IndexProductRequest](docs/IndexProductRequest.md)
|
|
352
353
|
- [IndexProductTypeRequest](docs/IndexProductTypeRequest.md)
|
|
354
|
+
- [IndexRedirectRequest](docs/IndexRedirectRequest.md)
|
|
353
355
|
- [IndexSiteNotificationRequest](docs/IndexSiteNotificationRequest.md)
|
|
354
356
|
- [IndexSiteRequest](docs/IndexSiteRequest.md)
|
|
355
357
|
- [IndexStoreRequest](docs/IndexStoreRequest.md)
|
|
@@ -375,6 +377,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
375
377
|
- [MenuPosition](docs/MenuPosition.md)
|
|
376
378
|
- [MenuResource](docs/MenuResource.md)
|
|
377
379
|
- [MenuResourceArrayResponse](docs/MenuResourceArrayResponse.md)
|
|
380
|
+
- [ModelAttributeFrontendResource](docs/ModelAttributeFrontendResource.md)
|
|
381
|
+
- [ModelAttributeFrontendResourceArrayResponse](docs/ModelAttributeFrontendResourceArrayResponse.md)
|
|
378
382
|
- [ModelAttributeListResource](docs/ModelAttributeListResource.md)
|
|
379
383
|
- [ModelAttributeListResourceArrayResponse](docs/ModelAttributeListResourceArrayResponse.md)
|
|
380
384
|
- [ModelAttributeResource](docs/ModelAttributeResource.md)
|
|
@@ -427,6 +431,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
427
431
|
- [PaginatedProductTypeListResourceResponse](docs/PaginatedProductTypeListResourceResponse.md)
|
|
428
432
|
- [PaginatedProductTypeLiteResourceResponse](docs/PaginatedProductTypeLiteResourceResponse.md)
|
|
429
433
|
- [PaginatedProductTypeResourceResponse](docs/PaginatedProductTypeResourceResponse.md)
|
|
434
|
+
- [PaginatedRedirectListResourceResponse](docs/PaginatedRedirectListResourceResponse.md)
|
|
430
435
|
- [PaginatedSiteListResourceResponse](docs/PaginatedSiteListResourceResponse.md)
|
|
431
436
|
- [PaginatedSiteLiteResourceResponse](docs/PaginatedSiteLiteResourceResponse.md)
|
|
432
437
|
- [PaginatedSiteNotificationListResourceResponse](docs/PaginatedSiteNotificationListResourceResponse.md)
|
|
@@ -519,6 +524,10 @@ All URIs are relative to *http://localhost/api*
|
|
|
519
524
|
- [ProductTypeLiteResourceArrayResponse](docs/ProductTypeLiteResourceArrayResponse.md)
|
|
520
525
|
- [ProductTypeResource](docs/ProductTypeResource.md)
|
|
521
526
|
- [ProductTypeResourceArrayResponse](docs/ProductTypeResourceArrayResponse.md)
|
|
527
|
+
- [RedirectFrontendResource](docs/RedirectFrontendResource.md)
|
|
528
|
+
- [RedirectFrontendResourceArrayResponse](docs/RedirectFrontendResourceArrayResponse.md)
|
|
529
|
+
- [RedirectListResource](docs/RedirectListResource.md)
|
|
530
|
+
- [RedirectListResourceArrayResponse](docs/RedirectListResourceArrayResponse.md)
|
|
522
531
|
- [SEOResource](docs/SEOResource.md)
|
|
523
532
|
- [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
|
|
524
533
|
- [SearchLinkablesMenuItemRequest](docs/SearchLinkablesMenuItemRequest.md)
|
|
@@ -644,7 +653,7 @@ and is automatically generated by the
|
|
|
644
653
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
645
654
|
|
|
646
655
|
- API version: `1.0.0`
|
|
647
|
-
- Package version: `0.0.
|
|
656
|
+
- Package version: `0.0.1582`
|
|
648
657
|
- Generator version: `7.21.0`
|
|
649
658
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
650
659
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { IndexRedirectRequest, PaginatedRedirectListResourceResponse } from '../models/index';
|
|
14
|
+
export interface IndexRedirectOperationRequest {
|
|
15
|
+
indexRedirectRequest?: IndexRedirectRequest;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class RedirectApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for indexRedirect without sending the request
|
|
23
|
+
*/
|
|
24
|
+
indexRedirectRequestOpts(requestParameters: IndexRedirectOperationRequest): Promise<runtime.RequestOpts>;
|
|
25
|
+
/**
|
|
26
|
+
* Auto-generated: indexRedirect
|
|
27
|
+
*/
|
|
28
|
+
indexRedirectRaw(requestParameters: IndexRedirectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRedirectListResourceResponse>>;
|
|
29
|
+
/**
|
|
30
|
+
* Auto-generated: indexRedirect
|
|
31
|
+
*/
|
|
32
|
+
indexRedirect(requestParameters?: IndexRedirectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRedirectListResourceResponse>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.RedirectApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var RedirectApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(RedirectApi, _super);
|
|
75
|
+
function RedirectApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for indexRedirect without sending the request
|
|
80
|
+
*/
|
|
81
|
+
RedirectApi.prototype.indexRedirectRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
queryParameters = {};
|
|
86
|
+
headerParameters = {};
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
urlPath = "/admin-api/redirect/list";
|
|
89
|
+
return [2 /*return*/, {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: (0, index_1.IndexRedirectRequestToJSON)(requestParameters['indexRedirectRequest']),
|
|
95
|
+
}];
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Auto-generated: indexRedirect
|
|
101
|
+
*/
|
|
102
|
+
RedirectApi.prototype.indexRedirectRaw = function (requestParameters, initOverrides) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
104
|
+
var requestOptions, response;
|
|
105
|
+
return __generator(this, function (_a) {
|
|
106
|
+
switch (_a.label) {
|
|
107
|
+
case 0: return [4 /*yield*/, this.indexRedirectRequestOpts(requestParameters)];
|
|
108
|
+
case 1:
|
|
109
|
+
requestOptions = _a.sent();
|
|
110
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
111
|
+
case 2:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedRedirectListResourceResponseFromJSON)(jsonValue); })];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Auto-generated: indexRedirect
|
|
120
|
+
*/
|
|
121
|
+
RedirectApi.prototype.indexRedirect = function () {
|
|
122
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
123
|
+
var response;
|
|
124
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
switch (_a.label) {
|
|
127
|
+
case 0: return [4 /*yield*/, this.indexRedirectRaw(requestParameters, initOverrides)];
|
|
128
|
+
case 1:
|
|
129
|
+
response = _a.sent();
|
|
130
|
+
return [4 /*yield*/, response.value()];
|
|
131
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
return RedirectApi;
|
|
137
|
+
}(runtime.BaseAPI));
|
|
138
|
+
exports.RedirectApi = RedirectApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './ProductApi';
|
|
|
13
13
|
export * from './ProductCategoryApi';
|
|
14
14
|
export * from './ProductRangeApi';
|
|
15
15
|
export * from './ProductTypeApi';
|
|
16
|
+
export * from './RedirectApi';
|
|
16
17
|
export * from './SiteApi';
|
|
17
18
|
export * from './StoreApi';
|
|
18
19
|
export * from './SupplierApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./ProductApi"), exports);
|
|
|
31
31
|
__exportStar(require("./ProductCategoryApi"), exports);
|
|
32
32
|
__exportStar(require("./ProductRangeApi"), exports);
|
|
33
33
|
__exportStar(require("./ProductTypeApi"), exports);
|
|
34
|
+
__exportStar(require("./RedirectApi"), exports);
|
|
34
35
|
__exportStar(require("./SiteApi"), exports);
|
|
35
36
|
__exportStar(require("./StoreApi"), exports);
|
|
36
37
|
__exportStar(require("./SupplierApi"), exports);
|
|
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AddressFrontendResource
|
|
22
22
|
*/
|
|
23
|
-
company
|
|
23
|
+
company: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
line2
|
|
35
|
+
line2: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -22,8 +22,12 @@ 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;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
27
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
28
32
|
return false;
|
|
29
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -44,9 +48,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
48
|
return json;
|
|
45
49
|
}
|
|
46
50
|
return {
|
|
47
|
-
'company': json['company']
|
|
51
|
+
'company': json['company'],
|
|
48
52
|
'line1': json['line1'],
|
|
49
|
-
'line2': json['line2']
|
|
53
|
+
'line2': json['line2'],
|
|
50
54
|
'postcode': json['postcode'],
|
|
51
55
|
'suburb': json['suburb'],
|
|
52
56
|
'country': json['country'],
|
|
@@ -22,6 +22,8 @@ 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;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('line2' in value) || value['line2'] === undefined)
|
|
@@ -47,7 +49,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
}
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'company': json['company']
|
|
52
|
+
'company': json['company'],
|
|
51
53
|
'line1': json['line_1'],
|
|
52
54
|
'line2': json['line_2'],
|
|
53
55
|
'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,112 @@
|
|
|
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 IndexRedirectRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexRedirectRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexRedirectRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexRedirectRequestSortByEnum}
|
|
27
|
+
* @memberof IndexRedirectRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexRedirectRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexRedirectRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexRedirectRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexRedirectRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexRedirectRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexRedirectRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexRedirectRequest
|
|
52
|
+
*/
|
|
53
|
+
siteId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IndexRedirectRequest
|
|
58
|
+
*/
|
|
59
|
+
redirectableType?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof IndexRedirectRequest
|
|
64
|
+
*/
|
|
65
|
+
relatedId?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {IndexRedirectRequestRelatedTypeEnum}
|
|
69
|
+
* @memberof IndexRedirectRequest
|
|
70
|
+
*/
|
|
71
|
+
relatedType?: IndexRedirectRequestRelatedTypeEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof IndexRedirectRequest
|
|
76
|
+
*/
|
|
77
|
+
includesRelations?: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const IndexRedirectRequestSortByEnum: {
|
|
83
|
+
readonly Id: "id";
|
|
84
|
+
};
|
|
85
|
+
export type IndexRedirectRequestSortByEnum = typeof IndexRedirectRequestSortByEnum[keyof typeof IndexRedirectRequestSortByEnum];
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const IndexRedirectRequestSortDirectionEnum: {
|
|
90
|
+
readonly Asc: "asc";
|
|
91
|
+
readonly Desc: "desc";
|
|
92
|
+
};
|
|
93
|
+
export type IndexRedirectRequestSortDirectionEnum = typeof IndexRedirectRequestSortDirectionEnum[keyof typeof IndexRedirectRequestSortDirectionEnum];
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export declare const IndexRedirectRequestRelatedTypeEnum: {
|
|
98
|
+
readonly ProductChildSiteDetail: "productChildSiteDetail";
|
|
99
|
+
readonly ProductRangeSiteDetail: "productRangeSiteDetail";
|
|
100
|
+
readonly ProductCategory: "productCategory";
|
|
101
|
+
readonly Supplier: "supplier";
|
|
102
|
+
readonly Tag: "tag";
|
|
103
|
+
};
|
|
104
|
+
export type IndexRedirectRequestRelatedTypeEnum = typeof IndexRedirectRequestRelatedTypeEnum[keyof typeof IndexRedirectRequestRelatedTypeEnum];
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the IndexRedirectRequest interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfIndexRedirectRequest(value: object): value is IndexRedirectRequest;
|
|
109
|
+
export declare function IndexRedirectRequestFromJSON(json: any): IndexRedirectRequest;
|
|
110
|
+
export declare function IndexRedirectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexRedirectRequest;
|
|
111
|
+
export declare function IndexRedirectRequestToJSON(json: any): IndexRedirectRequest;
|
|
112
|
+
export declare function IndexRedirectRequestToJSONTyped(value?: IndexRedirectRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
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.IndexRedirectRequestRelatedTypeEnum = exports.IndexRedirectRequestSortDirectionEnum = exports.IndexRedirectRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexRedirectRequest = instanceOfIndexRedirectRequest;
|
|
18
|
+
exports.IndexRedirectRequestFromJSON = IndexRedirectRequestFromJSON;
|
|
19
|
+
exports.IndexRedirectRequestFromJSONTyped = IndexRedirectRequestFromJSONTyped;
|
|
20
|
+
exports.IndexRedirectRequestToJSON = IndexRedirectRequestToJSON;
|
|
21
|
+
exports.IndexRedirectRequestToJSONTyped = IndexRedirectRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexRedirectRequestSortByEnum = {
|
|
26
|
+
Id: 'id'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.IndexRedirectRequestSortDirectionEnum = {
|
|
32
|
+
Asc: 'asc',
|
|
33
|
+
Desc: 'desc'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.IndexRedirectRequestRelatedTypeEnum = {
|
|
39
|
+
ProductChildSiteDetail: 'productChildSiteDetail',
|
|
40
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
41
|
+
ProductCategory: 'productCategory',
|
|
42
|
+
Supplier: 'supplier',
|
|
43
|
+
Tag: 'tag'
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the IndexRedirectRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
function instanceOfIndexRedirectRequest(value) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function IndexRedirectRequestFromJSON(json) {
|
|
52
|
+
return IndexRedirectRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function IndexRedirectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
60
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
61
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
62
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
63
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
64
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
65
|
+
'redirectableType': json['redirectable_type'] == null ? undefined : json['redirectable_type'],
|
|
66
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function IndexRedirectRequestToJSON(json) {
|
|
72
|
+
return IndexRedirectRequestToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function IndexRedirectRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
75
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'search': value['search'],
|
|
81
|
+
'sortBy': value['sortBy'],
|
|
82
|
+
'sortDirection': value['sortDirection'],
|
|
83
|
+
'per_page': value['perPage'],
|
|
84
|
+
'page': value['page'],
|
|
85
|
+
'site_id': value['siteId'],
|
|
86
|
+
'redirectable_type': value['redirectableType'],
|
|
87
|
+
'related_id': value['relatedId'],
|
|
88
|
+
'related_type': value['relatedType'],
|
|
89
|
+
'includes_relations': value['includesRelations'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -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 ModelAttributeFrontendResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelAttributeFrontendResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelAttributeFrontendResource
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelAttributeFrontendResource
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ModelAttributeFrontendResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfModelAttributeFrontendResource(value: object): value is ModelAttributeFrontendResource;
|
|
35
|
+
export declare function ModelAttributeFrontendResourceFromJSON(json: any): ModelAttributeFrontendResource;
|
|
36
|
+
export declare function ModelAttributeFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResource;
|
|
37
|
+
export declare function ModelAttributeFrontendResourceToJSON(json: any): ModelAttributeFrontendResource;
|
|
38
|
+
export declare function ModelAttributeFrontendResourceToJSONTyped(value?: ModelAttributeFrontendResource | null, ignoreDiscriminator?: boolean): any;
|