@digital8/lighting-illusions-ts-sdk 0.0.1805 → 0.0.1807

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 (169) hide show
  1. package/.openapi-generator/FILES +66 -0
  2. package/README.md +46 -2
  3. package/dist/apis/CartsApi.d.ts +190 -0
  4. package/dist/apis/CartsApi.js +747 -0
  5. package/dist/apis/CustomersApi.d.ts +48 -0
  6. package/dist/apis/CustomersApi.js +196 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/models/AddressFrontendResource.d.ts +1 -1
  10. package/dist/models/AddressFrontendResource.js +1 -3
  11. package/dist/models/AddressResource.d.ts +1 -1
  12. package/dist/models/AddressResource.js +3 -1
  13. package/dist/models/AddressType.d.ts +25 -0
  14. package/dist/models/AddressType.js +51 -0
  15. package/dist/models/AdminCartResource.d.ts +197 -0
  16. package/dist/models/AdminCartResource.js +140 -0
  17. package/dist/models/AdminCartResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/AdminCartResourceArrayResponse.js +50 -0
  19. package/dist/models/AttachCouponCartRequest.d.ts +32 -0
  20. package/dist/models/AttachCouponCartRequest.js +51 -0
  21. package/dist/models/AttachItemCartRequest.d.ts +44 -0
  22. package/dist/models/AttachItemCartRequest.js +57 -0
  23. package/dist/models/CartListResource.d.ts +137 -0
  24. package/dist/models/CartListResource.js +106 -0
  25. package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/CartListResourceArrayResponse.js +50 -0
  27. package/dist/models/CartOrderSource.d.ts +29 -0
  28. package/dist/models/CartOrderSource.js +55 -0
  29. package/dist/models/CartStatus.d.ts +26 -0
  30. package/dist/models/CartStatus.js +52 -0
  31. package/dist/models/CustomerListResource.d.ts +76 -0
  32. package/dist/models/CustomerListResource.js +77 -0
  33. package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/CustomerListResourceArrayResponse.js +50 -0
  35. package/dist/models/CustomerResource.d.ts +76 -0
  36. package/dist/models/CustomerResource.js +77 -0
  37. package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/CustomerResourceArrayResponse.js +50 -0
  39. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  40. package/dist/models/ExternalApiLogResource.js +3 -1
  41. package/dist/models/FrontendCartResource.d.ts +155 -0
  42. package/dist/models/FrontendCartResource.js +118 -0
  43. package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
  44. package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
  45. package/dist/models/IndexCartRequest.d.ts +154 -0
  46. package/dist/models/IndexCartRequest.js +105 -0
  47. package/dist/models/IndexCustomerRequest.d.ts +99 -0
  48. package/dist/models/IndexCustomerRequest.js +83 -0
  49. package/dist/models/LiAddressResource.d.ts +86 -0
  50. package/dist/models/LiAddressResource.js +83 -0
  51. package/dist/models/LiAddressResourceArrayResponse.d.ts +33 -0
  52. package/dist/models/LiAddressResourceArrayResponse.js +50 -0
  53. package/dist/models/LineItemListResource.d.ts +51 -0
  54. package/dist/models/LineItemListResource.js +62 -0
  55. package/dist/models/LineItemListResourceArrayResponse.d.ts +33 -0
  56. package/dist/models/LineItemListResourceArrayResponse.js +50 -0
  57. package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
  58. package/dist/models/PaginatedCartListResourceResponse.js +57 -0
  59. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
  60. package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
  61. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
  62. package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
  63. package/dist/models/ShippingType.d.ts +28 -0
  64. package/dist/models/ShippingType.js +54 -0
  65. package/dist/models/SitePaymentConfigResource.d.ts +6 -0
  66. package/dist/models/SitePaymentConfigResource.js +4 -0
  67. package/dist/models/StoreCartRequest.d.ts +136 -0
  68. package/dist/models/StoreCartRequest.js +110 -0
  69. package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
  70. package/dist/models/StoreCartRequestCustomer.js +55 -0
  71. package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
  72. package/dist/models/StoreCartRequestItemsInner.js +57 -0
  73. package/dist/models/StoreCartRequestShippingAddress.d.ts +74 -0
  74. package/dist/models/StoreCartRequestShippingAddress.js +63 -0
  75. package/dist/models/StoreCustomerRequest.d.ts +56 -0
  76. package/dist/models/StoreCustomerRequest.js +65 -0
  77. package/dist/models/StoreFrontendResource.d.ts +1 -1
  78. package/dist/models/StoreFrontendResource.js +1 -3
  79. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  80. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  81. package/dist/models/UpdateCartRequest.d.ts +111 -0
  82. package/dist/models/UpdateCartRequest.js +95 -0
  83. package/dist/models/UpdateItemCartRequest.d.ts +38 -0
  84. package/dist/models/UpdateItemCartRequest.js +53 -0
  85. package/dist/models/UpdateSiteRequest.d.ts +6 -0
  86. package/dist/models/UpdateSiteRequest.js +4 -0
  87. package/dist/models/index.d.ts +31 -0
  88. package/dist/models/index.js +31 -0
  89. package/docs/AddressType.md +32 -0
  90. package/docs/AdminCartResource.md +88 -0
  91. package/docs/AdminCartResourceArrayResponse.md +34 -0
  92. package/docs/AttachCouponCartRequest.md +34 -0
  93. package/docs/AttachItemCartRequest.md +38 -0
  94. package/docs/CartListResource.md +68 -0
  95. package/docs/CartListResourceArrayResponse.md +34 -0
  96. package/docs/CartOrderSource.md +32 -0
  97. package/docs/CartStatus.md +32 -0
  98. package/docs/CartsApi.md +755 -0
  99. package/docs/CustomerListResource.md +48 -0
  100. package/docs/CustomerListResourceArrayResponse.md +34 -0
  101. package/docs/CustomerResource.md +48 -0
  102. package/docs/CustomerResourceArrayResponse.md +34 -0
  103. package/docs/CustomersApi.md +140 -0
  104. package/docs/FrontendCartResource.md +74 -0
  105. package/docs/FrontendCartResourceArrayResponse.md +34 -0
  106. package/docs/IndexCartRequest.md +66 -0
  107. package/docs/IndexCustomerRequest.md +50 -0
  108. package/docs/LiAddressResource.md +52 -0
  109. package/docs/LiAddressResourceArrayResponse.md +34 -0
  110. package/docs/LineItemListResource.md +40 -0
  111. package/docs/LineItemListResourceArrayResponse.md +34 -0
  112. package/docs/PaginatedCartListResourceResponse.md +36 -0
  113. package/docs/PaginatedCustomerListResourceResponse.md +36 -0
  114. package/docs/ProductChildSiteDetailLiteResource.md +2 -0
  115. package/docs/ShippingType.md +32 -0
  116. package/docs/SitePaymentConfigResource.md +2 -0
  117. package/docs/StoreCartRequest.md +60 -0
  118. package/docs/StoreCartRequestCustomer.md +40 -0
  119. package/docs/StoreCartRequestItemsInner.md +38 -0
  120. package/docs/StoreCartRequestShippingAddress.md +48 -0
  121. package/docs/StoreCustomerRequest.md +42 -0
  122. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  123. package/docs/UpdateCartRequest.md +52 -0
  124. package/docs/UpdateItemCartRequest.md +36 -0
  125. package/docs/UpdateSiteRequest.md +2 -0
  126. package/package.json +1 -1
  127. package/src/apis/CartsApi.ts +626 -0
  128. package/src/apis/CustomersApi.ts +127 -0
  129. package/src/apis/index.ts +2 -0
  130. package/src/models/AddressFrontendResource.ts +2 -3
  131. package/src/models/AddressResource.ts +3 -2
  132. package/src/models/AddressType.ts +53 -0
  133. package/src/models/AdminCartResource.ts +320 -0
  134. package/src/models/AdminCartResourceArrayResponse.ts +73 -0
  135. package/src/models/AttachCouponCartRequest.ts +66 -0
  136. package/src/models/AttachItemCartRequest.ts +83 -0
  137. package/src/models/CartListResource.ts +233 -0
  138. package/src/models/CartListResourceArrayResponse.ts +73 -0
  139. package/src/models/CartOrderSource.ts +57 -0
  140. package/src/models/CartStatus.ts +54 -0
  141. package/src/models/CustomerListResource.ts +142 -0
  142. package/src/models/CustomerListResourceArrayResponse.ts +73 -0
  143. package/src/models/CustomerResource.ts +142 -0
  144. package/src/models/CustomerResourceArrayResponse.ts +73 -0
  145. package/src/models/ExternalApiLogResource.ts +3 -2
  146. package/src/models/FrontendCartResource.ts +260 -0
  147. package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
  148. package/src/models/IndexCartRequest.ts +224 -0
  149. package/src/models/IndexCustomerRequest.ts +152 -0
  150. package/src/models/LiAddressResource.ts +145 -0
  151. package/src/models/LiAddressResourceArrayResponse.ts +73 -0
  152. package/src/models/LineItemListResource.ts +100 -0
  153. package/src/models/LineItemListResourceArrayResponse.ts +73 -0
  154. package/src/models/PaginatedCartListResourceResponse.ts +90 -0
  155. package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
  156. package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
  157. package/src/models/ShippingType.ts +56 -0
  158. package/src/models/SitePaymentConfigResource.ts +9 -0
  159. package/src/models/StoreCartRequest.ts +223 -0
  160. package/src/models/StoreCartRequestCustomer.ts +89 -0
  161. package/src/models/StoreCartRequestItemsInner.ts +83 -0
  162. package/src/models/StoreCartRequestShippingAddress.ts +121 -0
  163. package/src/models/StoreCustomerRequest.ts +101 -0
  164. package/src/models/StoreFrontendResource.ts +2 -3
  165. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  166. package/src/models/UpdateCartRequest.ts +181 -0
  167. package/src/models/UpdateItemCartRequest.ts +74 -0
  168. package/src/models/UpdateSiteRequest.ts +9 -0
  169. package/src/models/index.ts +31 -0
