@digital8/lighting-illusions-ts-sdk 0.0.1502 → 0.0.1503
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 +56 -16
- package/README.md +44 -13
- package/dist/apis/AdminApi.d.ts +4 -4
- package/dist/apis/AdminApi.js +3 -3
- package/dist/apis/MenuApi.d.ts +109 -0
- package/dist/apis/MenuApi.js +433 -0
- package/dist/apis/MenuItemsApi.d.ts +124 -0
- package/dist/apis/MenuItemsApi.js +491 -0
- package/dist/apis/ProductCategoryApi.d.ts +6 -6
- package/dist/apis/ProductCategoryApi.js +1 -1
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/GetAllMenuItemRequest.d.ts +93 -0
- package/dist/models/GetAllMenuItemRequest.js +81 -0
- package/dist/models/GetAllMenuRequest.d.ts +92 -0
- package/dist/models/GetAllMenuRequest.js +80 -0
- package/dist/models/GetHierarchyMenuItemRequest.d.ts +32 -0
- package/dist/models/GetHierarchyMenuItemRequest.js +51 -0
- package/dist/models/IndexMenuRequest.d.ts +104 -0
- package/dist/models/{IndexRedirectRequest.js → IndexMenuRequest.js} +22 -29
- package/dist/models/MenuItemEditResource.d.ts +119 -0
- package/dist/models/MenuItemEditResource.js +94 -0
- package/dist/models/MenuItemEditResourceArrayResponse.d.ts +33 -0
- package/dist/models/MenuItemEditResourceArrayResponse.js +50 -0
- package/dist/models/MenuItemHierarchyResource.d.ts +74 -0
- package/dist/models/MenuItemHierarchyResource.js +73 -0
- package/dist/models/MenuItemHierarchyResourceArrayResponse.d.ts +33 -0
- package/dist/models/MenuItemHierarchyResourceArrayResponse.js +50 -0
- package/dist/models/MenuItemLinkResource.d.ts +62 -0
- package/dist/models/MenuItemLinkResource.js +65 -0
- package/dist/models/MenuItemLinkResourceArrayResponse.d.ts +33 -0
- package/dist/models/MenuItemLinkResourceArrayResponse.js +50 -0
- package/dist/models/MenuItemResource.d.ts +124 -0
- package/dist/models/MenuItemResource.js +95 -0
- package/dist/models/MenuItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/MenuItemResourceArrayResponse.js +50 -0
- package/dist/models/MenuItemType.d.ts +27 -0
- package/dist/models/MenuItemType.js +53 -0
- package/dist/models/MenuListResource.d.ts +57 -0
- package/dist/models/MenuListResource.js +66 -0
- package/dist/models/MenuListResourceArrayResponse.d.ts +33 -0
- package/dist/models/MenuListResourceArrayResponse.js +50 -0
- package/dist/models/MenuPosition.d.ts +27 -0
- package/dist/models/MenuPosition.js +53 -0
- package/dist/models/MenuResource.d.ts +63 -0
- package/dist/models/MenuResource.js +70 -0
- package/dist/models/MenuResourceArrayResponse.d.ts +33 -0
- package/dist/models/MenuResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedMenuListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedMenuListResourceResponse.js +57 -0
- package/dist/models/SearchLinkablesMenuItemRequest.d.ts +54 -0
- package/dist/models/SearchLinkablesMenuItemRequest.js +65 -0
- package/dist/models/StoreAssetForAssetableRequest.d.ts +2 -0
- package/dist/models/StoreAssetForAssetableRequest.js +3 -1
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreMenuItemRequest.d.ts +97 -0
- package/dist/models/StoreMenuItemRequest.js +84 -0
- package/dist/models/StoreMenuItemRequestMenuItemLink.d.ts +60 -0
- package/dist/models/StoreMenuItemRequestMenuItemLink.js +65 -0
- package/dist/models/StoreMenuRequest.d.ts +54 -0
- package/dist/models/StoreMenuRequest.js +69 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/UpdateMenuItemRequest.d.ts +97 -0
- package/dist/models/UpdateMenuItemRequest.js +78 -0
- package/dist/models/UpdateMenuRequest.d.ts +61 -0
- package/dist/models/UpdateMenuRequest.js +66 -0
- package/dist/models/UpdateMenuRequestMenuItemOrderInner.d.ts +44 -0
- package/dist/models/UpdateMenuRequestMenuItemOrderInner.js +53 -0
- package/dist/models/index.d.ts +26 -7
- package/dist/models/index.js +26 -7
- package/docs/AdminApi.md +12 -12
- package/docs/GetAllMenuItemRequest.md +48 -0
- package/docs/GetAllMenuRequest.md +48 -0
- package/docs/{GetHierarchyProductCategoryRequest.md → GetHierarchyMenuItemRequest.md} +4 -4
- package/docs/{IndexRedirectRequest.md → IndexMenuRequest.md} +6 -6
- package/docs/MenuApi.md +407 -0
- package/docs/MenuItemEditResource.md +62 -0
- package/docs/{RedirectListResourceArrayResponse.md → MenuItemEditResourceArrayResponse.md} +5 -5
- package/docs/MenuItemHierarchyResource.md +48 -0
- package/docs/MenuItemHierarchyResourceArrayResponse.md +34 -0
- package/docs/MenuItemLinkResource.md +44 -0
- package/docs/{RedirectFrontendResourceArrayResponse.md → MenuItemLinkResourceArrayResponse.md} +5 -5
- package/docs/MenuItemResource.md +64 -0
- package/docs/MenuItemResourceArrayResponse.md +34 -0
- package/docs/MenuItemType.md +32 -0
- package/docs/MenuItemsApi.md +473 -0
- package/docs/{RedirectListResource.md → MenuListResource.md} +10 -14
- package/docs/MenuListResourceArrayResponse.md +34 -0
- package/docs/MenuPosition.md +32 -0
- package/docs/{RedirectFrontendResource.md → MenuResource.md} +12 -12
- package/docs/MenuResourceArrayResponse.md +34 -0
- package/docs/{PaginatedRedirectListResourceResponse.md → PaginatedMenuListResourceResponse.md} +5 -5
- package/docs/ProductCategoryApi.md +7 -7
- package/docs/SearchLinkablesMenuItemRequest.md +38 -0
- package/docs/StoreMenuItemRequest.md +52 -0
- package/docs/StoreMenuItemRequestMenuItemLink.md +40 -0
- package/docs/StoreMenuRequest.md +38 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateMenuItemRequest.md +52 -0
- package/docs/UpdateMenuRequest.md +40 -0
- package/docs/UpdateMenuRequestMenuItemOrderInner.md +38 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +9 -9
- package/src/apis/MenuApi.ts +334 -0
- package/src/apis/MenuItemsApi.ts +381 -0
- package/src/apis/ProductCategoryApi.ts +9 -9
- package/src/apis/index.ts +2 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/GetAllMenuItemRequest.ts +144 -0
- package/src/models/GetAllMenuRequest.ts +143 -0
- package/src/models/GetHierarchyMenuItemRequest.ts +66 -0
- package/src/models/IndexMenuRequest.ts +159 -0
- package/src/models/MenuItemEditResource.ts +206 -0
- package/src/models/MenuItemEditResourceArrayResponse.ts +73 -0
- package/src/models/MenuItemHierarchyResource.ts +126 -0
- package/src/models/MenuItemHierarchyResourceArrayResponse.ts +73 -0
- package/src/models/MenuItemLinkResource.ts +108 -0
- package/src/models/MenuItemLinkResourceArrayResponse.ts +73 -0
- package/src/models/MenuItemResource.ts +207 -0
- package/src/models/MenuItemResourceArrayResponse.ts +73 -0
- package/src/models/MenuItemType.ts +55 -0
- package/src/models/MenuListResource.ts +109 -0
- package/src/models/MenuListResourceArrayResponse.ts +73 -0
- package/src/models/MenuPosition.ts +55 -0
- package/src/models/MenuResource.ts +118 -0
- package/src/models/MenuResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedMenuListResourceResponse.ts +90 -0
- package/src/models/SearchLinkablesMenuItemRequest.ts +95 -0
- package/src/models/StoreAssetForAssetableRequest.ts +3 -1
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreMenuItemRequest.ts +161 -0
- package/src/models/StoreMenuItemRequestMenuItemLink.ts +102 -0
- package/src/models/StoreMenuRequest.ts +97 -0
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/UpdateMenuItemRequest.ts +158 -0
- package/src/models/UpdateMenuRequest.ts +110 -0
- package/src/models/UpdateMenuRequestMenuItemOrderInner.ts +81 -0
- package/src/models/index.ts +26 -7
- package/dist/apis/RedirectApi.d.ts +0 -33
- package/dist/apis/RedirectApi.js +0 -138
- package/dist/models/GetHierarchyProductCategoryRequest.d.ts +0 -32
- package/dist/models/GetHierarchyProductCategoryRequest.js +0 -51
- package/dist/models/IndexRedirectRequest.d.ts +0 -112
- 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/RedirectApi.md +0 -74
- package/src/apis/RedirectApi.ts +0 -77
- package/src/models/GetHierarchyProductCategoryRequest.ts +0 -66
- package/src/models/IndexRedirectRequest.ts +0 -168
- 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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# MenuPosition
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { MenuPosition } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies MenuPosition
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as MenuPosition
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# MenuResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -8,25 +8,25 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
10
|
`siteId` | number
|
|
11
|
-
`
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
11
|
+
`position` | string
|
|
12
|
+
`name` | string
|
|
13
|
+
`site` | [SiteResource](SiteResource.md)
|
|
14
|
+
`menuItemCount` | number
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import type {
|
|
19
|
+
import type { MenuResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
20
|
|
|
21
21
|
// TODO: Update the object below with actual values
|
|
22
22
|
const example = {
|
|
23
23
|
"id": null,
|
|
24
24
|
"siteId": null,
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
} satisfies
|
|
25
|
+
"position": null,
|
|
26
|
+
"name": null,
|
|
27
|
+
"site": null,
|
|
28
|
+
"menuItemCount": null,
|
|
29
|
+
} satisfies MenuResource
|
|
30
30
|
|
|
31
31
|
console.log(example)
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
35
35
|
console.log(exampleJSON)
|
|
36
36
|
|
|
37
37
|
// Parse the JSON string back to an object
|
|
38
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as MenuResource
|
|
39
39
|
console.log(exampleParsed)
|
|
40
40
|
```
|
|
41
41
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# MenuResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<MenuResource>](MenuResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { MenuResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies MenuResourceArrayResponse
|
|
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 MenuResourceArrayResponse
|
|
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/docs/{PaginatedRedirectListResourceResponse.md → PaginatedMenuListResourceResponse.md}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PaginatedMenuListResourceResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<MenuListResource>](MenuListResource.md)
|
|
10
10
|
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { PaginatedMenuListResourceResponse } 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 PaginatedMenuListResourceResponse
|
|
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 PaginatedMenuListResourceResponse
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -11,7 +11,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
11
11
|
| [**getAllChildrenProductCategory**](ProductCategoryApi.md#getallchildrenproductcategory) | **POST** /admin-api/product-category/{productCategory}/children/all | Auto-generated: getAllChildrenProductCategory |
|
|
12
12
|
| [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
|
|
13
13
|
| [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
|
|
14
|
-
| [**getHierarchyProductCategory**](ProductCategoryApi.md#
|
|
14
|
+
| [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **POST** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
|
|
15
15
|
| [**indexProductCategory**](ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory |
|
|
16
16
|
| [**previewAutomationRulesProductCategory**](ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory |
|
|
17
17
|
| [**showProductCategory**](ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory |
|
|
@@ -489,7 +489,7 @@ No authorization required
|
|
|
489
489
|
|
|
490
490
|
## getHierarchyProductCategory
|
|
491
491
|
|
|
492
|
-
> ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory(
|
|
492
|
+
> ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory(getHierarchyMenuItemRequest)
|
|
493
493
|
|
|
494
494
|
Auto-generated: getHierarchyProductCategory
|
|
495
495
|
|
|
@@ -500,16 +500,16 @@ import {
|
|
|
500
500
|
Configuration,
|
|
501
501
|
ProductCategoryApi,
|
|
502
502
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
503
|
-
import type {
|
|
503
|
+
import type { GetHierarchyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
504
504
|
|
|
505
505
|
async function example() {
|
|
506
506
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
507
507
|
const api = new ProductCategoryApi();
|
|
508
508
|
|
|
509
509
|
const body = {
|
|
510
|
-
//
|
|
511
|
-
|
|
512
|
-
} satisfies
|
|
510
|
+
// GetHierarchyMenuItemRequest (optional)
|
|
511
|
+
getHierarchyMenuItemRequest: ...,
|
|
512
|
+
} satisfies GetHierarchyProductCategoryRequest;
|
|
513
513
|
|
|
514
514
|
try {
|
|
515
515
|
const data = await api.getHierarchyProductCategory(body);
|
|
@@ -528,7 +528,7 @@ example().catch(console.error);
|
|
|
528
528
|
|
|
529
529
|
| Name | Type | Description | Notes |
|
|
530
530
|
|------------- | ------------- | ------------- | -------------|
|
|
531
|
-
| **
|
|
531
|
+
| **getHierarchyMenuItemRequest** | [GetHierarchyMenuItemRequest](GetHierarchyMenuItemRequest.md) | | [Optional] |
|
|
532
532
|
|
|
533
533
|
### Return type
|
|
534
534
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchLinkablesMenuItemRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`types` | Array<string>
|
|
11
|
+
`siteId` | number
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { SearchLinkablesMenuItemRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"search": null,
|
|
21
|
+
"types": null,
|
|
22
|
+
"siteId": null,
|
|
23
|
+
} satisfies SearchLinkablesMenuItemRequest
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchLinkablesMenuItemRequest
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreMenuItemRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`menuId` | number
|
|
10
|
+
`parentId` | number
|
|
11
|
+
`type` | string
|
|
12
|
+
`heading` | string
|
|
13
|
+
`subheading` | string
|
|
14
|
+
`css` | string
|
|
15
|
+
`cssMobile` | string
|
|
16
|
+
`javascript` | string
|
|
17
|
+
`index` | number
|
|
18
|
+
`menuItemLink` | [StoreMenuItemRequestMenuItemLink](StoreMenuItemRequestMenuItemLink.md)
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { StoreMenuItemRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"menuId": null,
|
|
28
|
+
"parentId": null,
|
|
29
|
+
"type": null,
|
|
30
|
+
"heading": null,
|
|
31
|
+
"subheading": null,
|
|
32
|
+
"css": null,
|
|
33
|
+
"cssMobile": null,
|
|
34
|
+
"javascript": null,
|
|
35
|
+
"index": null,
|
|
36
|
+
"menuItemLink": null,
|
|
37
|
+
} satisfies StoreMenuItemRequest
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreMenuItemRequest
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreMenuItemRequestMenuItemLink
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`linkableType` | string
|
|
10
|
+
`linkableId` | number
|
|
11
|
+
`link` | string
|
|
12
|
+
`isExternalLink` | boolean
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { StoreMenuItemRequestMenuItemLink } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"linkableType": null,
|
|
22
|
+
"linkableId": null,
|
|
23
|
+
"link": null,
|
|
24
|
+
"isExternalLink": null,
|
|
25
|
+
} satisfies StoreMenuItemRequestMenuItemLink
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreMenuItemRequestMenuItemLink
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreMenuRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`siteId` | number
|
|
10
|
+
`position` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { StoreMenuRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"siteId": null,
|
|
21
|
+
"position": null,
|
|
22
|
+
"name": null,
|
|
23
|
+
} satisfies StoreMenuRequest
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreMenuRequest
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateMenuItemRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`menuId` | number
|
|
10
|
+
`parentId` | number
|
|
11
|
+
`type` | string
|
|
12
|
+
`heading` | string
|
|
13
|
+
`subheading` | string
|
|
14
|
+
`css` | string
|
|
15
|
+
`cssMobile` | string
|
|
16
|
+
`javascript` | string
|
|
17
|
+
`index` | number
|
|
18
|
+
`menuItemLink` | [StoreMenuItemRequestMenuItemLink](StoreMenuItemRequestMenuItemLink.md)
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { UpdateMenuItemRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"menuId": null,
|
|
28
|
+
"parentId": null,
|
|
29
|
+
"type": null,
|
|
30
|
+
"heading": null,
|
|
31
|
+
"subheading": null,
|
|
32
|
+
"css": null,
|
|
33
|
+
"cssMobile": null,
|
|
34
|
+
"javascript": null,
|
|
35
|
+
"index": null,
|
|
36
|
+
"menuItemLink": null,
|
|
37
|
+
} satisfies UpdateMenuItemRequest
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateMenuItemRequest
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateMenuRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`siteId` | number
|
|
10
|
+
`position` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`menuItemOrder` | [Array<UpdateMenuRequestMenuItemOrderInner>](UpdateMenuRequestMenuItemOrderInner.md)
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { UpdateMenuRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"siteId": null,
|
|
22
|
+
"position": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"menuItemOrder": null,
|
|
25
|
+
} satisfies UpdateMenuRequest
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateMenuRequest
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateMenuRequestMenuItemOrderInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`index` | number
|
|
11
|
+
`parentId` | number
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { UpdateMenuRequestMenuItemOrderInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"index": null,
|
|
22
|
+
"parentId": null,
|
|
23
|
+
} satisfies UpdateMenuRequestMenuItemOrderInner
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateMenuRequestMenuItemOrderInner
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
GenericResponse,
|
|
19
|
-
|
|
19
|
+
GetHierarchyMenuItemRequest,
|
|
20
20
|
} from '../models/index';
|
|
21
21
|
import {
|
|
22
22
|
GenericResponseFromJSON,
|
|
23
23
|
GenericResponseToJSON,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
GetHierarchyMenuItemRequestFromJSON,
|
|
25
|
+
GetHierarchyMenuItemRequestToJSON,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface GenerateGoogleFeedAdminRequest {
|
|
29
|
-
|
|
29
|
+
getHierarchyMenuItemRequest?: GetHierarchyMenuItemRequest;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export interface GenerateSocialFeedAdminRequest {
|
|
33
|
-
|
|
33
|
+
getHierarchyMenuItemRequest?: GetHierarchyMenuItemRequest;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export interface GenerateTGNDataFeedAdminRequest {
|
|
37
|
-
|
|
37
|
+
getHierarchyMenuItemRequest?: GetHierarchyMenuItemRequest;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -60,7 +60,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
60
60
|
method: 'POST',
|
|
61
61
|
headers: headerParameters,
|
|
62
62
|
query: queryParameters,
|
|
63
|
-
body:
|
|
63
|
+
body: GetHierarchyMenuItemRequestToJSON(requestParameters['getHierarchyMenuItemRequest']),
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -100,7 +100,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
100
100
|
method: 'POST',
|
|
101
101
|
headers: headerParameters,
|
|
102
102
|
query: queryParameters,
|
|
103
|
-
body:
|
|
103
|
+
body: GetHierarchyMenuItemRequestToJSON(requestParameters['getHierarchyMenuItemRequest']),
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -140,7 +140,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
140
140
|
method: 'POST',
|
|
141
141
|
headers: headerParameters,
|
|
142
142
|
query: queryParameters,
|
|
143
|
-
body:
|
|
143
|
+
body: GetHierarchyMenuItemRequestToJSON(requestParameters['getHierarchyMenuItemRequest']),
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
|