@digital8/lighting-illusions-ts-sdk 0.0.1611 → 0.0.1613
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 +0 -14
- package/README.md +2 -9
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- 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 +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/index.ts +0 -6
- package/dist/apis/RedirectApi.d.ts +0 -33
- package/dist/apis/RedirectApi.js +0 -138
- package/dist/models/IndexRedirectRequest.d.ts +0 -124
- package/dist/models/IndexRedirectRequest.js +0 -95
- package/dist/models/PaginatedRedirectListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedRedirectListResourceResponse.js +0 -57
- package/dist/models/RedirectFrontendResource.d.ts +0 -62
- package/dist/models/RedirectFrontendResource.js +0 -71
- package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/RedirectFrontendResourceArrayResponse.js +0 -50
- package/dist/models/RedirectListResource.d.ts +0 -69
- package/dist/models/RedirectListResource.js +0 -76
- package/dist/models/RedirectListResourceArrayResponse.d.ts +0 -33
- package/dist/models/RedirectListResourceArrayResponse.js +0 -50
- package/docs/IndexRedirectRequest.md +0 -56
- package/docs/PaginatedRedirectListResourceResponse.md +0 -36
- package/docs/RedirectApi.md +0 -74
- package/docs/RedirectFrontendResource.md +0 -44
- package/docs/RedirectFrontendResourceArrayResponse.md +0 -34
- package/docs/RedirectListResource.md +0 -46
- package/docs/RedirectListResourceArrayResponse.md +0 -34
- package/src/apis/RedirectApi.ts +0 -77
- package/src/models/IndexRedirectRequest.ts +0 -184
- package/src/models/PaginatedRedirectListResourceResponse.ts +0 -90
- package/src/models/RedirectFrontendResource.ts +0 -111
- package/src/models/RedirectFrontendResourceArrayResponse.ts +0 -73
- package/src/models/RedirectListResource.ts +0 -128
- package/src/models/RedirectListResourceArrayResponse.ts +0 -73
|
@@ -1,69 +0,0 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface RedirectListResource
|
|
17
|
-
*/
|
|
18
|
-
export interface RedirectListResource {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof RedirectListResource
|
|
23
|
-
*/
|
|
24
|
-
id: number;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {SiteLiteResource}
|
|
28
|
-
* @memberof RedirectListResource
|
|
29
|
-
*/
|
|
30
|
-
site: SiteLiteResource | null;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof RedirectListResource
|
|
35
|
-
*/
|
|
36
|
-
redirectableType: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof RedirectListResource
|
|
41
|
-
*/
|
|
42
|
-
redirectableId: number;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof RedirectListResource
|
|
47
|
-
*/
|
|
48
|
-
fromSlug: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof RedirectListResource
|
|
53
|
-
*/
|
|
54
|
-
toSlug: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {number}
|
|
58
|
-
* @memberof RedirectListResource
|
|
59
|
-
*/
|
|
60
|
-
status: number;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Check if a given object implements the RedirectListResource interface.
|
|
64
|
-
*/
|
|
65
|
-
export declare function instanceOfRedirectListResource(value: object): value is RedirectListResource;
|
|
66
|
-
export declare function RedirectListResourceFromJSON(json: any): RedirectListResource;
|
|
67
|
-
export declare function RedirectListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectListResource;
|
|
68
|
-
export declare function RedirectListResourceToJSON(json: any): RedirectListResource;
|
|
69
|
-
export declare function RedirectListResourceToJSONTyped(value?: RedirectListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,76 +0,0 @@
|
|
|
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.instanceOfRedirectListResource = instanceOfRedirectListResource;
|
|
17
|
-
exports.RedirectListResourceFromJSON = RedirectListResourceFromJSON;
|
|
18
|
-
exports.RedirectListResourceFromJSONTyped = RedirectListResourceFromJSONTyped;
|
|
19
|
-
exports.RedirectListResourceToJSON = RedirectListResourceToJSON;
|
|
20
|
-
exports.RedirectListResourceToJSONTyped = RedirectListResourceToJSONTyped;
|
|
21
|
-
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the RedirectListResource interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfRedirectListResource(value) {
|
|
26
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('site' in value) || value['site'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('redirectableType' in value) || value['redirectableType'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('redirectableId' in value) || value['redirectableId'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('fromSlug' in value) || value['fromSlug'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('toSlug' in value) || value['toSlug'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
-
return false;
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
function RedirectListResourceFromJSON(json) {
|
|
43
|
-
return RedirectListResourceFromJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
function RedirectListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
-
if (json == null) {
|
|
47
|
-
return json;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'id': json['id'],
|
|
51
|
-
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
52
|
-
'redirectableType': json['redirectableType'],
|
|
53
|
-
'redirectableId': json['redirectableId'],
|
|
54
|
-
'fromSlug': json['fromSlug'],
|
|
55
|
-
'toSlug': json['toSlug'],
|
|
56
|
-
'status': json['status'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function RedirectListResourceToJSON(json) {
|
|
60
|
-
return RedirectListResourceToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
function RedirectListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
'id': value['id'],
|
|
69
|
-
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
70
|
-
'redirectableType': value['redirectableType'],
|
|
71
|
-
'redirectableId': value['redirectableId'],
|
|
72
|
-
'fromSlug': value['fromSlug'],
|
|
73
|
-
'toSlug': value['toSlug'],
|
|
74
|
-
'status': value['status'],
|
|
75
|
-
};
|
|
76
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { RedirectListResource } from './RedirectListResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface RedirectListResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface RedirectListResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<RedirectListResource>}
|
|
22
|
-
* @memberof RedirectListResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<RedirectListResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the RedirectListResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfRedirectListResourceArrayResponse(value: object): value is RedirectListResourceArrayResponse;
|
|
30
|
-
export declare function RedirectListResourceArrayResponseFromJSON(json: any): RedirectListResourceArrayResponse;
|
|
31
|
-
export declare function RedirectListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectListResourceArrayResponse;
|
|
32
|
-
export declare function RedirectListResourceArrayResponseToJSON(json: any): RedirectListResourceArrayResponse;
|
|
33
|
-
export declare function RedirectListResourceArrayResponseToJSONTyped(value?: RedirectListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfRedirectListResourceArrayResponse = instanceOfRedirectListResourceArrayResponse;
|
|
17
|
-
exports.RedirectListResourceArrayResponseFromJSON = RedirectListResourceArrayResponseFromJSON;
|
|
18
|
-
exports.RedirectListResourceArrayResponseFromJSONTyped = RedirectListResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.RedirectListResourceArrayResponseToJSON = RedirectListResourceArrayResponseToJSON;
|
|
20
|
-
exports.RedirectListResourceArrayResponseToJSONTyped = RedirectListResourceArrayResponseToJSONTyped;
|
|
21
|
-
var RedirectListResource_1 = require("./RedirectListResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the RedirectListResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfRedirectListResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function RedirectListResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return RedirectListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function RedirectListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(RedirectListResource_1.RedirectListResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function RedirectListResourceArrayResponseToJSON(json) {
|
|
40
|
-
return RedirectListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function RedirectListResourceArrayResponseToJSONTyped(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(RedirectListResource_1.RedirectListResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# IndexRedirectRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`search` | string
|
|
10
|
-
`sortBy` | string
|
|
11
|
-
`sortDirection` | string
|
|
12
|
-
`perPage` | number
|
|
13
|
-
`page` | number
|
|
14
|
-
`siteId` | Array<string>
|
|
15
|
-
`redirectableType` | Array<string>
|
|
16
|
-
`relatedId` | number
|
|
17
|
-
`relatedType` | string
|
|
18
|
-
`includesRelations` | boolean
|
|
19
|
-
`productChildId` | number
|
|
20
|
-
`productRangeId` | number
|
|
21
|
-
|
|
22
|
-
## Example
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import type { IndexRedirectRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
26
|
-
|
|
27
|
-
// TODO: Update the object below with actual values
|
|
28
|
-
const example = {
|
|
29
|
-
"search": null,
|
|
30
|
-
"sortBy": null,
|
|
31
|
-
"sortDirection": null,
|
|
32
|
-
"perPage": null,
|
|
33
|
-
"page": null,
|
|
34
|
-
"siteId": null,
|
|
35
|
-
"redirectableType": null,
|
|
36
|
-
"relatedId": null,
|
|
37
|
-
"relatedType": null,
|
|
38
|
-
"includesRelations": null,
|
|
39
|
-
"productChildId": null,
|
|
40
|
-
"productRangeId": null,
|
|
41
|
-
} satisfies IndexRedirectRequest
|
|
42
|
-
|
|
43
|
-
console.log(example)
|
|
44
|
-
|
|
45
|
-
// Convert the instance to a JSON string
|
|
46
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
-
console.log(exampleJSON)
|
|
48
|
-
|
|
49
|
-
// Parse the JSON string back to an object
|
|
50
|
-
const exampleParsed = JSON.parse(exampleJSON) as IndexRedirectRequest
|
|
51
|
-
console.log(exampleParsed)
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
|
-
|
|
56
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedRedirectListResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<RedirectListResource>](RedirectListResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedRedirectListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"meta": null,
|
|
21
|
-
} satisfies PaginatedRedirectListResourceResponse
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaginatedRedirectListResourceResponse
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
package/docs/RedirectApi.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# RedirectApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**indexRedirect**](RedirectApi.md#indexredirectoperation) | **POST** /admin-api/redirect/list | Auto-generated: indexRedirect |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## indexRedirect
|
|
12
|
-
|
|
13
|
-
> PaginatedRedirectListResourceResponse indexRedirect(indexRedirectRequest)
|
|
14
|
-
|
|
15
|
-
Auto-generated: indexRedirect
|
|
16
|
-
|
|
17
|
-
### Example
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
import {
|
|
21
|
-
Configuration,
|
|
22
|
-
RedirectApi,
|
|
23
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
24
|
-
import type { IndexRedirectOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
-
|
|
26
|
-
async function example() {
|
|
27
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
28
|
-
const api = new RedirectApi();
|
|
29
|
-
|
|
30
|
-
const body = {
|
|
31
|
-
// IndexRedirectRequest (optional)
|
|
32
|
-
indexRedirectRequest: ...,
|
|
33
|
-
} satisfies IndexRedirectOperationRequest;
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
const data = await api.indexRedirect(body);
|
|
37
|
-
console.log(data);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
console.error(error);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Run the test
|
|
44
|
-
example().catch(console.error);
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Parameters
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
| Name | Type | Description | Notes |
|
|
51
|
-
|------------- | ------------- | ------------- | -------------|
|
|
52
|
-
| **indexRedirectRequest** | [IndexRedirectRequest](IndexRedirectRequest.md) | | [Optional] |
|
|
53
|
-
|
|
54
|
-
### Return type
|
|
55
|
-
|
|
56
|
-
[**PaginatedRedirectListResourceResponse**](PaginatedRedirectListResourceResponse.md)
|
|
57
|
-
|
|
58
|
-
### Authorization
|
|
59
|
-
|
|
60
|
-
No authorization required
|
|
61
|
-
|
|
62
|
-
### HTTP request headers
|
|
63
|
-
|
|
64
|
-
- **Content-Type**: `application/json`
|
|
65
|
-
- **Accept**: `application/json`
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### HTTP response details
|
|
69
|
-
| Status code | Description | Response headers |
|
|
70
|
-
|-------------|-------------|------------------|
|
|
71
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\RedirectListResource[]>> | - |
|
|
72
|
-
|
|
73
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
74
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# RedirectFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`siteId` | number
|
|
11
|
-
`fromSlug` | string
|
|
12
|
-
`toSlug` | string
|
|
13
|
-
`status` | number
|
|
14
|
-
`redirectableType` | string
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import type { RedirectFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
-
|
|
21
|
-
// TODO: Update the object below with actual values
|
|
22
|
-
const example = {
|
|
23
|
-
"id": null,
|
|
24
|
-
"siteId": null,
|
|
25
|
-
"fromSlug": null,
|
|
26
|
-
"toSlug": null,
|
|
27
|
-
"status": null,
|
|
28
|
-
"redirectableType": null,
|
|
29
|
-
} satisfies RedirectFrontendResource
|
|
30
|
-
|
|
31
|
-
console.log(example)
|
|
32
|
-
|
|
33
|
-
// Convert the instance to a JSON string
|
|
34
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
-
console.log(exampleJSON)
|
|
36
|
-
|
|
37
|
-
// Parse the JSON string back to an object
|
|
38
|
-
const exampleParsed = JSON.parse(exampleJSON) as RedirectFrontendResource
|
|
39
|
-
console.log(exampleParsed)
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
-
|
|
44
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# RedirectFrontendResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<RedirectFrontendResource>](RedirectFrontendResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { RedirectFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies RedirectFrontendResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as RedirectFrontendResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# RedirectListResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
11
|
-
`redirectableType` | string
|
|
12
|
-
`redirectableId` | number
|
|
13
|
-
`fromSlug` | string
|
|
14
|
-
`toSlug` | string
|
|
15
|
-
`status` | number
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import type { RedirectListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
-
|
|
22
|
-
// TODO: Update the object below with actual values
|
|
23
|
-
const example = {
|
|
24
|
-
"id": null,
|
|
25
|
-
"site": null,
|
|
26
|
-
"redirectableType": null,
|
|
27
|
-
"redirectableId": null,
|
|
28
|
-
"fromSlug": null,
|
|
29
|
-
"toSlug": null,
|
|
30
|
-
"status": null,
|
|
31
|
-
} satisfies RedirectListResource
|
|
32
|
-
|
|
33
|
-
console.log(example)
|
|
34
|
-
|
|
35
|
-
// Convert the instance to a JSON string
|
|
36
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
-
console.log(exampleJSON)
|
|
38
|
-
|
|
39
|
-
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as RedirectListResource
|
|
41
|
-
console.log(exampleParsed)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
-
|
|
46
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# RedirectListResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<RedirectListResource>](RedirectListResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { RedirectListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies RedirectListResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as RedirectListResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
package/src/apis/RedirectApi.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
IndexRedirectRequest,
|
|
19
|
-
PaginatedRedirectListResourceResponse,
|
|
20
|
-
} from '../models/index';
|
|
21
|
-
import {
|
|
22
|
-
IndexRedirectRequestFromJSON,
|
|
23
|
-
IndexRedirectRequestToJSON,
|
|
24
|
-
PaginatedRedirectListResourceResponseFromJSON,
|
|
25
|
-
PaginatedRedirectListResourceResponseToJSON,
|
|
26
|
-
} from '../models/index';
|
|
27
|
-
|
|
28
|
-
export interface IndexRedirectOperationRequest {
|
|
29
|
-
indexRedirectRequest?: IndexRedirectRequest;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
export class RedirectApi extends runtime.BaseAPI {
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Creates request options for indexRedirect without sending the request
|
|
39
|
-
*/
|
|
40
|
-
async indexRedirectRequestOpts(requestParameters: IndexRedirectOperationRequest): Promise<runtime.RequestOpts> {
|
|
41
|
-
const queryParameters: any = {};
|
|
42
|
-
|
|
43
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
44
|
-
|
|
45
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
let urlPath = `/admin-api/redirect/list`;
|
|
49
|
-
|
|
50
|
-
return {
|
|
51
|
-
path: urlPath,
|
|
52
|
-
method: 'POST',
|
|
53
|
-
headers: headerParameters,
|
|
54
|
-
query: queryParameters,
|
|
55
|
-
body: IndexRedirectRequestToJSON(requestParameters['indexRedirectRequest']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Auto-generated: indexRedirect
|
|
61
|
-
*/
|
|
62
|
-
async indexRedirectRaw(requestParameters: IndexRedirectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRedirectListResourceResponse>> {
|
|
63
|
-
const requestOptions = await this.indexRedirectRequestOpts(requestParameters);
|
|
64
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
65
|
-
|
|
66
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRedirectListResourceResponseFromJSON(jsonValue));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Auto-generated: indexRedirect
|
|
71
|
-
*/
|
|
72
|
-
async indexRedirect(requestParameters: IndexRedirectOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRedirectListResourceResponse> {
|
|
73
|
-
const response = await this.indexRedirectRaw(requestParameters, initOverrides);
|
|
74
|
-
return await response.value();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
}
|