@digital8/lighting-illusions-ts-sdk 0.0.614 → 0.0.616
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 +16 -0
- package/README.md +10 -2
- package/dist/models/AssetFrontendResource.d.ts +74 -0
- package/dist/models/AssetFrontendResource.js +79 -0
- package/dist/models/AssetFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetFrontendResourceArrayResponse.js +50 -0
- package/dist/models/DocumentFrontendResource.d.ts +44 -0
- package/dist/models/DocumentFrontendResource.js +57 -0
- package/dist/models/DocumentFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/DocumentFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +62 -0
- package/dist/models/OverlayTemplateAssetFrontendResource.js +71 -0
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductCompareResource.d.ts +141 -0
- package/dist/models/ProductCompareResource.js +124 -0
- package/dist/models/ProductCompareResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCompareResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/AssetFrontendResource.md +48 -0
- package/docs/AssetFrontendResourceArrayResponse.md +34 -0
- package/docs/DocumentFrontendResource.md +38 -0
- package/docs/DocumentFrontendResourceArrayResponse.md +34 -0
- package/docs/OverlayTemplateAssetFrontendResource.md +44 -0
- package/docs/OverlayTemplateAssetFrontendResourceArrayResponse.md +34 -0
- package/docs/ProductCompareResource.md +70 -0
- package/docs/ProductCompareResourceArrayResponse.md +34 -0
- package/docs/StoreProductCategoryRequest.md +1 -1
- package/package.json +1 -1
- package/src/models/AssetFrontendResource.ts +129 -0
- package/src/models/AssetFrontendResourceArrayResponse.ts +73 -0
- package/src/models/DocumentFrontendResource.ts +83 -0
- package/src/models/DocumentFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/OverlayTemplateAssetFrontendResource.ts +111 -0
- package/src/models/OverlayTemplateAssetFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductCompareResource.ts +236 -0
- package/src/models/ProductCompareResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductCategoryRequest.ts +2 -2
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# DocumentFrontendResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`fileUrl` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { DocumentFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"name": null,
|
|
22
|
+
"fileUrl": null,
|
|
23
|
+
} satisfies DocumentFrontendResource
|
|
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 DocumentFrontendResource
|
|
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,34 @@
|
|
|
1
|
+
|
|
2
|
+
# DocumentFrontendResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<DocumentFrontendResource>](DocumentFrontendResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { DocumentFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies DocumentFrontendResourceArrayResponse
|
|
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 DocumentFrontendResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# OverlayTemplateAssetFrontendResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`position` | string
|
|
11
|
+
`padding` | number
|
|
12
|
+
`horizontalMargin` | number
|
|
13
|
+
`verticalMargin` | number
|
|
14
|
+
`image` | Array<string>
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { OverlayTemplateAssetFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"position": null,
|
|
25
|
+
"padding": null,
|
|
26
|
+
"horizontalMargin": null,
|
|
27
|
+
"verticalMargin": null,
|
|
28
|
+
"image": null,
|
|
29
|
+
} satisfies OverlayTemplateAssetFrontendResource
|
|
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 OverlayTemplateAssetFrontendResource
|
|
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
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# OverlayTemplateAssetFrontendResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<OverlayTemplateAssetFrontendResource>](OverlayTemplateAssetFrontendResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { OverlayTemplateAssetFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies OverlayTemplateAssetFrontendResourceArrayResponse
|
|
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 OverlayTemplateAssetFrontendResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductCompareResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`sku` | number
|
|
11
|
+
`model` | string
|
|
12
|
+
`stock` | number
|
|
13
|
+
`warranty` | string
|
|
14
|
+
`name` | string
|
|
15
|
+
`slug` | string
|
|
16
|
+
`parentName` | string
|
|
17
|
+
`price` | number
|
|
18
|
+
`salePrice` | number
|
|
19
|
+
`availability` | number
|
|
20
|
+
`optionsCount` | number
|
|
21
|
+
`averageRating` | number
|
|
22
|
+
`thumbnail` | [AssetFrontendResource](AssetFrontendResource.md)
|
|
23
|
+
`supplierName` | string
|
|
24
|
+
`supplierLogo` | [AssetFrontendResource](AssetFrontendResource.md)
|
|
25
|
+
`specsData` | Array<object>
|
|
26
|
+
`dimensionData` | Array<object>
|
|
27
|
+
`performanceSpecsData` | Array<object>
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import type { ProductCompareResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
33
|
+
|
|
34
|
+
// TODO: Update the object below with actual values
|
|
35
|
+
const example = {
|
|
36
|
+
"id": null,
|
|
37
|
+
"sku": null,
|
|
38
|
+
"model": null,
|
|
39
|
+
"stock": null,
|
|
40
|
+
"warranty": null,
|
|
41
|
+
"name": null,
|
|
42
|
+
"slug": null,
|
|
43
|
+
"parentName": null,
|
|
44
|
+
"price": null,
|
|
45
|
+
"salePrice": null,
|
|
46
|
+
"availability": null,
|
|
47
|
+
"optionsCount": null,
|
|
48
|
+
"averageRating": null,
|
|
49
|
+
"thumbnail": null,
|
|
50
|
+
"supplierName": null,
|
|
51
|
+
"supplierLogo": null,
|
|
52
|
+
"specsData": null,
|
|
53
|
+
"dimensionData": null,
|
|
54
|
+
"performanceSpecsData": null,
|
|
55
|
+
} satisfies ProductCompareResource
|
|
56
|
+
|
|
57
|
+
console.log(example)
|
|
58
|
+
|
|
59
|
+
// Convert the instance to a JSON string
|
|
60
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
61
|
+
console.log(exampleJSON)
|
|
62
|
+
|
|
63
|
+
// Parse the JSON string back to an object
|
|
64
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductCompareResource
|
|
65
|
+
console.log(exampleParsed)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
69
|
+
|
|
70
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductCompareResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductCompareResource>](ProductCompareResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductCompareResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductCompareResourceArrayResponse
|
|
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 ProductCompareResourceArrayResponse
|
|
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/package.json
CHANGED
|
@@ -0,0 +1,129 @@
|
|
|
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 AssetFrontendResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AssetFrontendResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AssetFrontendResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AssetFrontendResource
|
|
32
|
+
*/
|
|
33
|
+
filePath: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AssetFrontendResource
|
|
38
|
+
*/
|
|
39
|
+
fileName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AssetFrontendResource
|
|
44
|
+
*/
|
|
45
|
+
altText: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AssetFrontendResource
|
|
50
|
+
*/
|
|
51
|
+
index: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof AssetFrontendResource
|
|
56
|
+
*/
|
|
57
|
+
isThumbnail: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof AssetFrontendResource
|
|
62
|
+
*/
|
|
63
|
+
isLifestyle: boolean;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {object}
|
|
67
|
+
* @memberof AssetFrontendResource
|
|
68
|
+
*/
|
|
69
|
+
overlays: object;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the AssetFrontendResource interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfAssetFrontendResource(value: object): value is AssetFrontendResource {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
78
|
+
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
79
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
80
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
81
|
+
if (!('isThumbnail' in value) || value['isThumbnail'] === undefined) return false;
|
|
82
|
+
if (!('isLifestyle' in value) || value['isLifestyle'] === undefined) return false;
|
|
83
|
+
if (!('overlays' in value) || value['overlays'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function AssetFrontendResourceFromJSON(json: any): AssetFrontendResource {
|
|
88
|
+
return AssetFrontendResourceFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function AssetFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFrontendResource {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'filePath': json['filePath'],
|
|
99
|
+
'fileName': json['fileName'],
|
|
100
|
+
'altText': json['altText'],
|
|
101
|
+
'index': json['index'],
|
|
102
|
+
'isThumbnail': json['isThumbnail'],
|
|
103
|
+
'isLifestyle': json['isLifestyle'],
|
|
104
|
+
'overlays': json['overlays'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function AssetFrontendResourceToJSON(json: any): AssetFrontendResource {
|
|
109
|
+
return AssetFrontendResourceToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function AssetFrontendResourceToJSONTyped(value?: AssetFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'id': value['id'],
|
|
120
|
+
'filePath': value['filePath'],
|
|
121
|
+
'fileName': value['fileName'],
|
|
122
|
+
'altText': value['altText'],
|
|
123
|
+
'index': value['index'],
|
|
124
|
+
'isThumbnail': value['isThumbnail'],
|
|
125
|
+
'isLifestyle': value['isLifestyle'],
|
|
126
|
+
'overlays': value['overlays'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -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 { AssetFrontendResource } from './AssetFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
AssetFrontendResourceFromJSON,
|
|
19
|
+
AssetFrontendResourceFromJSONTyped,
|
|
20
|
+
AssetFrontendResourceToJSON,
|
|
21
|
+
AssetFrontendResourceToJSONTyped,
|
|
22
|
+
} from './AssetFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AssetFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AssetFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AssetFrontendResource>}
|
|
33
|
+
* @memberof AssetFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AssetFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AssetFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAssetFrontendResourceArrayResponse(value: object): value is AssetFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AssetFrontendResourceArrayResponseFromJSON(json: any): AssetFrontendResourceArrayResponse {
|
|
46
|
+
return AssetFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AssetFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AssetFrontendResourceArrayResponseToJSON(json: any): AssetFrontendResourceArrayResponse {
|
|
60
|
+
return AssetFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AssetFrontendResourceArrayResponseToJSONTyped(value?: AssetFrontendResourceArrayResponse | 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(AssetFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 DocumentFrontendResource
|
|
20
|
+
*/
|
|
21
|
+
export interface DocumentFrontendResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DocumentFrontendResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DocumentFrontendResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DocumentFrontendResource
|
|
38
|
+
*/
|
|
39
|
+
fileUrl: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the DocumentFrontendResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfDocumentFrontendResource(value: object): value is DocumentFrontendResource {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('fileUrl' in value) || value['fileUrl'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DocumentFrontendResourceFromJSON(json: any): DocumentFrontendResource {
|
|
52
|
+
return DocumentFrontendResourceFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function DocumentFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentFrontendResource {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'fileUrl': json['fileUrl'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function DocumentFrontendResourceToJSON(json: any): DocumentFrontendResource {
|
|
68
|
+
return DocumentFrontendResourceToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function DocumentFrontendResourceToJSONTyped(value?: DocumentFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'fileUrl': value['fileUrl'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 { DocumentFrontendResource } from './DocumentFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
DocumentFrontendResourceFromJSON,
|
|
19
|
+
DocumentFrontendResourceFromJSONTyped,
|
|
20
|
+
DocumentFrontendResourceToJSON,
|
|
21
|
+
DocumentFrontendResourceToJSONTyped,
|
|
22
|
+
} from './DocumentFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DocumentFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface DocumentFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<DocumentFrontendResource>}
|
|
33
|
+
* @memberof DocumentFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<DocumentFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the DocumentFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfDocumentFrontendResourceArrayResponse(value: object): value is DocumentFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DocumentFrontendResourceArrayResponseFromJSON(json: any): DocumentFrontendResourceArrayResponse {
|
|
46
|
+
return DocumentFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DocumentFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(DocumentFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DocumentFrontendResourceArrayResponseToJSON(json: any): DocumentFrontendResourceArrayResponse {
|
|
60
|
+
return DocumentFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DocumentFrontendResourceArrayResponseToJSONTyped(value?: DocumentFrontendResourceArrayResponse | 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(DocumentFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|