@digital8/lighting-illusions-ts-sdk 0.0.1037 → 0.0.1039
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 +4 -2
- package/dist/apis/AttributeApi.d.ts +16 -1
- package/dist/apis/AttributeApi.js +58 -0
- package/dist/models/GetAllAttributeValueRequest.d.ts +93 -0
- package/dist/models/GetAllAttributeValueRequest.js +84 -0
- package/dist/models/ProductChildListResource.d.ts +6 -0
- package/dist/models/ProductChildListResource.js +4 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +6 -0
- package/dist/models/ProductChildSiteDetailResource.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/AttributeApi.md +66 -0
- package/docs/GetAllAttributeValueRequest.md +46 -0
- package/docs/ProductChildListResource.md +2 -0
- package/docs/ProductChildSiteDetailResource.md +2 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +50 -0
- package/src/models/GetAllAttributeValueRequest.ts +143 -0
- package/src/models/ProductChildListResource.ts +9 -0
- package/src/models/ProductChildSiteDetailResource.ts +9 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -74,6 +74,7 @@ docs/ExternalApiProvider.md
|
|
|
74
74
|
docs/ExternalApiSyncStatus.md
|
|
75
75
|
docs/GenericResponse.md
|
|
76
76
|
docs/GetAllAttributeRequest.md
|
|
77
|
+
docs/GetAllAttributeValueRequest.md
|
|
77
78
|
docs/GetAllDefinitionRequest.md
|
|
78
79
|
docs/GetAllDocumentRequest.md
|
|
79
80
|
docs/GetAllGoogleCategoryRequest.md
|
|
@@ -386,6 +387,7 @@ src/models/ExternalApiProvider.ts
|
|
|
386
387
|
src/models/ExternalApiSyncStatus.ts
|
|
387
388
|
src/models/GenericResponse.ts
|
|
388
389
|
src/models/GetAllAttributeRequest.ts
|
|
390
|
+
src/models/GetAllAttributeValueRequest.ts
|
|
389
391
|
src/models/GetAllDefinitionRequest.ts
|
|
390
392
|
src/models/GetAllDocumentRequest.ts
|
|
391
393
|
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.1039
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -59,6 +59,7 @@ 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
|
|
62
63
|
*AttributeApi* | [**indexAttribute**](docs/AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute
|
|
63
64
|
*AttributeApi* | [**indexAttributeValue**](docs/AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue
|
|
64
65
|
*AttributeApi* | [**showAttribute**](docs/AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute
|
|
@@ -236,6 +237,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
236
237
|
- [ExternalApiSyncStatus](docs/ExternalApiSyncStatus.md)
|
|
237
238
|
- [GenericResponse](docs/GenericResponse.md)
|
|
238
239
|
- [GetAllAttributeRequest](docs/GetAllAttributeRequest.md)
|
|
240
|
+
- [GetAllAttributeValueRequest](docs/GetAllAttributeValueRequest.md)
|
|
239
241
|
- [GetAllDefinitionRequest](docs/GetAllDefinitionRequest.md)
|
|
240
242
|
- [GetAllDocumentRequest](docs/GetAllDocumentRequest.md)
|
|
241
243
|
- [GetAllGoogleCategoryRequest](docs/GetAllGoogleCategoryRequest.md)
|
|
@@ -470,7 +472,7 @@ and is automatically generated by the
|
|
|
470
472
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
471
473
|
|
|
472
474
|
- API version: `1.0.0`
|
|
473
|
-
- Package version: `0.0.
|
|
475
|
+
- Package version: `0.0.1039`
|
|
474
476
|
- Generator version: `7.20.0`
|
|
475
477
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
476
478
|
|
|
@@ -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, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, IndexAttributeValueRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, PaginatedAttributeValueResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
|
|
13
|
+
import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, AttributeValueResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, GetAllAttributeValueRequest, 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,6 +29,9 @@ export interface DetachProductTypeAttributeRequest {
|
|
|
29
29
|
export interface GetAllAttributeOperationRequest {
|
|
30
30
|
getAllAttributeRequest?: GetAllAttributeRequest;
|
|
31
31
|
}
|
|
32
|
+
export interface GetAllAttributeValueOperationRequest {
|
|
33
|
+
getAllAttributeValueRequest?: GetAllAttributeValueRequest;
|
|
34
|
+
}
|
|
32
35
|
export interface IndexAttributeOperationRequest {
|
|
33
36
|
indexAttributeRequest?: IndexAttributeRequest;
|
|
34
37
|
}
|
|
@@ -127,6 +130,18 @@ export declare class AttributeApi extends runtime.BaseAPI {
|
|
|
127
130
|
* Auto-generated: getAllAttribute
|
|
128
131
|
*/
|
|
129
132
|
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>;
|
|
130
145
|
/**
|
|
131
146
|
* Creates request options for indexAttribute without sending the request
|
|
132
147
|
*/
|
|
@@ -377,6 +377,64 @@ 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
|
+
};
|
|
380
438
|
/**
|
|
381
439
|
* Creates request options for indexAttribute without sending the request
|
|
382
440
|
*/
|
|
@@ -0,0 +1,93 @@
|
|
|
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;
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
}
|
|
@@ -59,6 +59,12 @@ export interface ProductChildListResource {
|
|
|
59
59
|
* @memberof ProductChildListResource
|
|
60
60
|
*/
|
|
61
61
|
isDisabled?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof ProductChildListResource
|
|
66
|
+
*/
|
|
67
|
+
displayInSocialFeed: boolean;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {number}
|
|
@@ -34,6 +34,8 @@ function instanceOfProductChildListResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('displayInSocialFeed' in value) || value['displayInSocialFeed'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
@@ -57,6 +59,7 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'model': json['model'],
|
|
58
60
|
'stock': json['stock'],
|
|
59
61
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
62
|
+
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
60
63
|
'netsuiteId': json['netsuiteId'],
|
|
61
64
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
62
65
|
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
|
|
@@ -78,6 +81,7 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
81
|
'model': value['model'],
|
|
79
82
|
'stock': value['stock'],
|
|
80
83
|
'isDisabled': value['isDisabled'],
|
|
84
|
+
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
81
85
|
'netsuiteId': value['netsuiteId'],
|
|
82
86
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
83
87
|
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
|
|
@@ -90,6 +90,12 @@ export interface ProductChildSiteDetailResource {
|
|
|
90
90
|
* @memberof ProductChildSiteDetailResource
|
|
91
91
|
*/
|
|
92
92
|
isDisabled: boolean;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {boolean}
|
|
96
|
+
* @memberof ProductChildSiteDetailResource
|
|
97
|
+
*/
|
|
98
|
+
displayInTgnFeed: boolean;
|
|
93
99
|
/**
|
|
94
100
|
*
|
|
95
101
|
* @type {SEOResource}
|
|
@@ -49,6 +49,8 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
49
49
|
return false;
|
|
50
50
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
51
51
|
return false;
|
|
52
|
+
if (!('displayInTgnFeed' in value) || value['displayInTgnFeed'] === undefined)
|
|
53
|
+
return false;
|
|
52
54
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
53
55
|
return false;
|
|
54
56
|
if (!('label' in value) || value['label'] === undefined)
|
|
@@ -75,6 +77,7 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
75
77
|
'rrpPrice': json['rrpPrice'],
|
|
76
78
|
'salePrice': json['salePrice'],
|
|
77
79
|
'isDisabled': json['isDisabled'],
|
|
80
|
+
'displayInTgnFeed': json['displayInTgnFeed'],
|
|
78
81
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
79
82
|
'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
|
|
80
83
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
@@ -102,6 +105,7 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
105
|
'rrpPrice': value['rrpPrice'],
|
|
103
106
|
'salePrice': value['salePrice'],
|
|
104
107
|
'isDisabled': value['isDisabled'],
|
|
108
|
+
'displayInTgnFeed': value['displayInTgnFeed'],
|
|
105
109
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
106
110
|
'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
|
|
107
111
|
'omnisendId': value['omnisendId'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export * from './ExternalApiProvider';
|
|
|
65
65
|
export * from './ExternalApiSyncStatus';
|
|
66
66
|
export * from './GenericResponse';
|
|
67
67
|
export * from './GetAllAttributeRequest';
|
|
68
|
+
export * from './GetAllAttributeValueRequest';
|
|
68
69
|
export * from './GetAllDefinitionRequest';
|
|
69
70
|
export * from './GetAllDocumentRequest';
|
|
70
71
|
export * from './GetAllGoogleCategoryRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -83,6 +83,7 @@ __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);
|
|
86
87
|
__exportStar(require("./GetAllDefinitionRequest"), exports);
|
|
87
88
|
__exportStar(require("./GetAllDocumentRequest"), exports);
|
|
88
89
|
__exportStar(require("./GetAllGoogleCategoryRequest"), exports);
|
package/docs/AttributeApi.md
CHANGED
|
@@ -9,6 +9,7 @@ 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 |
|
|
12
13
|
| [**indexAttribute**](AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute |
|
|
13
14
|
| [**indexAttributeValue**](AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue |
|
|
14
15
|
| [**showAttribute**](AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute |
|
|
@@ -356,6 +357,71 @@ No authorization required
|
|
|
356
357
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
357
358
|
|
|
358
359
|
|
|
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
|
+
|
|
359
425
|
## indexAttribute
|
|
360
426
|
|
|
361
427
|
> PaginatedAttributeListResourceResponse indexAttribute(indexAttributeRequest)
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`model` | string
|
|
14
14
|
`stock` | number
|
|
15
15
|
`isDisabled` | string
|
|
16
|
+
`displayInSocialFeed` | boolean
|
|
16
17
|
`netsuiteId` | number
|
|
17
18
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
18
19
|
`siteDetails` | [Array<ProductChildSiteDetailLiteResource>](ProductChildSiteDetailLiteResource.md)
|
|
@@ -31,6 +32,7 @@ const example = {
|
|
|
31
32
|
"model": null,
|
|
32
33
|
"stock": null,
|
|
33
34
|
"isDisabled": null,
|
|
35
|
+
"displayInSocialFeed": null,
|
|
34
36
|
"netsuiteId": null,
|
|
35
37
|
"thumbnail": null,
|
|
36
38
|
"siteDetails": null,
|
|
@@ -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
|
`label` | [LabelResource](LabelResource.md)
|
|
23
24
|
`omnisendId` | string
|
|
@@ -42,6 +43,7 @@ const example = {
|
|
|
42
43
|
"rrpPrice": null,
|
|
43
44
|
"salePrice": null,
|
|
44
45
|
"isDisabled": null,
|
|
46
|
+
"displayInTgnFeed": null,
|
|
45
47
|
"seo": null,
|
|
46
48
|
"label": null,
|
|
47
49
|
"omnisendId": null,
|
package/package.json
CHANGED
package/src/apis/AttributeApi.ts
CHANGED
|
@@ -19,9 +19,11 @@ import type {
|
|
|
19
19
|
AttributeLiteResourceArrayResponse,
|
|
20
20
|
AttributeResource,
|
|
21
21
|
AttributeResourceArrayResponse,
|
|
22
|
+
AttributeValueResourceArrayResponse,
|
|
22
23
|
DestroyAttributeValueRequest,
|
|
23
24
|
GenericResponse,
|
|
24
25
|
GetAllAttributeRequest,
|
|
26
|
+
GetAllAttributeValueRequest,
|
|
25
27
|
IndexAttributeRequest,
|
|
26
28
|
IndexAttributeValueRequest,
|
|
27
29
|
ModelAttributeResourceArrayResponse,
|
|
@@ -43,12 +45,16 @@ import {
|
|
|
43
45
|
AttributeResourceToJSON,
|
|
44
46
|
AttributeResourceArrayResponseFromJSON,
|
|
45
47
|
AttributeResourceArrayResponseToJSON,
|
|
48
|
+
AttributeValueResourceArrayResponseFromJSON,
|
|
49
|
+
AttributeValueResourceArrayResponseToJSON,
|
|
46
50
|
DestroyAttributeValueRequestFromJSON,
|
|
47
51
|
DestroyAttributeValueRequestToJSON,
|
|
48
52
|
GenericResponseFromJSON,
|
|
49
53
|
GenericResponseToJSON,
|
|
50
54
|
GetAllAttributeRequestFromJSON,
|
|
51
55
|
GetAllAttributeRequestToJSON,
|
|
56
|
+
GetAllAttributeValueRequestFromJSON,
|
|
57
|
+
GetAllAttributeValueRequestToJSON,
|
|
52
58
|
IndexAttributeRequestFromJSON,
|
|
53
59
|
IndexAttributeRequestToJSON,
|
|
54
60
|
IndexAttributeValueRequestFromJSON,
|
|
@@ -96,6 +102,10 @@ export interface GetAllAttributeOperationRequest {
|
|
|
96
102
|
getAllAttributeRequest?: GetAllAttributeRequest;
|
|
97
103
|
}
|
|
98
104
|
|
|
105
|
+
export interface GetAllAttributeValueOperationRequest {
|
|
106
|
+
getAllAttributeValueRequest?: GetAllAttributeValueRequest;
|
|
107
|
+
}
|
|
108
|
+
|
|
99
109
|
export interface IndexAttributeOperationRequest {
|
|
100
110
|
indexAttributeRequest?: IndexAttributeRequest;
|
|
101
111
|
}
|
|
@@ -379,6 +389,46 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
379
389
|
return await response.value();
|
|
380
390
|
}
|
|
381
391
|
|
|
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
|
+
|
|
382
432
|
/**
|
|
383
433
|
* Creates request options for indexAttribute without sending the request
|
|
384
434
|
*/
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
|
|
@@ -76,6 +76,12 @@ export interface ProductChildListResource {
|
|
|
76
76
|
* @memberof ProductChildListResource
|
|
77
77
|
*/
|
|
78
78
|
isDisabled?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof ProductChildListResource
|
|
83
|
+
*/
|
|
84
|
+
displayInSocialFeed: boolean;
|
|
79
85
|
/**
|
|
80
86
|
*
|
|
81
87
|
* @type {number}
|
|
@@ -105,6 +111,7 @@ export function instanceOfProductChildListResource(value: object): value is Prod
|
|
|
105
111
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
106
112
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
107
113
|
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
114
|
+
if (!('displayInSocialFeed' in value) || value['displayInSocialFeed'] === undefined) return false;
|
|
108
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
109
116
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
110
117
|
if (!('siteDetails' in value) || value['siteDetails'] === undefined) return false;
|
|
@@ -128,6 +135,7 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
128
135
|
'model': json['model'],
|
|
129
136
|
'stock': json['stock'],
|
|
130
137
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
138
|
+
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
131
139
|
'netsuiteId': json['netsuiteId'],
|
|
132
140
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
133
141
|
'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceFromJSON)),
|
|
@@ -152,6 +160,7 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
|
|
|
152
160
|
'model': value['model'],
|
|
153
161
|
'stock': value['stock'],
|
|
154
162
|
'isDisabled': value['isDisabled'],
|
|
163
|
+
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
155
164
|
'netsuiteId': value['netsuiteId'],
|
|
156
165
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
157
166
|
'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceToJSON)),
|
|
@@ -113,6 +113,12 @@ export interface ProductChildSiteDetailResource {
|
|
|
113
113
|
* @memberof ProductChildSiteDetailResource
|
|
114
114
|
*/
|
|
115
115
|
isDisabled: boolean;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {boolean}
|
|
119
|
+
* @memberof ProductChildSiteDetailResource
|
|
120
|
+
*/
|
|
121
|
+
displayInTgnFeed: boolean;
|
|
116
122
|
/**
|
|
117
123
|
*
|
|
118
124
|
* @type {SEOResource}
|
|
@@ -155,6 +161,7 @@ export function instanceOfProductChildSiteDetailResource(value: object): value i
|
|
|
155
161
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
|
|
156
162
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
157
163
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
164
|
+
if (!('displayInTgnFeed' in value) || value['displayInTgnFeed'] === undefined) return false;
|
|
158
165
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
159
166
|
if (!('label' in value) || value['label'] === undefined) return false;
|
|
160
167
|
return true;
|
|
@@ -182,6 +189,7 @@ export function ProductChildSiteDetailResourceFromJSONTyped(json: any, ignoreDis
|
|
|
182
189
|
'rrpPrice': json['rrpPrice'],
|
|
183
190
|
'salePrice': json['salePrice'],
|
|
184
191
|
'isDisabled': json['isDisabled'],
|
|
192
|
+
'displayInTgnFeed': json['displayInTgnFeed'],
|
|
185
193
|
'seo': SEOResourceFromJSON(json['seo']),
|
|
186
194
|
'label': LabelResourceFromJSON(json['label']),
|
|
187
195
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
@@ -212,6 +220,7 @@ export function ProductChildSiteDetailResourceToJSONTyped(value?: ProductChildSi
|
|
|
212
220
|
'rrpPrice': value['rrpPrice'],
|
|
213
221
|
'salePrice': value['salePrice'],
|
|
214
222
|
'isDisabled': value['isDisabled'],
|
|
223
|
+
'displayInTgnFeed': value['displayInTgnFeed'],
|
|
215
224
|
'seo': SEOResourceToJSON(value['seo']),
|
|
216
225
|
'label': LabelResourceToJSON(value['label']),
|
|
217
226
|
'omnisendId': value['omnisendId'],
|
package/src/models/index.ts
CHANGED
|
@@ -67,6 +67,7 @@ export * from './ExternalApiProvider';
|
|
|
67
67
|
export * from './ExternalApiSyncStatus';
|
|
68
68
|
export * from './GenericResponse';
|
|
69
69
|
export * from './GetAllAttributeRequest';
|
|
70
|
+
export * from './GetAllAttributeValueRequest';
|
|
70
71
|
export * from './GetAllDefinitionRequest';
|
|
71
72
|
export * from './GetAllDocumentRequest';
|
|
72
73
|
export * from './GetAllGoogleCategoryRequest';
|