@digital8/lighting-illusions-ts-sdk 0.0.1841 → 0.0.1842

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 (239) hide show
  1. package/.openapi-generator/FILES +0 -68
  2. package/README.md +2 -49
  3. package/dist/apis/index.d.ts +0 -2
  4. package/dist/apis/index.js +0 -2
  5. package/dist/models/AddressResource.d.ts +2 -2
  6. package/dist/models/AddressResource.js +4 -4
  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/MenuPosition.d.ts +0 -1
  18. package/dist/models/MenuPosition.js +1 -2
  19. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  20. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  21. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  22. package/dist/models/SitePaymentConfigResource.js +0 -4
  23. package/dist/models/StoreAssetForAssetableRequest.d.ts +14 -2
  24. package/dist/models/StoreAssetForAssetableRequest.js +6 -6
  25. package/dist/models/StoreMenuRequest.d.ts +0 -1
  26. package/dist/models/StoreMenuRequest.js +1 -2
  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 +1 -3
  35. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  36. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  37. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  38. package/dist/models/StoreSpecialDateResource.js +1 -3
  39. package/dist/models/StoreSupplierRequest.d.ts +14 -2
  40. package/dist/models/StoreSupplierRequest.js +6 -6
  41. package/dist/models/UpdateAssetForAssetableRequest.d.ts +12 -0
  42. package/dist/models/UpdateAssetForAssetableRequest.js +4 -0
  43. package/dist/models/UpdateMenuRequest.d.ts +0 -1
  44. package/dist/models/UpdateMenuRequest.js +1 -2
  45. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +14 -2
  46. package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
  47. package/dist/models/UpdateProductCategoryRequest.d.ts +12 -0
  48. package/dist/models/UpdateProductCategoryRequest.js +4 -0
  49. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +14 -2
  50. package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
  51. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  52. package/dist/models/UpdateSiteRequest.js +0 -4
  53. package/dist/models/UpdateSupplierRequest.d.ts +14 -2
  54. package/dist/models/UpdateSupplierRequest.js +6 -6
  55. package/dist/models/index.d.ts +0 -32
  56. package/dist/models/index.js +0 -32
  57. package/docs/AssetFrontendResource.md +4 -0
  58. package/docs/AssetLiteResource.md +5 -1
  59. package/docs/AssetResource.md +5 -1
  60. package/docs/AssetWithOverlayLinkResource.md +5 -1
  61. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  62. package/docs/SitePaymentConfigResource.md +0 -2
  63. package/docs/StoreAssetForAssetableRequest.md +4 -0
  64. package/docs/StoreOverlayTemplateAssetRequest.md +4 -0
  65. package/docs/StoreProductCategoryRequest.md +4 -0
  66. package/docs/StoreProductChildRequestAssetsInner.md +4 -0
  67. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  68. package/docs/StoreSpecialDateResource.md +1 -1
  69. package/docs/StoreSupplierRequest.md +4 -0
  70. package/docs/UpdateAssetForAssetableRequest.md +4 -0
  71. package/docs/UpdateOverlayTemplateAssetRequest.md +4 -0
  72. package/docs/UpdateProductCategoryRequest.md +4 -0
  73. package/docs/UpdateProductChildRequestAssetsInner.md +4 -0
  74. package/docs/UpdateSiteRequest.md +0 -2
  75. package/docs/UpdateSupplierRequest.md +4 -0
  76. package/package.json +1 -1
  77. package/src/apis/index.ts +0 -2
  78. package/src/models/AddressResource.ts +5 -5
  79. package/src/models/AssetFrontendResource.ts +17 -0
  80. package/src/models/AssetLiteResource.ts +19 -2
  81. package/src/models/AssetResource.ts +19 -2
  82. package/src/models/AssetWithOverlayLinkResource.ts +19 -2
  83. package/src/models/ExternalApiLogResource.ts +3 -2
  84. package/src/models/MenuPosition.ts +1 -2
  85. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  86. package/src/models/SitePaymentConfigResource.ts +0 -9
  87. package/src/models/StoreAssetForAssetableRequest.ts +20 -6
  88. package/src/models/StoreMenuRequest.ts +1 -2
  89. package/src/models/StoreOverlayTemplateAssetRequest.ts +20 -6
  90. package/src/models/StoreProductCategoryRequest.ts +16 -0
  91. package/src/models/StoreProductChildRequestAssetsInner.ts +20 -6
  92. package/src/models/StoreResource.ts +2 -3
  93. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  94. package/src/models/StoreSpecialDateResource.ts +3 -4
  95. package/src/models/StoreSupplierRequest.ts +20 -6
  96. package/src/models/UpdateAssetForAssetableRequest.ts +16 -0
  97. package/src/models/UpdateMenuRequest.ts +1 -2
  98. package/src/models/UpdateOverlayTemplateAssetRequest.ts +20 -6
  99. package/src/models/UpdateProductCategoryRequest.ts +16 -0
  100. package/src/models/UpdateProductChildRequestAssetsInner.ts +20 -6
  101. package/src/models/UpdateSiteRequest.ts +0 -9
  102. package/src/models/UpdateSupplierRequest.ts +20 -6
  103. package/src/models/index.ts +0 -32
  104. package/dist/apis/CartsApi.d.ts +0 -190
  105. package/dist/apis/CartsApi.js +0 -747
  106. package/dist/apis/CustomersApi.d.ts +0 -79
  107. package/dist/apis/CustomersApi.js +0 -316
  108. package/dist/models/AddressType.d.ts +0 -25
  109. package/dist/models/AddressType.js +0 -51
  110. package/dist/models/AdminCartResource.d.ts +0 -204
  111. package/dist/models/AdminCartResource.js +0 -147
  112. package/dist/models/AdminCartResourceArrayResponse.d.ts +0 -33
  113. package/dist/models/AdminCartResourceArrayResponse.js +0 -50
  114. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  115. package/dist/models/AttachCouponCartRequest.js +0 -51
  116. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  117. package/dist/models/AttachItemCartRequest.js +0 -57
  118. package/dist/models/CartListResource.d.ts +0 -143
  119. package/dist/models/CartListResource.js +0 -110
  120. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  121. package/dist/models/CartListResourceArrayResponse.js +0 -50
  122. package/dist/models/CartOrderSource.d.ts +0 -29
  123. package/dist/models/CartOrderSource.js +0 -55
  124. package/dist/models/CartStatus.d.ts +0 -26
  125. package/dist/models/CartStatus.js +0 -52
  126. package/dist/models/CustomerListResource.d.ts +0 -76
  127. package/dist/models/CustomerListResource.js +0 -77
  128. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  129. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  130. package/dist/models/CustomerResource.d.ts +0 -76
  131. package/dist/models/CustomerResource.js +0 -77
  132. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  133. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  134. package/dist/models/FrontendCartResource.d.ts +0 -162
  135. package/dist/models/FrontendCartResource.js +0 -125
  136. package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
  137. package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
  138. package/dist/models/IndexCartRequest.d.ts +0 -154
  139. package/dist/models/IndexCartRequest.js +0 -105
  140. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  141. package/dist/models/IndexCustomerRequest.js +0 -83
  142. package/dist/models/LiAddressResource.d.ts +0 -86
  143. package/dist/models/LiAddressResource.js +0 -83
  144. package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
  145. package/dist/models/LiAddressResourceArrayResponse.js +0 -50
  146. package/dist/models/LineItemListResource.d.ts +0 -51
  147. package/dist/models/LineItemListResource.js +0 -62
  148. package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
  149. package/dist/models/LineItemListResourceArrayResponse.js +0 -50
  150. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  151. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  152. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  153. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  154. package/dist/models/ShippingType.d.ts +0 -28
  155. package/dist/models/ShippingType.js +0 -54
  156. package/dist/models/StoreCartRequest.d.ts +0 -142
  157. package/dist/models/StoreCartRequest.js +0 -106
  158. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  159. package/dist/models/StoreCartRequestCustomer.js +0 -55
  160. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  161. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  162. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -68
  163. package/dist/models/StoreCartRequestShippingAddress.js +0 -61
  164. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  165. package/dist/models/StoreCustomerRequest.js +0 -65
  166. package/dist/models/UpdateCartRequest.d.ts +0 -117
  167. package/dist/models/UpdateCartRequest.js +0 -93
  168. package/dist/models/UpdateCustomerRequest.d.ts +0 -56
  169. package/dist/models/UpdateCustomerRequest.js +0 -63
  170. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  171. package/dist/models/UpdateItemCartRequest.js +0 -53
  172. package/docs/AddressType.md +0 -32
  173. package/docs/AdminCartResource.md +0 -90
  174. package/docs/AdminCartResourceArrayResponse.md +0 -34
  175. package/docs/AttachCouponCartRequest.md +0 -34
  176. package/docs/AttachItemCartRequest.md +0 -38
  177. package/docs/CartListResource.md +0 -70
  178. package/docs/CartListResourceArrayResponse.md +0 -34
  179. package/docs/CartOrderSource.md +0 -32
  180. package/docs/CartStatus.md +0 -32
  181. package/docs/CartsApi.md +0 -755
  182. package/docs/CustomerListResource.md +0 -48
  183. package/docs/CustomerListResourceArrayResponse.md +0 -34
  184. package/docs/CustomerResource.md +0 -48
  185. package/docs/CustomerResourceArrayResponse.md +0 -34
  186. package/docs/CustomersApi.md +0 -275
  187. package/docs/FrontendCartResource.md +0 -76
  188. package/docs/FrontendCartResourceArrayResponse.md +0 -34
  189. package/docs/IndexCartRequest.md +0 -66
  190. package/docs/IndexCustomerRequest.md +0 -50
  191. package/docs/LiAddressResource.md +0 -52
  192. package/docs/LiAddressResourceArrayResponse.md +0 -34
  193. package/docs/LineItemListResource.md +0 -40
  194. package/docs/LineItemListResourceArrayResponse.md +0 -34
  195. package/docs/PaginatedCartListResourceResponse.md +0 -36
  196. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  197. package/docs/ShippingType.md +0 -32
  198. package/docs/StoreCartRequest.md +0 -62
  199. package/docs/StoreCartRequestCustomer.md +0 -40
  200. package/docs/StoreCartRequestItemsInner.md +0 -38
  201. package/docs/StoreCartRequestShippingAddress.md +0 -46
  202. package/docs/StoreCustomerRequest.md +0 -42
  203. package/docs/UpdateCartRequest.md +0 -54
  204. package/docs/UpdateCustomerRequest.md +0 -42
  205. package/docs/UpdateItemCartRequest.md +0 -36
  206. package/src/apis/CartsApi.ts +0 -626
  207. package/src/apis/CustomersApi.ts +0 -232
  208. package/src/models/AddressType.ts +0 -53
  209. package/src/models/AdminCartResource.ts +0 -337
  210. package/src/models/AdminCartResourceArrayResponse.ts +0 -73
  211. package/src/models/AttachCouponCartRequest.ts +0 -66
  212. package/src/models/AttachItemCartRequest.ts +0 -83
  213. package/src/models/CartListResource.ts +0 -242
  214. package/src/models/CartListResourceArrayResponse.ts +0 -73
  215. package/src/models/CartOrderSource.ts +0 -57
  216. package/src/models/CartStatus.ts +0 -54
  217. package/src/models/CustomerListResource.ts +0 -142
  218. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  219. package/src/models/CustomerResource.ts +0 -142
  220. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  221. package/src/models/FrontendCartResource.ts +0 -277
  222. package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
  223. package/src/models/IndexCartRequest.ts +0 -224
  224. package/src/models/IndexCustomerRequest.ts +0 -152
  225. package/src/models/LiAddressResource.ts +0 -145
  226. package/src/models/LiAddressResourceArrayResponse.ts +0 -73
  227. package/src/models/LineItemListResource.ts +0 -100
  228. package/src/models/LineItemListResourceArrayResponse.ts +0 -73
  229. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  230. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  231. package/src/models/ShippingType.ts +0 -56
  232. package/src/models/StoreCartRequest.ts +0 -228
  233. package/src/models/StoreCartRequestCustomer.ts +0 -89
  234. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  235. package/src/models/StoreCartRequestShippingAddress.ts +0 -113
  236. package/src/models/StoreCustomerRequest.ts +0 -101
  237. package/src/models/UpdateCartRequest.ts +0 -187
  238. package/src/models/UpdateCustomerRequest.ts +0 -100
  239. package/src/models/UpdateItemCartRequest.ts +0 -74
