@digital8/lighting-illusions-ts-sdk 0.0.977 → 0.0.978

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.
@@ -96,6 +96,7 @@ docs/GoogleCategoryApi.md
96
96
  docs/GoogleCategoryResource.md
97
97
  docs/GoogleCategoryResourceArrayResponse.md
98
98
  docs/IndexAttributeRequest.md
99
+ docs/IndexAttributeValueRequest.md
99
100
  docs/IndexDefinitionRequest.md
100
101
  docs/IndexDocumentRequest.md
101
102
  docs/IndexExternalApiLogRequest.md
@@ -126,6 +127,7 @@ docs/PaginatedAttributeListResourceResponse.md
126
127
  docs/PaginatedAttributeLiteResourceResponse.md
127
128
  docs/PaginatedAttributeProductTypeRelationResourceResponse.md
128
129
  docs/PaginatedAttributeResourceResponse.md
130
+ docs/PaginatedAttributeValueResourceResponse.md
129
131
  docs/PaginatedCategoryFrontendResourceResponse.md
130
132
  docs/PaginatedDefinitionListResourceResponse.md
131
133
  docs/PaginatedDefinitionResourceResponse.md
@@ -403,6 +405,7 @@ src/models/GlobalSearchResponseResourceArrayResponse.ts
403
405
  src/models/GoogleCategoryResource.ts
404
406
  src/models/GoogleCategoryResourceArrayResponse.ts
405
407
  src/models/IndexAttributeRequest.ts
408
+ src/models/IndexAttributeValueRequest.ts
406
409
  src/models/IndexDefinitionRequest.ts
407
410
  src/models/IndexDocumentRequest.ts
408
411
  src/models/IndexExternalApiLogRequest.ts
@@ -432,6 +435,7 @@ src/models/PaginatedAttributeListResourceResponse.ts
432
435
  src/models/PaginatedAttributeLiteResourceResponse.ts
433
436
  src/models/PaginatedAttributeProductTypeRelationResourceResponse.ts
434
437
  src/models/PaginatedAttributeResourceResponse.ts
438
+ src/models/PaginatedAttributeValueResourceResponse.ts
435
439
  src/models/PaginatedCategoryFrontendResourceResponse.ts
436
440
  src/models/PaginatedDefinitionListResourceResponse.ts
