@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
@@ -0,0 +1,98 @@
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.IndexProductCategoryRequestRelatedTypeEnum = exports.IndexProductCategoryRequestSortDirectionEnum = exports.IndexProductCategoryRequestSortByEnum = void 0;
17
+ exports.instanceOfIndexProductCategoryRequest = instanceOfIndexProductCategoryRequest;
18
+ exports.IndexProductCategoryRequestFromJSON = IndexProductCategoryRequestFromJSON;
19
+ exports.IndexProductCategoryRequestFromJSONTyped = IndexProductCategoryRequestFromJSONTyped;
20
+ exports.IndexProductCategoryRequestToJSON = IndexProductCategoryRequestToJSON;
21
+ exports.IndexProductCategoryRequestToJSONTyped = IndexProductCategoryRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IndexProductCategoryRequestSortByEnum = {
26
+ Id: 'id',
27
+ Name: 'name',
28
+ Slug: 'slug',
29
+ Index: 'index',
30
+ IsDisabled: 'is_disabled',
31
+ IsAutomated: 'is_automated',
32
+ CreatedAt: 'created_at',
33
+ UpdatedAt: 'updated_at'
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ exports.IndexProductCategoryRequestSortDirectionEnum = {
39
+ Asc: 'asc',
40
+ Desc: 'desc'
41
+ };
42
+ /**
43
+ * @export
44
+ */
45
+ exports.IndexProductCategoryRequestRelatedTypeEnum = {
46
+ Product: 'product'
47
+ };
48
+ /**
49
+ * Check if a given object implements the IndexProductCategoryRequest interface.
50
+ */
51
+ function instanceOfIndexProductCategoryRequest(value) {
52
+ return true;
53
+ }
54
+ function IndexProductCategoryRequestFromJSON(json) {
55
+ return IndexProductCategoryRequestFromJSONTyped(json, false);
56
+ }
57
+ function IndexProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'search': json['search'] == null ? undefined : json['search'],
63
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
64
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
65
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
66
+ 'page': json['page'] == null ? undefined : json['page'],
67
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
68
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
69
+ 'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
70
+ 'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
71
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
72
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
73
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
74
+ };
75
+ }
76
+ function IndexProductCategoryRequestToJSON(json) {
77
+ return IndexProductCategoryRequestToJSONTyped(json, false);
78
+ }
79
+ function IndexProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
80
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'search': value['search'],
86
+ 'sortBy': value['sortBy'],
87
+ 'sortDirection': value['sortDirection'],
88
+ 'per_page': value['perPage'],
89
+ 'page': value['page'],
90
+ 'site_id': value['siteId'],
91
+ 'parent_id': value['parentId'],
92
+ 'is_disabled': value['isDisabled'],
93
+ 'is_automated': value['isAutomated'],
94
+ 'related_id': value['relatedId'],
95
+ 'related_type': value['relatedType'],
96
+ 'includes_relations': value['includesRelations'],
97
+ };
98
+ }
@@ -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 { ProductCategoryListResource } from './ProductCategoryListResource';
13
+ import type { PagingMetadata } from './PagingMetadata';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedProductCategoryListResourceResponse
18
+ */
19
+ export interface PaginatedProductCategoryListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ProductCategoryListResource>}
23
+ * @memberof PaginatedProductCategoryListResourceResponse
24
+ */
25
+ data: Array<ProductCategoryListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedProductCategoryListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedProductCategoryListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedProductCategoryListResourceResponse(value: object): value is PaginatedProductCategoryListResourceResponse;
37
+ export declare function PaginatedProductCategoryListResourceResponseFromJSON(json: any): PaginatedProductCategoryListResourceResponse;
38
+ export declare function PaginatedProductCategoryListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductCategoryListResourceResponse;
39
+ export declare function PaginatedProductCategoryListResourceResponseToJSON(json: any): PaginatedProductCategoryListResourceResponse;
40
+ export declare function PaginatedProductCategoryListResourceResponseToJSONTyped(value?: PaginatedProductCategoryListResourceResponse | 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.instanceOfPaginatedProductCategoryListResourceResponse = instanceOfPaginatedProductCategoryListResourceResponse;
17
+ exports.PaginatedProductCategoryListResourceResponseFromJSON = PaginatedProductCategoryListResourceResponseFromJSON;
18
+ exports.PaginatedProductCategoryListResourceResponseFromJSONTyped = PaginatedProductCategoryListResourceResponseFromJSONTyped;
19
+ exports.PaginatedProductCategoryListResourceResponseToJSON = PaginatedProductCategoryListResourceResponseToJSON;
20
+ exports.PaginatedProductCategoryListResourceResponseToJSONTyped = PaginatedProductCategoryListResourceResponseToJSONTyped;
21
+ var ProductCategoryListResource_1 = require("./ProductCategoryListResource");
22
+ var PagingMetadata_1 = require("./PagingMetadata");
23
+ /**
24
+ * Check if a given object implements the PaginatedProductCategoryListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedProductCategoryListResourceResponse(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 PaginatedProductCategoryListResourceResponseFromJSON(json) {
34
+ return PaginatedProductCategoryListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedProductCategoryListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ProductCategoryListResource_1.ProductCategoryListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedProductCategoryListResourceResponseToJSON(json) {
46
+ return PaginatedProductCategoryListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedProductCategoryListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ProductCategoryListResource_1.ProductCategoryListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -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 { PagingMetadata } from './PagingMetadata';
13
+ import type { ProductCategoryResource } from './ProductCategoryResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedProductCategoryResourceResponse
18
+ */
19
+ export interface PaginatedProductCategoryResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ProductCategoryResource>}
23
+ * @memberof PaginatedProductCategoryResourceResponse
24
+ */
25
+ data: Array<ProductCategoryResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedProductCategoryResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedProductCategoryResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedProductCategoryResourceResponse(value: object): value is PaginatedProductCategoryResourceResponse;
37
+ export declare function PaginatedProductCategoryResourceResponseFromJSON(json: any): PaginatedProductCategoryResourceResponse;
38
+ export declare function PaginatedProductCategoryResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductCategoryResourceResponse;
39
+ export declare function PaginatedProductCategoryResourceResponseToJSON(json: any): PaginatedProductCategoryResourceResponse;
40
+ export declare function PaginatedProductCategoryResourceResponseToJSONTyped(value?: PaginatedProductCategoryResourceResponse | 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.instanceOfPaginatedProductCategoryResourceResponse = instanceOfPaginatedProductCategoryResourceResponse;
17
+ exports.PaginatedProductCategoryResourceResponseFromJSON = PaginatedProductCategoryResourceResponseFromJSON;
18
+ exports.PaginatedProductCategoryResourceResponseFromJSONTyped = PaginatedProductCategoryResourceResponseFromJSONTyped;
19
+ exports.PaginatedProductCategoryResourceResponseToJSON = PaginatedProductCategoryResourceResponseToJSON;
20
+ exports.PaginatedProductCategoryResourceResponseToJSONTyped = PaginatedProductCategoryResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var ProductCategoryResource_1 = require("./ProductCategoryResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedProductCategoryResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedProductCategoryResourceResponse(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 PaginatedProductCategoryResourceResponseFromJSON(json) {
34
+ return PaginatedProductCategoryResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedProductCategoryResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ProductCategoryResource_1.ProductCategoryResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedProductCategoryResourceResponseToJSON(json) {
46
+ return PaginatedProductCategoryResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedProductCategoryResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ProductCategoryResource_1.ProductCategoryResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,62 @@
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 ProductCategoryHierarchyResource
16
+ */
17
+ export interface ProductCategoryHierarchyResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ProductCategoryHierarchyResource
22
+ */
23
+ id?: number | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ProductCategoryHierarchyResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ProductCategoryHierarchyResource
34
+ */
35
+ slug: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ProductCategoryHierarchyResource
40
+ */
41
+ index: number;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ProductCategoryHierarchyResource
46
+ */
47
+ isAutomated: boolean;
48
+ /**
49
+ *
50
+ * @type {object}
51
+ * @memberof ProductCategoryHierarchyResource
52
+ */
53
+ children: object;
54
+ }
55
+ /**
56
+ * Check if a given object implements the ProductCategoryHierarchyResource interface.
57
+ */
58
+ export declare function instanceOfProductCategoryHierarchyResource(value: object): value is ProductCategoryHierarchyResource;
59
+ export declare function ProductCategoryHierarchyResourceFromJSON(json: any): ProductCategoryHierarchyResource;
60
+ export declare function ProductCategoryHierarchyResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryHierarchyResource;
61
+ export declare function ProductCategoryHierarchyResourceToJSON(json: any): ProductCategoryHierarchyResource;
62
+ export declare function ProductCategoryHierarchyResourceToJSONTyped(value?: ProductCategoryHierarchyResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.instanceOfProductCategoryHierarchyResource = instanceOfProductCategoryHierarchyResource;
17
+ exports.ProductCategoryHierarchyResourceFromJSON = ProductCategoryHierarchyResourceFromJSON;
18
+ exports.ProductCategoryHierarchyResourceFromJSONTyped = ProductCategoryHierarchyResourceFromJSONTyped;
19
+ exports.ProductCategoryHierarchyResourceToJSON = ProductCategoryHierarchyResourceToJSON;
20
+ exports.ProductCategoryHierarchyResourceToJSONTyped = ProductCategoryHierarchyResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ProductCategoryHierarchyResource interface.
23
+ */
24
+ function instanceOfProductCategoryHierarchyResource(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('slug' in value) || value['slug'] === undefined)
28
+ return false;
29
+ if (!('index' in value) || value['index'] === undefined)
30
+ return false;
31
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined)
32
+ return false;
33
+ if (!('children' in value) || value['children'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ProductCategoryHierarchyResourceFromJSON(json) {
38
+ return ProductCategoryHierarchyResourceFromJSONTyped(json, false);
39
+ }
40
+ function ProductCategoryHierarchyResourceFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'] == null ? undefined : json['id'],
46
+ 'name': json['name'],
47
+ 'slug': json['slug'],
48
+ 'index': json['index'],
49
+ 'isAutomated': json['isAutomated'],
50
+ 'children': json['children'],
51
+ };
52
+ }
53
+ function ProductCategoryHierarchyResourceToJSON(json) {
54
+ return ProductCategoryHierarchyResourceToJSONTyped(json, false);
55
+ }
56
+ function ProductCategoryHierarchyResourceToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'name': value['name'],
64
+ 'slug': value['slug'],
65
+ 'index': value['index'],
66
+ 'isAutomated': value['isAutomated'],
67
+ 'children': value['children'],
68
+ };
69
+ }
@@ -0,0 +1,33 @@
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 { ProductCategoryHierarchyResource } from './ProductCategoryHierarchyResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductCategoryHierarchyResourceArrayResponse
17
+ */
18
+ export interface ProductCategoryHierarchyResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductCategoryHierarchyResource>}
22
+ * @memberof ProductCategoryHierarchyResourceArrayResponse
23
+ */
24
+ data?: Array<ProductCategoryHierarchyResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductCategoryHierarchyResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductCategoryHierarchyResourceArrayResponse(value: object): value is ProductCategoryHierarchyResourceArrayResponse;
30
+ export declare function ProductCategoryHierarchyResourceArrayResponseFromJSON(json: any): ProductCategoryHierarchyResourceArrayResponse;
31
+ export declare function ProductCategoryHierarchyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryHierarchyResourceArrayResponse;
32
+ export declare function ProductCategoryHierarchyResourceArrayResponseToJSON(json: any): ProductCategoryHierarchyResourceArrayResponse;
33
+ export declare function ProductCategoryHierarchyResourceArrayResponseToJSONTyped(value?: ProductCategoryHierarchyResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfProductCategoryHierarchyResourceArrayResponse = instanceOfProductCategoryHierarchyResourceArrayResponse;
17
+ exports.ProductCategoryHierarchyResourceArrayResponseFromJSON = ProductCategoryHierarchyResourceArrayResponseFromJSON;
18
+ exports.ProductCategoryHierarchyResourceArrayResponseFromJSONTyped = ProductCategoryHierarchyResourceArrayResponseFromJSONTyped;
19
+ exports.ProductCategoryHierarchyResourceArrayResponseToJSON = ProductCategoryHierarchyResourceArrayResponseToJSON;
20
+ exports.ProductCategoryHierarchyResourceArrayResponseToJSONTyped = ProductCategoryHierarchyResourceArrayResponseToJSONTyped;
21
+ var ProductCategoryHierarchyResource_1 = require("./ProductCategoryHierarchyResource");
22
+ /**
23
+ * Check if a given object implements the ProductCategoryHierarchyResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductCategoryHierarchyResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductCategoryHierarchyResourceArrayResponseFromJSON(json) {
29
+ return ProductCategoryHierarchyResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductCategoryHierarchyResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductCategoryHierarchyResource_1.ProductCategoryHierarchyResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductCategoryHierarchyResourceArrayResponseToJSON(json) {
40
+ return ProductCategoryHierarchyResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductCategoryHierarchyResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(ProductCategoryHierarchyResource_1.ProductCategoryHierarchyResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,75 @@
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 { SiteLiteResource } from './SiteLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductCategoryListResource
17
+ */
18
+ export interface ProductCategoryListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof ProductCategoryListResource
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProductCategoryListResource
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ProductCategoryListResource
35
+ */
36
+ slug: string;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof ProductCategoryListResource
41
+ */
42
+ isDisabled: boolean;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof ProductCategoryListResource
47
+ */
48
+ isAutomated: boolean;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof ProductCategoryListResource
53
+ */
54
+ hasChildren: boolean;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof ProductCategoryListResource
59
+ */
60
+ productCount: number;
61
+ /**
62
+ *
63
+ * @type {SiteLiteResource}
64
+ * @memberof ProductCategoryListResource
65
+ */
66
+ site: SiteLiteResource | null;
67
+ }
68
+ /**
69
+ * Check if a given object implements the ProductCategoryListResource interface.
70
+ */
71
+ export declare function instanceOfProductCategoryListResource(value: object): value is ProductCategoryListResource;
72
+ export declare function ProductCategoryListResourceFromJSON(json: any): ProductCategoryListResource;
73
+ export declare function ProductCategoryListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryListResource;
74
+ export declare function ProductCategoryListResourceToJSON(json: any): ProductCategoryListResource;
75
+ export declare function ProductCategoryListResourceToJSONTyped(value?: ProductCategoryListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,78 @@
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.instanceOfProductCategoryListResource = instanceOfProductCategoryListResource;
17
+ exports.ProductCategoryListResourceFromJSON = ProductCategoryListResourceFromJSON;
18
+ exports.ProductCategoryListResourceFromJSONTyped = ProductCategoryListResourceFromJSONTyped;
19
+ exports.ProductCategoryListResourceToJSON = ProductCategoryListResourceToJSON;
20
+ exports.ProductCategoryListResourceToJSONTyped = ProductCategoryListResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
22
+ /**
23
+ * Check if a given object implements the ProductCategoryListResource interface.
24
+ */
25
+ function instanceOfProductCategoryListResource(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('slug' in value) || value['slug'] === undefined)
29
+ return false;
30
+ if (!('isDisabled' in value) || value['isDisabled'] === undefined)
31
+ return false;
32
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined)
33
+ return false;
34
+ if (!('hasChildren' in value) || value['hasChildren'] === undefined)
35
+ return false;
36
+ if (!('productCount' in value) || value['productCount'] === undefined)
37
+ return false;
38
+ if (!('site' in value) || value['site'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function ProductCategoryListResourceFromJSON(json) {
43
+ return ProductCategoryListResourceFromJSONTyped(json, false);
44
+ }
45
+ function ProductCategoryListResourceFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'id': json['id'] == null ? undefined : json['id'],
51
+ 'name': json['name'],
52
+ 'slug': json['slug'],
53
+ 'isDisabled': json['isDisabled'],
54
+ 'isAutomated': json['isAutomated'],
55
+ 'hasChildren': json['hasChildren'],
56
+ 'productCount': json['productCount'],
57
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
58
+ };
59
+ }
60
+ function ProductCategoryListResourceToJSON(json) {
61
+ return ProductCategoryListResourceToJSONTyped(json, false);
62
+ }
63
+ function ProductCategoryListResourceToJSONTyped(value, ignoreDiscriminator) {
64
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'name': value['name'],
71
+ 'slug': value['slug'],
72
+ 'isDisabled': value['isDisabled'],
73
+ 'isAutomated': value['isAutomated'],
74
+ 'hasChildren': value['hasChildren'],
75
+ 'productCount': value['productCount'],
76
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
77
+ };
78
+ }