@digital8/lighting-illusions-ts-sdk 0.0.463 → 0.0.465
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +64 -2
- package/README.md +42 -6
- package/dist/apis/AttributeApi.d.ts +3 -3
- package/dist/apis/AttributeApi.js +1 -1
- package/dist/apis/OverlayTemplateApi.d.ts +3 -3
- package/dist/apis/OverlayTemplateApi.js +1 -1
- package/dist/apis/ProductApi.d.ts +78 -17
- package/dist/apis/ProductApi.js +271 -24
- package/dist/apis/ProductTypeApi.d.ts +3 -3
- package/dist/apis/ProductTypeApi.js +1 -1
- package/dist/apis/SiteApi.d.ts +5 -5
- package/dist/apis/SiteApi.js +2 -2
- package/dist/apis/SupplierApi.d.ts +3 -3
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/TagApi.d.ts +7 -7
- package/dist/apis/TagApi.js +2 -2
- package/dist/models/AssetLiteResource.d.ts +6 -0
- package/dist/models/AssetLiteResource.js +4 -0
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductChildRequest.js +51 -0
- package/dist/models/AttributeListResource.d.ts +56 -0
- package/dist/models/AttributeListResource.js +67 -0
- package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/AttributeListResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogListResource.d.ts +56 -0
- package/dist/models/ExternalApiLogListResource.js +63 -0
- package/dist/models/ExternalApiLogListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ExternalApiLogListResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllAttributeRequest.d.ts +15 -9
- package/dist/models/GetAllAttributeRequest.js +6 -4
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +12 -6
- package/dist/models/GetAllOverlayTemplateRequest.js +4 -2
- package/dist/models/GetAllProductChildRequest.d.ts +6 -0
- package/dist/models/GetAllProductChildRequest.js +2 -0
- package/dist/models/GetAllProductRequest.d.ts +36 -0
- package/dist/models/GetAllProductRequest.js +12 -0
- package/dist/models/GetAllProductTypeRequest.d.ts +6 -0
- package/dist/models/GetAllProductTypeRequest.js +2 -0
- package/dist/models/GetAllSupplierRequest.d.ts +6 -0
- package/dist/models/GetAllSupplierRequest.js +2 -0
- package/dist/models/IndexAttributeRequest.d.ts +25 -0
- package/dist/models/IndexAttributeRequest.js +13 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +21 -3
- package/dist/models/IndexExternalApiLogRequest.js +10 -4
- package/dist/models/IndexOverlayTemplateRequest.d.ts +25 -0
- package/dist/models/IndexOverlayTemplateRequest.js +13 -1
- package/dist/models/IndexProductChildRequest.d.ts +6 -0
- package/dist/models/IndexProductChildRequest.js +2 -0
- package/dist/models/IndexProductRequest.d.ts +130 -0
- package/dist/models/IndexProductRequest.js +97 -0
- package/dist/models/IndexProductTypeRequest.d.ts +25 -0
- package/dist/models/IndexProductTypeRequest.js +13 -1
- package/dist/models/IndexSiteNotificationRequest.d.ts +18 -0
- package/dist/models/IndexSiteNotificationRequest.js +6 -0
- package/dist/models/IndexSiteRequest.d.ts +18 -0
- package/dist/models/IndexSiteRequest.js +6 -0
- package/dist/models/IndexSupplierRequest.d.ts +25 -0
- package/dist/models/IndexSupplierRequest.js +13 -1
- package/dist/models/IndexTagRequest.d.ts +25 -0
- package/dist/models/IndexTagRequest.js +13 -1
- package/dist/models/OverlayTemplateListResource.d.ts +45 -0
- package/dist/models/OverlayTemplateListResource.js +60 -0
- package/dist/models/OverlayTemplateListResourceArrayResponse.d.ts +33 -0
- package/dist/models/OverlayTemplateListResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedExternalApiLogListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedExternalApiLogListResourceResponse.js +57 -0
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductChildListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductChildListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteNotificationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteNotificationListResourceResponse.js +57 -0
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
- package/dist/models/PaginatedTagListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTagListResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +63 -0
- package/dist/models/ProductChildListResource.js +72 -0
- package/dist/models/ProductChildListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildListResourceArrayResponse.js +50 -0
- package/dist/models/ProductListResource.d.ts +38 -0
- package/dist/models/ProductListResource.js +55 -0
- package/dist/models/ProductListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductListResourceArrayResponse.js +50 -0
- package/dist/models/ProductTypeListResource.d.ts +38 -0
- package/dist/models/ProductTypeListResource.js +55 -0
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
- package/dist/models/SiteListResource.d.ts +50 -0
- package/dist/models/SiteListResource.js +63 -0
- package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteListResourceArrayResponse.js +50 -0
- package/dist/models/SiteNotificationListResource.d.ts +57 -0
- package/dist/models/SiteNotificationListResource.js +64 -0
- package/dist/models/SiteNotificationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteNotificationListResourceArrayResponse.js +50 -0
- package/dist/models/SupplierListResource.d.ts +57 -0
- package/dist/models/SupplierListResource.js +68 -0
- package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SupplierListResourceArrayResponse.js +50 -0
- package/dist/models/TagListResource.d.ts +57 -0
- package/dist/models/TagListResource.js +68 -0
- package/dist/models/TagListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TagListResourceArrayResponse.js +50 -0
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +6 -0
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.js +2 -0
- package/dist/models/index.d.ts +32 -1
- package/dist/models/index.js +32 -1
- package/docs/AssetLiteResource.md +2 -0
- package/docs/{LinkProductChildrenTagRequest.md → AttachAccessoriesProductChildRequest.md} +4 -4
- package/docs/AttributeApi.md +3 -3
- package/docs/AttributeListResource.md +42 -0
- package/docs/AttributeListResourceArrayResponse.md +34 -0
- package/docs/ExternalApiLogListResource.md +42 -0
- package/docs/ExternalApiLogListResourceArrayResponse.md +34 -0
- package/docs/GetAllAttributeRequest.md +6 -4
- package/docs/GetAllOverlayTemplateRequest.md +4 -2
- package/docs/GetAllProductChildRequest.md +2 -0
- package/docs/GetAllProductRequest.md +12 -0
- package/docs/GetAllProductTypeRequest.md +2 -0
- package/docs/GetAllSupplierRequest.md +2 -0
- package/docs/IndexAttributeRequest.md +6 -0
- package/docs/IndexExternalApiLogRequest.md +10 -4
- package/docs/IndexOverlayTemplateRequest.md +6 -0
- package/docs/IndexProductChildRequest.md +2 -0
- package/docs/IndexProductRequest.md +58 -0
- package/docs/IndexProductTypeRequest.md +6 -0
- package/docs/IndexSiteNotificationRequest.md +6 -0
- package/docs/IndexSiteRequest.md +6 -0
- package/docs/IndexSupplierRequest.md +6 -0
- package/docs/IndexTagRequest.md +6 -0
- package/docs/OverlayTemplateApi.md +3 -3
- package/docs/OverlayTemplateListResource.md +38 -0
- package/docs/OverlayTemplateListResourceArrayResponse.md +34 -0
- package/docs/PaginatedAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedExternalApiLogListResourceResponse.md +36 -0
- package/docs/PaginatedOverlayTemplateListResourceResponse.md +36 -0
- package/docs/PaginatedProductChildListResourceResponse.md +36 -0
- package/docs/PaginatedProductListResourceResponse.md +36 -0
- package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSiteNotificationListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/PaginatedTagListResourceResponse.md +36 -0
- package/docs/ProductApi.md +377 -29
- package/docs/ProductChildListResource.md +44 -0
- package/docs/ProductChildListResourceArrayResponse.md +34 -0
- package/docs/ProductListResource.md +36 -0
- package/docs/ProductListResourceArrayResponse.md +34 -0
- package/docs/ProductTypeApi.md +3 -3
- package/docs/ProductTypeListResource.md +36 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -0
- package/docs/SiteApi.md +6 -6
- package/docs/SiteListResource.md +40 -0
- package/docs/SiteListResourceArrayResponse.md +34 -0
- package/docs/SiteNotificationListResource.md +42 -0
- package/docs/SiteNotificationListResourceArrayResponse.md +34 -0
- package/docs/SupplierApi.md +3 -3
- package/docs/SupplierListResource.md +42 -0
- package/docs/SupplierListResourceArrayResponse.md +34 -0
- package/docs/TagApi.md +10 -10
- package/docs/TagListResource.md +42 -0
- package/docs/TagListResourceArrayResponse.md +34 -0
- package/docs/UnlinkAssetableOverlayTemplateRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +6 -6
- package/src/apis/OverlayTemplateApi.ts +6 -6
- package/src/apis/ProductApi.ts +282 -32
- package/src/apis/ProductTypeApi.ts +6 -6
- package/src/apis/SiteApi.ts +12 -12
- package/src/apis/SupplierApi.ts +6 -6
- package/src/apis/TagApi.ts +14 -14
- package/src/models/AssetLiteResource.ts +9 -0
- package/src/models/AttachAccessoriesProductChildRequest.ts +66 -0
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogListResource.ts +100 -0
- package/src/models/ExternalApiLogListResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllAttributeRequest.ts +21 -13
- package/src/models/GetAllOverlayTemplateRequest.ts +16 -8
- package/src/models/GetAllProductChildRequest.ts +8 -0
- package/src/models/GetAllProductRequest.ts +48 -0
- package/src/models/GetAllProductTypeRequest.ts +8 -0
- package/src/models/GetAllSupplierRequest.ts +8 -0
- package/src/models/IndexAttributeRequest.ts +32 -0
- package/src/models/IndexExternalApiLogRequest.ts +31 -7
- package/src/models/IndexOverlayTemplateRequest.ts +32 -0
- package/src/models/IndexProductChildRequest.ts +8 -0
- package/src/models/IndexProductRequest.ts +192 -0
- package/src/models/IndexProductTypeRequest.ts +32 -0
- package/src/models/IndexSiteNotificationRequest.ts +24 -0
- package/src/models/IndexSiteRequest.ts +24 -0
- package/src/models/IndexSupplierRequest.ts +32 -0
- package/src/models/IndexTagRequest.ts +32 -0
- package/src/models/OverlayTemplateListResource.ts +92 -0
- package/src/models/OverlayTemplateListResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedExternalApiLogListResourceResponse.ts +90 -0
- package/src/models/PaginatedOverlayTemplateListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductChildListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteNotificationListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/PaginatedTagListResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +119 -0
- package/src/models/ProductChildListResourceArrayResponse.ts +73 -0
- package/src/models/ProductListResource.ts +75 -0
- package/src/models/ProductListResourceArrayResponse.ts +73 -0
- package/src/models/ProductTypeListResource.ts +75 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
- package/src/models/SiteListResource.ts +93 -0
- package/src/models/SiteListResourceArrayResponse.ts +73 -0
- package/src/models/SiteNotificationListResource.ts +108 -0
- package/src/models/SiteNotificationListResourceArrayResponse.ts +73 -0
- package/src/models/SupplierListResource.ts +110 -0
- package/src/models/SupplierListResourceArrayResponse.ts +73 -0
- package/src/models/TagListResource.ts +110 -0
- package/src/models/TagListResourceArrayResponse.ts +73 -0
- package/src/models/UnlinkAssetableOverlayTemplateRequest.ts +8 -0
- package/src/models/index.ts +32 -1
- package/dist/models/LinkProductChildrenTagRequest.d.ts +0 -32
- package/dist/models/LinkProductChildrenTagRequest.js +0 -51
- package/src/models/LinkProductChildrenTagRequest.ts +0 -66
|
@@ -37,12 +37,6 @@ export interface GetAllOverlayTemplateRequest {
|
|
|
37
37
|
* @memberof GetAllOverlayTemplateRequest
|
|
38
38
|
*/
|
|
39
39
|
sortDirection?: GetAllOverlayTemplateRequestSortDirectionEnum;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Array<string>}
|
|
43
|
-
* @memberof GetAllOverlayTemplateRequest
|
|
44
|
-
*/
|
|
45
|
-
sitesId?: Array<string>;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {number}
|
|
@@ -55,6 +49,18 @@ export interface GetAllOverlayTemplateRequest {
|
|
|
55
49
|
* @memberof GetAllOverlayTemplateRequest
|
|
56
50
|
*/
|
|
57
51
|
relatedType?: GetAllOverlayTemplateRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllOverlayTemplateRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof GetAllOverlayTemplateRequest
|
|
62
|
+
*/
|
|
63
|
+
sitesId?: Array<string>;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
|
|
@@ -107,9 +113,10 @@ export function GetAllOverlayTemplateRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
107
113
|
'search': json['search'] == null ? undefined : json['search'],
|
|
108
114
|
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
109
115
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
110
|
-
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
111
116
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
112
117
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
118
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
119
|
+
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
113
120
|
};
|
|
114
121
|
}
|
|
115
122
|
|
|
@@ -127,9 +134,10 @@ export function GetAllOverlayTemplateRequestToJSONTyped(value?: GetAllOverlayTem
|
|
|
127
134
|
'search': value['search'],
|
|
128
135
|
'sortBy': value['sortBy'],
|
|
129
136
|
'sortDirection': value['sortDirection'],
|
|
130
|
-
'sites-id': value['sitesId'],
|
|
131
137
|
'related_id': value['relatedId'],
|
|
132
138
|
'related_type': value['relatedType'],
|
|
139
|
+
'includes_relations': value['includesRelations'],
|
|
140
|
+
'sites-id': value['sitesId'],
|
|
133
141
|
};
|
|
134
142
|
}
|
|
135
143
|
|
|
@@ -49,6 +49,12 @@ export interface GetAllProductChildRequest {
|
|
|
49
49
|
* @memberof GetAllProductChildRequest
|
|
50
50
|
*/
|
|
51
51
|
relatedType?: GetAllProductChildRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllProductChildRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {Array<string>}
|
|
@@ -144,6 +150,7 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
144
150
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
145
151
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
146
152
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
153
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
147
154
|
'parentProductTypeId': json['parent-product_type_id'] == null ? undefined : json['parent-product_type_id'],
|
|
148
155
|
'parentSupplierId': json['parent-supplier_id'] == null ? undefined : json['parent-supplier_id'],
|
|
149
156
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
@@ -168,6 +175,7 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
168
175
|
'sortDirection': value['sortDirection'],
|
|
169
176
|
'related_id': value['relatedId'],
|
|
170
177
|
'related_type': value['relatedType'],
|
|
178
|
+
'includes_relations': value['includesRelations'],
|
|
171
179
|
'parent-product_type_id': value['parentProductTypeId'],
|
|
172
180
|
'parent-supplier_id': value['parentSupplierId'],
|
|
173
181
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
@@ -49,6 +49,42 @@ export interface GetAllProductRequest {
|
|
|
49
49
|
* @memberof GetAllProductRequest
|
|
50
50
|
*/
|
|
51
51
|
relatedType?: GetAllProductRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllProductRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof GetAllProductRequest
|
|
62
|
+
*/
|
|
63
|
+
productTypeId?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof GetAllProductRequest
|
|
68
|
+
*/
|
|
69
|
+
supplierId?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof GetAllProductRequest
|
|
74
|
+
*/
|
|
75
|
+
isDisabled?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<string>}
|
|
79
|
+
* @memberof GetAllProductRequest
|
|
80
|
+
*/
|
|
81
|
+
isAccessory?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof GetAllProductRequest
|
|
86
|
+
*/
|
|
87
|
+
categoriesId?: Array<string>;
|
|
52
88
|
}
|
|
53
89
|
|
|
54
90
|
|
|
@@ -105,6 +141,12 @@ export function GetAllProductRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
105
141
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
106
142
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
107
143
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
144
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
145
|
+
'productTypeId': json['product_type_id'] == null ? undefined : json['product_type_id'],
|
|
146
|
+
'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
|
|
147
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
148
|
+
'isAccessory': json['is_accessory'] == null ? undefined : json['is_accessory'],
|
|
149
|
+
'categoriesId': json['categories-id'] == null ? undefined : json['categories-id'],
|
|
108
150
|
};
|
|
109
151
|
}
|
|
110
152
|
|
|
@@ -124,6 +166,12 @@ export function GetAllProductRequestToJSONTyped(value?: GetAllProductRequest | n
|
|
|
124
166
|
'sortDirection': value['sortDirection'],
|
|
125
167
|
'related_id': value['relatedId'],
|
|
126
168
|
'related_type': value['relatedType'],
|
|
169
|
+
'includes_relations': value['includesRelations'],
|
|
170
|
+
'product_type_id': value['productTypeId'],
|
|
171
|
+
'supplier_id': value['supplierId'],
|
|
172
|
+
'is_disabled': value['isDisabled'],
|
|
173
|
+
'is_accessory': value['isAccessory'],
|
|
174
|
+
'categories-id': value['categoriesId'],
|
|
127
175
|
};
|
|
128
176
|
}
|
|
129
177
|
|
|
@@ -49,6 +49,12 @@ export interface GetAllProductTypeRequest {
|
|
|
49
49
|
* @memberof GetAllProductTypeRequest
|
|
50
50
|
*/
|
|
51
51
|
relatedType?: GetAllProductTypeRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllProductTypeRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
|
|
@@ -104,6 +110,7 @@ export function GetAllProductTypeRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
104
110
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
105
111
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
106
112
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
113
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
107
114
|
};
|
|
108
115
|
}
|
|
109
116
|
|
|
@@ -123,6 +130,7 @@ export function GetAllProductTypeRequestToJSONTyped(value?: GetAllProductTypeReq
|
|
|
123
130
|
'sortDirection': value['sortDirection'],
|
|
124
131
|
'related_id': value['relatedId'],
|
|
125
132
|
'related_type': value['relatedType'],
|
|
133
|
+
'includes_relations': value['includesRelations'],
|
|
126
134
|
};
|
|
127
135
|
}
|
|
128
136
|
|
|
@@ -49,6 +49,12 @@ export interface GetAllSupplierRequest {
|
|
|
49
49
|
* @memberof GetAllSupplierRequest
|
|
50
50
|
*/
|
|
51
51
|
relatedType?: GetAllSupplierRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllSupplierRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
|
|
@@ -105,6 +111,7 @@ export function GetAllSupplierRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
105
111
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
106
112
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
107
113
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
114
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
108
115
|
};
|
|
109
116
|
}
|
|
110
117
|
|
|
@@ -124,6 +131,7 @@ export function GetAllSupplierRequestToJSONTyped(value?: GetAllSupplierRequest |
|
|
|
124
131
|
'sortDirection': value['sortDirection'],
|
|
125
132
|
'related_id': value['relatedId'],
|
|
126
133
|
'related_type': value['relatedType'],
|
|
134
|
+
'includes_relations': value['includesRelations'],
|
|
127
135
|
};
|
|
128
136
|
}
|
|
129
137
|
|
|
@@ -67,6 +67,24 @@ export interface IndexAttributeRequest {
|
|
|
67
67
|
* @memberof IndexAttributeRequest
|
|
68
68
|
*/
|
|
69
69
|
isExpandedByDefault?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof IndexAttributeRequest
|
|
74
|
+
*/
|
|
75
|
+
relatedId?: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof IndexAttributeRequest
|
|
80
|
+
*/
|
|
81
|
+
relatedType?: IndexAttributeRequestRelatedTypeEnum;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof IndexAttributeRequest
|
|
86
|
+
*/
|
|
87
|
+
includesRelations?: boolean;
|
|
70
88
|
}
|
|
71
89
|
|
|
72
90
|
|
|
@@ -90,6 +108,14 @@ export const IndexAttributeRequestSortDirectionEnum = {
|
|
|
90
108
|
} as const;
|
|
91
109
|
export type IndexAttributeRequestSortDirectionEnum = typeof IndexAttributeRequestSortDirectionEnum[keyof typeof IndexAttributeRequestSortDirectionEnum];
|
|
92
110
|
|
|
111
|
+
/**
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const IndexAttributeRequestRelatedTypeEnum = {
|
|
115
|
+
ProductType: 'productType'
|
|
116
|
+
} as const;
|
|
117
|
+
export type IndexAttributeRequestRelatedTypeEnum = typeof IndexAttributeRequestRelatedTypeEnum[keyof typeof IndexAttributeRequestRelatedTypeEnum];
|
|
118
|
+
|
|
93
119
|
|
|
94
120
|
/**
|
|
95
121
|
* Check if a given object implements the IndexAttributeRequest interface.
|
|
@@ -116,6 +142,9 @@ export function IndexAttributeRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
116
142
|
'type': json['type'] == null ? undefined : json['type'],
|
|
117
143
|
'isFilterable': json['is_filterable'] == null ? undefined : json['is_filterable'],
|
|
118
144
|
'isExpandedByDefault': json['is_expanded_by_default'] == null ? undefined : json['is_expanded_by_default'],
|
|
145
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
146
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
147
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
119
148
|
};
|
|
120
149
|
}
|
|
121
150
|
|
|
@@ -138,6 +167,9 @@ export function IndexAttributeRequestToJSONTyped(value?: IndexAttributeRequest |
|
|
|
138
167
|
'type': value['type'],
|
|
139
168
|
'is_filterable': value['isFilterable'],
|
|
140
169
|
'is_expanded_by_default': value['isExpandedByDefault'],
|
|
170
|
+
'related_id': value['relatedId'],
|
|
171
|
+
'related_type': value['relatedType'],
|
|
172
|
+
'includes_relations': value['includesRelations'],
|
|
141
173
|
};
|
|
142
174
|
}
|
|
143
175
|
|
|
@@ -37,6 +37,18 @@ export interface IndexExternalApiLogRequest {
|
|
|
37
37
|
* @memberof IndexExternalApiLogRequest
|
|
38
38
|
*/
|
|
39
39
|
sortDirection?: IndexExternalApiLogRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexExternalApiLogRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexExternalApiLogRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
40
52
|
/**
|
|
41
53
|
*
|
|
42
54
|
* @type {Array<string>}
|
|
@@ -78,13 +90,19 @@ export interface IndexExternalApiLogRequest {
|
|
|
78
90
|
* @type {number}
|
|
79
91
|
* @memberof IndexExternalApiLogRequest
|
|
80
92
|
*/
|
|
81
|
-
|
|
93
|
+
relatedId?: number;
|
|
82
94
|
/**
|
|
83
95
|
*
|
|
84
|
-
* @type {
|
|
96
|
+
* @type {string}
|
|
85
97
|
* @memberof IndexExternalApiLogRequest
|
|
86
98
|
*/
|
|
87
|
-
|
|
99
|
+
relatedType?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {boolean}
|
|
103
|
+
* @memberof IndexExternalApiLogRequest
|
|
104
|
+
*/
|
|
105
|
+
includesRelations?: boolean;
|
|
88
106
|
}
|
|
89
107
|
|
|
90
108
|
|
|
@@ -132,14 +150,17 @@ export function IndexExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
132
150
|
'search': json['search'] == null ? undefined : json['search'],
|
|
133
151
|
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
134
152
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
153
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
154
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
135
155
|
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
136
156
|
'responseCode': json['response_code'] == null ? undefined : json['response_code'],
|
|
137
157
|
'httpMethod': json['http_method'] == null ? undefined : json['http_method'],
|
|
138
158
|
'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
|
|
139
159
|
'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
|
|
140
160
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
141
|
-
'
|
|
142
|
-
'
|
|
161
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
162
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
163
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
143
164
|
};
|
|
144
165
|
}
|
|
145
166
|
|
|
@@ -157,14 +178,17 @@ export function IndexExternalApiLogRequestToJSONTyped(value?: IndexExternalApiLo
|
|
|
157
178
|
'search': value['search'],
|
|
158
179
|
'sortBy': value['sortBy'],
|
|
159
180
|
'sortDirection': value['sortDirection'],
|
|
181
|
+
'per_page': value['perPage'],
|
|
182
|
+
'page': value['page'],
|
|
160
183
|
'provider': value['provider'],
|
|
161
184
|
'response_code': value['responseCode'],
|
|
162
185
|
'http_method': value['httpMethod'],
|
|
163
186
|
'external_api_loggable_type': value['externalApiLoggableType'],
|
|
164
187
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
165
188
|
'site_id': value['siteId'],
|
|
166
|
-
'
|
|
167
|
-
'
|
|
189
|
+
'related_id': value['relatedId'],
|
|
190
|
+
'related_type': value['relatedType'],
|
|
191
|
+
'includes_relations': value['includesRelations'],
|
|
168
192
|
};
|
|
169
193
|
}
|
|
170
194
|
|
|
@@ -55,6 +55,24 @@ export interface IndexOverlayTemplateRequest {
|
|
|
55
55
|
* @memberof IndexOverlayTemplateRequest
|
|
56
56
|
*/
|
|
57
57
|
sitesId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof IndexOverlayTemplateRequest
|
|
62
|
+
*/
|
|
63
|
+
relatedId?: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof IndexOverlayTemplateRequest
|
|
68
|
+
*/
|
|
69
|
+
relatedType?: IndexOverlayTemplateRequestRelatedTypeEnum;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof IndexOverlayTemplateRequest
|
|
74
|
+
*/
|
|
75
|
+
includesRelations?: boolean;
|
|
58
76
|
}
|
|
59
77
|
|
|
60
78
|
|
|
@@ -78,6 +96,14 @@ export const IndexOverlayTemplateRequestSortDirectionEnum = {
|
|
|
78
96
|
} as const;
|
|
79
97
|
export type IndexOverlayTemplateRequestSortDirectionEnum = typeof IndexOverlayTemplateRequestSortDirectionEnum[keyof typeof IndexOverlayTemplateRequestSortDirectionEnum];
|
|
80
98
|
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export const IndexOverlayTemplateRequestRelatedTypeEnum = {
|
|
103
|
+
ProductChild: 'productChild'
|
|
104
|
+
} as const;
|
|
105
|
+
export type IndexOverlayTemplateRequestRelatedTypeEnum = typeof IndexOverlayTemplateRequestRelatedTypeEnum[keyof typeof IndexOverlayTemplateRequestRelatedTypeEnum];
|
|
106
|
+
|
|
81
107
|
|
|
82
108
|
/**
|
|
83
109
|
* Check if a given object implements the IndexOverlayTemplateRequest interface.
|
|
@@ -102,6 +128,9 @@ export function IndexOverlayTemplateRequestFromJSONTyped(json: any, ignoreDiscri
|
|
|
102
128
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
103
129
|
'page': json['page'] == null ? undefined : json['page'],
|
|
104
130
|
'sitesId': json['sites-id'] == null ? undefined : json['sites-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'],
|
|
105
134
|
};
|
|
106
135
|
}
|
|
107
136
|
|
|
@@ -122,6 +151,9 @@ export function IndexOverlayTemplateRequestToJSONTyped(value?: IndexOverlayTempl
|
|
|
122
151
|
'per_page': value['perPage'],
|
|
123
152
|
'page': value['page'],
|
|
124
153
|
'sites-id': value['sitesId'],
|
|
154
|
+
'related_id': value['relatedId'],
|
|
155
|
+
'related_type': value['relatedType'],
|
|
156
|
+
'includes_relations': value['includesRelations'],
|
|
125
157
|
};
|
|
126
158
|
}
|
|
127
159
|
|
|
@@ -91,6 +91,12 @@ export interface IndexProductChildRequest {
|
|
|
91
91
|
* @memberof IndexProductChildRequest
|
|
92
92
|
*/
|
|
93
93
|
relatedType?: IndexProductChildRequestRelatedTypeEnum;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof IndexProductChildRequest
|
|
98
|
+
*/
|
|
99
|
+
includesRelations?: boolean;
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
|
|
@@ -163,6 +169,7 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
163
169
|
'hasNetsuiteId': json['has_netsuite_id'] == null ? undefined : json['has_netsuite_id'],
|
|
164
170
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
165
171
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
172
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
166
173
|
};
|
|
167
174
|
}
|
|
168
175
|
|
|
@@ -189,6 +196,7 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
|
|
|
189
196
|
'has_netsuite_id': value['hasNetsuiteId'],
|
|
190
197
|
'related_id': value['relatedId'],
|
|
191
198
|
'related_type': value['relatedType'],
|
|
199
|
+
'includes_relations': value['includesRelations'],
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
202
|
|
|
@@ -0,0 +1,192 @@
|
|
|
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 IndexProductRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexProductRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexProductRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IndexProductRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexProductRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IndexProductRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexProductRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexProductRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexProductRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof IndexProductRequest
|
|
56
|
+
*/
|
|
57
|
+
productTypeId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof IndexProductRequest
|
|
62
|
+
*/
|
|
63
|
+
supplierId?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof IndexProductRequest
|
|
68
|
+
*/
|
|
69
|
+
isDisabled?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof IndexProductRequest
|
|
74
|
+
*/
|
|
75
|
+
isAccessory?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<string>}
|
|
79
|
+
* @memberof IndexProductRequest
|
|
80
|
+
*/
|
|
81
|
+
categoriesId?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof IndexProductRequest
|
|
86
|
+
*/
|
|
87
|
+
relatedId?: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof IndexProductRequest
|
|
92
|
+
*/
|
|
93
|
+
relatedType?: IndexProductRequestRelatedTypeEnum;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof IndexProductRequest
|
|
98
|
+
*/
|
|
99
|
+
includesRelations?: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export const IndexProductRequestSortByEnum = {
|
|
107
|
+
Id: 'id',
|
|
108
|
+
Name: 'name',
|
|
109
|
+
SupplierName: 'supplier-name',
|
|
110
|
+
CreatedAt: 'created_at',
|
|
111
|
+
UpdatedAt: 'updated_at'
|
|
112
|
+
} as const;
|
|
113
|
+
export type IndexProductRequestSortByEnum = typeof IndexProductRequestSortByEnum[keyof typeof IndexProductRequestSortByEnum];
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const IndexProductRequestSortDirectionEnum = {
|
|
119
|
+
Asc: 'asc',
|
|
120
|
+
Desc: 'desc'
|
|
121
|
+
} as const;
|
|
122
|
+
export type IndexProductRequestSortDirectionEnum = typeof IndexProductRequestSortDirectionEnum[keyof typeof IndexProductRequestSortDirectionEnum];
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export const IndexProductRequestRelatedTypeEnum = {
|
|
128
|
+
ProductChild: 'productChild'
|
|
129
|
+
} as const;
|
|
130
|
+
export type IndexProductRequestRelatedTypeEnum = typeof IndexProductRequestRelatedTypeEnum[keyof typeof IndexProductRequestRelatedTypeEnum];
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Check if a given object implements the IndexProductRequest interface.
|
|
135
|
+
*/
|
|
136
|
+
export function instanceOfIndexProductRequest(value: object): value is IndexProductRequest {
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function IndexProductRequestFromJSON(json: any): IndexProductRequest {
|
|
141
|
+
return IndexProductRequestFromJSONTyped(json, false);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function IndexProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRequest {
|
|
145
|
+
if (json == null) {
|
|
146
|
+
return json;
|
|
147
|
+
}
|
|
148
|
+
return {
|
|
149
|
+
|
|
150
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
151
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
152
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
153
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
154
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
155
|
+
'productTypeId': json['product_type_id'] == null ? undefined : json['product_type_id'],
|
|
156
|
+
'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
|
|
157
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
158
|
+
'isAccessory': json['is_accessory'] == null ? undefined : json['is_accessory'],
|
|
159
|
+
'categoriesId': json['categories-id'] == null ? undefined : json['categories-id'],
|
|
160
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
161
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
162
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function IndexProductRequestToJSON(json: any): IndexProductRequest {
|
|
167
|
+
return IndexProductRequestToJSONTyped(json, false);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function IndexProductRequestToJSONTyped(value?: IndexProductRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
171
|
+
if (value == null) {
|
|
172
|
+
return value;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
|
|
177
|
+
'search': value['search'],
|
|
178
|
+
'sortBy': value['sortBy'],
|
|
179
|
+
'sortDirection': value['sortDirection'],
|
|
180
|
+
'per_page': value['perPage'],
|
|
181
|
+
'page': value['page'],
|
|
182
|
+
'product_type_id': value['productTypeId'],
|
|
183
|
+
'supplier_id': value['supplierId'],
|
|
184
|
+
'is_disabled': value['isDisabled'],
|
|
185
|
+
'is_accessory': value['isAccessory'],
|
|
186
|
+
'categories-id': value['categoriesId'],
|
|
187
|
+
'related_id': value['relatedId'],
|
|
188
|
+
'related_type': value['relatedType'],
|
|
189
|
+
'includes_relations': value['includesRelations'],
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|