@digital8/lighting-illusions-ts-sdk 0.0.1562 → 0.0.1563

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.
Files changed (50) hide show
  1. package/.openapi-generator/FILES +0 -14
  2. package/README.md +2 -9
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +1 -1
  8. package/dist/models/AddressResource.js +1 -3
  9. package/dist/models/StoreFrontendResource.d.ts +1 -1
  10. package/dist/models/StoreFrontendResource.js +1 -3
  11. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  12. package/dist/models/StoreSpecialDateResource.js +3 -1
  13. package/dist/models/index.d.ts +0 -6
  14. package/dist/models/index.js +0 -6
  15. package/docs/StoreSpecialDateResource.md +1 -1
  16. package/package.json +1 -1
  17. package/src/apis/index.ts +0 -1
  18. package/src/models/AddressFrontendResource.ts +3 -2
  19. package/src/models/AddressResource.ts +2 -3
  20. package/src/models/StoreFrontendResource.ts +2 -3
  21. package/src/models/StoreSpecialDateResource.ts +4 -3
  22. package/src/models/index.ts +0 -6
  23. package/dist/apis/RedirectApi.d.ts +0 -33
  24. package/dist/apis/RedirectApi.js +0 -138
  25. package/dist/models/IndexRedirectRequest.d.ts +0 -112
  26. package/dist/models/IndexRedirectRequest.js +0 -91
  27. package/dist/models/PaginatedRedirectListResourceResponse.d.ts +0 -40
  28. package/dist/models/PaginatedRedirectListResourceResponse.js +0 -57
  29. package/dist/models/RedirectFrontendResource.d.ts +0 -62
  30. package/dist/models/RedirectFrontendResource.js +0 -71
  31. package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +0 -33
  32. package/dist/models/RedirectFrontendResourceArrayResponse.js +0 -50
  33. package/dist/models/RedirectListResource.d.ts +0 -69
  34. package/dist/models/RedirectListResource.js +0 -76
  35. package/dist/models/RedirectListResourceArrayResponse.d.ts +0 -33
  36. package/dist/models/RedirectListResourceArrayResponse.js +0 -50
  37. package/docs/IndexRedirectRequest.md +0 -52
  38. package/docs/PaginatedRedirectListResourceResponse.md +0 -36
  39. package/docs/RedirectApi.md +0 -74
  40. package/docs/RedirectFrontendResource.md +0 -44
  41. package/docs/RedirectFrontendResourceArrayResponse.md +0 -34
  42. package/docs/RedirectListResource.md +0 -46
  43. package/docs/RedirectListResourceArrayResponse.md +0 -34
  44. package/src/apis/RedirectApi.ts +0 -77
  45. package/src/models/IndexRedirectRequest.ts +0 -168
  46. package/src/models/PaginatedRedirectListResourceResponse.ts +0 -90
  47. package/src/models/RedirectFrontendResource.ts +0 -111
  48. package/src/models/RedirectFrontendResourceArrayResponse.ts +0 -73
  49. package/src/models/RedirectListResource.ts +0 -128
  50. package/src/models/RedirectListResourceArrayResponse.ts +0 -73
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { RedirectListResource } from './RedirectListResource';
13
- /**
14
- *
15
- * @export
16
- * @interface RedirectListResourceArrayResponse
17
- */
18
- export interface RedirectListResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<RedirectListResource>}
22
- * @memberof RedirectListResourceArrayResponse
23
- */
24
- data?: Array<RedirectListResource>;
25
- }
26
- /**
27
- * Check if a given object implements the RedirectListResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfRedirectListResourceArrayResponse(value: object): value is RedirectListResourceArrayResponse;
30
- export declare function RedirectListResourceArrayResponseFromJSON(json: any): RedirectListResourceArrayResponse;
31
- export declare function RedirectListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectListResourceArrayResponse;
32
- export declare function RedirectListResourceArrayResponseToJSON(json: any): RedirectListResourceArrayResponse;
33
- export declare function RedirectListResourceArrayResponseToJSONTyped(value?: RedirectListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfRedirectListResourceArrayResponse = instanceOfRedirectListResourceArrayResponse;
17
- exports.RedirectListResourceArrayResponseFromJSON = RedirectListResourceArrayResponseFromJSON;
18
- exports.RedirectListResourceArrayResponseFromJSONTyped = RedirectListResourceArrayResponseFromJSONTyped;
19
- exports.RedirectListResourceArrayResponseToJSON = RedirectListResourceArrayResponseToJSON;
20
- exports.RedirectListResourceArrayResponseToJSONTyped = RedirectListResourceArrayResponseToJSONTyped;
21
- var RedirectListResource_1 = require("./RedirectListResource");
22
- /**
23
- * Check if a given object implements the RedirectListResourceArrayResponse interface.
24
- */
25
- function instanceOfRedirectListResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function RedirectListResourceArrayResponseFromJSON(json) {
29
- return RedirectListResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function RedirectListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(RedirectListResource_1.RedirectListResourceFromJSON)),
37
- };
38
- }
39
- function RedirectListResourceArrayResponseToJSON(json) {
40
- return RedirectListResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function RedirectListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(RedirectListResource_1.RedirectListResourceToJSON)),
49
- };
50
- }
@@ -1,52 +0,0 @@
1
-
2
- # IndexRedirectRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `search` | string
10
- `sortBy` | string
11
- `sortDirection` | string
12
- `perPage` | number
13
- `page` | number
14
- `siteId` | Array&lt;string&gt;
15
- `redirectableType` | Array&lt;string&gt;
16
- `relatedId` | number
17
- `relatedType` | string
18
- `includesRelations` | boolean
19
-
20
- ## Example
21
-
22
- ```typescript
23
- import type { IndexRedirectRequest } from '@digital8/lighting-illusions-ts-sdk'
24
-
25
- // TODO: Update the object below with actual values
26
- const example = {
27
- "search": null,
28
- "sortBy": null,
29
- "sortDirection": null,
30
- "perPage": null,
31
- "page": null,
32
- "siteId": null,
33
- "redirectableType": null,
34
- "relatedId": null,
35
- "relatedType": null,
36
- "includesRelations": null,
37
- } satisfies IndexRedirectRequest
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 IndexRedirectRequest
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
-
@@ -1,36 +0,0 @@
1
-
2
- # PaginatedRedirectListResourceResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array&lt;RedirectListResource&gt;](RedirectListResource.md)
10
- `meta` | [PagingMetadata](PagingMetadata.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { PaginatedRedirectListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "data": null,
20
- "meta": null,
21
- } satisfies PaginatedRedirectListResourceResponse
22
-
23
- console.log(example)
24
-
25
- // Convert the instance to a JSON string
26
- const exampleJSON: string = JSON.stringify(example)
27
- console.log(exampleJSON)
28
-
29
- // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as PaginatedRedirectListResourceResponse
31
- console.log(exampleParsed)
32
- ```
33
-
34
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
-
36
-
@@ -1,74 +0,0 @@
1
- # RedirectApi
2
-
3
- All URIs are relative to *http://localhost/api*
4
-
5
- | Method | HTTP request | Description |
6
- |------------- | ------------- | -------------|
7
- | [**indexRedirect**](RedirectApi.md#indexredirectoperation) | **POST** /admin-api/redirect/list | Auto-generated: indexRedirect |
8
-
9
-
10
-
11
- ## indexRedirect
12
-
13
- > PaginatedRedirectListResourceResponse indexRedirect(indexRedirectRequest)
14
-
15
- Auto-generated: indexRedirect
16
-
17
- ### Example
18
-
19
- ```ts
20
- import {
21
- Configuration,
22
- RedirectApi,
23
- } from '@digital8/lighting-illusions-ts-sdk';
24
- import type { IndexRedirectOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
25
-
26
- async function example() {
27
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
28
- const api = new RedirectApi();
29
-
30
- const body = {
31
- // IndexRedirectRequest (optional)
32
- indexRedirectRequest: ...,
33
- } satisfies IndexRedirectOperationRequest;
34
-
35
- try {
36
- const data = await api.indexRedirect(body);
37
- console.log(data);
38
- } catch (error) {
39
- console.error(error);
40
- }
41
- }
42
-
43
- // Run the test
44
- example().catch(console.error);
45
- ```
46
-
47
- ### Parameters
48
-
49
-
50
- | Name | Type | Description | Notes |
51
- |------------- | ------------- | ------------- | -------------|
52
- | **indexRedirectRequest** | [IndexRedirectRequest](IndexRedirectRequest.md) | | [Optional] |
53
-
54
- ### Return type
55
-
56
- [**PaginatedRedirectListResourceResponse**](PaginatedRedirectListResourceResponse.md)
57
-
58
- ### Authorization
59
-
60
- No authorization required
61
-
62
- ### HTTP request headers
63
-
64
- - **Content-Type**: `application/json`
65
- - **Accept**: `application/json`
66
-
67
-
68
- ### HTTP response details
69
- | Status code | Description | Response headers |
70
- |-------------|-------------|------------------|
71
- | **200** | Paginated response \\JsonResponse&lt;\\ResourcePaginator&lt;\\RedirectListResource[]&gt;&gt; | - |
72
-
73
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
74
-
@@ -1,44 +0,0 @@
1
-
2
- # RedirectFrontendResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `siteId` | number
11
- `fromSlug` | string
12
- `toSlug` | string
13
- `status` | number
14
- `redirectableType` | string
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import type { RedirectFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
20
-
21
- // TODO: Update the object below with actual values
22
- const example = {
23
- "id": null,
24
- "siteId": null,
25
- "fromSlug": null,
26
- "toSlug": null,
27
- "status": null,
28
- "redirectableType": null,
29
- } satisfies RedirectFrontendResource
30
-
31
- console.log(example)
32
-
33
- // Convert the instance to a JSON string
34
- const exampleJSON: string = JSON.stringify(example)
35
- console.log(exampleJSON)
36
-
37
- // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as RedirectFrontendResource
39
- console.log(exampleParsed)
40
- ```
41
-
42
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
-
44
-
@@ -1,34 +0,0 @@
1
-
2
- # RedirectFrontendResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array&lt;RedirectFrontendResource&gt;](RedirectFrontendResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { RedirectFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies RedirectFrontendResourceArrayResponse
20
-
21
- console.log(example)
22
-
23
- // Convert the instance to a JSON string
24
- const exampleJSON: string = JSON.stringify(example)
25
- console.log(exampleJSON)
26
-
27
- // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as RedirectFrontendResourceArrayResponse
29
- console.log(exampleParsed)
30
- ```
31
-
32
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
-
34
-
@@ -1,46 +0,0 @@
1
-
2
- # RedirectListResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `site` | [SiteLiteResource](SiteLiteResource.md)
11
- `redirectableType` | string
12
- `redirectableId` | number
13
- `fromSlug` | string
14
- `toSlug` | string
15
- `status` | number
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import type { RedirectListResource } from '@digital8/lighting-illusions-ts-sdk'
21
-
22
- // TODO: Update the object below with actual values
23
- const example = {
24
- "id": null,
25
- "site": null,
26
- "redirectableType": null,
27
- "redirectableId": null,
28
- "fromSlug": null,
29
- "toSlug": null,
30
- "status": null,
31
- } satisfies RedirectListResource
32
-
33
- console.log(example)
34
-
35
- // Convert the instance to a JSON string
36
- const exampleJSON: string = JSON.stringify(example)
37
- console.log(exampleJSON)
38
-
39
- // Parse the JSON string back to an object
40
- const exampleParsed = JSON.parse(exampleJSON) as RedirectListResource
41
- console.log(exampleParsed)
42
- ```
43
-
44
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
-
46
-
@@ -1,34 +0,0 @@
1
-
2
- # RedirectListResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array&lt;RedirectListResource&gt;](RedirectListResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { RedirectListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies RedirectListResourceArrayResponse
20
-
21
- console.log(example)
22
-
23
- // Convert the instance to a JSON string
24
- const exampleJSON: string = JSON.stringify(example)
25
- console.log(exampleJSON)
26
-
27
- // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as RedirectListResourceArrayResponse
29
- console.log(exampleParsed)
30
- ```
31
-
32
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
-
34
-
@@ -1,77 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- IndexRedirectRequest,
19
- PaginatedRedirectListResourceResponse,
20
- } from '../models/index';
21
- import {
22
- IndexRedirectRequestFromJSON,
23
- IndexRedirectRequestToJSON,
24
- PaginatedRedirectListResourceResponseFromJSON,
25
- PaginatedRedirectListResourceResponseToJSON,
26
- } from '../models/index';
27
-
28
- export interface IndexRedirectOperationRequest {
29
- indexRedirectRequest?: IndexRedirectRequest;
30
- }
31
-
32
- /**
33
- *
34
- */
35
- export class RedirectApi extends runtime.BaseAPI {
36
-
37
- /**
38
- * Creates request options for indexRedirect without sending the request
39
- */
40
- async indexRedirectRequestOpts(requestParameters: IndexRedirectOperationRequest): Promise<runtime.RequestOpts> {
41
- const queryParameters: any = {};
42
-
43
- const headerParameters: runtime.HTTPHeaders = {};
44
-
45
- headerParameters['Content-Type'] = 'application/json';
46
-
47
-
48
- let urlPath = `/admin-api/redirect/list`;
49
-
50
- return {
51
- path: urlPath,
52
- method: 'POST',
53
- headers: headerParameters,
54
- query: queryParameters,
55
- body: IndexRedirectRequestToJSON(requestParameters['indexRedirectRequest']),
56
- };
57
- }
58
-
59
- /**
60
- * Auto-generated: indexRedirect
61
- */
62
- async indexRedirectRaw(requestParameters: IndexRedirectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRedirectListResourceResponse>> {
63
- const requestOptions = await this.indexRedirectRequestOpts(requestParameters);
64
- const response = await this.request(requestOptions, initOverrides);
65
-
66
- return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRedirectListResourceResponseFromJSON(jsonValue));
67
- }
68
-
69
- /**
70
- * Auto-generated: indexRedirect
71
- */
72
- async indexRedirect(requestParameters: IndexRedirectOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRedirectListResourceResponse> {
73
- const response = await this.indexRedirectRaw(requestParameters, initOverrides);
74
- return await response.value();
75
- }
76
-
77
- }
@@ -1,168 +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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface IndexRedirectRequest
20
- */
21
- export interface IndexRedirectRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IndexRedirectRequest
26
- */
27
- search?: string;
28
- /**
29
- *
30
- * @type {IndexRedirectRequestSortByEnum}
31
- * @memberof IndexRedirectRequest
32
- */
33
- sortBy?: IndexRedirectRequestSortByEnum;
34
- /**
35
- *
36
- * @type {IndexRedirectRequestSortDirectionEnum}
37
- * @memberof IndexRedirectRequest
38
- */
39
- sortDirection?: IndexRedirectRequestSortDirectionEnum;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof IndexRedirectRequest
44
- */
45
- perPage?: number;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof IndexRedirectRequest
50
- */
51
- page?: number;
52
- /**
53
- *
54
- * @type {Array<string>}
55
- * @memberof IndexRedirectRequest
56
- */
57
- siteId?: Array<string>;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof IndexRedirectRequest
62
- */
63
- redirectableType?: Array<string>;
64
- /**
65
- *
66
- * @type {number}
67
- * @memberof IndexRedirectRequest
68
- */
69
- relatedId?: number;
70
- /**
71
- *
72
- * @type {IndexRedirectRequestRelatedTypeEnum}
73
- * @memberof IndexRedirectRequest
74
- */
75
- relatedType?: IndexRedirectRequestRelatedTypeEnum;
76
- /**
77
- *
78
- * @type {boolean}
79
- * @memberof IndexRedirectRequest
80
- */
81
- includesRelations?: boolean;
82
- }
83
-
84
-
85
- /**
86
- * @export
87
- */
88
- export const IndexRedirectRequestSortByEnum = {
89
- Id: 'id'
90
- } as const;
91
- export type IndexRedirectRequestSortByEnum = typeof IndexRedirectRequestSortByEnum[keyof typeof IndexRedirectRequestSortByEnum];
92
-
93
- /**
94
- * @export
95
- */
96
- export const IndexRedirectRequestSortDirectionEnum = {
97
- Asc: 'asc',
98
- Desc: 'desc'
99
- } as const;
100
- export type IndexRedirectRequestSortDirectionEnum = typeof IndexRedirectRequestSortDirectionEnum[keyof typeof IndexRedirectRequestSortDirectionEnum];
101
-
102
- /**
103
- * @export
104
- */
105
- export const IndexRedirectRequestRelatedTypeEnum = {
106
- ProductChildSiteDetail: 'productChildSiteDetail',
107
- ProductRangeSiteDetail: 'productRangeSiteDetail',
108
- ProductCategory: 'productCategory',
109
- Supplier: 'supplier',
110
- Tag: 'tag'
111
- } as const;
112
- export type IndexRedirectRequestRelatedTypeEnum = typeof IndexRedirectRequestRelatedTypeEnum[keyof typeof IndexRedirectRequestRelatedTypeEnum];
113
-
114
-
115
- /**
116
- * Check if a given object implements the IndexRedirectRequest interface.
117
- */
118
- export function instanceOfIndexRedirectRequest(value: object): value is IndexRedirectRequest {
119
- return true;
120
- }
121
-
122
- export function IndexRedirectRequestFromJSON(json: any): IndexRedirectRequest {
123
- return IndexRedirectRequestFromJSONTyped(json, false);
124
- }
125
-
126
- export function IndexRedirectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexRedirectRequest {
127
- if (json == null) {
128
- return json;
129
- }
130
- return {
131
-
132
- 'search': json['search'] == null ? undefined : json['search'],
133
- 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
134
- 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
135
- 'perPage': json['per_page'] == null ? undefined : json['per_page'],
136
- 'page': json['page'] == null ? undefined : json['page'],
137
- 'siteId': json['site_id'] == null ? undefined : json['site_id'],
138
- 'redirectableType': json['redirectable_type'] == null ? undefined : json['redirectable_type'],
139
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
140
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
141
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
142
- };
143
- }
144
-
145
- export function IndexRedirectRequestToJSON(json: any): IndexRedirectRequest {
146
- return IndexRedirectRequestToJSONTyped(json, false);
147
- }
148
-
149
- export function IndexRedirectRequestToJSONTyped(value?: IndexRedirectRequest | null, ignoreDiscriminator: boolean = false): any {
150
- if (value == null) {
151
- return value;
152
- }
153
-
154
- return {
155
-
156
- 'search': value['search'],
157
- 'sortBy': value['sortBy'],
158
- 'sortDirection': value['sortDirection'],
159
- 'per_page': value['perPage'],
160
- 'page': value['page'],
161
- 'site_id': value['siteId'],
162
- 'redirectable_type': value['redirectableType'],
163
- 'related_id': value['relatedId'],
164
- 'related_type': value['relatedType'],
165
- 'includes_relations': value['includesRelations'],
166
- };
167
- }
168
-