@digital8/lighting-illusions-ts-sdk 0.0.1778 → 0.0.1779

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/.openapi-generator/FILES +0 -56
  2. package/README.md +2 -41
  3. package/dist/apis/index.d.ts +0 -2
  4. package/dist/apis/index.js +0 -2
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +1 -3
  7. package/dist/models/AssetFrontendResource.d.ts +12 -0
  8. package/dist/models/AssetFrontendResource.js +6 -0
  9. package/dist/models/AssetLiteResource.d.ts +14 -2
  10. package/dist/models/AssetLiteResource.js +6 -0
  11. package/dist/models/AssetResource.d.ts +14 -2
  12. package/dist/models/AssetResource.js +6 -0
  13. package/dist/models/AssetWithOverlayLinkResource.d.ts +14 -2
  14. package/dist/models/AssetWithOverlayLinkResource.js +6 -0
  15. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  16. package/dist/models/ExternalApiLogResource.js +3 -1
  17. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  18. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  19. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  20. package/dist/models/SitePaymentConfigResource.js +0 -4
  21. package/dist/models/StoreAssetForAssetableRequest.d.ts +14 -2
  22. package/dist/models/StoreAssetForAssetableRequest.js +6 -6
  23. package/dist/models/StoreFrontendResource.d.ts +1 -1
  24. package/dist/models/StoreFrontendResource.js +1 -3
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +1 -3
  27. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +14 -2
  28. package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
  29. package/dist/models/StoreProductCategoryRequest.d.ts +12 -0
  30. package/dist/models/StoreProductCategoryRequest.js +4 -0
  31. package/dist/models/StoreProductChildRequestAssetsInner.d.ts +14 -2
  32. package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
  33. package/dist/models/StoreResource.d.ts +1 -1
  34. package/dist/models/StoreResource.js +3 -1
  35. package/dist/models/StoreSupplierRequest.d.ts +14 -2
  36. package/dist/models/StoreSupplierRequest.js +6 -6
  37. package/dist/models/UpdateAssetForAssetableRequest.d.ts +12 -0
  38. package/dist/models/UpdateAssetForAssetableRequest.js +4 -0
  39. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +14 -2
  40. package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
  41. package/dist/models/UpdateProductCategoryRequest.d.ts +12 -0
  42. package/dist/models/UpdateProductCategoryRequest.js +4 -0
  43. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +14 -2
  44. package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
  45. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  46. package/dist/models/UpdateSiteRequest.js +0 -4
  47. package/dist/models/UpdateSupplierRequest.d.ts +14 -2
  48. package/dist/models/UpdateSupplierRequest.js +6 -6
  49. package/dist/models/index.d.ts +0 -26
  50. package/dist/models/index.js +0 -26
  51. package/docs/AssetFrontendResource.md +4 -0
  52. package/docs/AssetLiteResource.md +5 -1
  53. package/docs/AssetResource.md +5 -1
  54. package/docs/AssetWithOverlayLinkResource.md +5 -1
  55. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  56. package/docs/SitePaymentConfigResource.md +0 -2
  57. package/docs/StoreAssetForAssetableRequest.md +4 -0
  58. package/docs/StoreOverlayTemplateAssetRequest.md +4 -0
  59. package/docs/StoreProductCategoryRequest.md +4 -0
  60. package/docs/StoreProductChildRequestAssetsInner.md +4 -0
  61. package/docs/StoreSupplierRequest.md +4 -0
  62. package/docs/UpdateAssetForAssetableRequest.md +4 -0
  63. package/docs/UpdateOverlayTemplateAssetRequest.md +4 -0
  64. package/docs/UpdateProductCategoryRequest.md +4 -0
  65. package/docs/UpdateProductChildRequestAssetsInner.md +4 -0
  66. package/docs/UpdateSiteRequest.md +0 -2
  67. package/docs/UpdateSupplierRequest.md +4 -0
  68. package/package.json +1 -1
  69. package/src/apis/index.ts +0 -2
  70. package/src/models/AddressFrontendResource.ts +2 -3
  71. package/src/models/AssetFrontendResource.ts +17 -0
  72. package/src/models/AssetLiteResource.ts +19 -2
  73. package/src/models/AssetResource.ts +19 -2
  74. package/src/models/AssetWithOverlayLinkResource.ts +19 -2
  75. package/src/models/ExternalApiLogResource.ts +3 -2
  76. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  77. package/src/models/SitePaymentConfigResource.ts +0 -9
  78. package/src/models/StoreAssetForAssetableRequest.ts +20 -6
  79. package/src/models/StoreFrontendResource.ts +2 -3
  80. package/src/models/StoreListResource.ts +2 -3
  81. package/src/models/StoreOverlayTemplateAssetRequest.ts +20 -6
  82. package/src/models/StoreProductCategoryRequest.ts +16 -0
  83. package/src/models/StoreProductChildRequestAssetsInner.ts +20 -6
  84. package/src/models/StoreResource.ts +3 -2
  85. package/src/models/StoreSupplierRequest.ts +20 -6
  86. package/src/models/UpdateAssetForAssetableRequest.ts +16 -0
  87. package/src/models/UpdateOverlayTemplateAssetRequest.ts +20 -6
  88. package/src/models/UpdateProductCategoryRequest.ts +16 -0
  89. package/src/models/UpdateProductChildRequestAssetsInner.ts +20 -6
  90. package/src/models/UpdateSiteRequest.ts +0 -9
  91. package/src/models/UpdateSupplierRequest.ts +20 -6
  92. package/src/models/index.ts +0 -26
  93. package/dist/apis/CartsApi.d.ts +0 -190
  94. package/dist/apis/CartsApi.js +0 -747
  95. package/dist/apis/CustomersApi.d.ts +0 -48
  96. package/dist/apis/CustomersApi.js +0 -196
  97. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  98. package/dist/models/AttachCouponCartRequest.js +0 -51
  99. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  100. package/dist/models/AttachItemCartRequest.js +0 -57
  101. package/dist/models/CartAddressType.d.ts +0 -25
  102. package/dist/models/CartAddressType.js +0 -51
  103. package/dist/models/CartItemListResource.d.ts +0 -51
  104. package/dist/models/CartItemListResource.js +0 -62
  105. package/dist/models/CartItemListResourceArrayResponse.d.ts +0 -33
  106. package/dist/models/CartItemListResourceArrayResponse.js +0 -50
  107. package/dist/models/CartListResource.d.ts +0 -101
  108. package/dist/models/CartListResource.js +0 -90
  109. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  110. package/dist/models/CartListResourceArrayResponse.js +0 -50
  111. package/dist/models/CartOrderSource.d.ts +0 -29
  112. package/dist/models/CartOrderSource.js +0 -55
  113. package/dist/models/CartResource.d.ts +0 -155
  114. package/dist/models/CartResource.js +0 -118
  115. package/dist/models/CartResourceArrayResponse.d.ts +0 -33
  116. package/dist/models/CartResourceArrayResponse.js +0 -50
  117. package/dist/models/CartStatus.d.ts +0 -26
  118. package/dist/models/CartStatus.js +0 -52
  119. package/dist/models/CustomerListResource.d.ts +0 -69
  120. package/dist/models/CustomerListResource.js +0 -72
  121. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  122. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  123. package/dist/models/CustomerResource.d.ts +0 -69
  124. package/dist/models/CustomerResource.js +0 -72
  125. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  126. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  127. package/dist/models/IndexCartRequest.d.ts +0 -154
  128. package/dist/models/IndexCartRequest.js +0 -105
  129. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  130. package/dist/models/IndexCustomerRequest.js +0 -83
  131. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  132. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  133. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  134. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  135. package/dist/models/StoreCartRequest.d.ts +0 -95
  136. package/dist/models/StoreCartRequest.js +0 -90
  137. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  138. package/dist/models/StoreCartRequestCustomer.js +0 -55
  139. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  140. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  141. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -74
  142. package/dist/models/StoreCartRequestShippingAddress.js +0 -63
  143. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  144. package/dist/models/StoreCustomerRequest.js +0 -65
  145. package/dist/models/UpdateCartRequest.d.ts +0 -70
  146. package/dist/models/UpdateCartRequest.js +0 -75
  147. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  148. package/dist/models/UpdateItemCartRequest.js +0 -53
  149. package/docs/AttachCouponCartRequest.md +0 -34
  150. package/docs/AttachItemCartRequest.md +0 -38
  151. package/docs/CartAddressType.md +0 -32
  152. package/docs/CartItemListResource.md +0 -40
  153. package/docs/CartItemListResourceArrayResponse.md +0 -34
  154. package/docs/CartListResource.md +0 -56
  155. package/docs/CartListResourceArrayResponse.md +0 -34
  156. package/docs/CartOrderSource.md +0 -32
  157. package/docs/CartResource.md +0 -74
  158. package/docs/CartResourceArrayResponse.md +0 -34
  159. package/docs/CartStatus.md +0 -32
  160. package/docs/CartsApi.md +0 -755
  161. package/docs/CustomerListResource.md +0 -46
  162. package/docs/CustomerListResourceArrayResponse.md +0 -34
  163. package/docs/CustomerResource.md +0 -46
  164. package/docs/CustomerResourceArrayResponse.md +0 -34
  165. package/docs/CustomersApi.md +0 -140
  166. package/docs/IndexCartRequest.md +0 -66
  167. package/docs/IndexCustomerRequest.md +0 -50
  168. package/docs/PaginatedCartListResourceResponse.md +0 -36
  169. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  170. package/docs/StoreCartRequest.md +0 -50
  171. package/docs/StoreCartRequestCustomer.md +0 -40
  172. package/docs/StoreCartRequestItemsInner.md +0 -38
  173. package/docs/StoreCartRequestShippingAddress.md +0 -48
  174. package/docs/StoreCustomerRequest.md +0 -42
  175. package/docs/UpdateCartRequest.md +0 -42
  176. package/docs/UpdateItemCartRequest.md +0 -36
  177. package/src/apis/CartsApi.ts +0 -626
  178. package/src/apis/CustomersApi.ts +0 -127
  179. package/src/models/AttachCouponCartRequest.ts +0 -66
  180. package/src/models/AttachItemCartRequest.ts +0 -83
  181. package/src/models/CartAddressType.ts +0 -53
  182. package/src/models/CartItemListResource.ts +0 -100
  183. package/src/models/CartItemListResourceArrayResponse.ts +0 -73
  184. package/src/models/CartListResource.ts +0 -183
  185. package/src/models/CartListResourceArrayResponse.ts +0 -73
  186. package/src/models/CartOrderSource.ts +0 -57
  187. package/src/models/CartResource.ts +0 -260
  188. package/src/models/CartResourceArrayResponse.ts +0 -73
  189. package/src/models/CartStatus.ts +0 -54
  190. package/src/models/CustomerListResource.ts +0 -126
  191. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  192. package/src/models/CustomerResource.ts +0 -126
  193. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  194. package/src/models/IndexCartRequest.ts +0 -224
  195. package/src/models/IndexCustomerRequest.ts +0 -152
  196. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  197. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  198. package/src/models/StoreCartRequest.ts +0 -171
  199. package/src/models/StoreCartRequestCustomer.ts +0 -89
  200. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  201. package/src/models/StoreCartRequestShippingAddress.ts +0 -121
  202. package/src/models/StoreCustomerRequest.ts +0 -101
  203. package/src/models/UpdateCartRequest.ts +0 -129
  204. package/src/models/UpdateItemCartRequest.ts +0 -74