@@ -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 { CartListResource } from './CartListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CartListResourceArrayResponse
17
+ */
18
+ export interface CartListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<CartListResource>}
22
+ * @memberof CartListResourceArrayResponse
23
+ */
24
+ data?: Array<CartListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CartListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfCartListResourceArrayResponse(value: object): value is CartListResourceArrayResponse;
30
+ export declare function CartListResourceArrayResponseFromJSON(json: any): CartListResourceArrayResponse;
31
+ export declare function CartListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResourceArrayResponse;
32
+ export declare function CartListResourceArrayResponseToJSON(json: any): CartListResourceArrayResponse;
33
+ export declare function CartListResourceArrayResponseToJSONTyped(value?: CartListResourceArrayResponse | 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.instanceOfCartListResourceArrayResponse = instanceOfCartListResourceArrayResponse;
17
+ exports.CartListResourceArrayResponseFromJSON = CartListResourceArrayResponseFromJSON;
18
+ exports.CartListResourceArrayResponseFromJSONTyped = CartListResourceArrayResponseFromJSONTyped;
19
+ exports.CartListResourceArrayResponseToJSON = CartListResourceArrayResponseToJSON;
20
+ exports.CartListResourceArrayResponseToJSONTyped = CartListResourceArrayResponseToJSONTyped;
21
+ var CartListResource_1 = require("./CartListResource");
22
+ /**
23
+ * Check if a given object implements the CartListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfCartListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function CartListResourceArrayResponseFromJSON(json) {
29
+ return CartListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function CartListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(CartListResource_1.CartListResourceFromJSON)),
37
+ };
38
+ }
39
+ function CartListResourceArrayResponseToJSON(json) {
40
+ return CartListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function CartListResourceArrayResponseToJSONTyped(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(CartListResource_1.CartListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,29 @@
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
+ */
16
+ export declare const CartOrderSource: {
17
+ readonly Checkout: "checkout";
18
+ readonly Admin: "admin";
19
+ readonly Phone: "phone";
20
+ readonly Email: "email";
21
+ readonly Ebay: "ebay";
22
+ readonly InStore: "in_store";
23
+ };
24
+ export type CartOrderSource = typeof CartOrderSource[keyof typeof CartOrderSource];
25
+ export declare function instanceOfCartOrderSource(value: any): boolean;
26
+ export declare function CartOrderSourceFromJSON(json: any): CartOrderSource;
27
+ export declare function CartOrderSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartOrderSource;
28
+ export declare function CartOrderSourceToJSON(value?: CartOrderSource | null): any;
29
+ export declare function CartOrderSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): CartOrderSource;
@@ -0,0 +1,55 @@
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.CartOrderSource = void 0;
17
+ exports.instanceOfCartOrderSource = instanceOfCartOrderSource;
18
+ exports.CartOrderSourceFromJSON = CartOrderSourceFromJSON;
19
+ exports.CartOrderSourceFromJSONTyped = CartOrderSourceFromJSONTyped;
20
+ exports.CartOrderSourceToJSON = CartOrderSourceToJSON;
21
+ exports.CartOrderSourceToJSONTyped = CartOrderSourceToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.CartOrderSource = {
27
+ Checkout: 'checkout',
28
+ Admin: 'admin',
29
+ Phone: 'phone',
30
+ Email: 'email',
31
+ Ebay: 'ebay',
32
+ InStore: 'in_store'
33
+ };
34
+ function instanceOfCartOrderSource(value) {
35
+ for (var key in exports.CartOrderSource) {
36
+ if (Object.prototype.hasOwnProperty.call(exports.CartOrderSource, key)) {
37
+ if (exports.CartOrderSource[key] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+ function CartOrderSourceFromJSON(json) {
45
+ return CartOrderSourceFromJSONTyped(json, false);
46
+ }
47
+ function CartOrderSourceFromJSONTyped(json, ignoreDiscriminator) {
48
+ return json;
49
+ }
50
+ function CartOrderSourceToJSON(value) {
51
+ return value;
52
+ }
53
+ function CartOrderSourceToJSONTyped(value, ignoreDiscriminator) {
54
+ return value;
55
+ }
@@ -0,0 +1,26 @@
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
+ */
16
+ export declare const CartStatus: {
17
+ readonly Completed: "completed";
18
+ readonly Active: "active";
19
+ readonly Expired: "expired";
20
+ };
21
+ export type CartStatus = typeof CartStatus[keyof typeof CartStatus];
22
+ export declare function instanceOfCartStatus(value: any): boolean;
23
+ export declare function CartStatusFromJSON(json: any): CartStatus;
24
+ export declare function CartStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartStatus;
25
+ export declare function CartStatusToJSON(value?: CartStatus | null): any;
26
+ export declare function CartStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CartStatus;
@@ -0,0 +1,52 @@
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.CartStatus = void 0;
17
+ exports.instanceOfCartStatus = instanceOfCartStatus;
18
+ exports.CartStatusFromJSON = CartStatusFromJSON;
19
+ exports.CartStatusFromJSONTyped = CartStatusFromJSONTyped;
20
+ exports.CartStatusToJSON = CartStatusToJSON;
21
+ exports.CartStatusToJSONTyped = CartStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.CartStatus = {
27
+ Completed: 'completed',
28
+ Active: 'active',
29
+ Expired: 'expired'
30
+ };
31
+ function instanceOfCartStatus(value) {
32
+ for (var key in exports.CartStatus) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.CartStatus, key)) {
34
+ if (exports.CartStatus[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function CartStatusFromJSON(json) {
42
+ return CartStatusFromJSONTyped(json, false);
43
+ }
44
+ function CartStatusFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function CartStatusToJSON(value) {
48
+ return value;
49
+ }
50
+ function CartStatusToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,76 @@
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 { SiteLiteResource } from './SiteLiteResource';
13
+ import type { LiAddressResource } from './LiAddressResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CustomerListResource
18
+ */
19
+ export interface CustomerListResource {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof CustomerListResource
24
+ */
25
+ id?: number | null;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof CustomerListResource
30
+ */
31
+ firstName: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CustomerListResource
36
+ */
37
+ lastName: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof CustomerListResource
42
+ */
43
+ email: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof CustomerListResource
48
+ */
49
+ phone: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof CustomerListResource
54
+ */
55
+ siteId?: string | null;
56
+ /**
57
+ *
58
+ * @type {SiteLiteResource}
59
+ * @memberof CustomerListResource
60
+ */
61
+ site: SiteLiteResource | null;
62
+ /**
63
+ *
64
+ * @type {Array<LiAddressResource>}
65
+ * @memberof CustomerListResource
66
+ */
67
+ addresses: Array<LiAddressResource> | null;
68
+ }
69
+ /**
70
+ * Check if a given object implements the CustomerListResource interface.
71
+ */
72
+ export declare function instanceOfCustomerListResource(value: object): value is CustomerListResource;
73
+ export declare function CustomerListResourceFromJSON(json: any): CustomerListResource;
74
+ export declare function CustomerListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerListResource;
75
+ export declare function CustomerListResourceToJSON(json: any): CustomerListResource;
76
+ export declare function CustomerListResourceToJSONTyped(value?: CustomerListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCustomerListResource = instanceOfCustomerListResource;
17
+ exports.CustomerListResourceFromJSON = CustomerListResourceFromJSON;
18
+ exports.CustomerListResourceFromJSONTyped = CustomerListResourceFromJSONTyped;
19
+ exports.CustomerListResourceToJSON = CustomerListResourceToJSON;
20
+ exports.CustomerListResourceToJSONTyped = CustomerListResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
22
+ var LiAddressResource_1 = require("./LiAddressResource");
23
+ /**
24
+ * Check if a given object implements the CustomerListResource interface.
25
+ */
26
+ function instanceOfCustomerListResource(value) {
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('email' in value) || value['email'] === undefined)
32
+ return false;
33
+ if (!('phone' in value) || value['phone'] === undefined)
34
+ return false;
35
+ if (!('site' in value) || value['site'] === undefined)
36
+ return false;
37
+ if (!('addresses' in value) || value['addresses'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function CustomerListResourceFromJSON(json) {
42
+ return CustomerListResourceFromJSONTyped(json, false);
43
+ }
44
+ function CustomerListResourceFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'] == null ? undefined : json['id'],
50
+ 'firstName': json['first_name'],
51
+ 'lastName': json['last_name'],
52
+ 'email': json['email'],
53
+ 'phone': json['phone'],
54
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
55
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
56
+ 'addresses': (json['addresses'] == null ? null : json['addresses'].map(LiAddressResource_1.LiAddressResourceFromJSON)),
57
+ };
58
+ }
59
+ function CustomerListResourceToJSON(json) {
60
+ return CustomerListResourceToJSONTyped(json, false);
61
+ }
62
+ function CustomerListResourceToJSONTyped(value, ignoreDiscriminator) {
63
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'id': value['id'],
69
+ 'first_name': value['firstName'],
70
+ 'last_name': value['lastName'],
71
+ 'email': value['email'],
72
+ 'phone': value['phone'],
73
+ 'site_id': value['siteId'],
74
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
75
+ 'addresses': (value['addresses'] == null ? null : value['addresses'].map(LiAddressResource_1.LiAddressResourceToJSON)),
76
+ };
77
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CustomerListResource } from './CustomerListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CustomerListResourceArrayResponse
17
+ */
18
+ export interface CustomerListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<CustomerListResource>}
22
+ * @memberof CustomerListResourceArrayResponse
23
+ */
24
+ data?: Array<CustomerListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CustomerListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfCustomerListResourceArrayResponse(value: object): value is CustomerListResourceArrayResponse;
30
+ export declare function CustomerListResourceArrayResponseFromJSON(json: any): CustomerListResourceArrayResponse;
31
+ export declare function CustomerListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerListResourceArrayResponse;
32
+ export declare function CustomerListResourceArrayResponseToJSON(json: any): CustomerListResourceArrayResponse;
33
+ export declare function CustomerListResourceArrayResponseToJSONTyped(value?: CustomerListResourceArrayResponse | 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.instanceOfCustomerListResourceArrayResponse = instanceOfCustomerListResourceArrayResponse;
17
+ exports.CustomerListResourceArrayResponseFromJSON = CustomerListResourceArrayResponseFromJSON;
18
+ exports.CustomerListResourceArrayResponseFromJSONTyped = CustomerListResourceArrayResponseFromJSONTyped;
19
+ exports.CustomerListResourceArrayResponseToJSON = CustomerListResourceArrayResponseToJSON;
20
+ exports.CustomerListResourceArrayResponseToJSONTyped = CustomerListResourceArrayResponseToJSONTyped;
21
+ var CustomerListResource_1 = require("./CustomerListResource");
22
+ /**
23
+ * Check if a given object implements the CustomerListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfCustomerListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function CustomerListResourceArrayResponseFromJSON(json) {
29
+ return CustomerListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function CustomerListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(CustomerListResource_1.CustomerListResourceFromJSON)),
37
+ };
38
+ }
39
+ function CustomerListResourceArrayResponseToJSON(json) {
40
+ return CustomerListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function CustomerListResourceArrayResponseToJSONTyped(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(CustomerListResource_1.CustomerListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,76 @@
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 { SiteLiteResource } from './SiteLiteResource';
13
+ import type { LiAddressResource } from './LiAddressResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CustomerResource
18
+ */
19
+ export interface CustomerResource {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof CustomerResource
24
+ */
25
+ id?: number | null;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof CustomerResource
30
+ */
31
+ firstName: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CustomerResource
36
+ */
37
+ lastName: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof CustomerResource
42
+ */
43
+ email: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof CustomerResource
48
+ */
49
+ phone: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof CustomerResource
54
+ */
55
+ siteId?: string | null;
56
+ /**
57
+ *
58
+ * @type {SiteLiteResource}
59
+ * @memberof CustomerResource
60
+ */
61
+ site: SiteLiteResource | null;
62
+ /**
63
+ *
64
+ * @type {Array<LiAddressResource>}
65
+ * @memberof CustomerResource
66
+ */
67
+ addresses: Array<LiAddressResource> | null;
68
+ }
69
+ /**
70
+ * Check if a given object implements the CustomerResource interface.
71
+ */
72
+ export declare function instanceOfCustomerResource(value: object): value is CustomerResource;
73
+ export declare function CustomerResourceFromJSON(json: any): CustomerResource;
74
+ export declare function CustomerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerResource;
75
+ export declare function CustomerResourceToJSON(json: any): CustomerResource;
76
+ export declare function CustomerResourceToJSONTyped(value?: CustomerResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCustomerResource = instanceOfCustomerResource;
17
+ exports.CustomerResourceFromJSON = CustomerResourceFromJSON;
18
+ exports.CustomerResourceFromJSONTyped = CustomerResourceFromJSONTyped;
19
+ exports.CustomerResourceToJSON = CustomerResourceToJSON;
20
+ exports.CustomerResourceToJSONTyped = CustomerResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
22
+ var LiAddressResource_1 = require("./LiAddressResource");
23
+ /**
24
+ * Check if a given object implements the CustomerResource interface.
25
+ */
26
+ function instanceOfCustomerResource(value) {
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('email' in value) || value['email'] === undefined)
32
+ return false;
33
+ if (!('phone' in value) || value['phone'] === undefined)
34
+ return false;
35
+ if (!('site' in value) || value['site'] === undefined)
36
+ return false;
37
+ if (!('addresses' in value) || value['addresses'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function CustomerResourceFromJSON(json) {
42
+ return CustomerResourceFromJSONTyped(json, false);
43
+ }
44
+ function CustomerResourceFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'] == null ? undefined : json['id'],
50
+ 'firstName': json['first_name'],
51
+ 'lastName': json['last_name'],
52
+ 'email': json['email'],
53
+ 'phone': json['phone'],
54
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
55
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
56
+ 'addresses': (json['addresses'] == null ? null : json['addresses'].map(LiAddressResource_1.LiAddressResourceFromJSON)),
57
+ };
58
+ }
59
+ function CustomerResourceToJSON(json) {
60
+ return CustomerResourceToJSONTyped(json, false);
61
+ }
62
+ function CustomerResourceToJSONTyped(value, ignoreDiscriminator) {
63
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'id': value['id'],
69
+ 'first_name': value['firstName'],
70
+ 'last_name': value['lastName'],
71
+ 'email': value['email'],
72
+ 'phone': value['phone'],
73
+ 'site_id': value['siteId'],
74
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
75
+ 'addresses': (value['addresses'] == null ? null : value['addresses'].map(LiAddressResource_1.LiAddressResourceToJSON)),
76
+ };
77
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CustomerResource } from './CustomerResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CustomerResourceArrayResponse
17
+ */
18
+ export interface CustomerResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<CustomerResource>}
22
+ * @memberof CustomerResourceArrayResponse
23
+ */
24
+ data?: Array<CustomerResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CustomerResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfCustomerResourceArrayResponse(value: object): value is CustomerResourceArrayResponse;
30
+ export declare function CustomerResourceArrayResponseFromJSON(json: any): CustomerResourceArrayResponse;
31
+ export declare function CustomerResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerResourceArrayResponse;
32
+ export declare function CustomerResourceArrayResponseToJSON(json: any): CustomerResourceArrayResponse;
33
+ export declare function CustomerResourceArrayResponseToJSONTyped(value?: CustomerResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;