@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.532

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 (96) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/README.md +30 -2
  3. package/dist/apis/ProductCategoryApi.d.ts +105 -0
  4. package/dist/apis/ProductCategoryApi.js +445 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
  8. package/dist/models/CategoryAutomationComparisonType.js +55 -0
  9. package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
  10. package/dist/models/CategoryAutomationConditionType.js +51 -0
  11. package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
  12. package/dist/models/CategoryAutomationFieldType.js +56 -0
  13. package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
  14. package/dist/models/CategoryAutomationRuleResource.js +67 -0
  15. package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
  17. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  18. package/dist/models/ExternalApiLogResource.js +3 -1
  19. package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
  20. package/dist/models/GetAllProductCategoryRequest.js +94 -0
  21. package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
  22. package/dist/models/IndexProductCategoryRequest.js +98 -0
  23. package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
  25. package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
  26. package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
  27. package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
  28. package/dist/models/ProductCategoryHierarchyResource.js +69 -0
  29. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
  31. package/dist/models/ProductCategoryListResource.d.ts +75 -0
  32. package/dist/models/ProductCategoryListResource.js +78 -0
  33. package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
  35. package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
  36. package/dist/models/ProductCategoryLiteResource.js +53 -0
  37. package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
  39. package/dist/models/ProductCategoryResource.d.ts +107 -0
  40. package/dist/models/ProductCategoryResource.js +96 -0
  41. package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
  43. package/dist/models/StoreProductCategoryRequest.d.ts +105 -0
  44. package/dist/models/StoreProductCategoryRequest.js +86 -0
  45. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +62 -0
  46. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +63 -0
  47. package/dist/models/UpdateProductCategoryRequest.d.ts +105 -0
  48. package/dist/models/UpdateProductCategoryRequest.js +74 -0
  49. package/dist/models/index.d.ts +20 -0
  50. package/dist/models/index.js +20 -0
  51. package/docs/CategoryAutomationComparisonType.md +32 -0
  52. package/docs/CategoryAutomationConditionType.md +32 -0
  53. package/docs/CategoryAutomationFieldType.md +32 -0
  54. package/docs/CategoryAutomationRuleResource.md +46 -0
  55. package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
  56. package/docs/GetAllProductCategoryRequest.md +52 -0
  57. package/docs/IndexProductCategoryRequest.md +56 -0
  58. package/docs/PaginatedProductCategoryListResourceResponse.md +36 -0
  59. package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
  60. package/docs/ProductCategoryApi.md +534 -0
  61. package/docs/ProductCategoryHierarchyResource.md +44 -0
  62. package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
  63. package/docs/ProductCategoryListResource.md +48 -0
  64. package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
  65. package/docs/ProductCategoryLiteResource.md +36 -0
  66. package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
  67. package/docs/ProductCategoryResource.md +58 -0
  68. package/docs/ProductCategoryResourceArrayResponse.md +34 -0
  69. package/docs/StoreProductCategoryRequest.md +58 -0
  70. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
  71. package/docs/UpdateProductCategoryRequest.md +58 -0
  72. package/package.json +1 -1
  73. package/src/apis/ProductCategoryApi.ts +363 -0
  74. package/src/apis/index.ts +1 -0
  75. package/src/models/CategoryAutomationComparisonType.ts +57 -0
  76. package/src/models/CategoryAutomationConditionType.ts +53 -0
  77. package/src/models/CategoryAutomationFieldType.ts +58 -0
  78. package/src/models/CategoryAutomationRuleResource.ts +116 -0
  79. package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
  80. package/src/models/ExternalApiLogResource.ts +3 -2
  81. package/src/models/GetAllProductCategoryRequest.ts +171 -0
  82. package/src/models/IndexProductCategoryRequest.ts +187 -0
  83. package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
  84. package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
  85. package/src/models/ProductCategoryHierarchyResource.ts +110 -0
  86. package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
  87. package/src/models/ProductCategoryListResource.ts +136 -0
  88. package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
  89. package/src/models/ProductCategoryLiteResource.ts +74 -0
  90. package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
  91. package/src/models/ProductCategoryResource.ts +193 -0
  92. package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
  93. package/src/models/StoreProductCategoryRequest.ts +175 -0
  94. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +107 -0
  95. package/src/models/UpdateProductCategoryRequest.ts +169 -0
  96. package/src/models/index.ts +20 -0
package/src/apis/index.ts CHANGED
@@ -7,6 +7,7 @@ export * from './ExternalApiLogApi';
7
7
  export * from './GoogleCategoryApi';
