@digital8/lighting-illusions-ts-sdk 0.0.1900 → 0.0.1901
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 +82 -2
- package/README.md +56 -3
- package/dist/apis/CartsApi.d.ts +190 -0
- package/dist/apis/CartsApi.js +745 -0
- package/dist/apis/CustomersApi.d.ts +79 -0
- package/dist/apis/CustomersApi.js +316 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AddressResource.d.ts +13 -1
- package/dist/models/AddressResource.js +9 -1
- package/dist/models/AddressType.d.ts +25 -0
- package/dist/models/AddressType.js +51 -0
- package/dist/models/AssetFrontendResource.d.ts +0 -12
- package/dist/models/AssetFrontendResource.js +0 -6
- package/dist/models/AssetLiteResource.d.ts +2 -14
- package/dist/models/AssetLiteResource.js +0 -6
- package/dist/models/AssetResource.d.ts +2 -14
- package/dist/models/AssetResource.js +0 -6
- package/dist/models/AssetWithOverlayLinkResource.d.ts +2 -14
- package/dist/models/AssetWithOverlayLinkResource.js +0 -6
- package/dist/models/AttachCouponCartRequest.d.ts +32 -0
- package/dist/models/AttachCouponCartRequest.js +51 -0
- package/dist/models/AttachItemCartRequest.d.ts +44 -0
- package/dist/models/AttachItemCartRequest.js +57 -0
- package/dist/models/CartCouponResource.d.ts +50 -0
- package/dist/models/CartCouponResource.js +63 -0
- package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +131 -0
- package/dist/models/CartListResource.js +104 -0
- package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartListResourceArrayResponse.js +50 -0
- package/dist/models/CartOrderSource.d.ts +29 -0
- package/dist/models/CartOrderSource.js +55 -0
- package/dist/models/CartResource.d.ts +223 -0
- package/dist/models/CartResource.js +164 -0
- package/dist/models/CartResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartResourceArrayResponse.js +50 -0
- package/dist/models/CartStatus.d.ts +26 -0
- package/dist/models/CartStatus.js +52 -0
- package/dist/models/CustomerListResource.d.ts +70 -0
- package/dist/models/CustomerListResource.js +75 -0
- package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerListResourceArrayResponse.js +50 -0
- package/dist/models/CustomerResource.d.ts +70 -0
- package/dist/models/CustomerResource.js +75 -0
- package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerResourceArrayResponse.js +50 -0
- package/dist/models/DetachCouponCartRequest.d.ts +32 -0
- package/dist/models/DetachCouponCartRequest.js +51 -0
- package/dist/models/DiscountType.d.ts +26 -0
- package/dist/models/DiscountType.js +52 -0
- package/dist/models/DiscountValueType.d.ts +25 -0
- package/dist/models/DiscountValueType.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/ExternalApiSyncStatus.d.ts +0 -1
- package/dist/models/ExternalApiSyncStatus.js +1 -2
- package/dist/models/IndexCartRequest.d.ts +154 -0
- package/dist/models/IndexCartRequest.js +105 -0
- package/dist/models/IndexCustomerRequest.d.ts +99 -0
- package/dist/models/IndexCustomerRequest.js +83 -0
- package/dist/models/LiAddressResource.d.ts +86 -0
- package/dist/models/LiAddressResource.js +83 -0
- package/dist/models/LiAddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/LiAddressResourceArrayResponse.js +50 -0
- package/dist/models/LineItemDiscountResource.d.ts +50 -0
- package/dist/models/LineItemDiscountResource.js +63 -0
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +33 -0
- package/dist/models/LineItemDiscountResourceArrayResponse.js +50 -0
- package/dist/models/LineItemListResource.d.ts +76 -0
- package/dist/models/LineItemListResource.js +81 -0
- package/dist/models/LineItemListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LineItemListResourceArrayResponse.js +50 -0
- package/dist/models/MenuPosition.d.ts +1 -0
- package/dist/models/MenuPosition.js +2 -1
- package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCartListResourceResponse.js +57 -0
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
- package/dist/models/ProductChildCartLiteResource.d.ts +70 -0
- package/dist/models/ProductChildCartLiteResource.js +77 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
- package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
- package/dist/models/ShippingType.d.ts +28 -0
- package/dist/models/ShippingType.js +54 -0
- package/dist/models/SitePaymentConfigResource.d.ts +6 -0
- package/dist/models/SitePaymentConfigResource.js +4 -0
- package/dist/models/StoreAssetForAssetableRequest.d.ts +2 -14
- package/dist/models/StoreAssetForAssetableRequest.js +6 -6
- package/dist/models/StoreCartRequest.d.ts +160 -0
- package/dist/models/StoreCartRequest.js +112 -0
- package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
- package/dist/models/StoreCartRequestCustomer.js +55 -0
- package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
- package/dist/models/StoreCartRequestItemsInner.js +57 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +74 -0
- package/dist/models/StoreCartRequestShippingAddress.js +63 -0
- package/dist/models/StoreCustomerRequest.d.ts +56 -0
- package/dist/models/StoreCustomerRequest.js +65 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -13
- package/dist/models/StoreListResource.js +6 -12
- package/dist/models/StoreMenuRequest.d.ts +1 -0
- package/dist/models/StoreMenuRequest.js +2 -1
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +2 -14
- package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
- package/dist/models/StoreProductCategoryRequest.d.ts +0 -12
- package/dist/models/StoreProductCategoryRequest.js +0 -4
- package/dist/models/StoreProductChildRequestAssetsInner.d.ts +2 -14
- package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
- package/dist/models/StoreResource.d.ts +1 -13
- package/dist/models/StoreResource.js +8 -14
- package/dist/models/StoreSpecialDateResource.js +4 -4
- package/dist/models/StoreStoreRequest.d.ts +0 -12
- package/dist/models/StoreStoreRequest.js +0 -4
- package/dist/models/StoreStoreRequestAddress.d.ts +6 -0
- package/dist/models/StoreStoreRequestAddress.js +2 -0
- package/dist/models/StoreSupplierRequest.d.ts +2 -14
- package/dist/models/StoreSupplierRequest.js +6 -6
- package/dist/models/UpdateAssetForAssetableRequest.d.ts +0 -12
- package/dist/models/UpdateAssetForAssetableRequest.js +0 -4
- package/dist/models/UpdateCartRequest.d.ts +135 -0
- package/dist/models/UpdateCartRequest.js +99 -0
- package/dist/models/UpdateCustomerRequest.d.ts +56 -0
- package/dist/models/UpdateCustomerRequest.js +63 -0
- package/dist/models/UpdateItemCartRequest.d.ts +38 -0
- package/dist/models/UpdateItemCartRequest.js +53 -0
- package/dist/models/UpdateMenuRequest.d.ts +1 -0
- package/dist/models/UpdateMenuRequest.js +2 -1
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +2 -14
- package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
- package/dist/models/UpdateProductCategoryRequest.d.ts +0 -12
- package/dist/models/UpdateProductCategoryRequest.js +0 -4
- package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +2 -14
- package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
- package/dist/models/UpdateSiteRequest.d.ts +6 -0
- package/dist/models/UpdateSiteRequest.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +0 -12
- package/dist/models/UpdateStoreRequest.js +0 -4
- package/dist/models/UpdateSupplierRequest.d.ts +2 -14
- package/dist/models/UpdateSupplierRequest.js +6 -6
- package/dist/models/index.d.ts +39 -1
- package/dist/models/index.js +39 -1
- package/docs/AddressResource.md +4 -0
- package/docs/{StoreStockType.md → AddressType.md} +4 -4
- package/docs/AssetFrontendResource.md +0 -4
- package/docs/AssetLiteResource.md +1 -5
- package/docs/AssetResource.md +1 -5
- package/docs/AssetWithOverlayLinkResource.md +1 -5
- package/docs/AttachCouponCartRequest.md +34 -0
- package/docs/AttachItemCartRequest.md +38 -0
- package/docs/CartCouponResource.md +40 -0
- package/docs/CartCouponResourceArrayResponse.md +34 -0
- package/docs/CartListResource.md +66 -0
- package/docs/CartListResourceArrayResponse.md +34 -0
- package/docs/CartOrderSource.md +32 -0
- package/docs/CartResource.md +96 -0
- package/docs/CartResourceArrayResponse.md +34 -0
- package/docs/CartStatus.md +32 -0
- package/docs/CartsApi.md +755 -0
- package/docs/CustomerListResource.md +46 -0
- package/docs/CustomerListResourceArrayResponse.md +34 -0
- package/docs/CustomerResource.md +46 -0
- package/docs/CustomerResourceArrayResponse.md +34 -0
- package/docs/CustomersApi.md +275 -0
- package/docs/DetachCouponCartRequest.md +34 -0
- package/docs/DiscountType.md +32 -0
- package/docs/DiscountValueType.md +32 -0
- package/docs/IndexCartRequest.md +66 -0
- package/docs/IndexCustomerRequest.md +50 -0
- package/docs/LiAddressResource.md +52 -0
- package/docs/LiAddressResourceArrayResponse.md +34 -0
- package/docs/LineItemDiscountResource.md +40 -0
- package/docs/LineItemDiscountResourceArrayResponse.md +34 -0
- package/docs/LineItemListResource.md +48 -0
- package/docs/LineItemListResourceArrayResponse.md +34 -0
- package/docs/PaginatedCartListResourceResponse.md +36 -0
- package/docs/PaginatedCustomerListResourceResponse.md +36 -0
- package/docs/ProductChildCartLiteResource.md +46 -0
- package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
- package/docs/ProductChildSiteDetailLiteResource.md +2 -0
- package/docs/ShippingType.md +32 -0
- package/docs/SitePaymentConfigResource.md +2 -0
- package/docs/StoreAssetForAssetableRequest.md +0 -4
- package/docs/StoreCartRequest.md +68 -0
- package/docs/StoreCartRequestCustomer.md +40 -0
- package/docs/StoreCartRequestItemsInner.md +38 -0
- package/docs/StoreCartRequestShippingAddress.md +48 -0
- package/docs/StoreCustomerRequest.md +42 -0
- package/docs/StoreListResource.md +0 -4
- package/docs/StoreOverlayTemplateAssetRequest.md +0 -4
- package/docs/StoreProductCategoryRequest.md +0 -4
- package/docs/StoreProductChildRequestAssetsInner.md +0 -4
- package/docs/StoreResource.md +0 -4
- package/docs/StoreStoreRequest.md +0 -4
- package/docs/StoreStoreRequestAddress.md +2 -0
- package/docs/StoreSupplierRequest.md +0 -4
- package/docs/UpdateAssetForAssetableRequest.md +0 -4
- package/docs/UpdateCartRequest.md +60 -0
- package/docs/UpdateCustomerRequest.md +42 -0
- package/docs/UpdateItemCartRequest.md +36 -0
- package/docs/UpdateOverlayTemplateAssetRequest.md +0 -4
- package/docs/UpdateProductCategoryRequest.md +0 -4
- package/docs/UpdateProductChildRequestAssetsInner.md +0 -4
- package/docs/UpdateSiteRequest.md +2 -0
- package/docs/UpdateStoreRequest.md +0 -4
- package/docs/UpdateSupplierRequest.md +0 -4
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +624 -0
- package/src/apis/CustomersApi.ts +232 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AddressResource.ts +20 -2
- package/src/models/AddressType.ts +53 -0
- package/src/models/AssetFrontendResource.ts +0 -17
- package/src/models/AssetLiteResource.ts +2 -19
- package/src/models/AssetResource.ts +2 -19
- package/src/models/AssetWithOverlayLinkResource.ts +2 -19
- package/src/models/AttachCouponCartRequest.ts +66 -0
- package/src/models/AttachItemCartRequest.ts +83 -0
- package/src/models/CartCouponResource.ts +93 -0
- package/src/models/CartCouponResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +225 -0
- package/src/models/CartListResourceArrayResponse.ts +73 -0
- package/src/models/CartOrderSource.ts +57 -0
- package/src/models/CartResource.ts +373 -0
- package/src/models/CartResourceArrayResponse.ts +73 -0
- package/src/models/CartStatus.ts +54 -0
- package/src/models/CustomerListResource.ts +134 -0
- package/src/models/CustomerListResourceArrayResponse.ts +73 -0
- package/src/models/CustomerResource.ts +134 -0
- package/src/models/CustomerResourceArrayResponse.ts +73 -0
- package/src/models/DetachCouponCartRequest.ts +66 -0
- package/src/models/DiscountType.ts +54 -0
- package/src/models/DiscountValueType.ts +53 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ExternalApiSyncStatus.ts +1 -2
- package/src/models/IndexCartRequest.ts +224 -0
- package/src/models/IndexCustomerRequest.ts +152 -0
- package/src/models/LiAddressResource.ts +145 -0
- package/src/models/LiAddressResourceArrayResponse.ts +73 -0
- package/src/models/LineItemDiscountResource.ts +93 -0
- package/src/models/LineItemDiscountResourceArrayResponse.ts +73 -0
- package/src/models/LineItemListResource.ts +144 -0
- package/src/models/LineItemListResourceArrayResponse.ts +73 -0
- package/src/models/MenuPosition.ts +2 -1
- package/src/models/PaginatedCartListResourceResponse.ts +90 -0
- package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
- package/src/models/ProductChildCartLiteResource.ts +135 -0
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
- package/src/models/ShippingType.ts +56 -0
- package/src/models/SitePaymentConfigResource.ts +9 -0
- package/src/models/StoreAssetForAssetableRequest.ts +6 -20
- package/src/models/StoreCartRequest.ts +252 -0
- package/src/models/StoreCartRequestCustomer.ts +89 -0
- package/src/models/StoreCartRequestItemsInner.ts +83 -0
- package/src/models/StoreCartRequestShippingAddress.ts +121 -0
- package/src/models/StoreCustomerRequest.ts +101 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +6 -23
- package/src/models/StoreMenuRequest.ts +2 -1
- package/src/models/StoreOverlayTemplateAssetRequest.ts +6 -20
- package/src/models/StoreProductCategoryRequest.ts +0 -16
- package/src/models/StoreProductChildRequestAssetsInner.ts +6 -20
- package/src/models/StoreResource.ts +8 -25
- package/src/models/StoreSpecialDateResource.ts +4 -4
- package/src/models/StoreStoreRequest.ts +0 -16
- package/src/models/StoreStoreRequestAddress.ts +8 -0
- package/src/models/StoreSupplierRequest.ts +6 -20
- package/src/models/UpdateAssetForAssetableRequest.ts +0 -16
- package/src/models/UpdateCartRequest.ts +211 -0
- package/src/models/UpdateCustomerRequest.ts +100 -0
- package/src/models/UpdateItemCartRequest.ts +74 -0
- package/src/models/UpdateMenuRequest.ts +2 -1
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +6 -20
- package/src/models/UpdateProductCategoryRequest.ts +0 -16
- package/src/models/UpdateProductChildRequestAssetsInner.ts +6 -20
- package/src/models/UpdateSiteRequest.ts +9 -0
- package/src/models/UpdateStoreRequest.ts +0 -16
- package/src/models/UpdateSupplierRequest.ts +6 -20
- package/src/models/index.ts +39 -1
- package/dist/models/StoreStockType.d.ts +0 -25
- package/dist/models/StoreStockType.js +0 -51
- package/src/models/StoreStockType.ts +0 -53
|
@@ -0,0 +1,81 @@
|
|
|
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.instanceOfLineItemListResource = instanceOfLineItemListResource;
|
|
17
|
+
exports.LineItemListResourceFromJSON = LineItemListResourceFromJSON;
|
|
18
|
+
exports.LineItemListResourceFromJSONTyped = LineItemListResourceFromJSONTyped;
|
|
19
|
+
exports.LineItemListResourceToJSON = LineItemListResourceToJSON;
|
|
20
|
+
exports.LineItemListResourceToJSONTyped = LineItemListResourceToJSONTyped;
|
|
21
|
+
var LineItemDiscountResource_1 = require("./LineItemDiscountResource");
|
|
22
|
+
var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the LineItemListResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfLineItemListResource(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('productPrice' in value) || value['productPrice'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('productDiscount' in value) || value['productDiscount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('discounts' in value) || value['discounts'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('productChild' in value) || value['productChild'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function LineItemListResourceFromJSON(json) {
|
|
46
|
+
return LineItemListResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function LineItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': json['id'],
|
|
54
|
+
'quantity': json['quantity'],
|
|
55
|
+
'productPrice': json['product_price'],
|
|
56
|
+
'productDiscount': json['product_discount'],
|
|
57
|
+
'totalDiscount': json['total_discount'],
|
|
58
|
+
'lineSubtotal': json['line_subtotal'],
|
|
59
|
+
'discounts': (json['discounts'] == null ? null : json['discounts'].map(LineItemDiscountResource_1.LineItemDiscountResourceFromJSON)),
|
|
60
|
+
'productChild': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)(json['product_child']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function LineItemListResourceToJSON(json) {
|
|
64
|
+
return LineItemListResourceToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function LineItemListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'id': value['id'],
|
|
73
|
+
'quantity': value['quantity'],
|
|
74
|
+
'product_price': value['productPrice'],
|
|
75
|
+
'product_discount': value['productDiscount'],
|
|
76
|
+
'total_discount': value['totalDiscount'],
|
|
77
|
+
'line_subtotal': value['lineSubtotal'],
|
|
78
|
+
'discounts': (value['discounts'] == null ? null : value['discounts'].map(LineItemDiscountResource_1.LineItemDiscountResourceToJSON)),
|
|
79
|
+
'product_child': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)(value['productChild']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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 { LineItemListResource } from './LineItemListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LineItemListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface LineItemListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LineItemListResource>}
|
|
22
|
+
* @memberof LineItemListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<LineItemListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LineItemListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLineItemListResourceArrayResponse(value: object): value is LineItemListResourceArrayResponse;
|
|
30
|
+
export declare function LineItemListResourceArrayResponseFromJSON(json: any): LineItemListResourceArrayResponse;
|
|
31
|
+
export declare function LineItemListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemListResourceArrayResponse;
|
|
32
|
+
export declare function LineItemListResourceArrayResponseToJSON(json: any): LineItemListResourceArrayResponse;
|
|
33
|
+
export declare function LineItemListResourceArrayResponseToJSONTyped(value?: LineItemListResourceArrayResponse | 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.instanceOfLineItemListResourceArrayResponse = instanceOfLineItemListResourceArrayResponse;
|
|
17
|
+
exports.LineItemListResourceArrayResponseFromJSON = LineItemListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.LineItemListResourceArrayResponseFromJSONTyped = LineItemListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.LineItemListResourceArrayResponseToJSON = LineItemListResourceArrayResponseToJSON;
|
|
20
|
+
exports.LineItemListResourceArrayResponseToJSONTyped = LineItemListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var LineItemListResource_1 = require("./LineItemListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LineItemListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLineItemListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function LineItemListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return LineItemListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function LineItemListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function LineItemListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return LineItemListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function LineItemListResourceArrayResponseToJSONTyped(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(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -17,6 +17,7 @@ export declare const MenuPosition: {
|
|
|
17
17
|
readonly Header: "header";
|
|
18
18
|
readonly HeaderSecondary: "header_secondary";
|
|
19
19
|
readonly Footer: "footer";
|
|
20
|
+
readonly FooterSecondary: "footer_secondary";
|
|
20
21
|
};
|
|
21
22
|
export type MenuPosition = typeof MenuPosition[keyof typeof MenuPosition];
|
|
22
23
|
export declare function instanceOfMenuPosition(value: any): boolean;
|
|
@@ -26,7 +26,8 @@ exports.MenuPositionToJSONTyped = MenuPositionToJSONTyped;
|
|
|
26
26
|
exports.MenuPosition = {
|
|
27
27
|
Header: 'header',
|
|
28
28
|
HeaderSecondary: 'header_secondary',
|
|
29
|
-
Footer: 'footer'
|
|
29
|
+
Footer: 'footer',
|
|
30
|
+
FooterSecondary: 'footer_secondary'
|
|
30
31
|
};
|
|
31
32
|
function instanceOfMenuPosition(value) {
|
|
32
33
|
for (var key in exports.MenuPosition) {
|
|
@@ -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 { CartListResource } from './CartListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedCartListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedCartListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<CartListResource>}
|
|
23
|
+
* @memberof PaginatedCartListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<CartListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedCartListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedCartListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedCartListResourceResponse(value: object): value is PaginatedCartListResourceResponse;
|
|
37
|
+
export declare function PaginatedCartListResourceResponseFromJSON(json: any): PaginatedCartListResourceResponse;
|
|
38
|
+
export declare function PaginatedCartListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCartListResourceResponse;
|
|
39
|
+
export declare function PaginatedCartListResourceResponseToJSON(json: any): PaginatedCartListResourceResponse;
|
|
40
|
+
export declare function PaginatedCartListResourceResponseToJSONTyped(value?: PaginatedCartListResourceResponse | 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.instanceOfPaginatedCartListResourceResponse = instanceOfPaginatedCartListResourceResponse;
|
|
17
|
+
exports.PaginatedCartListResourceResponseFromJSON = PaginatedCartListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedCartListResourceResponseFromJSONTyped = PaginatedCartListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedCartListResourceResponseToJSON = PaginatedCartListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedCartListResourceResponseToJSONTyped = PaginatedCartListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var CartListResource_1 = require("./CartListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedCartListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedCartListResourceResponse(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 PaginatedCartListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedCartListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedCartListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(CartListResource_1.CartListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedCartListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedCartListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedCartListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(CartListResource_1.CartListResourceToJSON)),
|
|
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 { CustomerListResource } from './CustomerListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedCustomerListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedCustomerListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<CustomerListResource>}
|
|
23
|
+
* @memberof PaginatedCustomerListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<CustomerListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedCustomerListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedCustomerListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedCustomerListResourceResponse(value: object): value is PaginatedCustomerListResourceResponse;
|
|
37
|
+
export declare function PaginatedCustomerListResourceResponseFromJSON(json: any): PaginatedCustomerListResourceResponse;
|
|
38
|
+
export declare function PaginatedCustomerListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCustomerListResourceResponse;
|
|
39
|
+
export declare function PaginatedCustomerListResourceResponseToJSON(json: any): PaginatedCustomerListResourceResponse;
|
|
40
|
+
export declare function PaginatedCustomerListResourceResponseToJSONTyped(value?: PaginatedCustomerListResourceResponse | 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.instanceOfPaginatedCustomerListResourceResponse = instanceOfPaginatedCustomerListResourceResponse;
|
|
17
|
+
exports.PaginatedCustomerListResourceResponseFromJSON = PaginatedCustomerListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedCustomerListResourceResponseFromJSONTyped = PaginatedCustomerListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedCustomerListResourceResponseToJSON = PaginatedCustomerListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedCustomerListResourceResponseToJSONTyped = PaginatedCustomerListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedCustomerListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedCustomerListResourceResponse(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 PaginatedCustomerListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedCustomerListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedCustomerListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(CustomerListResource_1.CustomerListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedCustomerListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedCustomerListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedCustomerListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(CustomerListResource_1.CustomerListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { LabelResource } from './LabelResource';
|
|
13
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ProductChildCartLiteResource
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductChildCartLiteResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ProductChildCartLiteResource
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ProductChildCartLiteResource
|
|
30
|
+
*/
|
|
31
|
+
parentId: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ProductChildCartLiteResource
|
|
36
|
+
*/
|
|
37
|
+
sku: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ProductChildCartLiteResource
|
|
42
|
+
*/
|
|
43
|
+
model: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ProductChildCartLiteResource
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AssetLiteResource}
|
|
53
|
+
* @memberof ProductChildCartLiteResource
|
|
54
|
+
*/
|
|
55
|
+
thumbnail: AssetLiteResource | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {LabelResource}
|
|
59
|
+
* @memberof ProductChildCartLiteResource
|
|
60
|
+
*/
|
|
61
|
+
label: LabelResource | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource;
|
|
67
|
+
export declare function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource;
|
|
68
|
+
export declare function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource;
|
|
69
|
+
export declare function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource;
|
|
70
|
+
export declare function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.instanceOfProductChildCartLiteResource = instanceOfProductChildCartLiteResource;
|
|
17
|
+
exports.ProductChildCartLiteResourceFromJSON = ProductChildCartLiteResourceFromJSON;
|
|
18
|
+
exports.ProductChildCartLiteResourceFromJSONTyped = ProductChildCartLiteResourceFromJSONTyped;
|
|
19
|
+
exports.ProductChildCartLiteResourceToJSON = ProductChildCartLiteResourceToJSON;
|
|
20
|
+
exports.ProductChildCartLiteResourceToJSONTyped = ProductChildCartLiteResourceToJSONTyped;
|
|
21
|
+
var LabelResource_1 = require("./LabelResource");
|
|
22
|
+
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfProductChildCartLiteResource(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ProductChildCartLiteResourceFromJSON(json) {
|
|
44
|
+
return ProductChildCartLiteResourceFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ProductChildCartLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'parentId': json['parent_id'],
|
|
53
|
+
'sku': json['sku'],
|
|
54
|
+
'model': json['model'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
57
|
+
'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ProductChildCartLiteResourceToJSON(json) {
|
|
61
|
+
return ProductChildCartLiteResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ProductChildCartLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'parent_id': value['parentId'],
|
|
71
|
+
'sku': value['sku'],
|
|
72
|
+
'model': value['model'],
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
75
|
+
'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildCartLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildCartLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductChildCartLiteResource>}
|
|
22
|
+
* @memberof ProductChildCartLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductChildCartLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse;
|
|
30
|
+
export declare function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse;
|
|
31
|
+
export declare function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse;
|
|
32
|
+
export declare function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse;
|
|
33
|
+
export declare function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | 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.instanceOfProductChildCartLiteResourceArrayResponse = instanceOfProductChildCartLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductChildCartLiteResourceArrayResponseFromJSON = ProductChildCartLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildCartLiteResourceArrayResponseFromJSONTyped = ProductChildCartLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildCartLiteResourceArrayResponseToJSON = ProductChildCartLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildCartLiteResourceArrayResponseToJSONTyped = ProductChildCartLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildCartLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildCartLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildCartLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildCartLiteResourceArrayResponseToJSONTyped(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(ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { LabelResource } from './LabelResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -58,6 +59,12 @@ export interface ProductChildSiteDetailLiteResource {
|
|
|
58
59
|
* @memberof ProductChildSiteDetailLiteResource
|
|
59
60
|
*/
|
|
60
61
|
isDisabled: boolean;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {LabelResource}
|
|
65
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
66
|
+
*/
|
|
67
|
+
label: LabelResource | null;
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* Check if a given object implements the ProductChildSiteDetailLiteResource interface.
|
|
@@ -19,6 +19,7 @@ exports.ProductChildSiteDetailLiteResourceFromJSONTyped = ProductChildSiteDetail
|
|
|
19
19
|
exports.ProductChildSiteDetailLiteResourceToJSON = ProductChildSiteDetailLiteResourceToJSON;
|
|
20
20
|
exports.ProductChildSiteDetailLiteResourceToJSONTyped = ProductChildSiteDetailLiteResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var LabelResource_1 = require("./LabelResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ProductChildSiteDetailLiteResource interface.
|
|
24
25
|
*/
|
|
@@ -37,6 +38,8 @@ function instanceOfProductChildSiteDetailLiteResource(value) {
|
|
|
37
38
|
return false;
|
|
38
39
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
39
40
|
return false;
|
|
41
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
42
|
+
return false;
|
|
40
43
|
return true;
|
|
41
44
|
}
|
|
42
45
|
function ProductChildSiteDetailLiteResourceFromJSON(json) {
|
|
@@ -54,6 +57,7 @@ function ProductChildSiteDetailLiteResourceFromJSONTyped(json, ignoreDiscriminat
|
|
|
54
57
|
'rrpPrice': json['rrpPrice'],
|
|
55
58
|
'salePrice': json['salePrice'],
|
|
56
59
|
'isDisabled': json['isDisabled'],
|
|
60
|
+
'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
63
|
function ProductChildSiteDetailLiteResourceToJSON(json) {
|
|
@@ -72,5 +76,6 @@ function ProductChildSiteDetailLiteResourceToJSONTyped(value, ignoreDiscriminato
|
|
|
72
76
|
'rrpPrice': value['rrpPrice'],
|
|
73
77
|
'salePrice': value['salePrice'],
|
|
74
78
|
'isDisabled': value['isDisabled'],
|
|
79
|
+
'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
|
|
75
80
|
};
|
|
76
81
|
}
|