@digital8/lighting-illusions-ts-sdk 0.0.1579 → 0.0.1581
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 -0
- package/README.md +11 -2
- package/dist/apis/RedirectApi.d.ts +33 -0
- package/dist/apis/RedirectApi.js +138 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/IndexRedirectRequest.d.ts +112 -0
- package/dist/models/IndexRedirectRequest.js +91 -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/ProductRangeFrontendResource.d.ts +7 -0
- package/dist/models/ProductRangeFrontendResource.js +5 -0
- 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/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/IndexRedirectRequest.md +52 -0
- package/docs/ModelAttributeFrontendResource.md +36 -0
- package/docs/ModelAttributeFrontendResourceArrayResponse.md +34 -0
- package/docs/PaginatedRedirectListResourceResponse.md +36 -0
- package/docs/ProductRangeFrontendResource.md +2 -0
- package/docs/RedirectApi.md +74 -0
- package/docs/RedirectFrontendResource.md +44 -0
- package/docs/RedirectFrontendResourceArrayResponse.md +34 -0
- package/docs/RedirectListResource.md +46 -0
- package/docs/RedirectListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/RedirectApi.ts +77 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/IndexRedirectRequest.ts +168 -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/ProductRangeFrontendResource.ts +16 -0
- 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/StoreResource.ts +3 -2
- package/src/models/index.ts +8 -0
|
@@ -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
|
@@ -15,6 +15,7 @@ export * from './ProductApi';
|
|
|
15
15
|
export * from './ProductCategoryApi';
|
|
16
16
|
export * from './ProductRangeApi';
|
|
17
17
|
export * from './ProductTypeApi';
|
|
18
|
+
export * from './RedirectApi';
|
|
18
19
|
export * from './SiteApi';
|
|
19
20
|
export * from './StoreApi';
|
|
20
21
|
export * from './SupplierApi';
|
|
@@ -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}
|
|
@@ -81,7 +81,6 @@ export interface AddressResource {
|
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
85
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
86
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
87
86
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -103,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'company': json['company'],
|
|
105
104
|
'line1': json['line_1'],
|
|
106
|
-
'line2': json['line_2'],
|
|
105
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
107
106
|
'postcode': json['postcode'],
|
|
108
107
|
'suburb': json['suburb'],
|
|
109
108
|
'country': json['country'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ModelAttributeFrontendResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ModelAttributeFrontendResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ModelAttributeFrontendResource
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ModelAttributeFrontendResource
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ModelAttributeFrontendResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfModelAttributeFrontendResource(value: object): value is ModelAttributeFrontendResource {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ModelAttributeFrontendResourceFromJSON(json: any): ModelAttributeFrontendResource {
|
|
46
|
+
return ModelAttributeFrontendResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ModelAttributeFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ModelAttributeFrontendResourceToJSON(json: any): ModelAttributeFrontendResource {
|
|
61
|
+
return ModelAttributeFrontendResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ModelAttributeFrontendResourceToJSONTyped(value?: ModelAttributeFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'value': value['value'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import type { ModelAttributeFrontendResource } from './ModelAttributeFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
ModelAttributeFrontendResourceFromJSON,
|
|
19
|
+
ModelAttributeFrontendResourceFromJSONTyped,
|
|
20
|
+
ModelAttributeFrontendResourceToJSON,
|
|
21
|
+
ModelAttributeFrontendResourceToJSONTyped,
|
|
22
|
+
} from './ModelAttributeFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ModelAttributeFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ModelAttributeFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ModelAttributeFrontendResource>}
|
|
33
|
+
* @memberof ModelAttributeFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ModelAttributeFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ModelAttributeFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfModelAttributeFrontendResourceArrayResponse(value: object): value is ModelAttributeFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ModelAttributeFrontendResourceArrayResponseFromJSON(json: any): ModelAttributeFrontendResourceArrayResponse {
|
|
46
|
+
return ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ModelAttributeFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ModelAttributeFrontendResourceArrayResponseToJSON(json: any): ModelAttributeFrontendResourceArrayResponse {
|
|
60
|
+
return ModelAttributeFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ModelAttributeFrontendResourceArrayResponseToJSONTyped(value?: ModelAttributeFrontendResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ModelAttributeFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { RedirectListResource } from './RedirectListResource';
|
|
24
|
+
import {
|
|
25
|
+
RedirectListResourceFromJSON,
|
|
26
|
+
RedirectListResourceFromJSONTyped,
|
|
27
|
+
RedirectListResourceToJSON,
|
|
28
|
+
RedirectListResourceToJSONTyped,
|
|
29
|
+
} from './RedirectListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedRedirectListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedRedirectListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<RedirectListResource>}
|
|
40
|
+
* @memberof PaginatedRedirectListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<RedirectListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedRedirectListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedRedirectListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedRedirectListResourceResponse(value: object): value is PaginatedRedirectListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedRedirectListResourceResponseFromJSON(json: any): PaginatedRedirectListResourceResponse {
|
|
61
|
+
return PaginatedRedirectListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedRedirectListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRedirectListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(RedirectListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedRedirectListResourceResponseToJSON(json: any): PaginatedRedirectListResourceResponse {
|
|
76
|
+
return PaginatedRedirectListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedRedirectListResourceResponseToJSONTyped(value?: PaginatedRedirectListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(RedirectListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SupplierFrontendResourceToJSON,
|
|
21
21
|
SupplierFrontendResourceToJSONTyped,
|
|
22
22
|
} from './SupplierFrontendResource';
|
|
23
|
+
import type { ModelAttributeFrontendResource } from './ModelAttributeFrontendResource';
|
|
24
|
+
import {
|
|
25
|
+
ModelAttributeFrontendResourceFromJSON,
|
|
26
|
+
ModelAttributeFrontendResourceFromJSONTyped,
|
|
27
|
+
ModelAttributeFrontendResourceToJSON,
|
|
28
|
+
ModelAttributeFrontendResourceToJSONTyped,
|
|
29
|
+
} from './ModelAttributeFrontendResource';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -117,6 +124,12 @@ export interface ProductRangeFrontendResource {
|
|
|
117
124
|
* @memberof ProductRangeFrontendResource
|
|
118
125
|
*/
|
|
119
126
|
thumbnail?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {Array<ModelAttributeFrontendResource>}
|
|
130
|
+
* @memberof ProductRangeFrontendResource
|
|
131
|
+
*/
|
|
132
|
+
attributes: Array<ModelAttributeFrontendResource> | null;
|
|
120
133
|
}
|
|
121
134
|
|
|
122
135
|
/**
|
|
@@ -137,6 +150,7 @@ export function instanceOfProductRangeFrontendResource(value: object): value is
|
|
|
137
150
|
if (!('documents' in value) || value['documents'] === undefined) return false;
|
|
138
151
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
139
152
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
153
|
+
if (!('attributes' in value) || value['attributes'] === undefined) return false;
|
|
140
154
|
return true;
|
|
141
155
|
}
|
|
142
156
|
|
|
@@ -165,6 +179,7 @@ export function ProductRangeFrontendResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
165
179
|
'seo': json['seo'],
|
|
166
180
|
'assets': json['assets'],
|
|
167
181
|
'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
|
|
182
|
+
'attributes': (json['attributes'] == null ? null : (json['attributes'] as Array<any>).map(ModelAttributeFrontendResourceFromJSON)),
|
|
168
183
|
};
|
|
169
184
|
}
|
|
170
185
|
|
|
@@ -194,6 +209,7 @@ export function ProductRangeFrontendResourceToJSONTyped(value?: ProductRangeFron
|
|
|
194
209
|
'seo': value['seo'],
|
|
195
210
|
'assets': value['assets'],
|
|
196
211
|
'thumbnail': value['thumbnail'],
|
|
212
|
+
'attributes': (value['attributes'] == null ? null : (value['attributes'] as Array<any>).map(ModelAttributeFrontendResourceToJSON)),
|
|
197
213
|
};
|
|
198
214
|
}
|
|
199
215
|
|