437
441
  src/models/PaginatedDefinitionResourceResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.977
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.978
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -60,6 +60,7 @@ All URIs are relative to *http://localhost/api*
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
62
  *AttributeApi* | [**indexAttribute**](docs/AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute
63
+ *AttributeApi* | [**indexAttributeValue**](docs/AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue
63
64
  *AttributeApi* | [**showAttribute**](docs/AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute
64
65
  *AttributeApi* | [**storeAttribute**](docs/AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute
65
66
  *AttributeApi* | [**storeAttributeValue**](docs/AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue
@@ -256,6 +257,7 @@ All URIs are relative to *http://localhost/api*
256
257
  - [GoogleCategoryResource](docs/GoogleCategoryResource.md)
257
258
  - [GoogleCategoryResourceArrayResponse](docs/GoogleCategoryResourceArrayResponse.md)
258
259
  - [IndexAttributeRequest](docs/IndexAttributeRequest.md)
260
+ - [IndexAttributeValueRequest](docs/IndexAttributeValueRequest.md)
259
261
  - [IndexDefinitionRequest](docs/IndexDefinitionRequest.md)
260
262
  - [IndexDocumentRequest](docs/IndexDocumentRequest.md)
261
263
  - [IndexExternalApiLogRequest](docs/IndexExternalApiLogRequest.md)
@@ -285,6 +287,7 @@ All URIs are relative to *http://localhost/api*
285
287
  - [PaginatedAttributeLiteResourceResponse](docs/PaginatedAttributeLiteResourceResponse.md)
286
288
  - [PaginatedAttributeProductTypeRelationResourceResponse](docs/PaginatedAttributeProductTypeRelationResourceResponse.md)
287
289
  - [PaginatedAttributeResourceResponse](docs/PaginatedAttributeResourceResponse.md)
290
+ - [PaginatedAttributeValueResourceResponse](docs/PaginatedAttributeValueResourceResponse.md)
288
291
  - [PaginatedCategoryFrontendResourceResponse](docs/PaginatedCategoryFrontendResourceResponse.md)
289
292
  - [PaginatedDefinitionListResourceResponse](docs/PaginatedDefinitionListResourceResponse.md)
290
293
  - [PaginatedDefinitionResourceResponse](docs/PaginatedDefinitionResourceResponse.md)
@@ -465,7 +468,7 @@ and is automatically generated by the
465
468
  [OpenAPI Generator](https://openapi-generator.tech) project:
466
469
 
467
470
  - API version: `1.0.0`
468
- - Package version: `0.0.977`
471
+ - Package version: `0.0.978`
469
472
  - Generator version: `7.19.0`
470
473
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
471
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, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
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;
@@ -32,6 +32,9 @@ export interface GetAllAttributeOperationRequest {
32
32
  export interface IndexAttributeOperationRequest {
33
33
  indexAttributeRequest?: IndexAttributeRequest;
34
34
  }
35
+ export interface IndexAttributeValueOperationRequest {
36
+ indexAttributeValueRequest?: IndexAttributeValueRequest;
37
+ }
35
38
  export interface ShowAttributeRequest {
36
39
  attribute: number;
37
40
  }
@@ -112,6 +115,14 @@ export declare class AttributeApi extends runtime.BaseAPI {
112
115
  * Auto-generated: indexAttribute
113
116
  */
114
117
  indexAttribute(requestParameters?: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse>;
118
+ /**
119
+ * Auto-generated: indexAttributeValue
120
+ */
121
+ indexAttributeValueRaw(requestParameters: IndexAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeValueResourceResponse>>;
122
+ /**
123
+ * Auto-generated: indexAttributeValue
124
+ */
125
+ indexAttributeValue(requestParameters?: IndexAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeValueResourceResponse>;
115
126
  /**
116
127
  * Auto-generated: showAttribute
117
128
  */
@@ -357,6 +357,51 @@ var AttributeApi = /** @class */ (function (_super) {
357
357
  });
358
358
  });
359
359
  };
360
+ /**
361
+ * Auto-generated: indexAttributeValue
362
+ */
363
+ AttributeApi.prototype.indexAttributeValueRaw = function (requestParameters, initOverrides) {
364
+ return __awaiter(this, void 0, void 0, function () {
365
+ var queryParameters, headerParameters, urlPath, response;
366
+ return __generator(this, function (_a) {
367
+ switch (_a.label) {
368
+ case 0:
369
+ queryParameters = {};
370
+ headerParameters = {};
371
+ headerParameters['Content-Type'] = 'application/json';
372
+ urlPath = "/admin-api/attribute/value/list";
373
+ return [4 /*yield*/, this.request({
374
+ path: urlPath,
375
+ method: 'POST',
376
+ headers: headerParameters,
377
+ query: queryParameters,
378
+ body: (0, index_1.IndexAttributeValueRequestToJSON)(requestParameters['indexAttributeValueRequest']),
379
+ }, initOverrides)];
380
+ case 1:
381
+ response = _a.sent();
382
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedAttributeValueResourceResponseFromJSON)(jsonValue); })];
383
+ }
384
+ });
385
+ });
386
+ };
387
+ /**
388
+ * Auto-generated: indexAttributeValue
389
+ */
390
+ AttributeApi.prototype.indexAttributeValue = function () {
391
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
392
+ var response;
393
+ if (requestParameters === void 0) { requestParameters = {}; }
394
+ return __generator(this, function (_a) {
395
+ switch (_a.label) {
396
+ case 0: return [4 /*yield*/, this.indexAttributeValueRaw(requestParameters, initOverrides)];
397
+ case 1:
398
+ response = _a.sent();
399
+ return [4 /*yield*/, response.value()];
400
+ case 2: return [2 /*return*/, _a.sent()];
401
+ }
402
+ });
403
+ });
404
+ };
360
405
  /**
361
406
  * Auto-generated: showAttribute
362
407
  */
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -0,0 +1,105 @@
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 IndexAttributeValueRequest
16
+ */
17
+ export interface IndexAttributeValueRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IndexAttributeValueRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IndexAttributeValueRequest
28
+ */
29
+ sortBy?: IndexAttributeValueRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IndexAttributeValueRequest
34
+ */
35
+ sortDirection?: IndexAttributeValueRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IndexAttributeValueRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof IndexAttributeValueRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof IndexAttributeValueRequest
52
+ */
53
+ attributeId?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof IndexAttributeValueRequest
58
+ */
59
+ relatedId?: number;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof IndexAttributeValueRequest
64
+ */
65
+ relatedType?: IndexAttributeValueRequestRelatedTypeEnum;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof IndexAttributeValueRequest
70
+ */
71
+ includesRelations?: boolean;
72
+ }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const IndexAttributeValueRequestSortByEnum: {
77
+ readonly Id: "id";
78
+ readonly Value: "value";
79
+ readonly CreatedAt: "created_at";
80
+ readonly UpdatedAt: "updated_at";
81
+ };
82
+ export type IndexAttributeValueRequestSortByEnum = typeof IndexAttributeValueRequestSortByEnum[keyof typeof IndexAttributeValueRequestSortByEnum];
83
+ /**
84
+ * @export
85
+ */
86
+ export declare const IndexAttributeValueRequestSortDirectionEnum: {
87
+ readonly Asc: "asc";
88
+ readonly Desc: "desc";
89
+ };
90
+ export type IndexAttributeValueRequestSortDirectionEnum = typeof IndexAttributeValueRequestSortDirectionEnum[keyof typeof IndexAttributeValueRequestSortDirectionEnum];
91
+ /**
92
+ * @export
93
+ */
94
+ export declare const IndexAttributeValueRequestRelatedTypeEnum: {
95
+ readonly Attribute: "attribute";
96
+ };
97
+ export type IndexAttributeValueRequestRelatedTypeEnum = typeof IndexAttributeValueRequestRelatedTypeEnum[keyof typeof IndexAttributeValueRequestRelatedTypeEnum];
98
+ /**
99
+ * Check if a given object implements the IndexAttributeValueRequest interface.
100
+ */
101
+ export declare function instanceOfIndexAttributeValueRequest(value: object): value is IndexAttributeValueRequest;
102
+ export declare function IndexAttributeValueRequestFromJSON(json: any): IndexAttributeValueRequest;
103
+ export declare function IndexAttributeValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexAttributeValueRequest;
104
+ export declare function IndexAttributeValueRequestToJSON(json: any): IndexAttributeValueRequest;
105
+ export declare function IndexAttributeValueRequestToJSONTyped(value?: IndexAttributeValueRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,88 @@
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.IndexAttributeValueRequestRelatedTypeEnum = exports.IndexAttributeValueRequestSortDirectionEnum = exports.IndexAttributeValueRequestSortByEnum = void 0;
17
+ exports.instanceOfIndexAttributeValueRequest = instanceOfIndexAttributeValueRequest;
18
+ exports.IndexAttributeValueRequestFromJSON = IndexAttributeValueRequestFromJSON;
19
+ exports.IndexAttributeValueRequestFromJSONTyped = IndexAttributeValueRequestFromJSONTyped;
20
+ exports.IndexAttributeValueRequestToJSON = IndexAttributeValueRequestToJSON;
21
+ exports.IndexAttributeValueRequestToJSONTyped = IndexAttributeValueRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IndexAttributeValueRequestSortByEnum = {
26
+ Id: 'id',
27
+ Value: 'value',
28
+ CreatedAt: 'created_at',
29
+ UpdatedAt: 'updated_at'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.IndexAttributeValueRequestSortDirectionEnum = {
35
+ Asc: 'asc',
36
+ Desc: 'desc'
37
+ };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.IndexAttributeValueRequestRelatedTypeEnum = {
42
+ Attribute: 'attribute'
43
+ };
44
+ /**
45
+ * Check if a given object implements the IndexAttributeValueRequest interface.
46
+ */
47
+ function instanceOfIndexAttributeValueRequest(value) {
48
+ return true;
49
+ }
50
+ function IndexAttributeValueRequestFromJSON(json) {
51
+ return IndexAttributeValueRequestFromJSONTyped(json, false);
52
+ }
53
+ function IndexAttributeValueRequestFromJSONTyped(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
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
62
+ 'page': json['page'] == null ? undefined : json['page'],
63
+ 'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
64
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
65
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
66
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
67
+ };
68
+ }
69
+ function IndexAttributeValueRequestToJSON(json) {
70
+ return IndexAttributeValueRequestToJSONTyped(json, false);
71
+ }
72
+ function IndexAttributeValueRequestToJSONTyped(value, ignoreDiscriminator) {
73
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'search': value['search'],
79
+ 'sortBy': value['sortBy'],
80
+ 'sortDirection': value['sortDirection'],
81
+ 'per_page': value['perPage'],
82
+ 'page': value['page'],
83
+ 'attribute_id': value['attributeId'],
84
+ 'related_id': value['relatedId'],
85
+ 'related_type': value['relatedType'],
86
+ 'includes_relations': value['includesRelations'],
87
+ };
88
+ }
@@ -0,0 +1,40 @@
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
+ import type { AttributeValueResource } from './AttributeValueResource';
13
+ import type { PagingMetadata } from './PagingMetadata';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedAttributeValueResourceResponse
18
+ */
19
+ export interface PaginatedAttributeValueResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<AttributeValueResource>}
23
+ * @memberof PaginatedAttributeValueResourceResponse
24
+ */
25
+ data: Array<AttributeValueResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedAttributeValueResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedAttributeValueResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedAttributeValueResourceResponse(value: object): value is PaginatedAttributeValueResourceResponse;
37
+ export declare function PaginatedAttributeValueResourceResponseFromJSON(json: any): PaginatedAttributeValueResourceResponse;
38
+ export declare function PaginatedAttributeValueResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAttributeValueResourceResponse;
39
+ export declare function PaginatedAttributeValueResourceResponseToJSON(json: any): PaginatedAttributeValueResourceResponse;
40
+ export declare function PaginatedAttributeValueResourceResponseToJSONTyped(value?: PaginatedAttributeValueResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfPaginatedAttributeValueResourceResponse = instanceOfPaginatedAttributeValueResourceResponse;
17
+ exports.PaginatedAttributeValueResourceResponseFromJSON = PaginatedAttributeValueResourceResponseFromJSON;
18
+ exports.PaginatedAttributeValueResourceResponseFromJSONTyped = PaginatedAttributeValueResourceResponseFromJSONTyped;
19
+ exports.PaginatedAttributeValueResourceResponseToJSON = PaginatedAttributeValueResourceResponseToJSON;
20
+ exports.PaginatedAttributeValueResourceResponseToJSONTyped = PaginatedAttributeValueResourceResponseToJSONTyped;
21
+ var AttributeValueResource_1 = require("./AttributeValueResource");
22
+ var PagingMetadata_1 = require("./PagingMetadata");
23
+ /**
24
+ * Check if a given object implements the PaginatedAttributeValueResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedAttributeValueResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedAttributeValueResourceResponseFromJSON(json) {
34
+ return PaginatedAttributeValueResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedAttributeValueResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(AttributeValueResource_1.AttributeValueResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedAttributeValueResourceResponseToJSON(json) {
46
+ return PaginatedAttributeValueResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedAttributeValueResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(AttributeValueResource_1.AttributeValueResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -101,6 +101,12 @@ export interface UpdateProductChildRequest {
101
101
  * @memberof UpdateProductChildRequest
102
102
  */
103
103
  sites: Array<StoreProductChildRequestSitesInner>;
104
+ /**
105
+ *
106
+ * @type {Array<number>}
107
+ * @memberof UpdateProductChildRequest
108
+ */
109
+ accessories?: Array<number>;
104
110
  /**
105
111
  *
106
112
  * @type {Array<UpdateProductChildRequestAssetsInner>}
@@ -70,6 +70,7 @@ function UpdateProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
70
70
  'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
71
71
  'stock': json['stock'],
72
72
  'sites': (json['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerFromJSON)),
73
+ 'accessories': json['accessories'] == null ? undefined : json['accessories'],
73
74
  'assets': (json['assets'].map(UpdateProductChildRequestAssetsInner_1.UpdateProductChildRequestAssetsInnerFromJSON)),
74
75
  };
75
76
  }
@@ -96,6 +97,7 @@ function UpdateProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
96
97
  'popularity_score': value['popularityScore'],
97
98
  'stock': value['stock'],
98
99
  'sites': (value['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerToJSON)),
100
+ 'accessories': value['accessories'],
99
101
  'assets': (value['assets'].map(UpdateProductChildRequestAssetsInner_1.UpdateProductChildRequestAssetsInnerToJSON)),
100
102
  };
101
103
  }
@@ -86,6 +86,7 @@ export * from './GlobalSearchResponseResourceArrayResponse';
86
86
  export * from './GoogleCategoryResource';
87
87
  export * from './GoogleCategoryResourceArrayResponse';
88
88
  export * from './IndexAttributeRequest';
89
+ export * from './IndexAttributeValueRequest';
89
90
  export * from './IndexDefinitionRequest';
90
91
  export * from './IndexDocumentRequest';
91
92
  export * from './IndexExternalApiLogRequest';
@@ -115,6 +116,7 @@ export * from './PaginatedAttributeListResourceResponse';
115
116
  export * from './PaginatedAttributeLiteResourceResponse';
116
117
  export * from './PaginatedAttributeProductTypeRelationResourceResponse';
117
118
  export * from './PaginatedAttributeResourceResponse';
119
+ export * from './PaginatedAttributeValueResourceResponse';
118
120
  export * from './PaginatedCategoryFrontendResourceResponse';
119
121
  export * from './PaginatedDefinitionListResourceResponse';
120
122
  export * from './PaginatedDefinitionResourceResponse';
@@ -104,6 +104,7 @@ __exportStar(require("./GlobalSearchResponseResourceArrayResponse"), exports);
104
104
  __exportStar(require("./GoogleCategoryResource"), exports);
105
105
  __exportStar(require("./GoogleCategoryResourceArrayResponse"), exports);
106
106
  __exportStar(require("./IndexAttributeRequest"), exports);
107
+ __exportStar(require("./IndexAttributeValueRequest"), exports);
107
108
  __exportStar(require("./IndexDefinitionRequest"), exports);
108
109
  __exportStar(require("./IndexDocumentRequest"), exports);
109
110
  __exportStar(require("./IndexExternalApiLogRequest"), exports);
@@ -133,6 +134,7 @@ __exportStar(require("./PaginatedAttributeListResourceResponse"), exports);
133
134
  __exportStar(require("./PaginatedAttributeLiteResourceResponse"), exports);
134
135
  __exportStar(require("./PaginatedAttributeProductTypeRelationResourceResponse"), exports);
135
136
  __exportStar(require("./PaginatedAttributeResourceResponse"), exports);
137
+ __exportStar(require("./PaginatedAttributeValueResourceResponse"), exports);
136
138
  __exportStar(require("./PaginatedCategoryFrontendResourceResponse"), exports);
137
139
  __exportStar(require("./PaginatedDefinitionListResourceResponse"), exports);
138
140
  __exportStar(require("./PaginatedDefinitionResourceResponse"), exports);
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost/api*
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
12
  | [**indexAttribute**](AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute |
13
+ | [**indexAttributeValue**](AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue |
13
14
  | [**showAttribute**](AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute |
14
15
  | [**storeAttribute**](AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute |
15
16
  | [**storeAttributeValue**](AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue |
@@ -420,6 +421,71 @@ No authorization required
420
421
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
421
422
 
422
423
 
424
+ ## indexAttributeValue
425
+
426
+ > PaginatedAttributeValueResourceResponse indexAttributeValue(indexAttributeValueRequest)
427
+
428
+ Auto-generated: indexAttributeValue
429
+
430
+ ### Example
431
+
432
+ ```ts
433
+ import {
434
+ Configuration,
435
+ AttributeApi,
436
+ } from '@digital8/lighting-illusions-ts-sdk';
437
+ import type { IndexAttributeValueOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
438
+
439
+ async function example() {
440
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
441
+ const api = new AttributeApi();
442
+
443
+ const body = {
444
+ // IndexAttributeValueRequest (optional)
445
+ indexAttributeValueRequest: ...,
446
+ } satisfies IndexAttributeValueOperationRequest;
447
+
448
+ try {
449
+ const data = await api.indexAttributeValue(body);
450
+ console.log(data);
451
+ } catch (error) {
452
+ console.error(error);
453
+ }
454
+ }
455
+
456
+ // Run the test
457
+ example().catch(console.error);
458
+ ```
459
+
460
+ ### Parameters
461
+
462
+
463
+ | Name | Type | Description | Notes |
464
+ |------------- | ------------- | ------------- | -------------|
465
+ | **indexAttributeValueRequest** | [IndexAttributeValueRequest](IndexAttributeValueRequest.md) | | [Optional] |
466
+
467
+ ### Return type
468
+
469
+ [**PaginatedAttributeValueResourceResponse**](PaginatedAttributeValueResourceResponse.md)
470
+
471
+ ### Authorization
472
+
473
+ No authorization required
474
+
475
+ ### HTTP request headers
476
+
477
+ - **Content-Type**: `application/json`
478
+ - **Accept**: `application/json`
479
+
480
+
481
+ ### HTTP response details
482
+ | Status code | Description | Response headers |
483
+ |-------------|-------------|------------------|
484
+ | **200** | Paginated response \\JsonResponse&lt;\\ResourcePaginator&lt;\\AttributeValueResource[]&gt;&gt; | - |
485
+
486
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
487
+
488
+
423
489
  ## showAttribute
424
490
 
425
491
  > AttributeResource showAttribute(attribute)
@@ -0,0 +1,50 @@
1
+
2
+ # IndexAttributeValueRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `search` | string
10
+ `sortBy` | string
11
+ `sortDirection` | string
12
+ `perPage` | number
13
+ `page` | number
14
+ `attributeId` | Array&lt;string&gt;
15
+ `relatedId` | number
16
+ `relatedType` | string
17
+ `includesRelations` | boolean
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { IndexAttributeValueRequest } from '@digital8/lighting-illusions-ts-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "search": null,
27
+ "sortBy": null,
28
+ "sortDirection": null,
29
+ "perPage": null,
30
+ "page": null,
31
+ "attributeId": null,
32
+ "relatedId": null,
33
+ "relatedType": null,
34
+ "includesRelations": null,
35
+ } satisfies IndexAttributeValueRequest
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as IndexAttributeValueRequest
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,36 @@
1
+
2
+ # PaginatedAttributeValueResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;AttributeValueResource&gt;](AttributeValueResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedAttributeValueResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "data": null,
20
+ "meta": null,
21
+ } satisfies PaginatedAttributeValueResourceResponse
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 PaginatedAttributeValueResourceResponse
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
+
@@ -20,6 +20,7 @@ Name | Type
20
20
  `popularityScore` | number
21
21
  `stock` | number
22
22
  `sites` | [Array&lt;StoreProductChildRequestSitesInner&gt;](StoreProductChildRequestSitesInner.md)
23
+ `accessories` | Array&lt;number&gt;
23
24
  `assets` | [Array&lt;UpdateProductChildRequestAssetsInner&gt;](UpdateProductChildRequestAssetsInner.md)
24
25
 
25
26
  ## Example
@@ -43,6 +44,7 @@ const example = {
43
44
  "popularityScore": null,
44
45
  "stock": null,
45
46
  "sites": null,
47
+ "accessories": null,
46
48
  "assets": null,
47
49
  } satisfies UpdateProductChildRequest
48
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.977",
3
+ "version": "0.0.978",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -23,8 +23,10 @@ import type {
23
23
  GenericResponse,
24
24
  GetAllAttributeRequest,
25
25
  IndexAttributeRequest,
26
+ IndexAttributeValueRequest,
26
27
  ModelAttributeResourceArrayResponse,
27
28
  PaginatedAttributeListResourceResponse,
29
+ PaginatedAttributeValueResourceResponse,
28
30
  StoreAttributeRequest,
29
31
  StoreAttributeValueRequest,
30
32
  UpdateAttributeRequest,
@@ -49,10 +51,14 @@ import {
49
51
  GetAllAttributeRequestToJSON,
50
52
  IndexAttributeRequestFromJSON,
51
53
  IndexAttributeRequestToJSON,
54
+ IndexAttributeValueRequestFromJSON,
55
+ IndexAttributeValueRequestToJSON,
52
56
  ModelAttributeResourceArrayResponseFromJSON,
53
57
  ModelAttributeResourceArrayResponseToJSON,
54
58
  PaginatedAttributeListResourceResponseFromJSON,
55
59
  PaginatedAttributeListResourceResponseToJSON,
60
+ PaginatedAttributeValueResourceResponseFromJSON,
61
+ PaginatedAttributeValueResourceResponseToJSON,
56
62
  StoreAttributeRequestFromJSON,
57
63
  StoreAttributeRequestToJSON,
58
64
  StoreAttributeValueRequestFromJSON,
@@ -94,6 +100,10 @@ export interface IndexAttributeOperationRequest {
94
100
  indexAttributeRequest?: IndexAttributeRequest;
95
101
  }
96
102
 
103
+ export interface IndexAttributeValueOperationRequest {
104
+ indexAttributeValueRequest?: IndexAttributeValueRequest;
105
+ }
106
+
97
107
  export interface ShowAttributeRequest {
98
108
  attribute: number;
99
109
  }
@@ -361,6 +371,38 @@ export class AttributeApi extends runtime.BaseAPI {
361
371
  return await response.value();
362
372
  }
363
373
 
374
+ /**
375
+ * Auto-generated: indexAttributeValue
376
+ */
377
+ async indexAttributeValueRaw(requestParameters: IndexAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeValueResourceResponse>> {
378
+ const queryParameters: any = {};
379
+
380
+ const headerParameters: runtime.HTTPHeaders = {};
381
+
382
+ headerParameters['Content-Type'] = 'application/json';
383
+
384
+
385
+ let urlPath = `/admin-api/attribute/value/list`;
386
+
387
+ const response = await this.request({
388
+ path: urlPath,
389
+ method: 'POST',
390
+ headers: headerParameters,
391
+ query: queryParameters,
392
+ body: IndexAttributeValueRequestToJSON(requestParameters['indexAttributeValueRequest']),
393
+ }, initOverrides);
394
+
395
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAttributeValueResourceResponseFromJSON(jsonValue));
396
+ }
397
+
398
+ /**
399
+ * Auto-generated: indexAttributeValue
400
+ */
401
+ async indexAttributeValue(requestParameters: IndexAttributeValueOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeValueResourceResponse> {
402
+ const response = await this.indexAttributeValueRaw(requestParameters, initOverrides);
403
+ return await response.value();
404
+ }
405
+
364
406
  /**
365
407
  * Auto-generated: showAttribute
366
408
  */
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -0,0 +1,159 @@
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 IndexAttributeValueRequest
20
+ */
21
+ export interface IndexAttributeValueRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof IndexAttributeValueRequest
26
+ */
27
+ search?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof IndexAttributeValueRequest
32
+ */
33
+ sortBy?: IndexAttributeValueRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof IndexAttributeValueRequest
38
+ */
39
+ sortDirection?: IndexAttributeValueRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof IndexAttributeValueRequest
44
+ */
45
+ perPage?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof IndexAttributeValueRequest
50
+ */
51
+ page?: number;
52
+ /**
53
+ *
54
+ * @type {Array<string>}
55
+ * @memberof IndexAttributeValueRequest
56
+ */
57
+ attributeId?: Array<string>;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof IndexAttributeValueRequest
62
+ */
63
+ relatedId?: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof IndexAttributeValueRequest
68
+ */
69
+ relatedType?: IndexAttributeValueRequestRelatedTypeEnum;
70
+ /**
71
+ *
72
+ * @type {boolean}
73
+ * @memberof IndexAttributeValueRequest
74
+ */
75
+ includesRelations?: boolean;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const IndexAttributeValueRequestSortByEnum = {
83
+ Id: 'id',
84
+ Value: 'value',
85
+ CreatedAt: 'created_at',
86
+ UpdatedAt: 'updated_at'
87
+ } as const;
88
+ export type IndexAttributeValueRequestSortByEnum = typeof IndexAttributeValueRequestSortByEnum[keyof typeof IndexAttributeValueRequestSortByEnum];
89
+
90
+ /**
91
+ * @export
92
+ */
93
+ export const IndexAttributeValueRequestSortDirectionEnum = {
94
+ Asc: 'asc',
95
+ Desc: 'desc'
96
+ } as const;
97
+ export type IndexAttributeValueRequestSortDirectionEnum = typeof IndexAttributeValueRequestSortDirectionEnum[keyof typeof IndexAttributeValueRequestSortDirectionEnum];
98
+
99
+ /**
100
+ * @export
101
+ */
102
+ export const IndexAttributeValueRequestRelatedTypeEnum = {
103
+ Attribute: 'attribute'
104
+ } as const;
105
+ export type IndexAttributeValueRequestRelatedTypeEnum = typeof IndexAttributeValueRequestRelatedTypeEnum[keyof typeof IndexAttributeValueRequestRelatedTypeEnum];
106
+
107
+
108
+ /**
109
+ * Check if a given object implements the IndexAttributeValueRequest interface.
110
+ */
111
+ export function instanceOfIndexAttributeValueRequest(value: object): value is IndexAttributeValueRequest {
112
+ return true;
113
+ }
114
+
115
+ export function IndexAttributeValueRequestFromJSON(json: any): IndexAttributeValueRequest {
116
+ return IndexAttributeValueRequestFromJSONTyped(json, false);
117
+ }
118
+
119
+ export function IndexAttributeValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexAttributeValueRequest {
120
+ if (json == null) {
121
+ return json;
122
+ }
123
+ return {
124
+
125
+ 'search': json['search'] == null ? undefined : json['search'],
126
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
127
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
128
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
129
+ 'page': json['page'] == null ? undefined : json['page'],
130
+ 'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
131
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
132
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
133
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
134
+ };
135
+ }
136
+
137
+ export function IndexAttributeValueRequestToJSON(json: any): IndexAttributeValueRequest {
138
+ return IndexAttributeValueRequestToJSONTyped(json, false);
139
+ }
140
+
141
+ export function IndexAttributeValueRequestToJSONTyped(value?: IndexAttributeValueRequest | null, ignoreDiscriminator: boolean = false): any {
142
+ if (value == null) {
143
+ return value;
144
+ }
145
+
146
+ return {
147
+
148
+ 'search': value['search'],
149
+ 'sortBy': value['sortBy'],
150
+ 'sortDirection': value['sortDirection'],
151
+ 'per_page': value['perPage'],
152
+ 'page': value['page'],
153
+ 'attribute_id': value['attributeId'],
154
+ 'related_id': value['relatedId'],
155
+ 'related_type': value['relatedType'],
156
+ 'includes_relations': value['includesRelations'],
157
+ };
158
+ }
159
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { AttributeValueResource } from './AttributeValueResource';
17
+ import {
18
+ AttributeValueResourceFromJSON,
19
+ AttributeValueResourceFromJSONTyped,
20
+ AttributeValueResourceToJSON,
21
+ AttributeValueResourceToJSONTyped,
22
+ } from './AttributeValueResource';
23
+ import type { PagingMetadata } from './PagingMetadata';
24
+ import {
25
+ PagingMetadataFromJSON,
26
+ PagingMetadataFromJSONTyped,
27
+ PagingMetadataToJSON,
28
+ PagingMetadataToJSONTyped,
29
+ } from './PagingMetadata';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedAttributeValueResourceResponse
35
+ */
36
+ export interface PaginatedAttributeValueResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<AttributeValueResource>}
40
+ * @memberof PaginatedAttributeValueResourceResponse
41
+ */
42
+ data: Array<AttributeValueResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedAttributeValueResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedAttributeValueResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedAttributeValueResourceResponse(value: object): value is PaginatedAttributeValueResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedAttributeValueResourceResponseFromJSON(json: any): PaginatedAttributeValueResourceResponse {
61
+ return PaginatedAttributeValueResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedAttributeValueResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAttributeValueResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(AttributeValueResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedAttributeValueResourceResponseToJSON(json: any): PaginatedAttributeValueResourceResponse {
76
+ return PaginatedAttributeValueResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedAttributeValueResourceResponseToJSONTyped(value?: PaginatedAttributeValueResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(AttributeValueResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -118,6 +118,12 @@ export interface UpdateProductChildRequest {
118
118
  * @memberof UpdateProductChildRequest
119
119
  */
120
120
  sites: Array<StoreProductChildRequestSitesInner>;
121
+ /**
122
+ *
123
+ * @type {Array<number>}
124
+ * @memberof UpdateProductChildRequest
125
+ */
126
+ accessories?: Array<number>;
121
127
  /**
122
128
  *
123
129
  * @type {Array<UpdateProductChildRequestAssetsInner>}
@@ -168,6 +174,7 @@ export function UpdateProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
168
174
  'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
169
175
  'stock': json['stock'],
170
176
  'sites': ((json['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerFromJSON)),
177
+ 'accessories': json['accessories'] == null ? undefined : json['accessories'],
171
178
  'assets': ((json['assets'] as Array<any>).map(UpdateProductChildRequestAssetsInnerFromJSON)),
172
179
  };
173
180
  }
@@ -197,6 +204,7 @@ export function UpdateProductChildRequestToJSONTyped(value?: UpdateProductChildR
197
204
  'popularity_score': value['popularityScore'],
198
205
  'stock': value['stock'],
199
206
  'sites': ((value['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerToJSON)),
207
+ 'accessories': value['accessories'],
200
208
  'assets': ((value['assets'] as Array<any>).map(UpdateProductChildRequestAssetsInnerToJSON)),
201
209
  };
202
210
  }
@@ -88,6 +88,7 @@ export * from './GlobalSearchResponseResourceArrayResponse';
88
88
  export * from './GoogleCategoryResource';
89
89
  export * from './GoogleCategoryResourceArrayResponse';
90
90
  export * from './IndexAttributeRequest';
91
+ export * from './IndexAttributeValueRequest';
91
92
  export * from './IndexDefinitionRequest';
92
93
  export * from './IndexDocumentRequest';
93
94
  export * from './IndexExternalApiLogRequest';
@@ -117,6 +118,7 @@ export * from './PaginatedAttributeListResourceResponse';
117
118
  export * from './PaginatedAttributeLiteResourceResponse';
118
119
  export * from './PaginatedAttributeProductTypeRelationResourceResponse';
119
120
  export * from './PaginatedAttributeResourceResponse';
121
+ export * from './PaginatedAttributeValueResourceResponse';
120
122
  export * from './PaginatedCategoryFrontendResourceResponse';
121
123
  export * from './PaginatedDefinitionListResourceResponse';
122
124
  export * from './PaginatedDefinitionResourceResponse';