@digital8/lighting-illusions-ts-sdk 0.0.1775 → 0.0.1776
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +50 -0
- package/README.md +32 -2
- package/dist/apis/CartsApi.d.ts +94 -0
- package/dist/apis/CartsApi.js +375 -0
- package/dist/apis/CustomersApi.d.ts +48 -0
- package/dist/apis/CustomersApi.js +196 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/CartAddressType.d.ts +25 -0
- package/dist/models/CartAddressType.js +51 -0
- package/dist/models/CartItemListResource.d.ts +51 -0
- package/dist/models/CartItemListResource.js +62 -0
- package/dist/models/CartItemListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartItemListResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +101 -0
- package/dist/models/CartListResource.js +90 -0
- package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartListResourceArrayResponse.js +50 -0
- package/dist/models/CartOrderSource.d.ts +29 -0
- package/dist/models/CartOrderSource.js +55 -0
- package/dist/models/CartResource.d.ts +155 -0
- package/dist/models/CartResource.js +116 -0
- package/dist/models/CartResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartResourceArrayResponse.js +50 -0
- package/dist/models/CartStatus.d.ts +26 -0
- package/dist/models/CartStatus.js +52 -0
- package/dist/models/CustomerListResource.d.ts +69 -0
- package/dist/models/CustomerListResource.js +72 -0
- package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerListResourceArrayResponse.js +50 -0
- package/dist/models/CustomerResource.d.ts +69 -0
- package/dist/models/CustomerResource.js +72 -0
- package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerResourceArrayResponse.js +50 -0
- package/dist/models/IndexCartRequest.d.ts +154 -0
- package/dist/models/IndexCartRequest.js +105 -0
- package/dist/models/IndexCustomerRequest.d.ts +99 -0
- package/dist/models/IndexCustomerRequest.js +83 -0
- package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCartListResourceResponse.js +57 -0
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
- package/dist/models/SitePaymentConfigResource.d.ts +6 -0
- package/dist/models/SitePaymentConfigResource.js +4 -0
- package/dist/models/StoreCartRequest.d.ts +95 -0
- package/dist/models/StoreCartRequest.js +90 -0
- package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
- package/dist/models/StoreCartRequestCustomer.js +55 -0
- package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
- package/dist/models/StoreCartRequestItemsInner.js +57 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +74 -0
- package/dist/models/StoreCartRequestShippingAddress.js +63 -0
- package/dist/models/StoreCustomerRequest.d.ts +56 -0
- package/dist/models/StoreCustomerRequest.js +65 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +70 -0
- package/dist/models/UpdateCartRequest.js +75 -0
- package/dist/models/UpdateSiteRequest.d.ts +6 -0
- package/dist/models/UpdateSiteRequest.js +4 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/docs/CartAddressType.md +32 -0
- package/docs/CartItemListResource.md +40 -0
- package/docs/CartItemListResourceArrayResponse.md +34 -0
- package/docs/CartListResource.md +56 -0
- package/docs/CartListResourceArrayResponse.md +34 -0
- package/docs/CartOrderSource.md +32 -0
- package/docs/CartResource.md +74 -0
- package/docs/CartResourceArrayResponse.md +34 -0
- package/docs/CartStatus.md +32 -0
- package/docs/CartsApi.md +341 -0
- package/docs/CustomerListResource.md +46 -0
- package/docs/CustomerListResourceArrayResponse.md +34 -0
- package/docs/CustomerResource.md +46 -0
- package/docs/CustomerResourceArrayResponse.md +34 -0
- package/docs/CustomersApi.md +140 -0
- package/docs/IndexCartRequest.md +66 -0
- package/docs/IndexCustomerRequest.md +50 -0
- package/docs/PaginatedCartListResourceResponse.md +36 -0
- package/docs/PaginatedCustomerListResourceResponse.md +36 -0
- package/docs/SitePaymentConfigResource.md +2 -0
- package/docs/StoreCartRequest.md +50 -0
- package/docs/StoreCartRequestCustomer.md +40 -0
- package/docs/StoreCartRequestItemsInner.md +38 -0
- package/docs/StoreCartRequestShippingAddress.md +48 -0
- package/docs/StoreCustomerRequest.md +42 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateCartRequest.md +42 -0
- package/docs/UpdateSiteRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +284 -0
- package/src/apis/CustomersApi.ts +127 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +3 -2
- package/src/models/CartAddressType.ts +53 -0
- package/src/models/CartItemListResource.ts +100 -0
- package/src/models/CartItemListResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +183 -0
- package/src/models/CartListResourceArrayResponse.ts +73 -0
- package/src/models/CartOrderSource.ts +57 -0
- package/src/models/CartResource.ts +259 -0
- package/src/models/CartResourceArrayResponse.ts +73 -0
- package/src/models/CartStatus.ts +54 -0
- package/src/models/CustomerListResource.ts +126 -0
- package/src/models/CustomerListResourceArrayResponse.ts +73 -0
- package/src/models/CustomerResource.ts +126 -0
- package/src/models/CustomerResourceArrayResponse.ts +73 -0
- package/src/models/IndexCartRequest.ts +224 -0
- package/src/models/IndexCustomerRequest.ts +152 -0
- package/src/models/PaginatedCartListResourceResponse.ts +90 -0
- package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
- package/src/models/SitePaymentConfigResource.ts +9 -0
- package/src/models/StoreCartRequest.ts +171 -0
- package/src/models/StoreCartRequestCustomer.ts +89 -0
- package/src/models/StoreCartRequestItemsInner.ts +83 -0
- package/src/models/StoreCartRequestShippingAddress.ts +121 -0
- package/src/models/StoreCustomerRequest.ts +101 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateCartRequest.ts +129 -0
- package/src/models/UpdateSiteRequest.ts +9 -0
- package/src/models/index.ts +23 -0
|
@@ -0,0 +1,73 @@
|
|
|
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 { CartResource } from './CartResource';
|
|
17
|
+
import {
|
|
18
|
+
CartResourceFromJSON,
|
|
19
|
+
CartResourceFromJSONTyped,
|
|
20
|
+
CartResourceToJSON,
|
|
21
|
+
CartResourceToJSONTyped,
|
|
22
|
+
} from './CartResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CartResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CartResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CartResource>}
|
|
33
|
+
* @memberof CartResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CartResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CartResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCartResourceArrayResponse(value: object): value is CartResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CartResourceArrayResponseFromJSON(json: any): CartResourceArrayResponse {
|
|
46
|
+
return CartResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CartResourceArrayResponseToJSON(json: any): CartResourceArrayResponse {
|
|
60
|
+
return CartResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CartResourceArrayResponseToJSONTyped(value?: CartResourceArrayResponse | 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(CartResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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 CartStatus = {
|
|
21
|
+
Completed: 'completed',
|
|
22
|
+
Active: 'active',
|
|
23
|
+
Expired: 'expired'
|
|
24
|
+
} as const;
|
|
25
|
+
export type CartStatus = typeof CartStatus[keyof typeof CartStatus];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfCartStatus(value: any): boolean {
|
|
29
|
+
for (const key in CartStatus) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(CartStatus, key)) {
|
|
31
|
+
if (CartStatus[key as keyof typeof CartStatus] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function CartStatusFromJSON(json: any): CartStatus {
|
|
40
|
+
return CartStatusFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CartStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartStatus {
|
|
44
|
+
return json as CartStatus;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CartStatusToJSON(value?: CartStatus | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CartStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CartStatus {
|
|
52
|
+
return value as CartStatus;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerListResource
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerListResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CustomerListResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CustomerListResource
|
|
40
|
+
*/
|
|
41
|
+
firstName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomerListResource
|
|
46
|
+
*/
|
|
47
|
+
lastName: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CustomerListResource
|
|
52
|
+
*/
|
|
53
|
+
email: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CustomerListResource
|
|
58
|
+
*/
|
|
59
|
+
phone: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CustomerListResource
|
|
64
|
+
*/
|
|
65
|
+
siteId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {SiteLiteResource}
|
|
69
|
+
* @memberof CustomerListResource
|
|
70
|
+
*/
|
|
71
|
+
site: SiteLiteResource | null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CustomerListResource interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfCustomerListResource(value: object): value is CustomerListResource {
|
|
78
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
79
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
80
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
81
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
82
|
+
if (!('site' in value) || value['site'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CustomerListResourceFromJSON(json: any): CustomerListResource {
|
|
87
|
+
return CustomerListResourceFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function CustomerListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerListResource {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
97
|
+
'firstName': json['first_name'],
|
|
98
|
+
'lastName': json['last_name'],
|
|
99
|
+
'email': json['email'],
|
|
100
|
+
'phone': json['phone'],
|
|
101
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
102
|
+
'site': SiteLiteResourceFromJSON(json['site']),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function CustomerListResourceToJSON(json: any): CustomerListResource {
|
|
107
|
+
return CustomerListResourceToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function CustomerListResourceToJSONTyped(value?: CustomerListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'id': value['id'],
|
|
118
|
+
'first_name': value['firstName'],
|
|
119
|
+
'last_name': value['lastName'],
|
|
120
|
+
'email': value['email'],
|
|
121
|
+
'phone': value['phone'],
|
|
122
|
+
'site_id': value['siteId'],
|
|
123
|
+
'site': SiteLiteResourceToJSON(value['site']),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { CustomerListResource } from './CustomerListResource';
|
|
17
|
+
import {
|
|
18
|
+
CustomerListResourceFromJSON,
|
|
19
|
+
CustomerListResourceFromJSONTyped,
|
|
20
|
+
CustomerListResourceToJSON,
|
|
21
|
+
CustomerListResourceToJSONTyped,
|
|
22
|
+
} from './CustomerListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CustomerListResource>}
|
|
33
|
+
* @memberof CustomerListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CustomerListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CustomerListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCustomerListResourceArrayResponse(value: object): value is CustomerListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CustomerListResourceArrayResponseFromJSON(json: any): CustomerListResourceArrayResponse {
|
|
46
|
+
return CustomerListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CustomerListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CustomerListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CustomerListResourceArrayResponseToJSON(json: any): CustomerListResourceArrayResponse {
|
|
60
|
+
return CustomerListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CustomerListResourceArrayResponseToJSONTyped(value?: CustomerListResourceArrayResponse | 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(CustomerListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerResource
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CustomerResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CustomerResource
|
|
40
|
+
*/
|
|
41
|
+
firstName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomerResource
|
|
46
|
+
*/
|
|
47
|
+
lastName: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CustomerResource
|
|
52
|
+
*/
|
|
53
|
+
email: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CustomerResource
|
|
58
|
+
*/
|
|
59
|
+
phone: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CustomerResource
|
|
64
|
+
*/
|
|
65
|
+
siteId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {SiteLiteResource}
|
|
69
|
+
* @memberof CustomerResource
|
|
70
|
+
*/
|
|
71
|
+
site: SiteLiteResource | null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CustomerResource interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfCustomerResource(value: object): value is CustomerResource {
|
|
78
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
79
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
80
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
81
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
82
|
+
if (!('site' in value) || value['site'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CustomerResourceFromJSON(json: any): CustomerResource {
|
|
87
|
+
return CustomerResourceFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function CustomerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerResource {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
97
|
+
'firstName': json['first_name'],
|
|
98
|
+
'lastName': json['last_name'],
|
|
99
|
+
'email': json['email'],
|
|
100
|
+
'phone': json['phone'],
|
|
101
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
102
|
+
'site': SiteLiteResourceFromJSON(json['site']),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function CustomerResourceToJSON(json: any): CustomerResource {
|
|
107
|
+
return CustomerResourceToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function CustomerResourceToJSONTyped(value?: CustomerResource | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'id': value['id'],
|
|
118
|
+
'first_name': value['firstName'],
|
|
119
|
+
'last_name': value['lastName'],
|
|
120
|
+
'email': value['email'],
|
|
121
|
+
'phone': value['phone'],
|
|
122
|
+
'site_id': value['siteId'],
|
|
123
|
+
'site': SiteLiteResourceToJSON(value['site']),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { CustomerResource } from './CustomerResource';
|
|
17
|
+
import {
|
|
18
|
+
CustomerResourceFromJSON,
|
|
19
|
+
CustomerResourceFromJSONTyped,
|
|
20
|
+
CustomerResourceToJSON,
|
|
21
|
+
CustomerResourceToJSONTyped,
|
|
22
|
+
} from './CustomerResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CustomerResource>}
|
|
33
|
+
* @memberof CustomerResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CustomerResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CustomerResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCustomerResourceArrayResponse(value: object): value is CustomerResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CustomerResourceArrayResponseFromJSON(json: any): CustomerResourceArrayResponse {
|
|
46
|
+
return CustomerResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CustomerResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CustomerResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CustomerResourceArrayResponseToJSON(json: any): CustomerResourceArrayResponse {
|
|
60
|
+
return CustomerResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CustomerResourceArrayResponseToJSONTyped(value?: CustomerResourceArrayResponse | 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(CustomerResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|