@@ -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 LineItemListResource
28
- */
29
- export interface LineItemListResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof LineItemListResource
34
- */
35
- id?: number | null;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof LineItemListResource
40
- */
41
- quantity: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof LineItemListResource
46
- */
47
- productPrice: number;
48
- /**
49
- *
50
- * @type {ProductChildListResource}
51
- * @memberof LineItemListResource
52
- */
53
- productChild: ProductChildListResource | null;
54
- }
55
-
56
- /**
57
- * Check if a given object implements the LineItemListResource interface.
58
- */
59
- export function instanceOfLineItemListResource(value: object): value is LineItemListResource {
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 LineItemListResourceFromJSON(json: any): LineItemListResource {
67
- return LineItemListResourceFromJSONTyped(json, false);
68
- }
69
-
70
- export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemListResource {
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 LineItemListResourceToJSON(json: any): LineItemListResource {
84
- return LineItemListResourceToJSONTyped(json, false);
85
- }
86
-
87
- export function LineItemListResourceToJSONTyped(value?: LineItemListResource | 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 { LineItemListResource } from './LineItemListResource';
17
- import {
18
- LineItemListResourceFromJSON,
19
- LineItemListResourceFromJSONTyped,
20
- LineItemListResourceToJSON,
21
- LineItemListResourceToJSONTyped,
22
- } from './LineItemListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface LineItemListResourceArrayResponse
28
- */
29
- export interface LineItemListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<LineItemListResource>}
33
- * @memberof LineItemListResourceArrayResponse
34
- */
35
- data?: Array<LineItemListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the LineItemListResourceArrayResponse interface.
40
- */
41
- export function instanceOfLineItemListResourceArrayResponse(value: object): value is LineItemListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function LineItemListResourceArrayResponseFromJSON(json: any): LineItemListResourceArrayResponse {
46
- return LineItemListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function LineItemListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LineItemListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function LineItemListResourceArrayResponseToJSON(json: any): LineItemListResourceArrayResponse {
60
- return LineItemListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function LineItemListResourceArrayResponseToJSONTyped(value?: LineItemListResourceArrayResponse | 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(LineItemListResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,90 +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 { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { CartListResource } from './CartListResource';
24
- import {
25
- CartListResourceFromJSON,
26
- CartListResourceFromJSONTyped,
27
- CartListResourceToJSON,
28
- CartListResourceToJSONTyped,
29
- } from './CartListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedCartListResourceResponse
35
- */
36
- export interface PaginatedCartListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<CartListResource>}
40
- * @memberof PaginatedCartListResourceResponse
41
- */
42
- data: Array<CartListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedCartListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedCartListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedCartListResourceResponse(value: object): value is PaginatedCartListResourceResponse {
55
- if (!('data' in value) || value['data'] === undefined) return false;
56
- if (!('meta' in value) || value['meta'] === undefined) return false;
57
- return true;
58
- }
59
-
60
- export function PaginatedCartListResourceResponseFromJSON(json: any): PaginatedCartListResourceResponse {
61
- return PaginatedCartListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedCartListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCartListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(CartListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedCartListResourceResponseToJSON(json: any): PaginatedCartListResourceResponse {
76
- return PaginatedCartListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedCartListResourceResponseToJSONTyped(value?: PaginatedCartListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'data': ((value['data'] as Array<any>).map(CartListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,90 +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 { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { CustomerListResource } from './CustomerListResource';
24
- import {
25
- CustomerListResourceFromJSON,
26
- CustomerListResourceFromJSONTyped,
27
- CustomerListResourceToJSON,
28
- CustomerListResourceToJSONTyped,
29
- } from './CustomerListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedCustomerListResourceResponse
35
- */
36
- export interface PaginatedCustomerListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<CustomerListResource>}
40
- * @memberof PaginatedCustomerListResourceResponse
41
- */
42
- data: Array<CustomerListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedCustomerListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedCustomerListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedCustomerListResourceResponse(value: object): value is PaginatedCustomerListResourceResponse {
55
- if (!('data' in value) || value['data'] === undefined) return false;
56
- if (!('meta' in value) || value['meta'] === undefined) return false;
57
- return true;
58
- }
59
-
60
- export function PaginatedCustomerListResourceResponseFromJSON(json: any): PaginatedCustomerListResourceResponse {
61
- return PaginatedCustomerListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedCustomerListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCustomerListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(CustomerListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedCustomerListResourceResponseToJSON(json: any): PaginatedCustomerListResourceResponse {
76
- return PaginatedCustomerListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedCustomerListResourceResponseToJSONTyped(value?: PaginatedCustomerListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'data': ((value['data'] as Array<any>).map(CustomerListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,56 +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 ShippingType = {
21
- Pickup: 'pickup',
22
- Delivery: 'delivery',
23
- Express: 'express',
24
- Courier: 'courier',
25
- DontShip: 'dont_ship'
26
- } as const;
27
- export type ShippingType = typeof ShippingType[keyof typeof ShippingType];
28
-
29
-
30
- export function instanceOfShippingType(value: any): boolean {
31
- for (const key in ShippingType) {
32
- if (Object.prototype.hasOwnProperty.call(ShippingType, key)) {
33
- if (ShippingType[key as keyof typeof ShippingType] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
-
41
- export function ShippingTypeFromJSON(json: any): ShippingType {
42
- return ShippingTypeFromJSONTyped(json, false);
43
- }
44
-
45
- export function ShippingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShippingType {
46
- return json as ShippingType;
47
- }
48
-
49
- export function ShippingTypeToJSON(value?: ShippingType | null): any {
50
- return value as any;
51
- }
52
-
53
- export function ShippingTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ShippingType {
54
- return value as ShippingType;
55
- }
56
-
@@ -1,228 +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 { StoreCartRequestShippingAddress } from './StoreCartRequestShippingAddress';
17
- import {
18
- StoreCartRequestShippingAddressFromJSON,
19
- StoreCartRequestShippingAddressFromJSONTyped,
20
- StoreCartRequestShippingAddressToJSON,
21
- StoreCartRequestShippingAddressToJSONTyped,
22
- } from './StoreCartRequestShippingAddress';
23
- import type { StoreCartRequestCustomer } from './StoreCartRequestCustomer';
24
- import {
25
- StoreCartRequestCustomerFromJSON,
26
- StoreCartRequestCustomerFromJSONTyped,
27
- StoreCartRequestCustomerToJSON,
28
- StoreCartRequestCustomerToJSONTyped,
29
- } from './StoreCartRequestCustomer';
30
- import type { StoreCartRequestItemsInner } from './StoreCartRequestItemsInner';
31
- import {
32
- StoreCartRequestItemsInnerFromJSON,
33
- StoreCartRequestItemsInnerFromJSONTyped,
34
- StoreCartRequestItemsInnerToJSON,
35
- StoreCartRequestItemsInnerToJSONTyped,
36
- } from './StoreCartRequestItemsInner';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface StoreCartRequest
42
- */
43
- export interface StoreCartRequest {
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof StoreCartRequest
48
- */
49
- customerId?: number | null;
50
- /**
51
- *
52
- * @type {number}
53
- * @memberof StoreCartRequest
54
- */
55
- siteId: number;
56
- /**
57
- *
58
- * @type {string}
59
- * @memberof StoreCartRequest
60
- */
61
- sessionToken?: string | null;
62
- /**
63
- *
64
- * @type {string}
65
- * @memberof StoreCartRequest
66
- */
67
- paymentToken?: string | null;
68
- /**
69
- *
70
- * @type {StoreCartRequestSourceEnum}
71
- * @memberof StoreCartRequest
72
- */
73
- source: StoreCartRequestSourceEnum;
74
- /**
75
- *
76
- * @type {Array<StoreCartRequestItemsInner>}
77
- * @memberof StoreCartRequest
78
- */
79
- items?: Array<StoreCartRequestItemsInner>;
80
- /**
81
- *
82
- * @type {StoreCartRequestCustomer}
83
- * @memberof StoreCartRequest
84
- */
85
- customer?: StoreCartRequestCustomer;
86
- /**
87
- *
88
- * @type {StoreCartRequestShippingTypeEnum}
89
- * @memberof StoreCartRequest
90
- */
91
- shippingType?: StoreCartRequestShippingTypeEnum | null;
92
- /**
93
- *
94
- * @type {number}
95
- * @memberof StoreCartRequest
96
- */
97
- shippingSubtotal?: number | null;
98
- /**
99
- *
100
- * @type {boolean}
101
- * @memberof StoreCartRequest
102
- */
103
- overrideShipping?: boolean;
104
- /**
105
- *
106
- * @type {number}
107
- * @memberof StoreCartRequest
108
- */
109
- insuranceAmount?: number | null;
110
- /**
111
- *
112
- * @type {boolean}
113
- * @memberof StoreCartRequest
114
- */
115
- overrideInsurance?: boolean;
116
- /**
117
- *
118
- * @type {boolean}
119
- * @memberof StoreCartRequest
120
- */
121
- useAsBillingAddress?: boolean;
122
- /**
123
- *
124
- * @type {StoreCartRequestShippingAddress}
125
- * @memberof StoreCartRequest
126
- */
127
- shippingAddress?: StoreCartRequestShippingAddress;
128
- /**
129
- *
130
- * @type {StoreCartRequestShippingAddress}
131
- * @memberof StoreCartRequest
132
- */
133
- billingAddress?: StoreCartRequestShippingAddress;
134
- }
135
-
136
-
137
- /**
138
- * @export
139
- */
140
- export const StoreCartRequestSourceEnum = {
141
- Checkout: 'checkout',
142
- Admin: 'admin',
143
- Phone: 'phone',
144
- Email: 'email',
145
- Ebay: 'ebay',
146
- InStore: 'in_store'
147
- } as const;
148
- export type StoreCartRequestSourceEnum = typeof StoreCartRequestSourceEnum[keyof typeof StoreCartRequestSourceEnum];
149
-
150
- /**
151
- * @export
152
- */
153
- export const StoreCartRequestShippingTypeEnum = {
154
- Pickup: 'pickup',
155
- Delivery: 'delivery',
156
- Express: 'express',
157
- Courier: 'courier',
158
- DontShip: 'dont_ship'
159
- } as const;
160
- export type StoreCartRequestShippingTypeEnum = typeof StoreCartRequestShippingTypeEnum[keyof typeof StoreCartRequestShippingTypeEnum];
161
-
162
-
163
- /**
164
- * Check if a given object implements the StoreCartRequest interface.
165
- */
166
- export function instanceOfStoreCartRequest(value: object): value is StoreCartRequest {
167
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
168
- if (!('source' in value) || value['source'] === undefined) return false;
169
- return true;
170
- }
171
-
172
- export function StoreCartRequestFromJSON(json: any): StoreCartRequest {
173
- return StoreCartRequestFromJSONTyped(json, false);
174
- }
175
-
176
- export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequest {
177
- if (json == null) {
178
- return json;
179
- }
180
- return {
181
-
182
- 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
183
- 'siteId': json['site_id'],
184
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
185
- 'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
186
- 'source': json['source'],
187
- 'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(StoreCartRequestItemsInnerFromJSON)),
188
- 'customer': json['customer'] == null ? undefined : StoreCartRequestCustomerFromJSON(json['customer']),
189
- 'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
190
- 'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
191
- 'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
192
- 'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
193
- 'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
194
- 'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
195
- 'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
196
- 'billingAddress': json['billing_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['billing_address']),
197
- };
198
- }
199
-
200
- export function StoreCartRequestToJSON(json: any): StoreCartRequest {
201
- return StoreCartRequestToJSONTyped(json, false);
202
- }
203
-
204
- export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ignoreDiscriminator: boolean = false): any {
205
- if (value == null) {
206
- return value;
207
- }
208
-
209
- return {
210
-
211
- 'customer_id': value['customerId'],
212
- 'site_id': value['siteId'],
213
- 'session_token': value['sessionToken'],
214
- 'payment_token': value['paymentToken'],
215
- 'source': value['source'],
216
- 'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(StoreCartRequestItemsInnerToJSON)),
217
- 'customer': StoreCartRequestCustomerToJSON(value['customer']),
218
- 'shipping_type': value['shippingType'],
219
- 'shipping_subtotal': value['shippingSubtotal'],
220
- 'override_shipping': value['overrideShipping'],
221
- 'insurance_amount': value['insuranceAmount'],
222
- 'override_insurance': value['overrideInsurance'],
223
- 'use_as_billing_address': value['useAsBillingAddress'],
224
- 'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
225
- 'billing_address': StoreCartRequestShippingAddressToJSON(value['billingAddress']),
226
- };
227
- }
228
-