@digital8/lighting-illusions-ts-sdk 0.0.1796 → 0.0.1797
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 +62 -42
- package/README.md +44 -30
- package/dist/apis/CartsApi.d.ts +190 -0
- package/dist/apis/CartsApi.js +747 -0
- package/dist/apis/CustomersApi.d.ts +48 -0
- package/dist/apis/CustomersApi.js +196 -0
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/AddressType.d.ts +25 -0
- package/dist/models/AddressType.js +51 -0
- package/dist/models/AdminCartResource.d.ts +197 -0
- package/dist/models/AdminCartResource.js +140 -0
- package/dist/models/AdminCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminCartResourceArrayResponse.js +50 -0
- 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/CartListResource.d.ts +137 -0
- package/dist/models/CartListResource.js +106 -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/CartStatus.d.ts +26 -0
- package/dist/models/CartStatus.js +52 -0
- package/dist/models/CustomerListResource.d.ts +69 -0
- package/dist/models/CustomerListResource.js +72 -0
- package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerListResourceArrayResponse.js +50 -0
- package/dist/models/CustomerResource.d.ts +69 -0
- package/dist/models/CustomerResource.js +72 -0
- package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +155 -0
- package/dist/models/FrontendCartResource.js +118 -0
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
- 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/{IndexReviewRequest.js → IndexCustomerRequest.js} +20 -23
- package/dist/models/LineItemListResource.d.ts +51 -0
- package/dist/models/LineItemListResource.js +62 -0
- package/dist/models/LineItemListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LineItemListResourceArrayResponse.js +50 -0
- 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/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/StoreCartRequest.d.ts +136 -0
- package/dist/models/StoreCartRequest.js +110 -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 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +111 -0
- package/dist/models/UpdateCartRequest.js +95 -0
- package/dist/models/UpdateItemCartRequest.d.ts +38 -0
- package/dist/models/UpdateItemCartRequest.js +53 -0
- package/dist/models/UpdateSiteRequest.d.ts +6 -0
- package/dist/models/UpdateSiteRequest.js +4 -0
- package/dist/models/index.d.ts +29 -20
- package/dist/models/index.js +29 -20
- package/docs/{ReviewLiteResource.md → AddressType.md} +4 -10
- package/docs/AdminCartResource.md +88 -0
- package/docs/{ReviewLiteResourceArrayResponse.md → AdminCartResourceArrayResponse.md} +5 -5
- package/docs/AttachCouponCartRequest.md +34 -0
- package/docs/{AdminUserLiteResourceArrayResponse.md → AttachItemCartRequest.md} +10 -6
- package/docs/CartListResource.md +68 -0
- package/docs/{ReviewResourceArrayResponse.md → CartListResourceArrayResponse.md} +5 -5
- package/docs/CartOrderSource.md +32 -0
- package/docs/CartStatus.md +32 -0
- package/docs/CartsApi.md +755 -0
- package/docs/{ReviewPublicResource.md → CustomerListResource.md} +16 -16
- package/docs/{ReviewPublicResourceArrayResponse.md → CustomerListResourceArrayResponse.md} +5 -5
- package/docs/CustomerResource.md +46 -0
- package/docs/{ReviewListResourceArrayResponse.md → CustomerResourceArrayResponse.md} +5 -5
- package/docs/CustomersApi.md +140 -0
- package/docs/FrontendCartResource.md +74 -0
- package/docs/{CustomerLiteResourceArrayResponse.md → FrontendCartResourceArrayResponse.md} +5 -5
- package/docs/IndexCartRequest.md +66 -0
- package/docs/{IndexReviewRequest.md → IndexCustomerRequest.md} +4 -8
- package/docs/LineItemListResource.md +40 -0
- package/docs/LineItemListResourceArrayResponse.md +34 -0
- package/docs/{PaginatedReviewResourceResponse.md → PaginatedCartListResourceResponse.md} +5 -5
- package/docs/{PaginatedReviewListResourceResponse.md → PaginatedCustomerListResourceResponse.md} +5 -5
- package/docs/ProductChildSiteDetailLiteResource.md +2 -0
- package/docs/ShippingType.md +32 -0
- package/docs/SitePaymentConfigResource.md +2 -0
- package/docs/StoreCartRequest.md +60 -0
- package/docs/{AdminUserLiteResource.md → StoreCartRequestCustomer.md} +6 -6
- package/docs/StoreCartRequestItemsInner.md +38 -0
- package/docs/StoreCartRequestShippingAddress.md +48 -0
- package/docs/{CustomerLiteResource.md → StoreCustomerRequest.md} +8 -6
- package/docs/UpdateCartRequest.md +52 -0
- package/docs/UpdateItemCartRequest.md +36 -0
- package/docs/UpdateSiteRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +626 -0
- package/src/apis/CustomersApi.ts +127 -0
- package/src/apis/index.ts +2 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/AddressType.ts +53 -0
- package/src/models/AdminCartResource.ts +320 -0
- package/src/models/AdminCartResourceArrayResponse.ts +73 -0
- package/src/models/AttachCouponCartRequest.ts +66 -0
- package/src/models/AttachItemCartRequest.ts +83 -0
- package/src/models/CartListResource.ts +233 -0
- package/src/models/CartListResourceArrayResponse.ts +73 -0
- package/src/models/CartOrderSource.ts +57 -0
- package/src/models/CartStatus.ts +54 -0
- package/src/models/CustomerListResource.ts +126 -0
- package/src/models/CustomerListResourceArrayResponse.ts +73 -0
- package/src/models/CustomerResource.ts +126 -0
- package/src/models/CustomerResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +260 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/IndexCartRequest.ts +224 -0
- package/src/models/{IndexReviewRequest.ts → IndexCustomerRequest.ts} +31 -46
- package/src/models/LineItemListResource.ts +100 -0
- package/src/models/LineItemListResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedCartListResourceResponse.ts +90 -0
- package/src/models/PaginatedCustomerListResourceResponse.ts +90 -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/StoreCartRequest.ts +223 -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 +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/UpdateCartRequest.ts +181 -0
- package/src/models/UpdateItemCartRequest.ts +74 -0
- package/src/models/UpdateSiteRequest.ts +9 -0
- package/src/models/index.ts +29 -20
- package/dist/apis/ReviewApi.d.ts +0 -139
- package/dist/apis/ReviewApi.js +0 -566
- package/dist/models/AdminUserLiteResource.d.ts +0 -50
- package/dist/models/AdminUserLiteResource.js +0 -61
- package/dist/models/AdminUserLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminUserLiteResourceArrayResponse.js +0 -50
- package/dist/models/CustomerLiteResource.d.ts +0 -50
- package/dist/models/CustomerLiteResource.js +0 -61
- package/dist/models/CustomerLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerLiteResourceArrayResponse.js +0 -50
- package/dist/models/IndexReviewRequest.d.ts +0 -110
- package/dist/models/PaginatedReviewListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewListResourceResponse.js +0 -57
- package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedReviewResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewResourceResponse.js +0 -57
- package/dist/models/ProductReviewsResource.d.ts +0 -63
- package/dist/models/ProductReviewsResource.js +0 -70
- package/dist/models/ProductReviewsResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductReviewsResourceArrayResponse.js +0 -50
- package/dist/models/ReviewListResource.d.ts +0 -94
- package/dist/models/ReviewListResource.js +0 -85
- package/dist/models/ReviewListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewListResourceArrayResponse.js +0 -50
- package/dist/models/ReviewLiteResource.d.ts +0 -44
- package/dist/models/ReviewLiteResource.js +0 -59
- package/dist/models/ReviewLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewLiteResourceArrayResponse.js +0 -50
- package/dist/models/ReviewPublicResource.d.ts +0 -68
- package/dist/models/ReviewPublicResource.js +0 -71
- package/dist/models/ReviewPublicResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewPublicResourceArrayResponse.js +0 -50
- package/dist/models/ReviewResource.d.ts +0 -126
- package/dist/models/ReviewResource.js +0 -105
- package/dist/models/ReviewResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewResourceArrayResponse.js +0 -50
- package/dist/models/StoreReviewRequest.d.ts +0 -80
- package/dist/models/StoreReviewRequest.js +0 -79
- package/dist/models/UpdateReviewRequest.d.ts +0 -68
- package/dist/models/UpdateReviewRequest.js +0 -71
- package/docs/PaginatedReviewLiteResourceResponse.md +0 -36
- package/docs/ProductReviewsResource.md +0 -44
- package/docs/ProductReviewsResourceArrayResponse.md +0 -34
- package/docs/ReviewApi.md +0 -539
- package/docs/ReviewListResource.md +0 -54
- package/docs/ReviewResource.md +0 -64
- package/docs/StoreReviewRequest.md +0 -50
- package/docs/UpdateReviewRequest.md +0 -46
- package/src/apis/ReviewApi.ts +0 -444
- package/src/models/AdminUserLiteResource.ts +0 -92
- package/src/models/AdminUserLiteResourceArrayResponse.ts +0 -73
- package/src/models/CustomerLiteResource.ts +0 -92
- package/src/models/CustomerLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedReviewListResourceResponse.ts +0 -90
- package/src/models/PaginatedReviewLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedReviewResourceResponse.ts +0 -90
- package/src/models/ProductReviewsResource.ts +0 -118
- package/src/models/ProductReviewsResourceArrayResponse.ts +0 -73
- package/src/models/ReviewListResource.ts +0 -167
- package/src/models/ReviewListResourceArrayResponse.ts +0 -73
- package/src/models/ReviewLiteResource.ts +0 -84
- package/src/models/ReviewLiteResourceArrayResponse.ts +0 -73
- package/src/models/ReviewPublicResource.ts +0 -118
- package/src/models/ReviewPublicResourceArrayResponse.ts +0 -73
- package/src/models/ReviewResource.ts +0 -225
- package/src/models/ReviewResourceArrayResponse.ts +0 -73
- package/src/models/StoreReviewRequest.ts +0 -136
- package/src/models/UpdateReviewRequest.ts +0 -118
|
@@ -0,0 +1,105 @@
|
|
|
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.IndexCartRequestStatusEnum = exports.IndexCartRequestSortDirectionEnum = exports.IndexCartRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexCartRequest = instanceOfIndexCartRequest;
|
|
18
|
+
exports.IndexCartRequestFromJSON = IndexCartRequestFromJSON;
|
|
19
|
+
exports.IndexCartRequestFromJSONTyped = IndexCartRequestFromJSONTyped;
|
|
20
|
+
exports.IndexCartRequestToJSON = IndexCartRequestToJSON;
|
|
21
|
+
exports.IndexCartRequestToJSONTyped = IndexCartRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexCartRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
CreatedAt: 'created_at',
|
|
28
|
+
ExpiryDate: 'expiry_date'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.IndexCartRequestSortDirectionEnum = {
|
|
34
|
+
Asc: 'asc',
|
|
35
|
+
Desc: 'desc'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
exports.IndexCartRequestStatusEnum = {
|
|
41
|
+
Active: 'active',
|
|
42
|
+
Expired: 'expired',
|
|
43
|
+
Completed: 'completed'
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the IndexCartRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
function instanceOfIndexCartRequest(value) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function IndexCartRequestFromJSON(json) {
|
|
52
|
+
return IndexCartRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function IndexCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
60
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
61
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
62
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
63
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
64
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
65
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
66
|
+
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
67
|
+
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
68
|
+
'beforeExpiryDate': json['before_expiry_date'] == null ? undefined : (new Date(json['before_expiry_date'])),
|
|
69
|
+
'afterExpiryDate': json['after_expiry_date'] == null ? undefined : (new Date(json['after_expiry_date'])),
|
|
70
|
+
'beforeCheckoutCompletedAt': json['before_checkout_completed_at'] == null ? undefined : (new Date(json['before_checkout_completed_at'])),
|
|
71
|
+
'afterCheckoutCompletedAt': json['after_checkout_completed_at'] == null ? undefined : (new Date(json['after_checkout_completed_at'])),
|
|
72
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
73
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
74
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
75
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function IndexCartRequestToJSON(json) {
|
|
79
|
+
return IndexCartRequestToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function IndexCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
82
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'search': value['search'],
|
|
88
|
+
'sortBy': value['sortBy'],
|
|
89
|
+
'sortDirection': value['sortDirection'],
|
|
90
|
+
'per_page': value['perPage'],
|
|
91
|
+
'page': value['page'],
|
|
92
|
+
'site_id': value['siteId'],
|
|
93
|
+
'source': value['source'],
|
|
94
|
+
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
95
|
+
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
96
|
+
'before_expiry_date': value['beforeExpiryDate'] == null ? value['beforeExpiryDate'] : value['beforeExpiryDate'].toISOString(),
|
|
97
|
+
'after_expiry_date': value['afterExpiryDate'] == null ? value['afterExpiryDate'] : value['afterExpiryDate'].toISOString(),
|
|
98
|
+
'before_checkout_completed_at': value['beforeCheckoutCompletedAt'] == null ? value['beforeCheckoutCompletedAt'] : value['beforeCheckoutCompletedAt'].toISOString(),
|
|
99
|
+
'after_checkout_completed_at': value['afterCheckoutCompletedAt'] == null ? value['afterCheckoutCompletedAt'] : value['afterCheckoutCompletedAt'].toISOString(),
|
|
100
|
+
'related_id': value['relatedId'],
|
|
101
|
+
'related_type': value['relatedType'],
|
|
102
|
+
'includes_relations': value['includesRelations'],
|
|
103
|
+
'status': value['status'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 IndexCustomerRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexCustomerRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexCustomerRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexCustomerRequestSortByEnum}
|
|
27
|
+
* @memberof IndexCustomerRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexCustomerRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexCustomerRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexCustomerRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexCustomerRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexCustomerRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexCustomerRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexCustomerRequest
|
|
52
|
+
*/
|
|
53
|
+
siteId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof IndexCustomerRequest
|
|
58
|
+
*/
|
|
59
|
+
relatedId?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof IndexCustomerRequest
|
|
64
|
+
*/
|
|
65
|
+
relatedType?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof IndexCustomerRequest
|
|
70
|
+
*/
|
|
71
|
+
includesRelations?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const IndexCustomerRequestSortByEnum: {
|
|
77
|
+
readonly Id: "id";
|
|
78
|
+
readonly CreatedAt: "created_at";
|
|
79
|
+
readonly FirstName: "first_name";
|
|
80
|
+
readonly LastName: "last_name";
|
|
81
|
+
readonly Email: "email";
|
|
82
|
+
};
|
|
83
|
+
export type IndexCustomerRequestSortByEnum = typeof IndexCustomerRequestSortByEnum[keyof typeof IndexCustomerRequestSortByEnum];
|
|
84
|
+
/**
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export declare const IndexCustomerRequestSortDirectionEnum: {
|
|
88
|
+
readonly Asc: "asc";
|
|
89
|
+
readonly Desc: "desc";
|
|
90
|
+
};
|
|
91
|
+
export type IndexCustomerRequestSortDirectionEnum = typeof IndexCustomerRequestSortDirectionEnum[keyof typeof IndexCustomerRequestSortDirectionEnum];
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the IndexCustomerRequest interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfIndexCustomerRequest(value: object): value is IndexCustomerRequest;
|
|
96
|
+
export declare function IndexCustomerRequestFromJSON(json: any): IndexCustomerRequest;
|
|
97
|
+
export declare function IndexCustomerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexCustomerRequest;
|
|
98
|
+
export declare function IndexCustomerRequestToJSON(json: any): IndexCustomerRequest;
|
|
99
|
+
export declare function IndexCustomerRequestToJSONTyped(value?: IndexCustomerRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,38 +13,39 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.IndexCustomerRequestSortDirectionEnum = exports.IndexCustomerRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexCustomerRequest = instanceOfIndexCustomerRequest;
|
|
18
|
+
exports.IndexCustomerRequestFromJSON = IndexCustomerRequestFromJSON;
|
|
19
|
+
exports.IndexCustomerRequestFromJSONTyped = IndexCustomerRequestFromJSONTyped;
|
|
20
|
+
exports.IndexCustomerRequestToJSON = IndexCustomerRequestToJSON;
|
|
21
|
+
exports.IndexCustomerRequestToJSONTyped = IndexCustomerRequestToJSONTyped;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.IndexCustomerRequestSortByEnum = {
|
|
26
26
|
Id: 'id',
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
CreatedAt: 'created_at',
|
|
28
|
+
FirstName: 'first_name',
|
|
29
|
+
LastName: 'last_name',
|
|
30
|
+
Email: 'email'
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
33
|
* @export
|
|
33
34
|
*/
|
|
34
|
-
exports.
|
|
35
|
+
exports.IndexCustomerRequestSortDirectionEnum = {
|
|
35
36
|
Asc: 'asc',
|
|
36
37
|
Desc: 'desc'
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
|
-
* Check if a given object implements the
|
|
40
|
+
* Check if a given object implements the IndexCustomerRequest interface.
|
|
40
41
|
*/
|
|
41
|
-
function
|
|
42
|
+
function instanceOfIndexCustomerRequest(value) {
|
|
42
43
|
return true;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
45
|
+
function IndexCustomerRequestFromJSON(json) {
|
|
46
|
+
return IndexCustomerRequestFromJSONTyped(json, false);
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function IndexCustomerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
49
|
if (json == null) {
|
|
49
50
|
return json;
|
|
50
51
|
}
|
|
@@ -55,17 +56,15 @@ function IndexReviewRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
56
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
56
57
|
'page': json['page'] == null ? undefined : json['page'],
|
|
57
58
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
58
|
-
'createdByAdmin': json['created_by_admin'] == null ? undefined : json['created_by_admin'],
|
|
59
|
-
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
60
59
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
61
60
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
62
61
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
64
|
+
function IndexCustomerRequestToJSON(json) {
|
|
65
|
+
return IndexCustomerRequestToJSONTyped(json, false);
|
|
67
66
|
}
|
|
68
|
-
function
|
|
67
|
+
function IndexCustomerRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
69
68
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
70
69
|
if (value == null) {
|
|
71
70
|
return value;
|
|
@@ -77,8 +76,6 @@ function IndexReviewRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
77
76
|
'per_page': value['perPage'],
|
|
78
77
|
'page': value['page'],
|
|
79
78
|
'site_id': value['siteId'],
|
|
80
|
-
'created_by_admin': value['createdByAdmin'],
|
|
81
|
-
'has_approved_at': value['hasApprovedAt'],
|
|
82
79
|
'related_id': value['relatedId'],
|
|
83
80
|
'related_type': value['relatedType'],
|
|
84
81
|
'includes_relations': value['includesRelations'],
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ProductChildListResource } from './ProductChildListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LineItemListResource
|
|
17
|
+
*/
|
|
18
|
+
export interface LineItemListResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof LineItemListResource
|
|
23
|
+
*/
|
|
24
|
+
id?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof LineItemListResource
|
|
29
|
+
*/
|
|
30
|
+
quantity: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof LineItemListResource
|
|
35
|
+
*/
|
|
36
|
+
productPrice: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ProductChildListResource}
|
|
40
|
+
* @memberof LineItemListResource
|
|
41
|
+
*/
|
|
42
|
+
productChild: ProductChildListResource | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LineItemListResource interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfLineItemListResource(value: object): value is LineItemListResource;
|
|
48
|
+
export declare function LineItemListResourceFromJSON(json: any): LineItemListResource;
|
|
49
|
+
export declare function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemListResource;
|
|
50
|
+
export declare function LineItemListResourceToJSON(json: any): LineItemListResource;
|
|
51
|
+
export declare function LineItemListResourceToJSONTyped(value?: LineItemListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 ProductChildListResource_1 = require("./ProductChildListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LineItemListResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLineItemListResource(value) {
|
|
26
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('productPrice' in value) || value['productPrice'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('productChild' in value) || value['productChild'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function LineItemListResourceFromJSON(json) {
|
|
35
|
+
return LineItemListResourceFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function LineItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
43
|
+
'quantity': json['quantity'],
|
|
44
|
+
'productPrice': json['product_price'],
|
|
45
|
+
'productChild': (0, ProductChildListResource_1.ProductChildListResourceFromJSON)(json['product_child']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function LineItemListResourceToJSON(json) {
|
|
49
|
+
return LineItemListResourceToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function LineItemListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'quantity': value['quantity'],
|
|
59
|
+
'product_price': value['productPrice'],
|
|
60
|
+
'product_child': (0, ProductChildListResource_1.ProductChildListResourceToJSON)(value['productChild']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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;
|