@digital8/lighting-illusions-ts-sdk 0.0.985 → 0.0.987

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.
Files changed (79) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +3 -8
  3. package/dist/apis/AttributeApi.d.ts +1 -16
  4. package/dist/apis/AttributeApi.js +0 -58
  5. package/dist/apis/ProductCategoryApi.d.ts +4 -23
  6. package/dist/apis/ProductCategoryApi.js +7 -71
  7. package/dist/models/CategoryAutomationRuleResource.d.ts +3 -3
  8. package/dist/models/CategoryAutomationRuleResource.js +5 -3
  9. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  10. package/dist/models/ExternalApiLogResource.js +1 -3
  11. package/dist/models/GetAllProductChildRequest.d.ts +0 -6
  12. package/dist/models/GetAllProductChildRequest.js +0 -2
  13. package/dist/models/IndexProductCategoryRequest.d.ts +0 -2
  14. package/dist/models/IndexProductCategoryRequest.js +1 -3
  15. package/dist/models/IndexProductChildRequest.d.ts +0 -6
  16. package/dist/models/IndexProductChildRequest.js +0 -2
  17. package/dist/models/PreviewAutomationRulesResource.d.ts +6 -0
  18. package/dist/models/PreviewAutomationRulesResource.js +2 -0
  19. package/dist/models/ProductAggregationResource.d.ts +2 -2
  20. package/dist/models/ProductCategoryResource.d.ts +0 -6
  21. package/dist/models/ProductCategoryResource.js +0 -4
  22. package/dist/models/ProductChildResource.d.ts +0 -6
  23. package/dist/models/ProductChildResource.js +0 -4
  24. package/dist/models/ProductChildSiteDetailResource.d.ts +0 -18
  25. package/dist/models/ProductChildSiteDetailResource.js +0 -12
  26. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
  27. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +5 -3
  28. package/dist/models/StoreProductChildRequest.d.ts +1 -7
  29. package/dist/models/StoreProductChildRequest.js +4 -6
  30. package/dist/models/StoreProductChildRequestSitesInner.d.ts +0 -18
  31. package/dist/models/StoreProductChildRequestSitesInner.js +0 -12
  32. package/dist/models/UpdateProductChildRequest.d.ts +0 -12
  33. package/dist/models/UpdateProductChildRequest.js +0 -6
  34. package/dist/models/index.d.ts +0 -3
  35. package/dist/models/index.js +0 -3
  36. package/docs/AttributeApi.md +0 -66
  37. package/docs/CategoryAutomationRuleResource.md +3 -3
  38. package/docs/GetAllProductChildRequest.md +0 -2
  39. package/docs/IndexProductChildRequest.md +0 -2
  40. package/docs/PreviewAutomationRulesResource.md +2 -0
  41. package/docs/ProductAggregationResource.md +1 -1
  42. package/docs/ProductCategoryApi.md +6 -83
  43. package/docs/ProductCategoryResource.md +0 -2
  44. package/docs/ProductChildResource.md +0 -2
  45. package/docs/ProductChildSiteDetailResource.md +0 -6
  46. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
  47. package/docs/StoreProductChildRequest.md +0 -2
  48. package/docs/StoreProductChildRequestSitesInner.md +0 -6
  49. package/docs/UpdateProductChildRequest.md +0 -4
  50. package/package.json +1 -1
  51. package/src/apis/AttributeApi.ts +0 -50
  52. package/src/apis/ProductCategoryApi.ts +6 -72
  53. package/src/models/CategoryAutomationRuleResource.ts +7 -6
  54. package/src/models/ExternalApiLogResource.ts +2 -3
  55. package/src/models/GetAllProductChildRequest.ts +0 -8
  56. package/src/models/IndexProductCategoryRequest.ts +1 -3
  57. package/src/models/IndexProductChildRequest.ts +0 -8
  58. package/src/models/PreviewAutomationRulesResource.ts +8 -0
  59. package/src/models/ProductAggregationResource.ts +2 -2
  60. package/src/models/ProductCategoryResource.ts +0 -9
  61. package/src/models/ProductChildResource.ts +0 -9
  62. package/src/models/ProductChildSiteDetailResource.ts +0 -27
  63. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +7 -6
  64. package/src/models/StoreProductChildRequest.ts +4 -12
  65. package/src/models/StoreProductChildRequestSitesInner.ts +0 -27
  66. package/src/models/UpdateProductChildRequest.ts +0 -17
  67. package/src/models/index.ts +0 -3
  68. package/dist/models/GetHierarchyProductCategoryRequest.d.ts +0 -32
  69. package/dist/models/GetHierarchyProductCategoryRequest.js +0 -51
  70. package/dist/models/IndexAttributeValueRequest.d.ts +0 -105
  71. package/dist/models/IndexAttributeValueRequest.js +0 -88
  72. package/dist/models/PaginatedAttributeValueResourceResponse.d.ts +0 -40
  73. package/dist/models/PaginatedAttributeValueResourceResponse.js +0 -57
  74. package/docs/GetHierarchyProductCategoryRequest.md +0 -34
  75. package/docs/IndexAttributeValueRequest.md +0 -50
  76. package/docs/PaginatedAttributeValueResourceResponse.md +0 -36
  77. package/src/models/GetHierarchyProductCategoryRequest.ts +0 -66
  78. package/src/models/IndexAttributeValueRequest.ts +0 -159
  79. package/src/models/PaginatedAttributeValueResourceResponse.ts +0 -90
