@digital8/lighting-illusions-ts-sdk 0.0.1014 → 0.0.1015
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 +0 -2
- package/README.md +2 -4
- package/dist/apis/AttributeApi.d.ts +1 -16
- package/dist/apis/AttributeApi.js +0 -58
- package/dist/models/ProductChildSiteDetailResource.d.ts +6 -0
- package/dist/models/ProductChildSiteDetailResource.js +4 -0
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/AttributeApi.md +0 -66
- package/docs/ProductChildSiteDetailResource.md +2 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +0 -50
- package/src/models/ProductChildSiteDetailResource.ts +9 -0
- package/src/models/index.ts +0 -1
- package/dist/models/GetAllAttributeValueRequest.d.ts +0 -93
- package/dist/models/GetAllAttributeValueRequest.js +0 -84
- package/docs/GetAllAttributeValueRequest.md +0 -46
- package/src/models/GetAllAttributeValueRequest.ts +0 -143
package/.openapi-generator/FILES
CHANGED
|
@@ -74,7 +74,6 @@ docs/ExternalApiProvider.md
|
|
|
74
74
|
docs/ExternalApiSyncStatus.md
|
|
75
75
|
docs/GenericResponse.md
|
|
76
76
|
docs/GetAllAttributeRequest.md
|
|
77
|
-
docs/GetAllAttributeValueRequest.md
|
|
78
77
|
docs/GetAllDefinitionRequest.md
|
|
79
78
|
docs/GetAllDocumentRequest.md
|
|
80
79
|
docs/GetAllGoogleCategoryRequest.md
|
|
@@ -385,7 +384,6 @@ src/models/ExternalApiProvider.ts
|
|
|
385
384
|
src/models/ExternalApiSyncStatus.ts
|
|
386
385
|
src/models/GenericResponse.ts
|
|
387
386
|
src/models/GetAllAttributeRequest.ts
|
|
388
|
-
src/models/GetAllAttributeValueRequest.ts
|
|
389
387
|
src/models/GetAllDefinitionRequest.ts
|
|
390
388
|
src/models/GetAllDocumentRequest.ts
|
|
391
389
|
src/models/GetAllGoogleCategoryRequest.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.1015
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -59,7 +59,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
59
59
|
*AttributeApi* | [**destroyAttributeValue**](docs/AttributeApi.md#destroyattributevalueoperation) | **POST** /admin-api/attribute/value/{attributeValue}/delete | Auto-generated: destroyAttributeValue
|
|
60
60
|
*AttributeApi* | [**detachProductTypeAttribute**](docs/AttributeApi.md#detachproducttypeattribute) | **POST** /admin-api/attribute/{attribute}/detach-product-type/{productType} | Auto-generated: detachProductTypeAttribute
|
|
61
61
|
*AttributeApi* | [**getAllAttribute**](docs/AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute
|
|
62
|
-
*AttributeApi* | [**getAllAttributeValue**](docs/AttributeApi.md#getallattributevalueoperation) | **POST** /admin-api/attribute/value/all | Auto-generated: getAllAttributeValue
|
|
63
62
|
*AttributeApi* | [**indexAttribute**](docs/AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute
|
|
64
63
|
*AttributeApi* | [**indexAttributeValue**](docs/AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue
|
|
65
64
|
*AttributeApi* | [**showAttribute**](docs/AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute
|
|
@@ -237,7 +236,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
237
236
|
- [ExternalApiSyncStatus](docs/ExternalApiSyncStatus.md)
|
|
238
237
|
- [GenericResponse](docs/GenericResponse.md)
|
|
239
238
|
- [GetAllAttributeRequest](docs/GetAllAttributeRequest.md)
|
|
240
|
-
- [GetAllAttributeValueRequest](docs/GetAllAttributeValueRequest.md)
|
|
241
239
|
- [GetAllDefinitionRequest](docs/GetAllDefinitionRequest.md)
|
|
242
240
|
- [GetAllDocumentRequest](docs/GetAllDocumentRequest.md)
|
|
243
241
|
- [GetAllGoogleCategoryRequest](docs/GetAllGoogleCategoryRequest.md)
|
|
@@ -470,7 +468,7 @@ and is automatically generated by the
|
|
|
470
468
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
471
469
|
|
|
472
470
|
- API version: `1.0.0`
|
|
473
|
-
- Package version: `0.0.
|
|
471
|
+
- Package version: `0.0.1015`
|
|
474
472
|
- Generator version: `7.20.0`
|
|
475
473
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
476
474
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse,
|
|
13
|
+
import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, IndexAttributeValueRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, PaginatedAttributeValueResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
|
|
14
14
|
export interface AttachProductTypeAttributeOperationRequest {
|
|
15
15
|
attribute: number;
|
|
16
16
|
attachProductTypeAttributeRequest?: AttachProductTypeAttributeRequest;
|
|
@@ -29,9 +29,6 @@ export interface DetachProductTypeAttributeRequest {
|
|
|
29
29
|
export interface GetAllAttributeOperationRequest {
|
|
30
30
|
getAllAttributeRequest?: GetAllAttributeRequest;
|
|
31
31
|
}
|
|
32
|
-
export interface GetAllAttributeValueOperationRequest {
|
|
33
|
-
getAllAttributeValueRequest?: GetAllAttributeValueRequest;
|
|
34
|
-
}
|
|
35
32
|
export interface IndexAttributeOperationRequest {
|
|
36
33
|
indexAttributeRequest?: IndexAttributeRequest;
|
|
37
34
|
}
|
|
@@ -130,18 +127,6 @@ export declare class AttributeApi extends runtime.BaseAPI {
|
|
|
130
127
|
* Auto-generated: getAllAttribute
|
|
131
128
|
*/
|
|
132
129
|
getAllAttribute(requestParameters?: GetAllAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeLiteResourceArrayResponse>;
|
|
133
|
-
/**
|
|
134
|
-
* Creates request options for getAllAttributeValue without sending the request
|
|
135
|
-
*/
|
|
136
|
-
getAllAttributeValueRequestOpts(requestParameters: GetAllAttributeValueOperationRequest): Promise<runtime.RequestOpts>;
|
|
137
|
-
/**
|
|
138
|
-
* Auto-generated: getAllAttributeValue
|
|
139
|
-
*/
|
|
140
|
-
getAllAttributeValueRaw(requestParameters: GetAllAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeValueResourceArrayResponse>>;
|
|
141
|
-
/**
|
|
142
|
-
* Auto-generated: getAllAttributeValue
|
|
143
|
-
*/
|
|
144
|
-
getAllAttributeValue(requestParameters?: GetAllAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeValueResourceArrayResponse>;
|
|
145
130
|
/**
|
|
146
131
|
* Creates request options for indexAttribute without sending the request
|
|
147
132
|
*/
|
|
@@ -377,64 +377,6 @@ var AttributeApi = /** @class */ (function (_super) {
|
|
|
377
377
|
});
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
|
-
/**
|
|
381
|
-
* Creates request options for getAllAttributeValue without sending the request
|
|
382
|
-
*/
|
|
383
|
-
AttributeApi.prototype.getAllAttributeValueRequestOpts = function (requestParameters) {
|
|
384
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
385
|
-
var queryParameters, headerParameters, urlPath;
|
|
386
|
-
return __generator(this, function (_a) {
|
|
387
|
-
queryParameters = {};
|
|
388
|
-
headerParameters = {};
|
|
389
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
390
|
-
urlPath = "/admin-api/attribute/value/all";
|
|
391
|
-
return [2 /*return*/, {
|
|
392
|
-
path: urlPath,
|
|
393
|
-
method: 'POST',
|
|
394
|
-
headers: headerParameters,
|
|
395
|
-
query: queryParameters,
|
|
396
|
-
body: (0, index_1.GetAllAttributeValueRequestToJSON)(requestParameters['getAllAttributeValueRequest']),
|
|
397
|
-
}];
|
|
398
|
-
});
|
|
399
|
-
});
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* Auto-generated: getAllAttributeValue
|
|
403
|
-
*/
|
|
404
|
-
AttributeApi.prototype.getAllAttributeValueRaw = function (requestParameters, initOverrides) {
|
|
405
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
406
|
-
var requestOptions, response;
|
|
407
|
-
return __generator(this, function (_a) {
|
|
408
|
-
switch (_a.label) {
|
|
409
|
-
case 0: return [4 /*yield*/, this.getAllAttributeValueRequestOpts(requestParameters)];
|
|
410
|
-
case 1:
|
|
411
|
-
requestOptions = _a.sent();
|
|
412
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
413
|
-
case 2:
|
|
414
|
-
response = _a.sent();
|
|
415
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AttributeValueResourceArrayResponseFromJSON)(jsonValue); })];
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
});
|
|
419
|
-
};
|
|
420
|
-
/**
|
|
421
|
-
* Auto-generated: getAllAttributeValue
|
|
422
|
-
*/
|
|
423
|
-
AttributeApi.prototype.getAllAttributeValue = function () {
|
|
424
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
425
|
-
var response;
|
|
426
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
427
|
-
return __generator(this, function (_a) {
|
|
428
|
-
switch (_a.label) {
|
|
429
|
-
case 0: return [4 /*yield*/, this.getAllAttributeValueRaw(requestParameters, initOverrides)];
|
|
430
|
-
case 1:
|
|
431
|
-
response = _a.sent();
|
|
432
|
-
return [4 /*yield*/, response.value()];
|
|
433
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
380
|
/**
|
|
439
381
|
* Creates request options for indexAttribute without sending the request
|
|
440
382
|
*/
|
|
@@ -89,6 +89,12 @@ export interface ProductChildSiteDetailResource {
|
|
|
89
89
|
* @memberof ProductChildSiteDetailResource
|
|
90
90
|
*/
|
|
91
91
|
isDisabled: boolean;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {boolean}
|
|
95
|
+
* @memberof ProductChildSiteDetailResource
|
|
96
|
+
*/
|
|
97
|
+
displayInTgnFeed: boolean;
|
|
92
98
|
/**
|
|
93
99
|
*
|
|
94
100
|
* @type {SEOResource}
|
|
@@ -48,6 +48,8 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
48
48
|
return false;
|
|
49
49
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
+
if (!('displayInTgnFeed' in value) || value['displayInTgnFeed'] === undefined)
|
|
52
|
+
return false;
|
|
51
53
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
52
54
|
return false;
|
|
53
55
|
return true;
|
|
@@ -72,6 +74,7 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
72
74
|
'rrpPrice': json['rrpPrice'],
|
|
73
75
|
'salePrice': json['salePrice'],
|
|
74
76
|
'isDisabled': json['isDisabled'],
|
|
77
|
+
'displayInTgnFeed': json['displayInTgnFeed'],
|
|
75
78
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
76
79
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
77
80
|
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
@@ -98,6 +101,7 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
98
101
|
'rrpPrice': value['rrpPrice'],
|
|
99
102
|
'salePrice': value['salePrice'],
|
|
100
103
|
'isDisabled': value['isDisabled'],
|
|
104
|
+
'displayInTgnFeed': value['displayInTgnFeed'],
|
|
101
105
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
102
106
|
'omnisendId': value['omnisendId'],
|
|
103
107
|
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -65,7 +65,6 @@ export * from './ExternalApiProvider';
|
|
|
65
65
|
export * from './ExternalApiSyncStatus';
|
|
66
66
|
export * from './GenericResponse';
|
|
67
67
|
export * from './GetAllAttributeRequest';
|
|
68
|
-
export * from './GetAllAttributeValueRequest';
|
|
69
68
|
export * from './GetAllDefinitionRequest';
|
|
70
69
|
export * from './GetAllDocumentRequest';
|
|
71
70
|
export * from './GetAllGoogleCategoryRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -83,7 +83,6 @@ __exportStar(require("./ExternalApiProvider"), exports);
|
|
|
83
83
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
84
84
|
__exportStar(require("./GenericResponse"), exports);
|
|
85
85
|
__exportStar(require("./GetAllAttributeRequest"), exports);
|
|
86
|
-
__exportStar(require("./GetAllAttributeValueRequest"), exports);
|
|
87
86
|
__exportStar(require("./GetAllDefinitionRequest"), exports);
|
|
88
87
|
__exportStar(require("./GetAllDocumentRequest"), exports);
|
|
89
88
|
__exportStar(require("./GetAllGoogleCategoryRequest"), exports);
|
package/docs/AttributeApi.md
CHANGED
|
@@ -9,7 +9,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
9
9
|
| [**destroyAttributeValue**](AttributeApi.md#destroyattributevalueoperation) | **POST** /admin-api/attribute/value/{attributeValue}/delete | Auto-generated: destroyAttributeValue |
|
|
10
10
|
| [**detachProductTypeAttribute**](AttributeApi.md#detachproducttypeattribute) | **POST** /admin-api/attribute/{attribute}/detach-product-type/{productType} | Auto-generated: detachProductTypeAttribute |
|
|
11
11
|
| [**getAllAttribute**](AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute |
|
|
12
|
-
| [**getAllAttributeValue**](AttributeApi.md#getallattributevalueoperation) | **POST** /admin-api/attribute/value/all | Auto-generated: getAllAttributeValue |
|
|
13
12
|
| [**indexAttribute**](AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute |
|
|
14
13
|
| [**indexAttributeValue**](AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue |
|
|
15
14
|
| [**showAttribute**](AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute |
|
|
@@ -357,71 +356,6 @@ No authorization required
|
|
|
357
356
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
358
357
|
|
|
359
358
|
|
|
360
|
-
## getAllAttributeValue
|
|
361
|
-
|
|
362
|
-
> AttributeValueResourceArrayResponse getAllAttributeValue(getAllAttributeValueRequest)
|
|
363
|
-
|
|
364
|
-
Auto-generated: getAllAttributeValue
|
|
365
|
-
|
|
366
|
-
### Example
|
|
367
|
-
|
|
368
|
-
```ts
|
|
369
|
-
import {
|
|
370
|
-
Configuration,
|
|
371
|
-
AttributeApi,
|
|
372
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
373
|
-
import type { GetAllAttributeValueOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
374
|
-
|
|
375
|
-
async function example() {
|
|
376
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
377
|
-
const api = new AttributeApi();
|
|
378
|
-
|
|
379
|
-
const body = {
|
|
380
|
-
// GetAllAttributeValueRequest (optional)
|
|
381
|
-
getAllAttributeValueRequest: ...,
|
|
382
|
-
} satisfies GetAllAttributeValueOperationRequest;
|
|
383
|
-
|
|
384
|
-
try {
|
|
385
|
-
const data = await api.getAllAttributeValue(body);
|
|
386
|
-
console.log(data);
|
|
387
|
-
} catch (error) {
|
|
388
|
-
console.error(error);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
// Run the test
|
|
393
|
-
example().catch(console.error);
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
### Parameters
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
| Name | Type | Description | Notes |
|
|
400
|
-
|------------- | ------------- | ------------- | -------------|
|
|
401
|
-
| **getAllAttributeValueRequest** | [GetAllAttributeValueRequest](GetAllAttributeValueRequest.md) | | [Optional] |
|
|
402
|
-
|
|
403
|
-
### Return type
|
|
404
|
-
|
|
405
|
-
[**AttributeValueResourceArrayResponse**](AttributeValueResourceArrayResponse.md)
|
|
406
|
-
|
|
407
|
-
### Authorization
|
|
408
|
-
|
|
409
|
-
No authorization required
|
|
410
|
-
|
|
411
|
-
### HTTP request headers
|
|
412
|
-
|
|
413
|
-
- **Content-Type**: `application/json`
|
|
414
|
-
- **Accept**: `application/json`
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
### HTTP response details
|
|
418
|
-
| Status code | Description | Response headers |
|
|
419
|
-
|-------------|-------------|------------------|
|
|
420
|
-
| **200** | Successful resource response | - |
|
|
421
|
-
|
|
422
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
423
|
-
|
|
424
|
-
|
|
425
359
|
## indexAttribute
|
|
426
360
|
|
|
427
361
|
> PaginatedAttributeListResourceResponse indexAttribute(indexAttributeRequest)
|
|
@@ -18,6 +18,7 @@ Name | Type
|
|
|
18
18
|
`rrpPrice` | number
|
|
19
19
|
`salePrice` | number
|
|
20
20
|
`isDisabled` | boolean
|
|
21
|
+
`displayInTgnFeed` | boolean
|
|
21
22
|
`seo` | [SEOResource](SEOResource.md)
|
|
22
23
|
`omnisendId` | string
|
|
23
24
|
`omnisendSyncStatus` | string
|
|
@@ -41,6 +42,7 @@ const example = {
|
|
|
41
42
|
"rrpPrice": null,
|
|
42
43
|
"salePrice": null,
|
|
43
44
|
"isDisabled": null,
|
|
45
|
+
"displayInTgnFeed": null,
|
|
44
46
|
"seo": null,
|
|
45
47
|
"omnisendId": null,
|
|
46
48
|
"omnisendSyncStatus": null,
|
package/package.json
CHANGED
package/src/apis/AttributeApi.ts
CHANGED
|
@@ -19,11 +19,9 @@ import type {
|
|
|
19
19
|
AttributeLiteResourceArrayResponse,
|
|
20
20
|
AttributeResource,
|
|
21
21
|
AttributeResourceArrayResponse,
|
|
22
|
-
AttributeValueResourceArrayResponse,
|
|
23
22
|
DestroyAttributeValueRequest,
|
|
24
23
|
GenericResponse,
|
|
25
24
|
GetAllAttributeRequest,
|
|
26
|
-
GetAllAttributeValueRequest,
|
|
27
25
|
IndexAttributeRequest,
|
|
28
26
|
IndexAttributeValueRequest,
|
|
29
27
|
ModelAttributeResourceArrayResponse,
|
|
@@ -45,16 +43,12 @@ import {
|
|
|
45
43
|
AttributeResourceToJSON,
|
|
46
44
|
AttributeResourceArrayResponseFromJSON,
|
|
47
45
|
AttributeResourceArrayResponseToJSON,
|
|
48
|
-
AttributeValueResourceArrayResponseFromJSON,
|
|
49
|
-
AttributeValueResourceArrayResponseToJSON,
|
|
50
46
|
DestroyAttributeValueRequestFromJSON,
|
|
51
47
|
DestroyAttributeValueRequestToJSON,
|
|
52
48
|
GenericResponseFromJSON,
|
|
53
49
|
GenericResponseToJSON,
|
|
54
50
|
GetAllAttributeRequestFromJSON,
|
|
55
51
|
GetAllAttributeRequestToJSON,
|
|
56
|
-
GetAllAttributeValueRequestFromJSON,
|
|
57
|
-
GetAllAttributeValueRequestToJSON,
|
|
58
52
|
IndexAttributeRequestFromJSON,
|
|
59
53
|
IndexAttributeRequestToJSON,
|
|
60
54
|
IndexAttributeValueRequestFromJSON,
|
|
@@ -102,10 +96,6 @@ export interface GetAllAttributeOperationRequest {
|
|
|
102
96
|
getAllAttributeRequest?: GetAllAttributeRequest;
|
|
103
97
|
}
|
|
104
98
|
|
|
105
|
-
export interface GetAllAttributeValueOperationRequest {
|
|
106
|
-
getAllAttributeValueRequest?: GetAllAttributeValueRequest;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
99
|
export interface IndexAttributeOperationRequest {
|
|
110
100
|
indexAttributeRequest?: IndexAttributeRequest;
|
|
111
101
|
}
|
|
@@ -389,46 +379,6 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
389
379
|
return await response.value();
|
|
390
380
|
}
|
|
391
381
|
|
|
392
|
-
/**
|
|
393
|
-
* Creates request options for getAllAttributeValue without sending the request
|
|
394
|
-
*/
|
|
395
|
-
async getAllAttributeValueRequestOpts(requestParameters: GetAllAttributeValueOperationRequest): Promise<runtime.RequestOpts> {
|
|
396
|
-
const queryParameters: any = {};
|
|
397
|
-
|
|
398
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
399
|
-
|
|
400
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
let urlPath = `/admin-api/attribute/value/all`;
|
|
404
|
-
|
|
405
|
-
return {
|
|
406
|
-
path: urlPath,
|
|
407
|
-
method: 'POST',
|
|
408
|
-
headers: headerParameters,
|
|
409
|
-
query: queryParameters,
|
|
410
|
-
body: GetAllAttributeValueRequestToJSON(requestParameters['getAllAttributeValueRequest']),
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Auto-generated: getAllAttributeValue
|
|
416
|
-
*/
|
|
417
|
-
async getAllAttributeValueRaw(requestParameters: GetAllAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeValueResourceArrayResponse>> {
|
|
418
|
-
const requestOptions = await this.getAllAttributeValueRequestOpts(requestParameters);
|
|
419
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
420
|
-
|
|
421
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeValueResourceArrayResponseFromJSON(jsonValue));
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* Auto-generated: getAllAttributeValue
|
|
426
|
-
*/
|
|
427
|
-
async getAllAttributeValue(requestParameters: GetAllAttributeValueOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeValueResourceArrayResponse> {
|
|
428
|
-
const response = await this.getAllAttributeValueRaw(requestParameters, initOverrides);
|
|
429
|
-
return await response.value();
|
|
430
|
-
}
|
|
431
|
-
|
|
432
382
|
/**
|
|
433
383
|
* Creates request options for indexAttribute without sending the request
|
|
434
384
|
*/
|
|
@@ -106,6 +106,12 @@ export interface ProductChildSiteDetailResource {
|
|
|
106
106
|
* @memberof ProductChildSiteDetailResource
|
|
107
107
|
*/
|
|
108
108
|
isDisabled: boolean;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof ProductChildSiteDetailResource
|
|
113
|
+
*/
|
|
114
|
+
displayInTgnFeed: boolean;
|
|
109
115
|
/**
|
|
110
116
|
*
|
|
111
117
|
* @type {SEOResource}
|
|
@@ -142,6 +148,7 @@ export function instanceOfProductChildSiteDetailResource(value: object): value i
|
|
|
142
148
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
|
|
143
149
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
144
150
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
151
|
+
if (!('displayInTgnFeed' in value) || value['displayInTgnFeed'] === undefined) return false;
|
|
145
152
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
146
153
|
return true;
|
|
147
154
|
}
|
|
@@ -168,6 +175,7 @@ export function ProductChildSiteDetailResourceFromJSONTyped(json: any, ignoreDis
|
|
|
168
175
|
'rrpPrice': json['rrpPrice'],
|
|
169
176
|
'salePrice': json['salePrice'],
|
|
170
177
|
'isDisabled': json['isDisabled'],
|
|
178
|
+
'displayInTgnFeed': json['displayInTgnFeed'],
|
|
171
179
|
'seo': SEOResourceFromJSON(json['seo']),
|
|
172
180
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
173
181
|
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
@@ -197,6 +205,7 @@ export function ProductChildSiteDetailResourceToJSONTyped(value?: ProductChildSi
|
|
|
197
205
|
'rrpPrice': value['rrpPrice'],
|
|
198
206
|
'salePrice': value['salePrice'],
|
|
199
207
|
'isDisabled': value['isDisabled'],
|
|
208
|
+
'displayInTgnFeed': value['displayInTgnFeed'],
|
|
200
209
|
'seo': SEOResourceToJSON(value['seo']),
|
|
201
210
|
'omnisendId': value['omnisendId'],
|
|
202
211
|
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
package/src/models/index.ts
CHANGED
|
@@ -67,7 +67,6 @@ export * from './ExternalApiProvider';
|
|
|
67
67
|
export * from './ExternalApiSyncStatus';
|
|
68
68
|
export * from './GenericResponse';
|
|
69
69
|
export * from './GetAllAttributeRequest';
|
|
70
|
-
export * from './GetAllAttributeValueRequest';
|
|
71
70
|
export * from './GetAllDefinitionRequest';
|
|
72
71
|
export * from './GetAllDocumentRequest';
|
|
73
72
|
export * from './GetAllGoogleCategoryRequest';
|
|
@@ -1,93 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface GetAllAttributeValueRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface GetAllAttributeValueRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof GetAllAttributeValueRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {GetAllAttributeValueRequestSortByEnum}
|
|
27
|
-
* @memberof GetAllAttributeValueRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: GetAllAttributeValueRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {GetAllAttributeValueRequestSortDirectionEnum}
|
|
33
|
-
* @memberof GetAllAttributeValueRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: GetAllAttributeValueRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof GetAllAttributeValueRequest
|
|
40
|
-
*/
|
|
41
|
-
relatedId?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {GetAllAttributeValueRequestRelatedTypeEnum}
|
|
45
|
-
* @memberof GetAllAttributeValueRequest
|
|
46
|
-
*/
|
|
47
|
-
relatedType?: GetAllAttributeValueRequestRelatedTypeEnum;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof GetAllAttributeValueRequest
|
|
52
|
-
*/
|
|
53
|
-
includesRelations?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof GetAllAttributeValueRequest
|
|
58
|
-
*/
|
|
59
|
-
attributeId?: Array<string>;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @export
|
|
63
|
-
*/
|
|
64
|
-
export declare const GetAllAttributeValueRequestSortByEnum: {
|
|
65
|
-
readonly Id: "id";
|
|
66
|
-
readonly Value: "value";
|
|
67
|
-
readonly CreatedAt: "created_at";
|
|
68
|
-
readonly UpdatedAt: "updated_at";
|
|
69
|
-
};
|
|
70
|
-
export type GetAllAttributeValueRequestSortByEnum = typeof GetAllAttributeValueRequestSortByEnum[keyof typeof GetAllAttributeValueRequestSortByEnum];
|
|
71
|
-
/**
|
|
72
|
-
* @export
|
|
73
|
-
*/
|
|
74
|
-
export declare const GetAllAttributeValueRequestSortDirectionEnum: {
|
|
75
|
-
readonly Asc: "asc";
|
|
76
|
-
readonly Desc: "desc";
|
|
77
|
-
};
|
|
78
|
-
export type GetAllAttributeValueRequestSortDirectionEnum = typeof GetAllAttributeValueRequestSortDirectionEnum[keyof typeof GetAllAttributeValueRequestSortDirectionEnum];
|
|
79
|
-
/**
|
|
80
|
-
* @export
|
|
81
|
-
*/
|
|
82
|
-
export declare const GetAllAttributeValueRequestRelatedTypeEnum: {
|
|
83
|
-
readonly Attribute: "attribute";
|
|
84
|
-
};
|
|
85
|
-
export type GetAllAttributeValueRequestRelatedTypeEnum = typeof GetAllAttributeValueRequestRelatedTypeEnum[keyof typeof GetAllAttributeValueRequestRelatedTypeEnum];
|
|
86
|
-
/**
|
|
87
|
-
* Check if a given object implements the GetAllAttributeValueRequest interface.
|
|
88
|
-
*/
|
|
89
|
-
export declare function instanceOfGetAllAttributeValueRequest(value: object): value is GetAllAttributeValueRequest;
|
|
90
|
-
export declare function GetAllAttributeValueRequestFromJSON(json: any): GetAllAttributeValueRequest;
|
|
91
|
-
export declare function GetAllAttributeValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAttributeValueRequest;
|
|
92
|
-
export declare function GetAllAttributeValueRequestToJSON(json: any): GetAllAttributeValueRequest;
|
|
93
|
-
export declare function GetAllAttributeValueRequestToJSONTyped(value?: GetAllAttributeValueRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,84 +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.GetAllAttributeValueRequestRelatedTypeEnum = exports.GetAllAttributeValueRequestSortDirectionEnum = exports.GetAllAttributeValueRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfGetAllAttributeValueRequest = instanceOfGetAllAttributeValueRequest;
|
|
18
|
-
exports.GetAllAttributeValueRequestFromJSON = GetAllAttributeValueRequestFromJSON;
|
|
19
|
-
exports.GetAllAttributeValueRequestFromJSONTyped = GetAllAttributeValueRequestFromJSONTyped;
|
|
20
|
-
exports.GetAllAttributeValueRequestToJSON = GetAllAttributeValueRequestToJSON;
|
|
21
|
-
exports.GetAllAttributeValueRequestToJSONTyped = GetAllAttributeValueRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.GetAllAttributeValueRequestSortByEnum = {
|
|
26
|
-
Id: 'id',
|
|
27
|
-
Value: 'value',
|
|
28
|
-
CreatedAt: 'created_at',
|
|
29
|
-
UpdatedAt: 'updated_at'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
exports.GetAllAttributeValueRequestSortDirectionEnum = {
|
|
35
|
-
Asc: 'asc',
|
|
36
|
-
Desc: 'desc'
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* @export
|
|
40
|
-
*/
|
|
41
|
-
exports.GetAllAttributeValueRequestRelatedTypeEnum = {
|
|
42
|
-
Attribute: 'attribute'
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Check if a given object implements the GetAllAttributeValueRequest interface.
|
|
46
|
-
*/
|
|
47
|
-
function instanceOfGetAllAttributeValueRequest(value) {
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
function GetAllAttributeValueRequestFromJSON(json) {
|
|
51
|
-
return GetAllAttributeValueRequestFromJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
function GetAllAttributeValueRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
-
if (json == null) {
|
|
55
|
-
return json;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
59
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
60
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
61
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
62
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
63
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
64
|
-
'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
function GetAllAttributeValueRequestToJSON(json) {
|
|
68
|
-
return GetAllAttributeValueRequestToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
function GetAllAttributeValueRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
71
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
'search': value['search'],
|
|
77
|
-
'sortBy': value['sortBy'],
|
|
78
|
-
'sortDirection': value['sortDirection'],
|
|
79
|
-
'related_id': value['relatedId'],
|
|
80
|
-
'related_type': value['relatedType'],
|
|
81
|
-
'includes_relations': value['includesRelations'],
|
|
82
|
-
'attribute_id': value['attributeId'],
|
|
83
|
-
};
|
|
84
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GetAllAttributeValueRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`search` | string
|
|
10
|
-
`sortBy` | string
|
|
11
|
-
`sortDirection` | string
|
|
12
|
-
`relatedId` | number
|
|
13
|
-
`relatedType` | string
|
|
14
|
-
`includesRelations` | boolean
|
|
15
|
-
`attributeId` | Array<string>
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import type { GetAllAttributeValueRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
-
|
|
22
|
-
// TODO: Update the object below with actual values
|
|
23
|
-
const example = {
|
|
24
|
-
"search": null,
|
|
25
|
-
"sortBy": null,
|
|
26
|
-
"sortDirection": null,
|
|
27
|
-
"relatedId": null,
|
|
28
|
-
"relatedType": null,
|
|
29
|
-
"includesRelations": null,
|
|
30
|
-
"attributeId": null,
|
|
31
|
-
} satisfies GetAllAttributeValueRequest
|
|
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 GetAllAttributeValueRequest
|
|
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,143 +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 GetAllAttributeValueRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface GetAllAttributeValueRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof GetAllAttributeValueRequest
|
|
26
|
-
*/
|
|
27
|
-
search?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {GetAllAttributeValueRequestSortByEnum}
|
|
31
|
-
* @memberof GetAllAttributeValueRequest
|
|
32
|
-
*/
|
|
33
|
-
sortBy?: GetAllAttributeValueRequestSortByEnum;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {GetAllAttributeValueRequestSortDirectionEnum}
|
|
37
|
-
* @memberof GetAllAttributeValueRequest
|
|
38
|
-
*/
|
|
39
|
-
sortDirection?: GetAllAttributeValueRequestSortDirectionEnum;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof GetAllAttributeValueRequest
|
|
44
|
-
*/
|
|
45
|
-
relatedId?: number;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {GetAllAttributeValueRequestRelatedTypeEnum}
|
|
49
|
-
* @memberof GetAllAttributeValueRequest
|
|
50
|
-
*/
|
|
51
|
-
relatedType?: GetAllAttributeValueRequestRelatedTypeEnum;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @memberof GetAllAttributeValueRequest
|
|
56
|
-
*/
|
|
57
|
-
includesRelations?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof GetAllAttributeValueRequest
|
|
62
|
-
*/
|
|
63
|
-
attributeId?: Array<string>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @export
|
|
69
|
-
*/
|
|
70
|
-
export const GetAllAttributeValueRequestSortByEnum = {
|
|
71
|
-
Id: 'id',
|
|
72
|
-
Value: 'value',
|
|
73
|
-
CreatedAt: 'created_at',
|
|
74
|
-
UpdatedAt: 'updated_at'
|
|
75
|
-
} as const;
|
|
76
|
-
export type GetAllAttributeValueRequestSortByEnum = typeof GetAllAttributeValueRequestSortByEnum[keyof typeof GetAllAttributeValueRequestSortByEnum];
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @export
|
|
80
|
-
*/
|
|
81
|
-
export const GetAllAttributeValueRequestSortDirectionEnum = {
|
|
82
|
-
Asc: 'asc',
|
|
83
|
-
Desc: 'desc'
|
|
84
|
-
} as const;
|
|
85
|
-
export type GetAllAttributeValueRequestSortDirectionEnum = typeof GetAllAttributeValueRequestSortDirectionEnum[keyof typeof GetAllAttributeValueRequestSortDirectionEnum];
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @export
|
|
89
|
-
*/
|
|
90
|
-
export const GetAllAttributeValueRequestRelatedTypeEnum = {
|
|
91
|
-
Attribute: 'attribute'
|
|
92
|
-
} as const;
|
|
93
|
-
export type GetAllAttributeValueRequestRelatedTypeEnum = typeof GetAllAttributeValueRequestRelatedTypeEnum[keyof typeof GetAllAttributeValueRequestRelatedTypeEnum];
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Check if a given object implements the GetAllAttributeValueRequest interface.
|
|
98
|
-
*/
|
|
99
|
-
export function instanceOfGetAllAttributeValueRequest(value: object): value is GetAllAttributeValueRequest {
|
|
100
|
-
return true;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function GetAllAttributeValueRequestFromJSON(json: any): GetAllAttributeValueRequest {
|
|
104
|
-
return GetAllAttributeValueRequestFromJSONTyped(json, false);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function GetAllAttributeValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAttributeValueRequest {
|
|
108
|
-
if (json == null) {
|
|
109
|
-
return json;
|
|
110
|
-
}
|
|
111
|
-
return {
|
|
112
|
-
|
|
113
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
114
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
115
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
116
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
117
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
118
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
119
|
-
'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function GetAllAttributeValueRequestToJSON(json: any): GetAllAttributeValueRequest {
|
|
124
|
-
return GetAllAttributeValueRequestToJSONTyped(json, false);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export function GetAllAttributeValueRequestToJSONTyped(value?: GetAllAttributeValueRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
128
|
-
if (value == null) {
|
|
129
|
-
return value;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return {
|
|
133
|
-
|
|
134
|
-
'search': value['search'],
|
|
135
|
-
'sortBy': value['sortBy'],
|
|
136
|
-
'sortDirection': value['sortDirection'],
|
|
137
|
-
'related_id': value['relatedId'],
|
|
138
|
-
'related_type': value['relatedType'],
|
|
139
|
-
'includes_relations': value['includesRelations'],
|
|
140
|
-
'attribute_id': value['attributeId'],
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
|