@digital8/lighting-illusions-ts-sdk 0.0.2465 → 0.0.2466
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 +68 -0
- package/README.md +2 -2
- package/dist/apis/AdminsApi.d.ts +109 -0
- package/dist/apis/AdminsApi.js +453 -0
- package/dist/apis/AuthApi.d.ts +67 -0
- package/dist/apis/AuthApi.js +299 -0
- package/dist/apis/CustomersApi.d.ts +72 -1
- package/dist/apis/CustomersApi.js +289 -0
- package/dist/apis/PermissionsApi.d.ts +51 -0
- package/dist/apis/PermissionsApi.js +216 -0
- package/dist/apis/RolesApi.d.ts +133 -0
- package/dist/apis/RolesApi.js +551 -0
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/AddressFrontendResource.d.ts +18 -0
- package/dist/models/AddressFrontendResource.js +8 -0
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- package/dist/models/AddressType.d.ts +2 -0
- package/dist/models/AddressType.js +3 -1
- package/dist/models/AdminListResource.d.ts +52 -0
- package/dist/models/AdminListResource.js +64 -0
- package/dist/models/AdminListResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminListResourceArrayResponse.js +50 -0
- package/dist/models/AdminLiteResource.d.ts +39 -0
- package/dist/models/AdminLiteResource.js +56 -0
- package/dist/models/AdminLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminLiteResourceArrayResponse.js +50 -0
- package/dist/models/AdminLoginResponseResource.d.ts +39 -0
- package/dist/models/AdminLoginResponseResource.js +56 -0
- package/dist/models/AdminLoginResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminLoginResponseResourceArrayResponse.js +50 -0
- package/dist/models/AdminNoteResource.d.ts +3 -3
- package/dist/models/AdminNoteResource.js +3 -3
- package/dist/models/AdminOrderResource.d.ts +3 -3
- package/dist/models/AdminOrderResource.js +3 -3
- package/dist/models/AdminResource.d.ts +64 -0
- package/dist/models/AdminResource.js +70 -0
- package/dist/models/AdminResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminResourceArrayResponse.js +50 -0
- package/dist/models/AdminUserLiteResource.d.ts +1 -1
- package/dist/models/AdminUserLiteResource.js +3 -1
- package/dist/models/AppliedCouponResource.d.ts +0 -30
- package/dist/models/AppliedCouponResource.js +0 -20
- package/dist/models/AttachAdminsToRoleRequest.d.ts +32 -0
- package/dist/models/AttachAdminsToRoleRequest.js +51 -0
- package/dist/models/AttachPermissionsToRoleRequest.d.ts +32 -0
- package/dist/models/AttachPermissionsToRoleRequest.js +51 -0
- package/dist/models/AttachRolesToAdminRequest.d.ts +32 -0
- package/dist/models/AttachRolesToAdminRequest.js +51 -0
- package/dist/models/CartResource.d.ts +3 -3
- package/dist/models/CartResource.js +3 -3
- package/dist/models/CheckEmailFrontendResource.d.ts +32 -0
- package/dist/models/CheckEmailFrontendResource.js +51 -0
- package/dist/models/CheckEmailFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/CheckEmailFrontendResourceArrayResponse.js +50 -0
- package/dist/models/CreateAdminUserRequest.d.ts +56 -0
- package/dist/models/CreateAdminUserRequest.js +65 -0
- package/dist/models/CreateCustomerAddressRequest.d.ts +90 -0
- package/dist/models/CreateCustomerAddressRequest.js +83 -0
- package/dist/models/CreateCustomerRequest.d.ts +24 -6
- package/dist/models/CreateCustomerRequest.js +12 -6
- package/dist/models/CreateRoleRequest.d.ts +38 -0
- package/dist/models/CreateRoleRequest.js +55 -0
- package/dist/models/CustomerAuthResponseResource.d.ts +39 -0
- package/dist/models/CustomerAuthResponseResource.js +56 -0
- package/dist/models/CustomerAuthResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerAuthResponseResourceArrayResponse.js +50 -0
- package/dist/models/CustomerFrontendResource.d.ts +70 -0
- package/dist/models/CustomerFrontendResource.js +75 -0
- package/dist/models/CustomerFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerFrontendResourceArrayResponse.js +50 -0
- package/dist/models/CustomerListResource.d.ts +27 -8
- package/dist/models/CustomerListResource.js +25 -13
- package/dist/models/CustomerResource.d.ts +45 -11
- package/dist/models/CustomerResource.js +37 -16
- package/dist/models/CustomerSocialLinkableResource.d.ts +38 -0
- package/dist/models/CustomerSocialLinkableResource.js +55 -0
- package/dist/models/CustomerSocialLinkableResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerSocialLinkableResourceArrayResponse.js +50 -0
- package/dist/models/CustomerSocialProviderLiteResource.d.ts +50 -0
- package/dist/models/CustomerSocialProviderLiteResource.js +61 -0
- package/dist/models/CustomerSocialProviderLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerSocialProviderLiteResourceArrayResponse.js +50 -0
- package/dist/models/CustomerType.d.ts +25 -0
- package/dist/models/CustomerType.js +51 -0
- package/dist/models/ForgotPasswordAdminRequest.d.ts +32 -0
- package/dist/models/ForgotPasswordAdminRequest.js +51 -0
- package/dist/models/FrontendCartResource.d.ts +3 -9
- package/dist/models/FrontendCartResource.js +3 -7
- package/dist/models/FrontendOrderResource.d.ts +3 -3
- package/dist/models/FrontendOrderResource.js +3 -3
- package/dist/models/LoginAdminRequest.d.ts +38 -0
- package/dist/models/LoginAdminRequest.js +55 -0
- package/dist/models/NetsuiteSyncLiteResource.d.ts +44 -0
- package/dist/models/NetsuiteSyncLiteResource.js +59 -0
- package/dist/models/NetsuiteSyncLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/NetsuiteSyncLiteResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/PaginatedAdminListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAdminListResourceResponse.js +57 -0
- package/dist/models/PaginatedAdminLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAdminLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedPermissionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedPermissionListResourceResponse.js +57 -0
- package/dist/models/PaginatedPermissionLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedPermissionLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedRoleListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedRoleListResourceResponse.js +57 -0
- package/dist/models/PaginatedRoleLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedRoleLiteResourceResponse.js +57 -0
- package/dist/models/PermissionListResource.d.ts +44 -0
- package/dist/models/PermissionListResource.js +56 -0
- package/dist/models/PermissionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/PermissionListResourceArrayResponse.js +50 -0
- package/dist/models/PermissionLiteResource.d.ts +38 -0
- package/dist/models/PermissionLiteResource.js +53 -0
- package/dist/models/PermissionLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/PermissionLiteResourceArrayResponse.js +50 -0
- package/dist/models/PermissionResource.d.ts +56 -0
- package/dist/models/PermissionResource.js +62 -0
- package/dist/models/PermissionResourceArrayResponse.d.ts +33 -0
- package/dist/models/PermissionResourceArrayResponse.js +50 -0
- package/dist/models/ResetPasswordAdminRequest.d.ts +44 -0
- package/dist/models/ResetPasswordAdminRequest.js +59 -0
- package/dist/models/RoleListResource.d.ts +74 -0
- package/dist/models/RoleListResource.js +74 -0
- package/dist/models/RoleListResourceArrayResponse.d.ts +33 -0
- package/dist/models/RoleListResourceArrayResponse.js +50 -0
- package/dist/models/RoleLiteResource.d.ts +44 -0
- package/dist/models/RoleLiteResource.js +57 -0
- package/dist/models/RoleLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/RoleLiteResourceArrayResponse.js +50 -0
- package/dist/models/RoleResource.d.ts +82 -0
- package/dist/models/RoleResource.js +80 -0
- package/dist/models/RoleResourceArrayResponse.d.ts +33 -0
- package/dist/models/RoleResourceArrayResponse.js +50 -0
- package/dist/models/SearchAdminUsersRequest.d.ts +112 -0
- package/dist/models/SearchAdminUsersRequest.js +88 -0
- package/dist/models/SearchAllAdminUsersRequest.d.ts +88 -0
- package/dist/models/SearchAllAdminUsersRequest.js +80 -0
- package/dist/models/SearchAllCustomersRequest.d.ts +103 -0
- package/dist/models/SearchAllCustomersRequest.js +89 -0
- package/dist/models/SearchAllPermissionsRequest.d.ts +85 -0
- package/dist/models/SearchAllPermissionsRequest.js +77 -0
- package/dist/models/SearchAllRolesRequest.d.ts +94 -0
- package/dist/models/SearchAllRolesRequest.js +82 -0
- package/dist/models/SearchCustomersRequest.d.ts +31 -3
- package/dist/models/SearchCustomersRequest.js +15 -3
- package/dist/models/SearchPermissionsRequest.d.ts +97 -0
- package/dist/models/SearchPermissionsRequest.js +81 -0
- package/dist/models/SearchRolesRequest.d.ts +106 -0
- package/dist/models/SearchRolesRequest.js +86 -0
- package/dist/models/SignUpType.d.ts +29 -0
- package/dist/models/SignUpType.js +55 -0
- package/dist/models/SocialProvider.d.ts +26 -0
- package/dist/models/SocialProvider.js +52 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateAdminUserRequest.d.ts +56 -0
- package/dist/models/UpdateAdminUserRequest.js +63 -0
- package/dist/models/UpdateCustomerAddressRequest.d.ts +90 -0
- package/dist/models/UpdateCustomerAddressRequest.js +83 -0
- package/dist/models/UpdateCustomerRequest.d.ts +68 -0
- package/dist/models/UpdateCustomerRequest.js +67 -0
- package/dist/models/UpdateRoleRequest.d.ts +38 -0
- package/dist/models/UpdateRoleRequest.js +55 -0
- package/dist/models/UserLiteResource.d.ts +62 -0
- package/dist/models/UserLiteResource.js +69 -0
- package/dist/models/UserLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserLiteResourceArrayResponse.js +50 -0
- package/dist/models/UserType.d.ts +25 -0
- package/dist/models/UserType.js +51 -0
- package/dist/models/index.d.ts +64 -0
- package/dist/models/index.js +64 -0
- package/package.json +1 -1
- package/src/apis/AdminsApi.ts +384 -0
- package/src/apis/AuthApi.ts +211 -0
- package/src/apis/CustomersApi.ts +292 -0
- package/src/apis/PermissionsApi.ts +155 -0
- package/src/apis/RolesApi.ts +482 -0
- package/src/apis/SupplierApi.ts +1 -1
- package/src/apis/index.ts +4 -0
- package/src/models/AddressFrontendResource.ts +25 -0
- package/src/models/AddressResource.ts +6 -4
- package/src/models/AddressType.ts +3 -1
- package/src/models/AdminListResource.ts +107 -0
- package/src/models/AdminListResourceArrayResponse.ts +73 -0
- package/src/models/AdminLiteResource.ts +83 -0
- package/src/models/AdminLiteResourceArrayResponse.ts +73 -0
- package/src/models/AdminLoginResponseResource.ts +83 -0
- package/src/models/AdminLoginResponseResourceArrayResponse.ts +73 -0
- package/src/models/AdminNoteResource.ts +10 -10
- package/src/models/AdminOrderResource.ts +11 -11
- package/src/models/AdminResource.ts +124 -0
- package/src/models/AdminResourceArrayResponse.ts +73 -0
- package/src/models/AdminUserLiteResource.ts +3 -2
- package/src/models/AppliedCouponResource.ts +0 -45
- package/src/models/AttachAdminsToRoleRequest.ts +66 -0
- package/src/models/AttachPermissionsToRoleRequest.ts +66 -0
- package/src/models/AttachRolesToAdminRequest.ts +66 -0
- package/src/models/CartResource.ts +10 -10
- package/src/models/CheckEmailFrontendResource.ts +66 -0
- package/src/models/CheckEmailFrontendResourceArrayResponse.ts +73 -0
- package/src/models/CreateAdminUserRequest.ts +101 -0
- package/src/models/CreateCustomerAddressRequest.ts +146 -0
- package/src/models/CreateCustomerRequest.ts +35 -11
- package/src/models/CreateRoleRequest.ts +75 -0
- package/src/models/CustomerAuthResponseResource.ts +83 -0
- package/src/models/CustomerAuthResponseResourceArrayResponse.ts +73 -0
- package/src/models/CustomerFrontendResource.ts +134 -0
- package/src/models/CustomerFrontendResourceArrayResponse.ts +73 -0
- package/src/models/CustomerListResource.ts +53 -20
- package/src/models/CustomerResource.ts +101 -30
- package/src/models/CustomerSocialLinkableResource.ts +75 -0
- package/src/models/CustomerSocialLinkableResourceArrayResponse.ts +73 -0
- package/src/models/CustomerSocialProviderLiteResource.ts +92 -0
- package/src/models/CustomerSocialProviderLiteResourceArrayResponse.ts +73 -0
- package/src/models/CustomerType.ts +53 -0
- package/src/models/ForgotPasswordAdminRequest.ts +66 -0
- package/src/models/FrontendCartResource.ts +10 -19
- package/src/models/FrontendOrderResource.ts +10 -10
- package/src/models/LoginAdminRequest.ts +75 -0
- package/src/models/NetsuiteSyncLiteResource.ts +84 -0
- package/src/models/NetsuiteSyncLiteResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +2 -3
- package/src/models/PaginatedAdminListResourceResponse.ts +90 -0
- package/src/models/PaginatedAdminLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedPermissionListResourceResponse.ts +90 -0
- package/src/models/PaginatedPermissionLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedRoleListResourceResponse.ts +90 -0
- package/src/models/PaginatedRoleLiteResourceResponse.ts +90 -0
- package/src/models/PermissionListResource.ts +82 -0
- package/src/models/PermissionListResourceArrayResponse.ts +73 -0
- package/src/models/PermissionLiteResource.ts +74 -0
- package/src/models/PermissionLiteResourceArrayResponse.ts +73 -0
- package/src/models/PermissionResource.ts +99 -0
- package/src/models/PermissionResourceArrayResponse.ts +73 -0
- package/src/models/ResetPasswordAdminRequest.ts +84 -0
- package/src/models/RoleListResource.ts +126 -0
- package/src/models/RoleListResourceArrayResponse.ts +73 -0
- package/src/models/RoleLiteResource.ts +83 -0
- package/src/models/RoleLiteResourceArrayResponse.ts +73 -0
- package/src/models/RoleResource.ts +150 -0
- package/src/models/RoleResourceArrayResponse.ts +73 -0
- package/src/models/SearchAdminUsersRequest.ts +169 -0
- package/src/models/SearchAllAdminUsersRequest.ts +137 -0
- package/src/models/SearchAllCustomersRequest.ts +157 -0
- package/src/models/SearchAllPermissionsRequest.ts +134 -0
- package/src/models/SearchAllRolesRequest.ts +145 -0
- package/src/models/SearchCustomersRequest.ts +39 -3
- package/src/models/SearchPermissionsRequest.ts +150 -0
- package/src/models/SearchRolesRequest.ts +161 -0
- package/src/models/SignUpType.ts +57 -0
- package/src/models/SocialProvider.ts +54 -0
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateAdminUserRequest.ts +100 -0
- package/src/models/UpdateCustomerAddressRequest.ts +146 -0
- package/src/models/UpdateCustomerRequest.ts +116 -0
- package/src/models/UpdateRoleRequest.ts +75 -0
- package/src/models/UserLiteResource.ts +110 -0
- package/src/models/UserLiteResourceArrayResponse.ts +73 -0
- package/src/models/UserType.ts +53 -0
- package/src/models/index.ts +64 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CustomerSocialProviderLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerSocialProviderLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CustomerSocialProviderLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomerSocialProviderLiteResource
|
|
32
|
+
*/
|
|
33
|
+
provider: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomerSocialProviderLiteResource
|
|
38
|
+
*/
|
|
39
|
+
socialId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CustomerSocialProviderLiteResource
|
|
44
|
+
*/
|
|
45
|
+
siteId: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CustomerSocialProviderLiteResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfCustomerSocialProviderLiteResource(value: object): value is CustomerSocialProviderLiteResource {
|
|
52
|
+
if (!('provider' in value) || value['provider'] === undefined) return false;
|
|
53
|
+
if (!('socialId' in value) || value['socialId'] === undefined) return false;
|
|
54
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CustomerSocialProviderLiteResourceFromJSON(json: any): CustomerSocialProviderLiteResource {
|
|
59
|
+
return CustomerSocialProviderLiteResourceFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CustomerSocialProviderLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSocialProviderLiteResource {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
69
|
+
'provider': json['provider'],
|
|
70
|
+
'socialId': json['socialId'],
|
|
71
|
+
'siteId': json['siteId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CustomerSocialProviderLiteResourceToJSON(json: any): CustomerSocialProviderLiteResource {
|
|
76
|
+
return CustomerSocialProviderLiteResourceToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CustomerSocialProviderLiteResourceToJSONTyped(value?: CustomerSocialProviderLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'provider': value['provider'],
|
|
88
|
+
'socialId': value['socialId'],
|
|
89
|
+
'siteId': value['siteId'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -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 { CustomerSocialProviderLiteResource } from './CustomerSocialProviderLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
CustomerSocialProviderLiteResourceFromJSON,
|
|
19
|
+
CustomerSocialProviderLiteResourceFromJSONTyped,
|
|
20
|
+
CustomerSocialProviderLiteResourceToJSON,
|
|
21
|
+
CustomerSocialProviderLiteResourceToJSONTyped,
|
|
22
|
+
} from './CustomerSocialProviderLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerSocialProviderLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerSocialProviderLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CustomerSocialProviderLiteResource>}
|
|
33
|
+
* @memberof CustomerSocialProviderLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CustomerSocialProviderLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CustomerSocialProviderLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCustomerSocialProviderLiteResourceArrayResponse(value: object): value is CustomerSocialProviderLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CustomerSocialProviderLiteResourceArrayResponseFromJSON(json: any): CustomerSocialProviderLiteResourceArrayResponse {
|
|
46
|
+
return CustomerSocialProviderLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CustomerSocialProviderLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSocialProviderLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CustomerSocialProviderLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CustomerSocialProviderLiteResourceArrayResponseToJSON(json: any): CustomerSocialProviderLiteResourceArrayResponse {
|
|
60
|
+
return CustomerSocialProviderLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CustomerSocialProviderLiteResourceArrayResponseToJSONTyped(value?: CustomerSocialProviderLiteResourceArrayResponse | 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(CustomerSocialProviderLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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 CustomerType = {
|
|
21
|
+
Guest: 'guest',
|
|
22
|
+
Member: 'member'
|
|
23
|
+
} as const;
|
|
24
|
+
export type CustomerType = typeof CustomerType[keyof typeof CustomerType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfCustomerType(value: any): boolean {
|
|
28
|
+
for (const key in CustomerType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(CustomerType, key)) {
|
|
30
|
+
if (CustomerType[key as keyof typeof CustomerType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CustomerTypeFromJSON(json: any): CustomerType {
|
|
39
|
+
return CustomerTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CustomerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerType {
|
|
43
|
+
return json as CustomerType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CustomerTypeToJSON(value?: CustomerType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CustomerTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CustomerType {
|
|
51
|
+
return value as CustomerType;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ForgotPasswordAdminRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ForgotPasswordAdminRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ForgotPasswordAdminRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ForgotPasswordAdminRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfForgotPasswordAdminRequest(value: object): value is ForgotPasswordAdminRequest {
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ForgotPasswordAdminRequestFromJSON(json: any): ForgotPasswordAdminRequest {
|
|
39
|
+
return ForgotPasswordAdminRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ForgotPasswordAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordAdminRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ForgotPasswordAdminRequestToJSON(json: any): ForgotPasswordAdminRequest {
|
|
53
|
+
return ForgotPasswordAdminRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ForgotPasswordAdminRequestToJSONTyped(value?: ForgotPasswordAdminRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'email': value['email'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
FrontendLineItemResourceToJSON,
|
|
21
21
|
FrontendLineItemResourceToJSONTyped,
|
|
22
22
|
} from './FrontendLineItemResource';
|
|
23
|
-
import type {
|
|
23
|
+
import type { CustomerFrontendResource } from './CustomerFrontendResource';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
CustomerFrontendResourceFromJSON,
|
|
26
|
+
CustomerFrontendResourceFromJSONTyped,
|
|
27
|
+
CustomerFrontendResourceToJSON,
|
|
28
|
+
CustomerFrontendResourceToJSONTyped,
|
|
29
|
+
} from './CustomerFrontendResource';
|
|
30
30
|
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
31
31
|
import {
|
|
32
32
|
FrontendCartResourceCouponsInnerFromJSON,
|
|
@@ -80,10 +80,10 @@ export interface FrontendCartResource {
|
|
|
80
80
|
guestEmail?: string | null;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
|
-
* @type {
|
|
83
|
+
* @type {CustomerFrontendResource}
|
|
84
84
|
* @memberof FrontendCartResource
|
|
85
85
|
*/
|
|
86
|
-
customer:
|
|
86
|
+
customer: CustomerFrontendResource | null;
|
|
87
87
|
/**
|
|
88
88
|
*
|
|
89
89
|
* @type {string}
|
|
@@ -114,12 +114,6 @@ export interface FrontendCartResource {
|
|
|
114
114
|
* @memberof FrontendCartResource
|
|
115
115
|
*/
|
|
116
116
|
coupons: Array<FrontendCartResourceCouponsInner>;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {string}
|
|
120
|
-
* @memberof FrontendCartResource
|
|
121
|
-
*/
|
|
122
|
-
couponWarning: string;
|
|
123
117
|
/**
|
|
124
118
|
*
|
|
125
119
|
* @type {number}
|
|
@@ -200,7 +194,6 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
|
|
|
200
194
|
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
201
195
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
202
196
|
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
203
|
-
if (!('couponWarning' in value) || value['couponWarning'] === undefined) return false;
|
|
204
197
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
205
198
|
if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined) return false;
|
|
206
199
|
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
|
|
@@ -230,13 +223,12 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
230
223
|
'siteId': json['siteId'],
|
|
231
224
|
'sessionToken': json['sessionToken'] == null ? undefined : json['sessionToken'],
|
|
232
225
|
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
233
|
-
'customer':
|
|
226
|
+
'customer': CustomerFrontendResourceFromJSON(json['customer']),
|
|
234
227
|
'shippingType': json['shippingType'],
|
|
235
228
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
236
229
|
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
237
230
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
238
231
|
'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
|
|
239
|
-
'couponWarning': json['couponWarning'],
|
|
240
232
|
'subtotal': json['subtotal'],
|
|
241
233
|
'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
|
|
242
234
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
@@ -267,13 +259,12 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
|
|
|
267
259
|
'siteId': value['siteId'],
|
|
268
260
|
'sessionToken': value['sessionToken'],
|
|
269
261
|
'guestEmail': value['guestEmail'],
|
|
270
|
-
'customer':
|
|
262
|
+
'customer': CustomerFrontendResourceToJSON(value['customer']),
|
|
271
263
|
'shippingType': value['shippingType'],
|
|
272
264
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
273
265
|
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
274
266
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
275
267
|
'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
|
|
276
|
-
'couponWarning': value['couponWarning'],
|
|
277
268
|
'subtotal': value['subtotal'],
|
|
278
269
|
'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
|
|
279
270
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
FrontendLineItemResourceToJSON,
|
|
21
21
|
FrontendLineItemResourceToJSONTyped,
|
|
22
22
|
} from './FrontendLineItemResource';
|
|
23
|
-
import type {
|
|
23
|
+
import type { CustomerFrontendResource } from './CustomerFrontendResource';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
CustomerFrontendResourceFromJSON,
|
|
26
|
+
CustomerFrontendResourceFromJSONTyped,
|
|
27
|
+
CustomerFrontendResourceToJSON,
|
|
28
|
+
CustomerFrontendResourceToJSONTyped,
|
|
29
|
+
} from './CustomerFrontendResource';
|
|
30
30
|
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
31
31
|
import {
|
|
32
32
|
FrontendCartResourceCouponsInnerFromJSON,
|
|
@@ -98,10 +98,10 @@ export interface FrontendOrderResource {
|
|
|
98
98
|
shippingType: string;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
|
-
* @type {
|
|
101
|
+
* @type {CustomerFrontendResource}
|
|
102
102
|
* @memberof FrontendOrderResource
|
|
103
103
|
*/
|
|
104
|
-
customer:
|
|
104
|
+
customer: CustomerFrontendResource | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {object}
|
|
@@ -240,7 +240,7 @@ export function FrontendOrderResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
240
240
|
'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
|
|
241
241
|
'accessToken': json['accessToken'],
|
|
242
242
|
'shippingType': json['shippingType'],
|
|
243
|
-
'customer':
|
|
243
|
+
'customer': CustomerFrontendResourceFromJSON(json['customer']),
|
|
244
244
|
'status': json['status'],
|
|
245
245
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
246
246
|
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
@@ -278,7 +278,7 @@ export function FrontendOrderResourceToJSONTyped(value?: FrontendOrderResource |
|
|
|
278
278
|
'paymentToken': value['paymentToken'],
|
|
279
279
|
'accessToken': value['accessToken'],
|
|
280
280
|
'shippingType': value['shippingType'],
|
|
281
|
-
'customer':
|
|
281
|
+
'customer': CustomerFrontendResourceToJSON(value['customer']),
|
|
282
282
|
'status': value['status'],
|
|
283
283
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
284
284
|
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LoginAdminRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginAdminRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginAdminRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginAdminRequest
|
|
32
|
+
*/
|
|
33
|
+
password: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LoginAdminRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLoginAdminRequest(value: object): value is LoginAdminRequest {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LoginAdminRequestFromJSON(json: any): LoginAdminRequest {
|
|
46
|
+
return LoginAdminRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LoginAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAdminRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'password': json['password'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function LoginAdminRequestToJSON(json: any): LoginAdminRequest {
|
|
61
|
+
return LoginAdminRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LoginAdminRequestToJSONTyped(value?: LoginAdminRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'password': value['password'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface NetsuiteSyncLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface NetsuiteSyncLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof NetsuiteSyncLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NetsuiteSyncLiteResource
|
|
32
|
+
*/
|
|
33
|
+
netsuiteId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof NetsuiteSyncLiteResource
|
|
38
|
+
*/
|
|
39
|
+
syncStatus: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the NetsuiteSyncLiteResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfNetsuiteSyncLiteResource(value: object): value is NetsuiteSyncLiteResource {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
48
|
+
if (!('syncStatus' in value) || value['syncStatus'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function NetsuiteSyncLiteResourceFromJSON(json: any): NetsuiteSyncLiteResource {
|
|
53
|
+
return NetsuiteSyncLiteResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function NetsuiteSyncLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetsuiteSyncLiteResource {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'netsuiteId': json['netsuiteId'],
|
|
64
|
+
'syncStatus': json['syncStatus'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function NetsuiteSyncLiteResourceToJSON(json: any): NetsuiteSyncLiteResource {
|
|
69
|
+
return NetsuiteSyncLiteResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function NetsuiteSyncLiteResourceToJSONTyped(value?: NetsuiteSyncLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'netsuiteId': value['netsuiteId'],
|
|
81
|
+
'syncStatus': value['syncStatus'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 { NetsuiteSyncLiteResource } from './NetsuiteSyncLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
NetsuiteSyncLiteResourceFromJSON,
|
|
19
|
+
NetsuiteSyncLiteResourceFromJSONTyped,
|
|
20
|
+
NetsuiteSyncLiteResourceToJSON,
|
|
21
|
+
NetsuiteSyncLiteResourceToJSONTyped,
|
|
22
|
+
} from './NetsuiteSyncLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface NetsuiteSyncLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface NetsuiteSyncLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<NetsuiteSyncLiteResource>}
|
|
33
|
+
* @memberof NetsuiteSyncLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<NetsuiteSyncLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the NetsuiteSyncLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfNetsuiteSyncLiteResourceArrayResponse(value: object): value is NetsuiteSyncLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NetsuiteSyncLiteResourceArrayResponseFromJSON(json: any): NetsuiteSyncLiteResourceArrayResponse {
|
|
46
|
+
return NetsuiteSyncLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NetsuiteSyncLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetsuiteSyncLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NetsuiteSyncLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function NetsuiteSyncLiteResourceArrayResponseToJSON(json: any): NetsuiteSyncLiteResourceArrayResponse {
|
|
60
|
+
return NetsuiteSyncLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function NetsuiteSyncLiteResourceArrayResponseToJSONTyped(value?: NetsuiteSyncLiteResourceArrayResponse | 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(NetsuiteSyncLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -62,7 +62,7 @@ export interface OrderFulfillmentResource {
|
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof OrderFulfillmentResource
|
|
64
64
|
*/
|
|
65
|
-
trackingCompany
|
|
65
|
+
trackingCompany?: string | null;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -102,7 +102,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
106
105
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
107
106
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
108
107
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -124,7 +123,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
124
123
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
125
124
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
126
125
|
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
127
|
-
'trackingCompany': json['trackingCompany'],
|
|
126
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
128
127
|
'docnum': json['docnum'],
|
|
129
128
|
'netsuiteId': json['netsuiteId'],
|
|
130
129
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|