8
8
  export * from './OverlayTemplateApi';
9
9
  export * from './ProductApi';
10
+ export * from './ProductCategoryApi';
10
11
  export * from './ProductChildSiteDetailApi';
11
12
  export * from './ProductTypeApi';
12
13
  export * from './SiteApi';
@@ -0,0 +1,57 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const CategoryAutomationComparisonType = {
21
+ Greater: 'greater',
22
+ Less: 'less',
23
+ Equal: 'equal',
24
+ NotEqual: 'notEqual',
25
+ Contains: 'contains',
26
+ NotContains: 'notContains'
27
+ } as const;
28
+ export type CategoryAutomationComparisonType = typeof CategoryAutomationComparisonType[keyof typeof CategoryAutomationComparisonType];
29
+
30
+
31
+ export function instanceOfCategoryAutomationComparisonType(value: any): boolean {
32
+ for (const key in CategoryAutomationComparisonType) {
33
+ if (Object.prototype.hasOwnProperty.call(CategoryAutomationComparisonType, key)) {
34
+ if (CategoryAutomationComparisonType[key as keyof typeof CategoryAutomationComparisonType] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+
42
+ export function CategoryAutomationComparisonTypeFromJSON(json: any): CategoryAutomationComparisonType {
43
+ return CategoryAutomationComparisonTypeFromJSONTyped(json, false);
44
+ }
45
+
46
+ export function CategoryAutomationComparisonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationComparisonType {
47
+ return json as CategoryAutomationComparisonType;
48
+ }
49
+
50
+ export function CategoryAutomationComparisonTypeToJSON(value?: CategoryAutomationComparisonType | null): any {
51
+ return value as any;
52
+ }
53
+
54
+ export function CategoryAutomationComparisonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CategoryAutomationComparisonType {
55
+ return value as CategoryAutomationComparisonType;
56
+ }
57
+
@@ -0,0 +1,53 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const CategoryAutomationConditionType = {
21
+ And: 'and',
22
+ Or: 'or'
23
+ } as const;
24
+ export type CategoryAutomationConditionType = typeof CategoryAutomationConditionType[keyof typeof CategoryAutomationConditionType];
25
+
26
+
27
+ export function instanceOfCategoryAutomationConditionType(value: any): boolean {
28
+ for (const key in CategoryAutomationConditionType) {
29
+ if (Object.prototype.hasOwnProperty.call(CategoryAutomationConditionType, key)) {
30
+ if (CategoryAutomationConditionType[key as keyof typeof CategoryAutomationConditionType] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function CategoryAutomationConditionTypeFromJSON(json: any): CategoryAutomationConditionType {
39
+ return CategoryAutomationConditionTypeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function CategoryAutomationConditionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationConditionType {
43
+ return json as CategoryAutomationConditionType;
44
+ }
45
+
46
+ export function CategoryAutomationConditionTypeToJSON(value?: CategoryAutomationConditionType | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function CategoryAutomationConditionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CategoryAutomationConditionType {
51
+ return value as CategoryAutomationConditionType;
52
+ }
53
+
@@ -0,0 +1,58 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const CategoryAutomationFieldType = {
21
+ Price: 'price',
22
+ Name: 'name',
23
+ VariantName: 'variant_name',
24
+ Attribute: 'attribute',
25
+ Tag: 'tag',
26
+ Supplier: 'supplier',
27
+ Label: 'label'
28
+ } as const;
29
+ export type CategoryAutomationFieldType = typeof CategoryAutomationFieldType[keyof typeof CategoryAutomationFieldType];
30
+
31
+
32
+ export function instanceOfCategoryAutomationFieldType(value: any): boolean {
33
+ for (const key in CategoryAutomationFieldType) {
34
+ if (Object.prototype.hasOwnProperty.call(CategoryAutomationFieldType, key)) {
35
+ if (CategoryAutomationFieldType[key as keyof typeof CategoryAutomationFieldType] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+
43
+ export function CategoryAutomationFieldTypeFromJSON(json: any): CategoryAutomationFieldType {
44
+ return CategoryAutomationFieldTypeFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function CategoryAutomationFieldTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationFieldType {
48
+ return json as CategoryAutomationFieldType;
49
+ }
50
+
51
+ export function CategoryAutomationFieldTypeToJSON(value?: CategoryAutomationFieldType | null): any {
52
+ return value as any;
53
+ }
54
+
55
+ export function CategoryAutomationFieldTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CategoryAutomationFieldType {
56
+ return value as CategoryAutomationFieldType;
57
+ }
58
+
@@ -0,0 +1,116 @@
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 CategoryAutomationRuleResource
20
+ */
21
+ export interface CategoryAutomationRuleResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof CategoryAutomationRuleResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {object}
31
+ * @memberof CategoryAutomationRuleResource
32
+ */
33
+ fieldType: object;
34
+ /**
35
+ *
36
+ * @type {object}
37
+ * @memberof CategoryAutomationRuleResource
38
+ */
39
+ comparisonType: object;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CategoryAutomationRuleResource
44
+ */
45
+ groupId?: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CategoryAutomationRuleResource
50
+ */
51
+ relatedId?: string | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof CategoryAutomationRuleResource
56
+ */
57
+ value: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof CategoryAutomationRuleResource
62
+ */
63
+ valueId?: string | null;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the CategoryAutomationRuleResource interface.
68
+ */
69
+ export function instanceOfCategoryAutomationRuleResource(value: object): value is CategoryAutomationRuleResource {
70
+ if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
71
+ if (!('comparisonType' in value) || value['comparisonType'] === undefined) return false;
72
+ if (!('value' in value) || value['value'] === undefined) return false;
73
+ return true;
74
+ }
75
+
76
+ export function CategoryAutomationRuleResourceFromJSON(json: any): CategoryAutomationRuleResource {
77
+ return CategoryAutomationRuleResourceFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function CategoryAutomationRuleResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationRuleResource {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'id': json['id'] == null ? undefined : json['id'],
87
+ 'fieldType': json['fieldType'],
88
+ 'comparisonType': json['comparisonType'],
89
+ 'groupId': json['groupId'] == null ? undefined : json['groupId'],
90
+ 'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
91
+ 'value': json['value'],
92
+ 'valueId': json['valueId'] == null ? undefined : json['valueId'],
93
+ };
94
+ }
95
+
96
+ export function CategoryAutomationRuleResourceToJSON(json: any): CategoryAutomationRuleResource {
97
+ return CategoryAutomationRuleResourceToJSONTyped(json, false);
98
+ }
99
+
100
+ export function CategoryAutomationRuleResourceToJSONTyped(value?: CategoryAutomationRuleResource | null, ignoreDiscriminator: boolean = false): any {
101
+ if (value == null) {
102
+ return value;
103
+ }
104
+
105
+ return {
106
+
107
+ 'id': value['id'],
108
+ 'fieldType': value['fieldType'],
109
+ 'comparisonType': value['comparisonType'],
110
+ 'groupId': value['groupId'],
111
+ 'relatedId': value['relatedId'],
112
+ 'value': value['value'],
113
+ 'valueId': value['valueId'],
114
+ };
115
+ }
116
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { CategoryAutomationRuleResource } from './CategoryAutomationRuleResource';
17
+ import {
18
+ CategoryAutomationRuleResourceFromJSON,
19
+ CategoryAutomationRuleResourceFromJSONTyped,
20
+ CategoryAutomationRuleResourceToJSON,
21
+ CategoryAutomationRuleResourceToJSONTyped,
22
+ } from './CategoryAutomationRuleResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CategoryAutomationRuleResourceArrayResponse
28
+ */
29
+ export interface CategoryAutomationRuleResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<CategoryAutomationRuleResource>}
33
+ * @memberof CategoryAutomationRuleResourceArrayResponse
34
+ */
35
+ data?: Array<CategoryAutomationRuleResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the CategoryAutomationRuleResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfCategoryAutomationRuleResourceArrayResponse(value: object): value is CategoryAutomationRuleResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function CategoryAutomationRuleResourceArrayResponseFromJSON(json: any): CategoryAutomationRuleResourceArrayResponse {
46
+ return CategoryAutomationRuleResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CategoryAutomationRuleResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationRuleResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CategoryAutomationRuleResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function CategoryAutomationRuleResourceArrayResponseToJSON(json: any): CategoryAutomationRuleResourceArrayResponse {
60
+ return CategoryAutomationRuleResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function CategoryAutomationRuleResourceArrayResponseToJSONTyped(value?: CategoryAutomationRuleResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(CategoryAutomationRuleResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload?: string | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ 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;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -0,0 +1,171 @@
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 GetAllProductCategoryRequest
20
+ */
21
+ export interface GetAllProductCategoryRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetAllProductCategoryRequest
26
+ */
27
+ search?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GetAllProductCategoryRequest
32
+ */
33
+ sortBy?: GetAllProductCategoryRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GetAllProductCategoryRequest
38
+ */
39
+ sortDirection?: GetAllProductCategoryRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof GetAllProductCategoryRequest
44
+ */
45
+ relatedId?: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof GetAllProductCategoryRequest
50
+ */
51
+ relatedType?: GetAllProductCategoryRequestRelatedTypeEnum;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof GetAllProductCategoryRequest
56
+ */
57
+ includesRelations?: boolean;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof GetAllProductCategoryRequest
62
+ */
63
+ siteId?: Array<string>;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof GetAllProductCategoryRequest
68
+ */
69
+ parentId?: Array<string>;
70
+ /**
71
+ *
72
+ * @type {Array<string>}
73
+ * @memberof GetAllProductCategoryRequest
74
+ */
75
+ isDisabled?: Array<string>;
76
+ /**
77
+ *
78
+ * @type {Array<string>}
79
+ * @memberof GetAllProductCategoryRequest
80
+ */
81
+ isAutomated?: Array<string>;
82
+ }
83
+
84
+
85
+ /**
86
+ * @export
87
+ */
88
+ export const GetAllProductCategoryRequestSortByEnum = {
89
+ Id: 'id',
90
+ Name: 'name',
91
+ Slug: 'slug',
92
+ Index: 'index',
93
+ IsDisabled: 'is_disabled',
94
+ IsAutomated: 'is_automated',
95
+ CreatedAt: 'created_at',
96
+ UpdatedAt: 'updated_at'
97
+ } as const;
98
+ export type GetAllProductCategoryRequestSortByEnum = typeof GetAllProductCategoryRequestSortByEnum[keyof typeof GetAllProductCategoryRequestSortByEnum];
99
+
100
+ /**
101
+ * @export
102
+ */
103
+ export const GetAllProductCategoryRequestSortDirectionEnum = {
104
+ Asc: 'asc',
105
+ Desc: 'desc'
106
+ } as const;
107
+ export type GetAllProductCategoryRequestSortDirectionEnum = typeof GetAllProductCategoryRequestSortDirectionEnum[keyof typeof GetAllProductCategoryRequestSortDirectionEnum];
108
+
109
+ /**
110
+ * @export
111
+ */
112
+ export const GetAllProductCategoryRequestRelatedTypeEnum = {
113
+ Product: 'product'
114
+ } as const;
115
+ export type GetAllProductCategoryRequestRelatedTypeEnum = typeof GetAllProductCategoryRequestRelatedTypeEnum[keyof typeof GetAllProductCategoryRequestRelatedTypeEnum];
116
+
117
+
118
+ /**
119
+ * Check if a given object implements the GetAllProductCategoryRequest interface.
120
+ */
121
+ export function instanceOfGetAllProductCategoryRequest(value: object): value is GetAllProductCategoryRequest {
122
+ return true;
123
+ }
124
+
125
+ export function GetAllProductCategoryRequestFromJSON(json: any): GetAllProductCategoryRequest {
126
+ return GetAllProductCategoryRequestFromJSONTyped(json, false);
127
+ }
128
+
129
+ export function GetAllProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductCategoryRequest {
130
+ if (json == null) {
131
+ return json;
132
+ }
133
+ return {
134
+
135
+ 'search': json['search'] == null ? undefined : json['search'],
136
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
137
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
138
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
139
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
140
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
141
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
142
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
143
+ 'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
144
+ 'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
145
+ };
146
+ }
147
+
148
+ export function GetAllProductCategoryRequestToJSON(json: any): GetAllProductCategoryRequest {
149
+ return GetAllProductCategoryRequestToJSONTyped(json, false);
150
+ }
151
+
152
+ export function GetAllProductCategoryRequestToJSONTyped(value?: GetAllProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
153
+ if (value == null) {
154
+ return value;
155
+ }
156
+
157
+ return {
158
+
159
+ 'search': value['search'],
160
+ 'sortBy': value['sortBy'],
161
+ 'sortDirection': value['sortDirection'],
162
+ 'related_id': value['relatedId'],
163
+ 'related_type': value['relatedType'],
164
+ 'includes_relations': value['includesRelations'],
165
+ 'site_id': value['siteId'],
166
+ 'parent_id': value['parentId'],
167
+ 'is_disabled': value['isDisabled'],
168
+ 'is_automated': value['isAutomated'],
169
+ };
170
+ }
171
+