@@ -1,127 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- CustomerResource,
19
- IndexCustomerRequest,
20
- PaginatedCustomerListResourceResponse,
21
- StoreCustomerRequest,
22
- } from '../models/index';
23
- import {
24
- CustomerResourceFromJSON,
25
- CustomerResourceToJSON,
26
- IndexCustomerRequestFromJSON,
27
- IndexCustomerRequestToJSON,
28
- PaginatedCustomerListResourceResponseFromJSON,
29
- PaginatedCustomerListResourceResponseToJSON,
30
- StoreCustomerRequestFromJSON,
31
- StoreCustomerRequestToJSON,
32
- } from '../models/index';
33
-
34
- export interface IndexCustomerOperationRequest {
35
- indexCustomerRequest?: IndexCustomerRequest;
36
- }
37
-
38
- export interface StoreCustomerOperationRequest {
39
- storeCustomerRequest?: StoreCustomerRequest;
40
- }
41
-
42
- /**
43
- *
44
- */
45
- export class CustomersApi extends runtime.BaseAPI {
46
-
47
- /**
48
- * Creates request options for indexCustomer without sending the request
49
- */
50
- async indexCustomerRequestOpts(requestParameters: IndexCustomerOperationRequest): Promise<runtime.RequestOpts> {
51
- const queryParameters: any = {};
52
-
53
- const headerParameters: runtime.HTTPHeaders = {};
54
-
55
- headerParameters['Content-Type'] = 'application/json';
56
-
57
-
58
- let urlPath = `/admin-api/customers/list`;
59
-
60
- return {
61
- path: urlPath,
62
- method: 'POST',
63
- headers: headerParameters,
64
- query: queryParameters,
65
- body: IndexCustomerRequestToJSON(requestParameters['indexCustomerRequest']),
66
- };
67
- }
68
-
69
- /**
70
- * Auto-generated: indexCustomer
71
- */
72
- async indexCustomerRaw(requestParameters: IndexCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedCustomerListResourceResponse>> {
73
- const requestOptions = await this.indexCustomerRequestOpts(requestParameters);
74
- const response = await this.request(requestOptions, initOverrides);
75
-
76
- return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedCustomerListResourceResponseFromJSON(jsonValue));
77
- }
78
-
79
- /**
80
- * Auto-generated: indexCustomer
81
- */
82
- async indexCustomer(requestParameters: IndexCustomerOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedCustomerListResourceResponse> {
83
- const response = await this.indexCustomerRaw(requestParameters, initOverrides);
84
- return await response.value();
85
- }
86
-
87
- /**
88
- * Creates request options for storeCustomer without sending the request
89
- */
90
- async storeCustomerRequestOpts(requestParameters: StoreCustomerOperationRequest): Promise<runtime.RequestOpts> {
91
- const queryParameters: any = {};
92
-
93
- const headerParameters: runtime.HTTPHeaders = {};
94
-
95
- headerParameters['Content-Type'] = 'application/json';
96
-
97
-
98
- let urlPath = `/admin-api/customers/create`;
99
-
100
- return {
101
- path: urlPath,
102
- method: 'POST',
103
- headers: headerParameters,
104
- query: queryParameters,
105
- body: StoreCustomerRequestToJSON(requestParameters['storeCustomerRequest']),
106
- };
107
- }
108
-
109
- /**
110
- * Auto-generated: storeCustomer
111
- */
112
- async storeCustomerRaw(requestParameters: StoreCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerResource>> {
113
- const requestOptions = await this.storeCustomerRequestOpts(requestParameters);
114
- const response = await this.request(requestOptions, initOverrides);
115
-
116
- return new runtime.JSONApiResponse(response, (jsonValue) => CustomerResourceFromJSON(jsonValue));
117
- }
118
-
119
- /**
120
- * Auto-generated: storeCustomer
121
- */
122
- async storeCustomer(requestParameters: StoreCustomerOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerResource> {
123
- const response = await this.storeCustomerRaw(requestParameters, initOverrides);
124
- return await response.value();
125
- }
126
-
127
- }
@@ -1,66 +0,0 @@
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 AttachCouponCartRequest
20
- */
21
- export interface AttachCouponCartRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof AttachCouponCartRequest
26
- */
27
- couponId: number;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the AttachCouponCartRequest interface.
32
- */
33
- export function instanceOfAttachCouponCartRequest(value: object): value is AttachCouponCartRequest {
34
- if (!('couponId' in value) || value['couponId'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function AttachCouponCartRequestFromJSON(json: any): AttachCouponCartRequest {
39
- return AttachCouponCartRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function AttachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponCartRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'couponId': json['coupon_id'],
49
- };
50
- }
51
-
52
- export function AttachCouponCartRequestToJSON(json: any): AttachCouponCartRequest {
53
- return AttachCouponCartRequestToJSONTyped(json, false);
54
- }
55
-
56
- export function AttachCouponCartRequestToJSONTyped(value?: AttachCouponCartRequest | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'coupon_id': value['couponId'],
64
- };
65
- }
66
-
@@ -1,83 +0,0 @@
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 AttachItemCartRequest
20
- */
21
- export interface AttachItemCartRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof AttachItemCartRequest
26
- */
27
- productChildId: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof AttachItemCartRequest
32
- */
33
- quantity: number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof AttachItemCartRequest
38
- */
39
- productPrice?: number | null;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the AttachItemCartRequest interface.
44
- */
45
- export function instanceOfAttachItemCartRequest(value: object): value is AttachItemCartRequest {
46
- if (!('productChildId' in value) || value['productChildId'] === undefined) return false;
47
- if (!('quantity' in value) || value['quantity'] === undefined) return false;
48
- return true;
49
- }
50
-
51
- export function AttachItemCartRequestFromJSON(json: any): AttachItemCartRequest {
52
- return AttachItemCartRequestFromJSONTyped(json, false);
53
- }
54
-
55
- export function AttachItemCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachItemCartRequest {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'productChildId': json['product_child_id'],
62
- 'quantity': json['quantity'],
63
- 'productPrice': json['product_price'] == null ? undefined : json['product_price'],
64
- };
65
- }
66
-
67
- export function AttachItemCartRequestToJSON(json: any): AttachItemCartRequest {
68
- return AttachItemCartRequestToJSONTyped(json, false);
69
- }
70
-
71
- export function AttachItemCartRequestToJSONTyped(value?: AttachItemCartRequest | null, ignoreDiscriminator: boolean = false): any {
72
- if (value == null) {
73
- return value;
74
- }
75
-
76
- return {
77
-
78
- 'product_child_id': value['productChildId'],
79
- 'quantity': value['quantity'],
80
- 'product_price': value['productPrice'],
81
- };
82
- }
83
-
@@ -1,53 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const CartAddressType = {
21
- Shipping: 'shipping',
22
- Billing: 'billing'
23
- } as const;
24
- export type CartAddressType = typeof CartAddressType[keyof typeof CartAddressType];
25
-
26
-
27
- export function instanceOfCartAddressType(value: any): boolean {
28
- for (const key in CartAddressType) {
29
- if (Object.prototype.hasOwnProperty.call(CartAddressType, key)) {
30
- if (CartAddressType[key as keyof typeof CartAddressType] === value) {
31
- return true;
32
- }
33
- }
34
- }
35
- return false;
36
- }
37
-
38
- export function CartAddressTypeFromJSON(json: any): CartAddressType {
39
- return CartAddressTypeFromJSONTyped(json, false);
40
- }
41
-
42
- export function CartAddressTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartAddressType {
43
- return json as CartAddressType;
44
- }
45
-
46
- export function CartAddressTypeToJSON(value?: CartAddressType | null): any {
47
- return value as any;
48
- }
49
-
50
- export function CartAddressTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CartAddressType {
51
- return value as CartAddressType;
52
- }
53
-
@@ -1,100 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { ProductChildListResource } from './ProductChildListResource';
17
- import {
18
- ProductChildListResourceFromJSON,
19
- ProductChildListResourceFromJSONTyped,
20
- ProductChildListResourceToJSON,
21
- ProductChildListResourceToJSONTyped,
22
- } from './ProductChildListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CartItemListResource
28
- */
29
- export interface CartItemListResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof CartItemListResource
34
- */
35
- id?: number | null;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof CartItemListResource
40
- */
41
- quantity: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof CartItemListResource
46
- */
47
- productPrice: number;
48
- /**
49
- *
50
- * @type {ProductChildListResource}
51
- * @memberof CartItemListResource
52
- */
53
- productChild: ProductChildListResource | null;
54
- }
55
-
56
- /**
57
- * Check if a given object implements the CartItemListResource interface.
58
- */
59
- export function instanceOfCartItemListResource(value: object): value is CartItemListResource {
60
- if (!('quantity' in value) || value['quantity'] === undefined) return false;
61
- if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
62
- if (!('productChild' in value) || value['productChild'] === undefined) return false;
63
- return true;
64
- }
65
-
66
- export function CartItemListResourceFromJSON(json: any): CartItemListResource {
67
- return CartItemListResourceFromJSONTyped(json, false);
68
- }
69
-
70
- export function CartItemListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartItemListResource {
71
- if (json == null) {
72
- return json;
73
- }
74
- return {
75
-
76
- 'id': json['id'] == null ? undefined : json['id'],
77
- 'quantity': json['quantity'],
78
- 'productPrice': json['product_price'],
79
- 'productChild': ProductChildListResourceFromJSON(json['product_child']),
80
- };
81
- }
82
-
83
- export function CartItemListResourceToJSON(json: any): CartItemListResource {
84
- return CartItemListResourceToJSONTyped(json, false);
85
- }
86
-
87
- export function CartItemListResourceToJSONTyped(value?: CartItemListResource | null, ignoreDiscriminator: boolean = false): any {
88
- if (value == null) {
89
- return value;
90
- }
91
-
92
- return {
93
-
94
- 'id': value['id'],
95
- 'quantity': value['quantity'],
96
- 'product_price': value['productPrice'],
97
- 'product_child': ProductChildListResourceToJSON(value['productChild']),
98
- };
99
- }
100
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { CartItemListResource } from './CartItemListResource';
17
- import {
18
- CartItemListResourceFromJSON,
19
- CartItemListResourceFromJSONTyped,
20
- CartItemListResourceToJSON,
21
- CartItemListResourceToJSONTyped,
22
- } from './CartItemListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CartItemListResourceArrayResponse
28
- */
29
- export interface CartItemListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<CartItemListResource>}
33
- * @memberof CartItemListResourceArrayResponse
34
- */
35
- data?: Array<CartItemListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the CartItemListResourceArrayResponse interface.
40
- */
41
- export function instanceOfCartItemListResourceArrayResponse(value: object): value is CartItemListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function CartItemListResourceArrayResponseFromJSON(json: any): CartItemListResourceArrayResponse {
46
- return CartItemListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CartItemListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartItemListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartItemListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function CartItemListResourceArrayResponseToJSON(json: any): CartItemListResourceArrayResponse {
60
- return CartItemListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function CartItemListResourceArrayResponseToJSONTyped(value?: CartItemListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(CartItemListResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,183 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { SiteLiteResource } from './SiteLiteResource';
17
- import {
18
- SiteLiteResourceFromJSON,
19
- SiteLiteResourceFromJSONTyped,
20
- SiteLiteResourceToJSON,
21
- SiteLiteResourceToJSONTyped,
22
- } from './SiteLiteResource';
23
- import type { CartItemListResource } from './CartItemListResource';
24
- import {
25
- CartItemListResourceFromJSON,
26
- CartItemListResourceFromJSONTyped,
27
- CartItemListResourceToJSON,
28
- CartItemListResourceToJSONTyped,
29
- } from './CartItemListResource';
30
- import type { CustomerListResource } from './CustomerListResource';
31
- import {
32
- CustomerListResourceFromJSON,
33
- CustomerListResourceFromJSONTyped,
34
- CustomerListResourceToJSON,
35
- CustomerListResourceToJSONTyped,
36
- } from './CustomerListResource';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface CartListResource
42
- */
43
- export interface CartListResource {
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof CartListResource
48
- */
49
- id?: number | null;
50
- /**
51
- *
52
- * @type {number}
53
- * @memberof CartListResource
54
- */
55
- siteId: number;
56
- /**
57
- *
58
- * @type {number}
59
- * @memberof CartListResource
60
- */
61
- customerId?: number | null;
62
- /**
63
- *
64
- * @type {string}
65
- * @memberof CartListResource
66
- */
67
- source: string;
68
- /**
69
- *
70
- * @type {Date}
71
- * @memberof CartListResource
72
- */
73
- expiryDate: Date;
74
- /**
75
- *
76
- * @type {Date}
77
- * @memberof CartListResource
78
- */
79
- checkoutCompletedAt?: Date | null;
80
- /**
81
- *
82
- * @type {Date}
83
- * @memberof CartListResource
84
- */
85
- createdAt?: Date | null;
86
- /**
87
- *
88
- * @type {SiteLiteResource}
89
- * @memberof CartListResource
90
- */
91
- site: SiteLiteResource | null;
92
- /**
93
- *
94
- * @type {CustomerListResource}
95
- * @memberof CartListResource
96
- */
97
- customer: CustomerListResource | null;
98
- /**
99
- *
100
- * @type {Array<CartItemListResource>}
101
- * @memberof CartListResource
102
- */
103
- cartItems: Array<CartItemListResource> | null;
104
- /**
105
- *
106
- * @type {number}
107
- * @memberof CartListResource
108
- */
109
- subtotal: number;
110
- /**
111
- *
112
- * @type {string}
113
- * @memberof CartListResource
114
- */
115
- status: string;
116
- }
117
-
118
- /**
119
- * Check if a given object implements the CartListResource interface.
120
- */
121
- export function instanceOfCartListResource(value: object): value is CartListResource {
122
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
123
- if (!('source' in value) || value['source'] === undefined) return false;
124
- if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
125
- if (!('site' in value) || value['site'] === undefined) return false;
126
- if (!('customer' in value) || value['customer'] === undefined) return false;
127
- if (!('cartItems' in value) || value['cartItems'] === undefined) return false;
128
- if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
129
- if (!('status' in value) || value['status'] === undefined) return false;
130
- return true;
131
- }
132
-
133
- export function CartListResourceFromJSON(json: any): CartListResource {
134
- return CartListResourceFromJSONTyped(json, false);
135
- }
136
-
137
- export function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResource {
138
- if (json == null) {
139
- return json;
140
- }
141
- return {
142
-
143
- 'id': json['id'] == null ? undefined : json['id'],
144
- 'siteId': json['site_id'],
145
- 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
146
- 'source': json['source'],
147
- 'expiryDate': (new Date(json['expiry_date'])),
148
- 'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
149
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
150
- 'site': SiteLiteResourceFromJSON(json['site']),
151
- 'customer': CustomerListResourceFromJSON(json['customer']),
152
- 'cartItems': (json['cart_items'] == null ? null : (json['cart_items'] as Array<any>).map(CartItemListResourceFromJSON)),
153
- 'subtotal': json['subtotal'],
154
- 'status': json['status'],
155
- };
156
- }
157
-
158
- export function CartListResourceToJSON(json: any): CartListResource {
159
- return CartListResourceToJSONTyped(json, false);
160
- }
161
-
162
- export function CartListResourceToJSONTyped(value?: CartListResource | null, ignoreDiscriminator: boolean = false): any {
163
- if (value == null) {
164
- return value;
165
- }
166
-
167
- return {
168
-
169
- 'id': value['id'],
170
- 'site_id': value['siteId'],
171
- 'customer_id': value['customerId'],
172
- 'source': value['source'],
173
- 'expiry_date': value['expiryDate'].toISOString(),
174
- 'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
175
- 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
176
- 'site': SiteLiteResourceToJSON(value['site']),
177
- 'customer': CustomerListResourceToJSON(value['customer']),
178
- 'cart_items': (value['cartItems'] == null ? null : (value['cartItems'] as Array<any>).map(CartItemListResourceToJSON)),
179
- 'subtotal': value['subtotal'],
180
- 'status': value['status'],
181
- };
182
- }
183
-