@digital8/lighting-illusions-ts-sdk 0.0.1583 → 0.0.1584
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 -40
- package/README.md +11 -26
- package/dist/apis/RedirectApi.d.ts +33 -0
- package/dist/apis/RedirectApi.js +138 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/GlobalSearchProductResource.d.ts +0 -6
- package/dist/models/GlobalSearchProductResource.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/IndexRedirectRequest.d.ts +124 -0
- package/dist/models/IndexRedirectRequest.js +95 -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/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -2
- package/dist/models/ProductRangeFrontendResource.d.ts +7 -0
- package/dist/models/ProductRangeFrontendResource.js +5 -0
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- 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/index.d.ts +8 -19
- package/dist/models/index.js +8 -19
- package/docs/GlobalSearchProductResource.md +0 -2
- package/docs/{ListAssetsProductRegistrationRequest.md → IndexRedirectRequest.md} +12 -8
- package/docs/{ProductRegistrationAssetType.md → ModelAttributeFrontendResource.md} +8 -4
- package/docs/{ProductRegistrationLiteResourceArrayResponse.md → ModelAttributeFrontendResourceArrayResponse.md} +5 -5
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedRedirectListResourceResponse.md} +5 -5
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductRangeFrontendResource.md +2 -0
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/RedirectApi.md +74 -0
- package/docs/{ProductRegistrationAssetResource.md → RedirectFrontendResource.md} +14 -8
- package/docs/{ProductRegistrationResourceArrayResponse.md → RedirectFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationCustomerResource.md → RedirectListResource.md} +16 -14
- package/docs/{ProductRegistrationLiteResource.md → RedirectListResourceArrayResponse.md} +6 -8
- package/package.json +1 -1
- package/src/apis/RedirectApi.ts +77 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/GlobalSearchProductResource.ts +0 -9
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/IndexRedirectRequest.ts +184 -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/ProductChildListResource.ts +0 -8
- package/src/models/ProductRangeFrontendResource.ts +16 -0
- package/src/models/ProductSearchResultResource.ts +0 -9
- 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/index.ts +8 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -95
- package/dist/apis/ProductRegistrationApi.js +0 -377
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/ListAssetsProductRegistrationRequest.js +0 -83
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -90
- package/dist/models/ProductRegistrationResource.js +0 -81
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/GetAllProductRegistrationRequest.md +0 -46
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationListResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -344
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -297
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -171
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# IndexRedirectRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -11,16 +11,18 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
-
`
|
|
15
|
-
`
|
|
14
|
+
`siteId` | Array<string>
|
|
15
|
+
`redirectableType` | Array<string>
|
|
16
16
|
`relatedId` | number
|
|
17
17
|
`relatedType` | string
|
|
18
18
|
`includesRelations` | boolean
|
|
19
|
+
`productChildId` | number
|
|
20
|
+
`productRangeId` | number
|
|
19
21
|
|
|
20
22
|
## Example
|
|
21
23
|
|
|
22
24
|
```typescript
|
|
23
|
-
import type {
|
|
25
|
+
import type { IndexRedirectRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
26
|
|
|
25
27
|
// TODO: Update the object below with actual values
|
|
26
28
|
const example = {
|
|
@@ -29,12 +31,14 @@ const example = {
|
|
|
29
31
|
"sortDirection": null,
|
|
30
32
|
"perPage": null,
|
|
31
33
|
"page": null,
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
+
"siteId": null,
|
|
35
|
+
"redirectableType": null,
|
|
34
36
|
"relatedId": null,
|
|
35
37
|
"relatedType": null,
|
|
36
38
|
"includesRelations": null,
|
|
37
|
-
|
|
39
|
+
"productChildId": null,
|
|
40
|
+
"productRangeId": null,
|
|
41
|
+
} satisfies IndexRedirectRequest
|
|
38
42
|
|
|
39
43
|
console.log(example)
|
|
40
44
|
|
|
@@ -43,7 +47,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
43
47
|
console.log(exampleJSON)
|
|
44
48
|
|
|
45
49
|
// Parse the JSON string back to an object
|
|
46
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as IndexRedirectRequest
|
|
47
51
|
console.log(exampleParsed)
|
|
48
52
|
```
|
|
49
53
|
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ModelAttributeFrontendResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`value` | string
|
|
9
11
|
|
|
10
12
|
## Example
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
13
|
-
import type {
|
|
15
|
+
import type { ModelAttributeFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
16
|
|
|
15
17
|
// TODO: Update the object below with actual values
|
|
16
18
|
const example = {
|
|
17
|
-
|
|
19
|
+
"name": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies ModelAttributeFrontendResource
|
|
18
22
|
|
|
19
23
|
console.log(example)
|
|
20
24
|
|
|
@@ -23,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
27
|
console.log(exampleJSON)
|
|
24
28
|
|
|
25
29
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelAttributeFrontendResource
|
|
27
31
|
console.log(exampleParsed)
|
|
28
32
|
```
|
|
29
33
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ModelAttributeFrontendResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ModelAttributeFrontendResource>](ModelAttributeFrontendResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ModelAttributeFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ModelAttributeFrontendResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelAttributeFrontendResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PaginatedRedirectListResourceResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<RedirectListResource>](RedirectListResource.md)
|
|
10
10
|
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { PaginatedRedirectListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"data": null,
|
|
20
20
|
"meta": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies PaginatedRedirectListResourceResponse
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedRedirectListResourceResponse
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -14,7 +14,6 @@ Name | Type
|
|
|
14
14
|
`stock` | number
|
|
15
15
|
`isDisabled` | string
|
|
16
16
|
`displayInSocialFeed` | boolean
|
|
17
|
-
`quantity` | string
|
|
18
17
|
`netsuiteId` | number
|
|
19
18
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
20
19
|
`siteDetails` | [Array<ProductChildSiteDetailLiteResource>](ProductChildSiteDetailLiteResource.md)
|
|
@@ -34,7 +33,6 @@ const example = {
|
|
|
34
33
|
"stock": null,
|
|
35
34
|
"isDisabled": null,
|
|
36
35
|
"displayInSocialFeed": null,
|
|
37
|
-
"quantity": null,
|
|
38
36
|
"netsuiteId": null,
|
|
39
37
|
"thumbnail": null,
|
|
40
38
|
"siteDetails": null,
|
|
@@ -21,6 +21,7 @@ Name | Type
|
|
|
21
21
|
`seo` | object
|
|
22
22
|
`assets` | object
|
|
23
23
|
`thumbnail` | string
|
|
24
|
+
`attributes` | [Array<ModelAttributeFrontendResource>](ModelAttributeFrontendResource.md)
|
|
24
25
|
|
|
25
26
|
## Example
|
|
26
27
|
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"seo": null,
|
|
45
46
|
"assets": null,
|
|
46
47
|
"thumbnail": null,
|
|
48
|
+
"attributes": null,
|
|
47
49
|
} satisfies ProductRangeFrontendResource
|
|
48
50
|
|
|
49
51
|
console.log(example)
|
|
@@ -9,7 +9,6 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`sku` | string
|
|
11
11
|
`model` | string
|
|
12
|
-
`modelRaw` | string
|
|
13
12
|
`barcode` | string
|
|
14
13
|
`name` | string
|
|
15
14
|
`slug` | string
|
|
@@ -36,7 +35,6 @@ const example = {
|
|
|
36
35
|
"id": null,
|
|
37
36
|
"sku": null,
|
|
38
37
|
"model": null,
|
|
39
|
-
"modelRaw": null,
|
|
40
38
|
"barcode": null,
|
|
41
39
|
"name": null,
|
|
42
40
|
"slug": null,
|
|
@@ -0,0 +1,74 @@
|
|
|
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,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# RedirectFrontendResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -7,20 +7,26 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`
|
|
11
|
-
`
|
|
10
|
+
`siteId` | number
|
|
11
|
+
`fromSlug` | string
|
|
12
|
+
`toSlug` | string
|
|
13
|
+
`status` | number
|
|
14
|
+
`redirectableType` | string
|
|
12
15
|
|
|
13
16
|
## Example
|
|
14
17
|
|
|
15
18
|
```typescript
|
|
16
|
-
import type {
|
|
19
|
+
import type { RedirectFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
20
|
|
|
18
21
|
// TODO: Update the object below with actual values
|
|
19
22
|
const example = {
|
|
20
23
|
"id": null,
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
+
"siteId": null,
|
|
25
|
+
"fromSlug": null,
|
|
26
|
+
"toSlug": null,
|
|
27
|
+
"status": null,
|
|
28
|
+
"redirectableType": null,
|
|
29
|
+
} satisfies RedirectFrontendResource
|
|
24
30
|
|
|
25
31
|
console.log(example)
|
|
26
32
|
|
|
@@ -29,7 +35,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
35
|
console.log(exampleJSON)
|
|
30
36
|
|
|
31
37
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as RedirectFrontendResource
|
|
33
39
|
console.log(exampleParsed)
|
|
34
40
|
```
|
|
35
41
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# RedirectFrontendResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<RedirectFrontendResource>](RedirectFrontendResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { RedirectFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies RedirectFrontendResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as RedirectFrontendResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# RedirectListResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -7,26 +7,28 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`
|
|
11
|
-
`
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
10
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
11
|
+
`redirectableType` | string
|
|
12
|
+
`redirectableId` | number
|
|
13
|
+
`fromSlug` | string
|
|
14
|
+
`toSlug` | string
|
|
15
|
+
`status` | number
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
18
19
|
```typescript
|
|
19
|
-
import type {
|
|
20
|
+
import type { RedirectListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
21
|
|
|
21
22
|
// TODO: Update the object below with actual values
|
|
22
23
|
const example = {
|
|
23
24
|
"id": null,
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
25
|
+
"site": null,
|
|
26
|
+
"redirectableType": null,
|
|
27
|
+
"redirectableId": null,
|
|
28
|
+
"fromSlug": null,
|
|
29
|
+
"toSlug": null,
|
|
30
|
+
"status": null,
|
|
31
|
+
} satisfies RedirectListResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
|
32
34
|
|
|
@@ -35,7 +37,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
35
37
|
console.log(exampleJSON)
|
|
36
38
|
|
|
37
39
|
// Parse the JSON string back to an object
|
|
38
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as RedirectListResource
|
|
39
41
|
console.log(exampleParsed)
|
|
40
42
|
```
|
|
41
43
|
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# RedirectListResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`purchasedDate` | Date
|
|
9
|
+
`data` | [Array<RedirectListResource>](RedirectListResource.md)
|
|
11
10
|
|
|
12
11
|
## Example
|
|
13
12
|
|
|
14
13
|
```typescript
|
|
15
|
-
import type {
|
|
14
|
+
import type { RedirectListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
15
|
|
|
17
16
|
// TODO: Update the object below with actual values
|
|
18
17
|
const example = {
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
} satisfies ProductRegistrationLiteResource
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies RedirectListResourceArrayResponse
|
|
22
20
|
|
|
23
21
|
console.log(example)
|
|
24
22
|
|
|
@@ -27,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
25
|
console.log(exampleJSON)
|
|
28
26
|
|
|
29
27
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as RedirectListResourceArrayResponse
|
|
31
29
|
console.log(exampleParsed)
|
|
32
30
|
```
|
|
33
31
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -12,8 +12,8 @@ export * from './OverlayTemplateApi';
|
|
|
12
12
|
export * from './ProductApi';
|
|
13
13
|
export * from './ProductCategoryApi';
|
|
14
14
|
export * from './ProductRangeApi';
|
|
15
|
-
export * from './ProductRegistrationApi';
|
|
16
15
|
export * from './ProductTypeApi';
|
|
16
|
+
export * from './RedirectApi';
|
|
17
17
|
export * from './SiteApi';
|
|
18
18
|
export * from './StoreApi';
|
|
19
19
|
export * from './SupplierApi';
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -75,6 +75,7 @@ export interface AddressFrontendResource {
|
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
76
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
78
79
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
80
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
80
81
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -95,7 +96,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
95
96
|
|
|
96
97
|
'company': json['company'],
|
|
97
98
|
'line1': json['line1'],
|
|
98
|
-
'line2': json['line2']
|
|
99
|
+
'line2': json['line2'],
|
|
99
100
|
'postcode': json['postcode'],
|
|
100
101
|
'suburb': json['suburb'],
|
|
101
102
|
'country': json['country'],
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
line2
|
|
45
|
+
line2?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -79,8 +79,8 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
82
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
83
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
84
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
86
86
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -100,9 +100,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
100
|
return {
|
|
101
101
|
|
|
102
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company']
|
|
103
|
+
'company': json['company'],
|
|
104
104
|
'line1': json['line_1'],
|
|
105
|
-
'line2': json['line_2'],
|
|
105
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
106
106
|
'postcode': json['postcode'],
|
|
107
107
|
'suburb': json['suburb'],
|
|
108
108
|
'country': json['country'],
|
|
@@ -37,12 +37,6 @@ export interface GlobalSearchProductResource {
|
|
|
37
37
|
* @memberof GlobalSearchProductResource
|
|
38
38
|
*/
|
|
39
39
|
model: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof GlobalSearchProductResource
|
|
44
|
-
*/
|
|
45
|
-
modelRaw: string;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {string}
|
|
@@ -100,7 +94,6 @@ export function instanceOfGlobalSearchProductResource(value: object): value is G
|
|
|
100
94
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
101
95
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
102
96
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
103
|
-
if (!('modelRaw' in value) || value['modelRaw'] === undefined) return false;
|
|
104
97
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
105
98
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
106
99
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
@@ -125,7 +118,6 @@ export function GlobalSearchProductResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
125
118
|
'id': json['id'],
|
|
126
119
|
'name': json['name'],
|
|
127
120
|
'model': json['model'],
|
|
128
|
-
'modelRaw': json['modelRaw'],
|
|
129
121
|
'slug': json['slug'],
|
|
130
122
|
'sku': json['sku'],
|
|
131
123
|
'thumbnail': json['thumbnail'],
|
|
@@ -151,7 +143,6 @@ export function GlobalSearchProductResourceToJSONTyped(value?: GlobalSearchProdu
|
|
|
151
143
|
'id': value['id'],
|
|
152
144
|
'name': value['name'],
|
|
153
145
|
'model': value['model'],
|
|
154
|
-
'modelRaw': value['modelRaw'],
|
|
155
146
|
'slug': value['slug'],
|
|
156
147
|
'sku': value['sku'],
|
|
157
148
|
'thumbnail': value['thumbnail'],
|