@digital8/lighting-illusions-ts-sdk 0.0.354 → 0.0.356
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 +2 -0
- package/README.md +3 -2
- package/dist/models/UpdateProductTypeRequest.d.ts +9 -9
- package/dist/models/UpdateProductTypeRequest.js +9 -17
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +38 -0
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/UpdateProductTypeRequest.md +4 -4
- package/docs/UpdateProductTypeRequestPerformanceValuesInner.md +36 -0
- package/package.json +1 -1
- package/src/models/UpdateProductTypeRequest.ts +22 -26
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +73 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -141,6 +141,7 @@ docs/UpdateProductChildRequestAssetsInner.md
|
|
|
141
141
|
docs/UpdateProductChildRequestCompatibleProductsInner.md
|
|
142
142
|
docs/UpdateProductRequest.md
|
|
143
143
|
docs/UpdateProductTypeRequest.md
|
|
144
|
+
docs/UpdateProductTypeRequestPerformanceValuesInner.md
|
|
144
145
|
docs/UpdateSiteNotificationRequest.md
|
|
145
146
|
docs/UpdateSiteRequest.md
|
|
146
147
|
docs/UpdateSupplierRequest.md
|
|
@@ -287,6 +288,7 @@ src/models/UpdateProductChildRequestAssetsInner.ts
|
|
|
287
288
|
src/models/UpdateProductChildRequestCompatibleProductsInner.ts
|
|
288
289
|
src/models/UpdateProductRequest.ts
|
|
289
290
|
src/models/UpdateProductTypeRequest.ts
|
|
291
|
+
src/models/UpdateProductTypeRequestPerformanceValuesInner.ts
|
|
290
292
|
src/models/UpdateSiteNotificationRequest.ts
|
|
291
293
|
src/models/UpdateSiteRequest.ts
|
|
292
294
|
src/models/UpdateSupplierRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.356
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -251,6 +251,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
251
251
|
- [UpdateProductChildRequestCompatibleProductsInner](docs/UpdateProductChildRequestCompatibleProductsInner.md)
|
|
252
252
|
- [UpdateProductRequest](docs/UpdateProductRequest.md)
|
|
253
253
|
- [UpdateProductTypeRequest](docs/UpdateProductTypeRequest.md)
|
|
254
|
+
- [UpdateProductTypeRequestPerformanceValuesInner](docs/UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
254
255
|
- [UpdateSiteNotificationRequest](docs/UpdateSiteNotificationRequest.md)
|
|
255
256
|
- [UpdateSiteRequest](docs/UpdateSiteRequest.md)
|
|
256
257
|
- [UpdateSupplierRequest](docs/UpdateSupplierRequest.md)
|
|
@@ -268,7 +269,7 @@ and is automatically generated by the
|
|
|
268
269
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
269
270
|
|
|
270
271
|
- API version: `1.0.0`
|
|
271
|
-
- Package version: `0.0.
|
|
272
|
+
- Package version: `0.0.356`
|
|
272
273
|
- Generator version: `7.17.0`
|
|
273
274
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
274
275
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { UpdateProductTypeRequestPerformanceValuesInner } from './UpdateProductTypeRequestPerformanceValuesInner';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -24,28 +24,28 @@ export interface UpdateProductTypeRequest {
|
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {Array<
|
|
27
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
28
28
|
* @memberof UpdateProductTypeRequest
|
|
29
29
|
*/
|
|
30
|
-
performanceValues
|
|
30
|
+
performanceValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {Array<
|
|
33
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
34
34
|
* @memberof UpdateProductTypeRequest
|
|
35
35
|
*/
|
|
36
|
-
dimensionValues
|
|
36
|
+
dimensionValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {Array<
|
|
39
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
40
40
|
* @memberof UpdateProductTypeRequest
|
|
41
41
|
*/
|
|
42
|
-
specificationValues
|
|
42
|
+
specificationValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
46
46
|
* @memberof UpdateProductTypeRequest
|
|
47
47
|
*/
|
|
48
|
-
otherValues
|
|
48
|
+
otherValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the UpdateProductTypeRequest interface.
|
|
@@ -18,21 +18,13 @@ exports.UpdateProductTypeRequestFromJSON = UpdateProductTypeRequestFromJSON;
|
|
|
18
18
|
exports.UpdateProductTypeRequestFromJSONTyped = UpdateProductTypeRequestFromJSONTyped;
|
|
19
19
|
exports.UpdateProductTypeRequestToJSON = UpdateProductTypeRequestToJSON;
|
|
20
20
|
exports.UpdateProductTypeRequestToJSONTyped = UpdateProductTypeRequestToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var UpdateProductTypeRequestPerformanceValuesInner_1 = require("./UpdateProductTypeRequestPerformanceValuesInner");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the UpdateProductTypeRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfUpdateProductTypeRequest(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('performanceValues' in value) || value['performanceValues'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('dimensionValues' in value) || value['dimensionValues'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('specificationValues' in value) || value['specificationValues'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('otherValues' in value) || value['otherValues'] === undefined)
|
|
35
|
-
return false;
|
|
36
28
|
return true;
|
|
37
29
|
}
|
|
38
30
|
function UpdateProductTypeRequestFromJSON(json) {
|
|
@@ -44,10 +36,10 @@ function UpdateProductTypeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
36
|
}
|
|
45
37
|
return {
|
|
46
38
|
'name': json['name'],
|
|
47
|
-
'performanceValues': (json['performance_values'].map(
|
|
48
|
-
'dimensionValues': (json['dimension_values'].map(
|
|
49
|
-
'specificationValues': (json['specification_values'].map(
|
|
50
|
-
'otherValues': (json['other_values'].map(
|
|
39
|
+
'performanceValues': json['performance_values'] == null ? undefined : (json['performance_values'].map(UpdateProductTypeRequestPerformanceValuesInner_1.UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
40
|
+
'dimensionValues': json['dimension_values'] == null ? undefined : (json['dimension_values'].map(UpdateProductTypeRequestPerformanceValuesInner_1.UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
41
|
+
'specificationValues': json['specification_values'] == null ? undefined : (json['specification_values'].map(UpdateProductTypeRequestPerformanceValuesInner_1.UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
42
|
+
'otherValues': json['other_values'] == null ? undefined : (json['other_values'].map(UpdateProductTypeRequestPerformanceValuesInner_1.UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
51
43
|
};
|
|
52
44
|
}
|
|
53
45
|
function UpdateProductTypeRequestToJSON(json) {
|
|
@@ -60,9 +52,9 @@ function UpdateProductTypeRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
60
52
|
}
|
|
61
53
|
return {
|
|
62
54
|
'name': value['name'],
|
|
63
|
-
'performance_values': (value['performanceValues'].map(
|
|
64
|
-
'dimension_values': (value['dimensionValues'].map(
|
|
65
|
-
'specification_values': (value['specificationValues'].map(
|
|
66
|
-
'other_values': (value['otherValues'].map(
|
|
55
|
+
'performance_values': value['performanceValues'] == null ? undefined : (value['performanceValues'].map(UpdateProductTypeRequestPerformanceValuesInner_1.UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
56
|
+
'dimension_values': value['dimensionValues'] == null ? undefined : (value['dimensionValues'].map(UpdateProductTypeRequestPerformanceValuesInner_1.UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
57
|
+
'specification_values': value['specificationValues'] == null ? undefined : (value['specificationValues'].map(UpdateProductTypeRequestPerformanceValuesInner_1.UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
58
|
+
'other_values': value['otherValues'] == null ? undefined : (value['otherValues'].map(UpdateProductTypeRequestPerformanceValuesInner_1.UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
67
59
|
};
|
|
68
60
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateProductTypeRequestPerformanceValuesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateProductTypeRequestPerformanceValuesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateProductTypeRequestPerformanceValuesInner
|
|
22
|
+
*/
|
|
23
|
+
attributeId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateProductTypeRequestPerformanceValuesInner
|
|
28
|
+
*/
|
|
29
|
+
order?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateProductTypeRequestPerformanceValuesInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateProductTypeRequestPerformanceValuesInner(value: object): value is UpdateProductTypeRequestPerformanceValuesInner;
|
|
35
|
+
export declare function UpdateProductTypeRequestPerformanceValuesInnerFromJSON(json: any): UpdateProductTypeRequestPerformanceValuesInner;
|
|
36
|
+
export declare function UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductTypeRequestPerformanceValuesInner;
|
|
37
|
+
export declare function UpdateProductTypeRequestPerformanceValuesInnerToJSON(json: any): UpdateProductTypeRequestPerformanceValuesInner;
|
|
38
|
+
export declare function UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped(value?: UpdateProductTypeRequestPerformanceValuesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfUpdateProductTypeRequestPerformanceValuesInner = instanceOfUpdateProductTypeRequestPerformanceValuesInner;
|
|
17
|
+
exports.UpdateProductTypeRequestPerformanceValuesInnerFromJSON = UpdateProductTypeRequestPerformanceValuesInnerFromJSON;
|
|
18
|
+
exports.UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped = UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped;
|
|
19
|
+
exports.UpdateProductTypeRequestPerformanceValuesInnerToJSON = UpdateProductTypeRequestPerformanceValuesInnerToJSON;
|
|
20
|
+
exports.UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped = UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateProductTypeRequestPerformanceValuesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateProductTypeRequestPerformanceValuesInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateProductTypeRequestPerformanceValuesInnerFromJSON(json) {
|
|
28
|
+
return UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
|
|
36
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function UpdateProductTypeRequestPerformanceValuesInnerToJSON(json) {
|
|
40
|
+
return UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'attribute_id': value['attributeId'],
|
|
49
|
+
'order': value['order'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -129,6 +129,7 @@ export * from './UpdateProductChildRequestAssetsInner';
|
|
|
129
129
|
export * from './UpdateProductChildRequestCompatibleProductsInner';
|
|
130
130
|
export * from './UpdateProductRequest';
|
|
131
131
|
export * from './UpdateProductTypeRequest';
|
|
132
|
+
export * from './UpdateProductTypeRequestPerformanceValuesInner';
|
|
132
133
|
export * from './UpdateSiteNotificationRequest';
|
|
133
134
|
export * from './UpdateSiteRequest';
|
|
134
135
|
export * from './UpdateSupplierRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -147,6 +147,7 @@ __exportStar(require("./UpdateProductChildRequestAssetsInner"), exports);
|
|
|
147
147
|
__exportStar(require("./UpdateProductChildRequestCompatibleProductsInner"), exports);
|
|
148
148
|
__exportStar(require("./UpdateProductRequest"), exports);
|
|
149
149
|
__exportStar(require("./UpdateProductTypeRequest"), exports);
|
|
150
|
+
__exportStar(require("./UpdateProductTypeRequestPerformanceValuesInner"), exports);
|
|
150
151
|
__exportStar(require("./UpdateSiteNotificationRequest"), exports);
|
|
151
152
|
__exportStar(require("./UpdateSiteRequest"), exports);
|
|
152
153
|
__exportStar(require("./UpdateSupplierRequest"), exports);
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
|
-
`performanceValues` | [Array<
|
|
11
|
-
`dimensionValues` | [Array<
|
|
12
|
-
`specificationValues` | [Array<
|
|
13
|
-
`otherValues` | [Array<
|
|
10
|
+
`performanceValues` | [Array<UpdateProductTypeRequestPerformanceValuesInner>](UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
11
|
+
`dimensionValues` | [Array<UpdateProductTypeRequestPerformanceValuesInner>](UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
12
|
+
`specificationValues` | [Array<UpdateProductTypeRequestPerformanceValuesInner>](UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
13
|
+
`otherValues` | [Array<UpdateProductTypeRequestPerformanceValuesInner>](UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateProductTypeRequestPerformanceValuesInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`attributeId` | string
|
|
10
|
+
`order` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { UpdateProductTypeRequestPerformanceValuesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"attributeId": null,
|
|
20
|
+
"order": null,
|
|
21
|
+
} satisfies UpdateProductTypeRequestPerformanceValuesInner
|
|
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 UpdateProductTypeRequestPerformanceValuesInner
|
|
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
|
+
|
package/package.json
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { UpdateProductTypeRequestPerformanceValuesInner } from './UpdateProductTypeRequestPerformanceValuesInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
UpdateProductTypeRequestPerformanceValuesInnerFromJSON,
|
|
19
|
+
UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped,
|
|
20
|
+
UpdateProductTypeRequestPerformanceValuesInnerToJSON,
|
|
21
|
+
UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped,
|
|
22
|
+
} from './UpdateProductTypeRequestPerformanceValuesInner';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -35,28 +35,28 @@ export interface UpdateProductTypeRequest {
|
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {Array<
|
|
38
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
39
39
|
* @memberof UpdateProductTypeRequest
|
|
40
40
|
*/
|
|
41
|
-
performanceValues
|
|
41
|
+
performanceValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {Array<
|
|
44
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
45
45
|
* @memberof UpdateProductTypeRequest
|
|
46
46
|
*/
|
|
47
|
-
dimensionValues
|
|
47
|
+
dimensionValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {Array<
|
|
50
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
51
51
|
* @memberof UpdateProductTypeRequest
|
|
52
52
|
*/
|
|
53
|
-
specificationValues
|
|
53
|
+
specificationValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {Array<
|
|
56
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
57
57
|
* @memberof UpdateProductTypeRequest
|
|
58
58
|
*/
|
|
59
|
-
otherValues
|
|
59
|
+
otherValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -64,10 +64,6 @@ export interface UpdateProductTypeRequest {
|
|
|
64
64
|
*/
|
|
65
65
|
export function instanceOfUpdateProductTypeRequest(value: object): value is UpdateProductTypeRequest {
|
|
66
66
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
67
|
-
if (!('performanceValues' in value) || value['performanceValues'] === undefined) return false;
|
|
68
|
-
if (!('dimensionValues' in value) || value['dimensionValues'] === undefined) return false;
|
|
69
|
-
if (!('specificationValues' in value) || value['specificationValues'] === undefined) return false;
|
|
70
|
-
if (!('otherValues' in value) || value['otherValues'] === undefined) return false;
|
|
71
67
|
return true;
|
|
72
68
|
}
|
|
73
69
|
|
|
@@ -82,10 +78,10 @@ export function UpdateProductTypeRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
82
78
|
return {
|
|
83
79
|
|
|
84
80
|
'name': json['name'],
|
|
85
|
-
'performanceValues': ((json['performance_values'] as Array<any>).map(
|
|
86
|
-
'dimensionValues': ((json['dimension_values'] as Array<any>).map(
|
|
87
|
-
'specificationValues': ((json['specification_values'] as Array<any>).map(
|
|
88
|
-
'otherValues': ((json['other_values'] as Array<any>).map(
|
|
81
|
+
'performanceValues': json['performance_values'] == null ? undefined : ((json['performance_values'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
82
|
+
'dimensionValues': json['dimension_values'] == null ? undefined : ((json['dimension_values'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
83
|
+
'specificationValues': json['specification_values'] == null ? undefined : ((json['specification_values'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
84
|
+
'otherValues': json['other_values'] == null ? undefined : ((json['other_values'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
89
85
|
};
|
|
90
86
|
}
|
|
91
87
|
|
|
@@ -101,10 +97,10 @@ export function UpdateProductTypeRequestToJSONTyped(value?: UpdateProductTypeReq
|
|
|
101
97
|
return {
|
|
102
98
|
|
|
103
99
|
'name': value['name'],
|
|
104
|
-
'performance_values': ((value['performanceValues'] as Array<any>).map(
|
|
105
|
-
'dimension_values': ((value['dimensionValues'] as Array<any>).map(
|
|
106
|
-
'specification_values': ((value['specificationValues'] as Array<any>).map(
|
|
107
|
-
'other_values': ((value['otherValues'] as Array<any>).map(
|
|
100
|
+
'performance_values': value['performanceValues'] == null ? undefined : ((value['performanceValues'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
101
|
+
'dimension_values': value['dimensionValues'] == null ? undefined : ((value['dimensionValues'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
102
|
+
'specification_values': value['specificationValues'] == null ? undefined : ((value['specificationValues'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
103
|
+
'other_values': value['otherValues'] == null ? undefined : ((value['otherValues'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
108
104
|
};
|
|
109
105
|
}
|
|
110
106
|
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateProductTypeRequestPerformanceValuesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateProductTypeRequestPerformanceValuesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateProductTypeRequestPerformanceValuesInner
|
|
26
|
+
*/
|
|
27
|
+
attributeId?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateProductTypeRequestPerformanceValuesInner
|
|
32
|
+
*/
|
|
33
|
+
order?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UpdateProductTypeRequestPerformanceValuesInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUpdateProductTypeRequestPerformanceValuesInner(value: object): value is UpdateProductTypeRequestPerformanceValuesInner {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UpdateProductTypeRequestPerformanceValuesInnerFromJSON(json: any): UpdateProductTypeRequestPerformanceValuesInner {
|
|
44
|
+
return UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductTypeRequestPerformanceValuesInner {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
|
|
54
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UpdateProductTypeRequestPerformanceValuesInnerToJSON(json: any): UpdateProductTypeRequestPerformanceValuesInner {
|
|
59
|
+
return UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped(value?: UpdateProductTypeRequestPerformanceValuesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'attribute_id': value['attributeId'],
|
|
70
|
+
'order': value['order'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -131,6 +131,7 @@ export * from './UpdateProductChildRequestAssetsInner';
|
|
|
131
131
|
export * from './UpdateProductChildRequestCompatibleProductsInner';
|
|
132
132
|
export * from './UpdateProductRequest';
|
|
133
133
|
export * from './UpdateProductTypeRequest';
|
|
134
|
+
export * from './UpdateProductTypeRequestPerformanceValuesInner';
|
|
134
135
|
export * from './UpdateSiteNotificationRequest';
|
|
135
136
|
export * from './UpdateSiteRequest';
|
|
136
137
|
export * from './UpdateSupplierRequest';
|