@@ -1,105 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface IndexAttributeValueRequest
16
- */
17
- export interface IndexAttributeValueRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof IndexAttributeValueRequest
22
- */
23
- search?: string;
24
- /**
25
- *
26
- * @type {IndexAttributeValueRequestSortByEnum}
27
- * @memberof IndexAttributeValueRequest
28
- */
29
- sortBy?: IndexAttributeValueRequestSortByEnum;
30
- /**
31
- *
32
- * @type {IndexAttributeValueRequestSortDirectionEnum}
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 {IndexAttributeValueRequestRelatedTypeEnum}
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;
@@ -1,88 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.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
- }
@@ -1,40 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- 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;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.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
- }
@@ -1,34 +0,0 @@
1
-
2
- # GetHierarchyProductCategoryRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `siteId` | number
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { GetHierarchyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "siteId": null,
19
- } satisfies GetHierarchyProductCategoryRequest
20
-
21
- console.log(example)
22
-
23
- // Convert the instance to a JSON string
24
- const exampleJSON: string = JSON.stringify(example)
25
- console.log(exampleJSON)
26
-
27
- // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as GetHierarchyProductCategoryRequest
29
- console.log(exampleParsed)
30
- ```
31
-
32
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
-
34
-
@@ -1,50 +0,0 @@
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
-
@@ -1,36 +0,0 @@
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
-
@@ -1,66 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface GetHierarchyProductCategoryRequest
20
- */
21
- export interface GetHierarchyProductCategoryRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof GetHierarchyProductCategoryRequest
26
- */
27
- siteId: number;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the GetHierarchyProductCategoryRequest interface.
32
- */
33
- export function instanceOfGetHierarchyProductCategoryRequest(value: object): value is GetHierarchyProductCategoryRequest {
34
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function GetHierarchyProductCategoryRequestFromJSON(json: any): GetHierarchyProductCategoryRequest {
39
- return GetHierarchyProductCategoryRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function GetHierarchyProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHierarchyProductCategoryRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'siteId': json['site_id'],
49
- };
50
- }
51
-
52
- export function GetHierarchyProductCategoryRequestToJSON(json: any): GetHierarchyProductCategoryRequest {
53
- return GetHierarchyProductCategoryRequestToJSONTyped(json, false);
54
- }
55
-
56
- export function GetHierarchyProductCategoryRequestToJSONTyped(value?: GetHierarchyProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'site_id': value['siteId'],
64
- };
65
- }
66
-
@@ -1,159 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface IndexAttributeValueRequest
20
- */
21
- export interface IndexAttributeValueRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IndexAttributeValueRequest
26
- */
27
- search?: string;
28
- /**
29
- *
30
- * @type {IndexAttributeValueRequestSortByEnum}
31
- * @memberof IndexAttributeValueRequest
32
- */
33
- sortBy?: IndexAttributeValueRequestSortByEnum;
34
- /**
35
- *
36
- * @type {IndexAttributeValueRequestSortDirectionEnum}
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 {IndexAttributeValueRequestRelatedTypeEnum}
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
-