@digital8/lighting-illusions-ts-sdk 0.0.1630 → 0.0.1632
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 +6 -32
- package/README.md +7 -23
- package/dist/apis/StoreApi.d.ts +28 -1
- package/dist/apis/StoreApi.js +113 -0
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/ProductChildStoreStockType.d.ts +25 -0
- package/dist/models/ProductChildStoreStockType.js +51 -0
- package/dist/models/SaveMapStoreStockMigrationRequest.d.ts +33 -0
- package/dist/models/SaveMapStoreStockMigrationRequest.js +52 -0
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +52 -0
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +67 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +12 -0
- package/dist/models/StoreResource.js +4 -0
- package/dist/models/StoreStoreRequest.d.ts +12 -0
- package/dist/models/StoreStoreRequest.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +12 -0
- package/dist/models/UpdateStoreRequest.js +4 -0
- package/dist/models/index.d.ts +3 -15
- package/dist/models/index.js +3 -15
- package/docs/{BlogCategoryLiteResource.md → ProductChildStoreStockType.md} +4 -8
- package/docs/{BlogCategoryResourceArrayResponse.md → SaveMapStoreStockMigrationRequest.md} +6 -6
- package/docs/{BlogCategoryListResourceArrayResponse.md → SaveMapStoreStockMigrationRequestAssociationsInner.md} +10 -6
- package/docs/StoreApi.md +124 -0
- package/docs/StoreResource.md +4 -0
- package/docs/StoreStoreRequest.md +4 -0
- package/docs/UpdateStoreRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/StoreApi.ts +84 -0
- package/src/apis/index.ts +0 -1
- package/src/models/ProductChildStoreStockType.ts +53 -0
- package/src/models/SaveMapStoreStockMigrationRequest.ts +74 -0
- package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +95 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +16 -0
- package/src/models/StoreStoreRequest.ts +16 -0
- package/src/models/UpdateStoreRequest.ts +16 -0
- package/src/models/index.ts +3 -15
- package/dist/apis/BlogCategoriesApi.d.ts +0 -109
- package/dist/apis/BlogCategoriesApi.js +0 -433
- package/dist/models/BlogCategoryFrontendResource.d.ts +0 -44
- package/dist/models/BlogCategoryFrontendResource.js +0 -59
- package/dist/models/BlogCategoryFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryFrontendResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryListResource.d.ts +0 -44
- package/dist/models/BlogCategoryListResource.js +0 -59
- package/dist/models/BlogCategoryListResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryListResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryLiteResource.d.ts +0 -38
- package/dist/models/BlogCategoryLiteResource.js +0 -55
- package/dist/models/BlogCategoryLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryLiteResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryResource.d.ts +0 -51
- package/dist/models/BlogCategoryResource.js +0 -64
- package/dist/models/BlogCategoryResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryResourceArrayResponse.js +0 -50
- package/dist/models/GetAllBlogCategoryRequest.d.ts +0 -78
- package/dist/models/GetAllBlogCategoryRequest.js +0 -74
- package/dist/models/IndexBlogCategoryRequest.d.ts +0 -90
- package/dist/models/IndexBlogCategoryRequest.js +0 -78
- package/dist/models/PaginatedBlogCategoryListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryListResourceResponse.js +0 -57
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedBlogCategoryResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryResourceResponse.js +0 -57
- package/dist/models/StoreBlogCategoryRequest.d.ts +0 -45
- package/dist/models/StoreBlogCategoryRequest.js +0 -60
- package/dist/models/UpdateBlogCategoryRequest.d.ts +0 -45
- package/dist/models/UpdateBlogCategoryRequest.js +0 -60
- package/docs/BlogCategoriesApi.md +0 -407
- package/docs/BlogCategoryFrontendResource.md +0 -38
- package/docs/BlogCategoryFrontendResourceArrayResponse.md +0 -34
- package/docs/BlogCategoryListResource.md +0 -38
- package/docs/BlogCategoryLiteResourceArrayResponse.md +0 -34
- package/docs/BlogCategoryResource.md +0 -40
- package/docs/GetAllBlogCategoryRequest.md +0 -44
- package/docs/IndexBlogCategoryRequest.md +0 -48
- package/docs/PaginatedBlogCategoryListResourceResponse.md +0 -36
- package/docs/PaginatedBlogCategoryLiteResourceResponse.md +0 -36
- package/docs/PaginatedBlogCategoryResourceResponse.md +0 -36
- package/docs/StoreBlogCategoryRequest.md +0 -38
- package/docs/UpdateBlogCategoryRequest.md +0 -38
- package/src/apis/BlogCategoriesApi.ts +0 -334
- package/src/models/BlogCategoryFrontendResource.ts +0 -84
- package/src/models/BlogCategoryFrontendResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryListResource.ts +0 -84
- package/src/models/BlogCategoryListResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryLiteResource.ts +0 -75
- package/src/models/BlogCategoryLiteResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryResource.ts +0 -101
- package/src/models/BlogCategoryResourceArrayResponse.ts +0 -73
- package/src/models/GetAllBlogCategoryRequest.ts +0 -125
- package/src/models/IndexBlogCategoryRequest.ts +0 -141
- package/src/models/PaginatedBlogCategoryListResourceResponse.ts +0 -90
- package/src/models/PaginatedBlogCategoryLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedBlogCategoryResourceResponse.ts +0 -90
- package/src/models/StoreBlogCategoryRequest.ts +0 -92
- package/src/models/UpdateBlogCategoryRequest.ts +0 -92
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# BlogCategoryLiteResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<BlogCategoryLiteResource>](BlogCategoryLiteResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { BlogCategoryLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies BlogCategoryLiteResourceArrayResponse
|
|
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 BlogCategoryLiteResourceArrayResponse
|
|
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,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# BlogCategoryResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`slug` | string
|
|
12
|
-
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { BlogCategoryResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"id": null,
|
|
22
|
-
"name": null,
|
|
23
|
-
"slug": null,
|
|
24
|
-
"descriptions": null,
|
|
25
|
-
} satisfies BlogCategoryResource
|
|
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 BlogCategoryResource
|
|
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
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GetAllBlogCategoryRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`search` | string
|
|
10
|
-
`sortBy` | string
|
|
11
|
-
`sortDirection` | string
|
|
12
|
-
`relatedId` | number
|
|
13
|
-
`relatedType` | string
|
|
14
|
-
`includesRelations` | boolean
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import type { GetAllBlogCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
-
|
|
21
|
-
// TODO: Update the object below with actual values
|
|
22
|
-
const example = {
|
|
23
|
-
"search": null,
|
|
24
|
-
"sortBy": null,
|
|
25
|
-
"sortDirection": null,
|
|
26
|
-
"relatedId": null,
|
|
27
|
-
"relatedType": null,
|
|
28
|
-
"includesRelations": null,
|
|
29
|
-
} satisfies GetAllBlogCategoryRequest
|
|
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 GetAllBlogCategoryRequest
|
|
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,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# IndexBlogCategoryRequest
|
|
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
|
-
`relatedId` | number
|
|
15
|
-
`relatedType` | string
|
|
16
|
-
`includesRelations` | boolean
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import type { IndexBlogCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
-
|
|
23
|
-
// TODO: Update the object below with actual values
|
|
24
|
-
const example = {
|
|
25
|
-
"search": null,
|
|
26
|
-
"sortBy": null,
|
|
27
|
-
"sortDirection": null,
|
|
28
|
-
"perPage": null,
|
|
29
|
-
"page": null,
|
|
30
|
-
"relatedId": null,
|
|
31
|
-
"relatedType": null,
|
|
32
|
-
"includesRelations": null,
|
|
33
|
-
} satisfies IndexBlogCategoryRequest
|
|
34
|
-
|
|
35
|
-
console.log(example)
|
|
36
|
-
|
|
37
|
-
// Convert the instance to a JSON string
|
|
38
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
-
console.log(exampleJSON)
|
|
40
|
-
|
|
41
|
-
// Parse the JSON string back to an object
|
|
42
|
-
const exampleParsed = JSON.parse(exampleJSON) as IndexBlogCategoryRequest
|
|
43
|
-
console.log(exampleParsed)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
-
|
|
48
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedBlogCategoryListResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<BlogCategoryListResource>](BlogCategoryListResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedBlogCategoryListResourceResponse } 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 PaginatedBlogCategoryListResourceResponse
|
|
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 PaginatedBlogCategoryListResourceResponse
|
|
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
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedBlogCategoryLiteResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<BlogCategoryLiteResource>](BlogCategoryLiteResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedBlogCategoryLiteResourceResponse } 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 PaginatedBlogCategoryLiteResourceResponse
|
|
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 PaginatedBlogCategoryLiteResourceResponse
|
|
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
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedBlogCategoryResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<BlogCategoryResource>](BlogCategoryResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedBlogCategoryResourceResponse } 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 PaginatedBlogCategoryResourceResponse
|
|
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 PaginatedBlogCategoryResourceResponse
|
|
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
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# StoreBlogCategoryRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`name` | string
|
|
10
|
-
`slug` | string
|
|
11
|
-
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { StoreBlogCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"name": null,
|
|
21
|
-
"slug": null,
|
|
22
|
-
"descriptions": null,
|
|
23
|
-
} satisfies StoreBlogCategoryRequest
|
|
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 StoreBlogCategoryRequest
|
|
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
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# UpdateBlogCategoryRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`name` | string
|
|
10
|
-
`slug` | string
|
|
11
|
-
`descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { UpdateBlogCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"name": null,
|
|
21
|
-
"slug": null,
|
|
22
|
-
"descriptions": null,
|
|
23
|
-
} satisfies UpdateBlogCategoryRequest
|
|
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 UpdateBlogCategoryRequest
|
|
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
|
-
|
|
@@ -1,334 +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
|
-
BlogCategoryLiteResourceArrayResponse,
|
|
19
|
-
BlogCategoryResource,
|
|
20
|
-
GenericResponse,
|
|
21
|
-
GetAllBlogCategoryRequest,
|
|
22
|
-
IndexBlogCategoryRequest,
|
|
23
|
-
PaginatedBlogCategoryListResourceResponse,
|
|
24
|
-
StoreBlogCategoryRequest,
|
|
25
|
-
UpdateBlogCategoryRequest,
|
|
26
|
-
} from '../models/index';
|
|
27
|
-
import {
|
|
28
|
-
BlogCategoryLiteResourceArrayResponseFromJSON,
|
|
29
|
-
BlogCategoryLiteResourceArrayResponseToJSON,
|
|
30
|
-
BlogCategoryResourceFromJSON,
|
|
31
|
-
BlogCategoryResourceToJSON,
|
|
32
|
-
GenericResponseFromJSON,
|
|
33
|
-
GenericResponseToJSON,
|
|
34
|
-
GetAllBlogCategoryRequestFromJSON,
|
|
35
|
-
GetAllBlogCategoryRequestToJSON,
|
|
36
|
-
IndexBlogCategoryRequestFromJSON,
|
|
37
|
-
IndexBlogCategoryRequestToJSON,
|
|
38
|
-
PaginatedBlogCategoryListResourceResponseFromJSON,
|
|
39
|
-
PaginatedBlogCategoryListResourceResponseToJSON,
|
|
40
|
-
StoreBlogCategoryRequestFromJSON,
|
|
41
|
-
StoreBlogCategoryRequestToJSON,
|
|
42
|
-
UpdateBlogCategoryRequestFromJSON,
|
|
43
|
-
UpdateBlogCategoryRequestToJSON,
|
|
44
|
-
} from '../models/index';
|
|
45
|
-
|
|
46
|
-
export interface DestroyBlogCategoryRequest {
|
|
47
|
-
blogCategory: number;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface GetAllBlogCategoryOperationRequest {
|
|
51
|
-
getAllBlogCategoryRequest?: GetAllBlogCategoryRequest;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface IndexBlogCategoryOperationRequest {
|
|
55
|
-
indexBlogCategoryRequest?: IndexBlogCategoryRequest;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface ShowBlogCategoryRequest {
|
|
59
|
-
blogCategory: number;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface StoreBlogCategoryOperationRequest {
|
|
63
|
-
storeBlogCategoryRequest?: StoreBlogCategoryRequest;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface UpdateBlogCategoryOperationRequest {
|
|
67
|
-
blogCategory: number;
|
|
68
|
-
updateBlogCategoryRequest?: UpdateBlogCategoryRequest;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
export class BlogCategoriesApi extends runtime.BaseAPI {
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Creates request options for destroyBlogCategory without sending the request
|
|
78
|
-
*/
|
|
79
|
-
async destroyBlogCategoryRequestOpts(requestParameters: DestroyBlogCategoryRequest): Promise<runtime.RequestOpts> {
|
|
80
|
-
if (requestParameters['blogCategory'] == null) {
|
|
81
|
-
throw new runtime.RequiredError(
|
|
82
|
-
'blogCategory',
|
|
83
|
-
'Required parameter "blogCategory" was null or undefined when calling destroyBlogCategory().'
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const queryParameters: any = {};
|
|
88
|
-
|
|
89
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
let urlPath = `/admin-api/blog-categories/{blogCategory}/delete`;
|
|
93
|
-
urlPath = urlPath.replace(`{${"blogCategory"}}`, encodeURIComponent(String(requestParameters['blogCategory'])));
|
|
94
|
-
|
|
95
|
-
return {
|
|
96
|
-
path: urlPath,
|
|
97
|
-
method: 'DELETE',
|
|
98
|
-
headers: headerParameters,
|
|
99
|
-
query: queryParameters,
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Auto-generated: destroyBlogCategory
|
|
105
|
-
*/
|
|
106
|
-
async destroyBlogCategoryRaw(requestParameters: DestroyBlogCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
107
|
-
const requestOptions = await this.destroyBlogCategoryRequestOpts(requestParameters);
|
|
108
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
109
|
-
|
|
110
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Auto-generated: destroyBlogCategory
|
|
115
|
-
*/
|
|
116
|
-
async destroyBlogCategory(requestParameters: DestroyBlogCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
117
|
-
const response = await this.destroyBlogCategoryRaw(requestParameters, initOverrides);
|
|
118
|
-
return await response.value();
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Creates request options for getAllBlogCategory without sending the request
|
|
123
|
-
*/
|
|
124
|
-
async getAllBlogCategoryRequestOpts(requestParameters: GetAllBlogCategoryOperationRequest): Promise<runtime.RequestOpts> {
|
|
125
|
-
const queryParameters: any = {};
|
|
126
|
-
|
|
127
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
128
|
-
|
|
129
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
let urlPath = `/admin-api/blog-categories/all`;
|
|
133
|
-
|
|
134
|
-
return {
|
|
135
|
-
path: urlPath,
|
|
136
|
-
method: 'POST',
|
|
137
|
-
headers: headerParameters,
|
|
138
|
-
query: queryParameters,
|
|
139
|
-
body: GetAllBlogCategoryRequestToJSON(requestParameters['getAllBlogCategoryRequest']),
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Auto-generated: getAllBlogCategory
|
|
145
|
-
*/
|
|
146
|
-
async getAllBlogCategoryRaw(requestParameters: GetAllBlogCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlogCategoryLiteResourceArrayResponse>> {
|
|
147
|
-
const requestOptions = await this.getAllBlogCategoryRequestOpts(requestParameters);
|
|
148
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
149
|
-
|
|
150
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => BlogCategoryLiteResourceArrayResponseFromJSON(jsonValue));
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Auto-generated: getAllBlogCategory
|
|
155
|
-
*/
|
|
156
|
-
async getAllBlogCategory(requestParameters: GetAllBlogCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlogCategoryLiteResourceArrayResponse> {
|
|
157
|
-
const response = await this.getAllBlogCategoryRaw(requestParameters, initOverrides);
|
|
158
|
-
return await response.value();
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Creates request options for indexBlogCategory without sending the request
|
|
163
|
-
*/
|
|
164
|
-
async indexBlogCategoryRequestOpts(requestParameters: IndexBlogCategoryOperationRequest): Promise<runtime.RequestOpts> {
|
|
165
|
-
const queryParameters: any = {};
|
|
166
|
-
|
|
167
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
-
|
|
169
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
let urlPath = `/admin-api/blog-categories/list`;
|
|
173
|
-
|
|
174
|
-
return {
|
|
175
|
-
path: urlPath,
|
|
176
|
-
method: 'POST',
|
|
177
|
-
headers: headerParameters,
|
|
178
|
-
query: queryParameters,
|
|
179
|
-
body: IndexBlogCategoryRequestToJSON(requestParameters['indexBlogCategoryRequest']),
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Auto-generated: indexBlogCategory
|
|
185
|
-
*/
|
|
186
|
-
async indexBlogCategoryRaw(requestParameters: IndexBlogCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedBlogCategoryListResourceResponse>> {
|
|
187
|
-
const requestOptions = await this.indexBlogCategoryRequestOpts(requestParameters);
|
|
188
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
189
|
-
|
|
190
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedBlogCategoryListResourceResponseFromJSON(jsonValue));
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Auto-generated: indexBlogCategory
|
|
195
|
-
*/
|
|
196
|
-
async indexBlogCategory(requestParameters: IndexBlogCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedBlogCategoryListResourceResponse> {
|
|
197
|
-
const response = await this.indexBlogCategoryRaw(requestParameters, initOverrides);
|
|
198
|
-
return await response.value();
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Creates request options for showBlogCategory without sending the request
|
|
203
|
-
*/
|
|
204
|
-
async showBlogCategoryRequestOpts(requestParameters: ShowBlogCategoryRequest): Promise<runtime.RequestOpts> {
|
|
205
|
-
if (requestParameters['blogCategory'] == null) {
|
|
206
|
-
throw new runtime.RequiredError(
|
|
207
|
-
'blogCategory',
|
|
208
|
-
'Required parameter "blogCategory" was null or undefined when calling showBlogCategory().'
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
const queryParameters: any = {};
|
|
213
|
-
|
|
214
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
let urlPath = `/admin-api/blog-categories/{blogCategory}`;
|
|
218
|
-
urlPath = urlPath.replace(`{${"blogCategory"}}`, encodeURIComponent(String(requestParameters['blogCategory'])));
|
|
219
|
-
|
|
220
|
-
return {
|
|
221
|
-
path: urlPath,
|
|
222
|
-
method: 'GET',
|
|
223
|
-
headers: headerParameters,
|
|
224
|
-
query: queryParameters,
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Auto-generated: showBlogCategory
|
|
230
|
-
*/
|
|
231
|
-
async showBlogCategoryRaw(requestParameters: ShowBlogCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlogCategoryResource>> {
|
|
232
|
-
const requestOptions = await this.showBlogCategoryRequestOpts(requestParameters);
|
|
233
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
234
|
-
|
|
235
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => BlogCategoryResourceFromJSON(jsonValue));
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Auto-generated: showBlogCategory
|
|
240
|
-
*/
|
|
241
|
-
async showBlogCategory(requestParameters: ShowBlogCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlogCategoryResource> {
|
|
242
|
-
const response = await this.showBlogCategoryRaw(requestParameters, initOverrides);
|
|
243
|
-
return await response.value();
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Creates request options for storeBlogCategory without sending the request
|
|
248
|
-
*/
|
|
249
|
-
async storeBlogCategoryRequestOpts(requestParameters: StoreBlogCategoryOperationRequest): Promise<runtime.RequestOpts> {
|
|
250
|
-
const queryParameters: any = {};
|
|
251
|
-
|
|
252
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
253
|
-
|
|
254
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
let urlPath = `/admin-api/blog-categories/create`;
|
|
258
|
-
|
|
259
|
-
return {
|
|
260
|
-
path: urlPath,
|
|
261
|
-
method: 'POST',
|
|
262
|
-
headers: headerParameters,
|
|
263
|
-
query: queryParameters,
|
|
264
|
-
body: StoreBlogCategoryRequestToJSON(requestParameters['storeBlogCategoryRequest']),
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Auto-generated: storeBlogCategory
|
|
270
|
-
*/
|
|
271
|
-
async storeBlogCategoryRaw(requestParameters: StoreBlogCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlogCategoryResource>> {
|
|
272
|
-
const requestOptions = await this.storeBlogCategoryRequestOpts(requestParameters);
|
|
273
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
274
|
-
|
|
275
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => BlogCategoryResourceFromJSON(jsonValue));
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Auto-generated: storeBlogCategory
|
|
280
|
-
*/
|
|
281
|
-
async storeBlogCategory(requestParameters: StoreBlogCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlogCategoryResource> {
|
|
282
|
-
const response = await this.storeBlogCategoryRaw(requestParameters, initOverrides);
|
|
283
|
-
return await response.value();
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Creates request options for updateBlogCategory without sending the request
|
|
288
|
-
*/
|
|
289
|
-
async updateBlogCategoryRequestOpts(requestParameters: UpdateBlogCategoryOperationRequest): Promise<runtime.RequestOpts> {
|
|
290
|
-
if (requestParameters['blogCategory'] == null) {
|
|
291
|
-
throw new runtime.RequiredError(
|
|
292
|
-
'blogCategory',
|
|
293
|
-
'Required parameter "blogCategory" was null or undefined when calling updateBlogCategory().'
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
const queryParameters: any = {};
|
|
298
|
-
|
|
299
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
300
|
-
|
|
301
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
let urlPath = `/admin-api/blog-categories/{blogCategory}/update`;
|
|
305
|
-
urlPath = urlPath.replace(`{${"blogCategory"}}`, encodeURIComponent(String(requestParameters['blogCategory'])));
|
|
306
|
-
|
|
307
|
-
return {
|
|
308
|
-
path: urlPath,
|
|
309
|
-
method: 'PUT',
|
|
310
|
-
headers: headerParameters,
|
|
311
|
-
query: queryParameters,
|
|
312
|
-
body: UpdateBlogCategoryRequestToJSON(requestParameters['updateBlogCategoryRequest']),
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Auto-generated: updateBlogCategory
|
|
318
|
-
*/
|
|
319
|
-
async updateBlogCategoryRaw(requestParameters: UpdateBlogCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlogCategoryResource>> {
|
|
320
|
-
const requestOptions = await this.updateBlogCategoryRequestOpts(requestParameters);
|
|
321
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
322
|
-
|
|
323
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => BlogCategoryResourceFromJSON(jsonValue));
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Auto-generated: updateBlogCategory
|
|
328
|
-
*/
|
|
329
|
-
async updateBlogCategory(requestParameters: UpdateBlogCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlogCategoryResource> {
|
|
330
|
-
const response = await this.updateBlogCategoryRaw(requestParameters, initOverrides);
|
|
331
|
-
return await response.value();
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
}
|