@digital8/lighting-illusions-ts-sdk 0.0.2355 → 0.0.2357
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 -10
- package/README.md +56 -7
- package/dist/apis/AdminsApi.d.ts +33 -0
- package/dist/apis/AdminsApi.js +125 -0
- package/dist/apis/AuthApi.d.ts +92 -0
- package/dist/apis/AuthApi.js +369 -0
- package/dist/apis/CustomersApi.d.ts +52 -0
- package/dist/apis/CustomersApi.js +192 -0
- package/dist/apis/PermissionsApi.d.ts +67 -0
- package/dist/apis/PermissionsApi.js +259 -0
- package/dist/apis/RolesApi.d.ts +182 -0
- package/dist/apis/RolesApi.js +690 -0
- package/dist/apis/index.d.ts +3 -1
- package/dist/apis/index.js +3 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +3 -3
- package/dist/models/AdminListResource.d.ts +1 -1
- package/dist/models/AdminListResource.js +3 -1
- package/dist/models/AdminLiteResource.d.ts +1 -1
- package/dist/models/AdminLiteResource.js +3 -1
- 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 +7 -1
- package/dist/models/AdminResource.js +7 -1
- package/dist/models/AdminUserLiteResource.d.ts +1 -1
- package/dist/models/AdminUserLiteResource.js +3 -1
- 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/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CartResource.d.ts +3 -3
- package/dist/models/CartResource.js +3 -3
- package/dist/models/CategoryAutomationFieldType.d.ts +0 -2
- package/dist/models/CategoryAutomationFieldType.js +1 -3
- package/dist/models/CreateAdminUserRequest.d.ts +0 -6
- package/dist/models/CreateAdminUserRequest.js +0 -4
- package/dist/models/CreateCustomerAddressRequest.d.ts +90 -0
- package/dist/models/CreateCustomerAddressRequest.js +83 -0
- package/dist/models/CreateCustomerRequest.d.ts +7 -1
- package/dist/models/CreateCustomerRequest.js +3 -3
- package/dist/models/CreatePageComponentRequest.d.ts +4 -4
- package/dist/models/CreatePageComponentRequest.js +4 -4
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +0 -2
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +1 -3
- package/dist/models/CreateRoleRequest.d.ts +38 -0
- package/dist/models/CreateRoleRequest.js +55 -0
- package/dist/models/CreateSupplierRequest.d.ts +0 -6
- package/dist/models/CreateSupplierRequest.js +0 -2
- package/dist/models/CustomerListResource.d.ts +6 -0
- package/dist/models/CustomerListResource.js +4 -0
- package/dist/models/CustomerResource.d.ts +10 -2
- package/dist/models/CustomerResource.js +9 -3
- package/dist/models/ForgotPasswordAdminRequest.d.ts +32 -0
- package/dist/models/ForgotPasswordAdminRequest.js +51 -0
- package/dist/models/FrontendCartResource.d.ts +0 -18
- package/dist/models/FrontendCartResource.js +0 -12
- 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/OrderStatusWithCountResource.d.ts +0 -12
- package/dist/models/OrderStatusWithCountResource.js +0 -8
- 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/PermissionListResource.d.ts +44 -0
- package/dist/models/PermissionListResource.js +55 -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 +61 -0
- package/dist/models/PermissionResourceArrayResponse.d.ts +33 -0
- package/dist/models/PermissionResourceArrayResponse.js +50 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- 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 +73 -0
- package/dist/models/RoleListResourceArrayResponse.d.ts +33 -0
- package/dist/models/RoleListResourceArrayResponse.js +50 -0
- package/dist/models/RoleLiteResource.d.ts +6 -0
- package/dist/models/RoleLiteResource.js +4 -0
- package/dist/models/RoleResource.d.ts +82 -0
- package/dist/models/RoleResource.js +79 -0
- package/dist/models/RoleResourceArrayResponse.d.ts +33 -0
- package/dist/models/RoleResourceArrayResponse.js +50 -0
- package/dist/models/SearchAdminUsersRequest.d.ts +6 -6
- package/dist/models/SearchAdminUsersRequest.js +2 -2
- package/dist/models/SearchAllAdminUsersRequest.d.ts +6 -0
- package/dist/models/SearchAllAdminUsersRequest.js +2 -0
- package/dist/models/SearchAllOrdersRequest.d.ts +0 -6
- package/dist/models/SearchAllOrdersRequest.js +0 -2
- package/dist/models/SearchAllPermissionsRequest.d.ts +85 -0
- package/dist/models/{SearchAllProductClassesRequest.js → SearchAllPermissionsRequest.js} +20 -17
- package/dist/models/SearchAllRolesRequest.d.ts +92 -0
- package/dist/models/SearchAllRolesRequest.js +80 -0
- package/dist/models/SearchOrdersRequest.d.ts +0 -6
- package/dist/models/SearchOrdersRequest.js +0 -2
- package/dist/models/SearchPermissionsRequest.d.ts +97 -0
- package/dist/models/SearchPermissionsRequest.js +81 -0
- package/dist/models/SearchRolesRequest.d.ts +104 -0
- package/dist/models/SearchRolesRequest.js +84 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/SupplierFrontendResource.d.ts +0 -6
- package/dist/models/SupplierFrontendResource.js +0 -4
- package/dist/models/SupplierResource.d.ts +0 -6
- package/dist/models/SupplierResource.js +0 -4
- package/dist/models/UpdateAdminUserRequest.d.ts +0 -6
- package/dist/models/UpdateAdminUserRequest.js +0 -4
- package/dist/models/UpdateCustomerAddressRequest.d.ts +90 -0
- package/dist/models/UpdateCustomerAddressRequest.js +83 -0
- package/dist/models/UpdateCustomerRequest.d.ts +6 -0
- package/dist/models/UpdateCustomerRequest.js +2 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
- package/dist/models/UpdatePageComponentRequest.js +4 -4
- package/dist/models/UpdateRoleRequest.d.ts +38 -0
- package/dist/models/UpdateRoleRequest.js +55 -0
- package/dist/models/UpdateSupplierRequest.d.ts +0 -6
- package/dist/models/UpdateSupplierRequest.js +0 -2
- package/dist/models/index.d.ts +31 -4
- package/dist/models/index.js +31 -4
- package/docs/AdminLoginResponseResource.md +36 -0
- package/docs/AdminLoginResponseResourceArrayResponse.md +34 -0
- package/docs/AdminNoteResource.md +1 -1
- package/docs/AdminOrderResource.md +1 -1
- package/docs/AdminResource.md +2 -0
- package/docs/AdminsApi.md +138 -0
- package/docs/AttachAdminsToRoleRequest.md +34 -0
- package/docs/AttachPermissionsToRoleRequest.md +34 -0
- package/docs/AttachRolesToAdminRequest.md +34 -0
- package/docs/AuthApi.md +322 -0
- package/docs/CartListResource.md +0 -2
- package/docs/CartResource.md +1 -1
- package/docs/CreateAdminUserRequest.md +0 -2
- package/docs/CreateCustomerAddressRequest.md +50 -0
- package/docs/CreateCustomerRequest.md +2 -0
- package/docs/CreatePageComponentRequest.md +2 -2
- package/docs/CreateRoleRequest.md +36 -0
- package/docs/CreateSupplierRequest.md +0 -2
- package/docs/CustomerListResource.md +2 -0
- package/docs/CustomerResource.md +4 -2
- package/docs/CustomersApi.md +210 -0
- package/docs/ForgotPasswordAdminRequest.md +34 -0
- package/docs/FrontendCartResource.md +0 -6
- package/docs/LoginAdminRequest.md +36 -0
- package/docs/NetsuiteSyncLiteResource.md +38 -0
- package/docs/{ProductClassLiteResourceArrayResponse.md → NetsuiteSyncLiteResourceArrayResponse.md} +5 -5
- package/docs/OrderStatusWithCountResource.md +0 -4
- package/docs/{PaginatedProductClassLiteResourceResponse.md → PaginatedPermissionListResourceResponse.md} +5 -5
- package/docs/PaginatedPermissionLiteResourceResponse.md +36 -0
- package/docs/PaginatedRoleListResourceResponse.md +36 -0
- package/docs/{ProductClassLiteResource.md → PermissionListResource.md} +6 -6
- package/docs/PermissionListResourceArrayResponse.md +34 -0
- package/docs/PermissionLiteResource.md +36 -0
- package/docs/PermissionLiteResourceArrayResponse.md +34 -0
- package/docs/PermissionResource.md +42 -0
- package/docs/PermissionResourceArrayResponse.md +34 -0
- package/docs/PermissionsApi.md +206 -0
- package/docs/ProductClassResource.md +1 -1
- package/docs/ResetPasswordAdminRequest.md +38 -0
- package/docs/RoleListResource.md +48 -0
- package/docs/RoleListResourceArrayResponse.md +34 -0
- package/docs/RoleLiteResource.md +2 -0
- package/docs/RoleResource.md +50 -0
- package/docs/RoleResourceArrayResponse.md +34 -0
- package/docs/RolesApi.md +683 -0
- package/docs/SearchAdminUsersRequest.md +2 -2
- package/docs/SearchAllAdminUsersRequest.md +2 -0
- package/docs/SearchAllOrdersRequest.md +0 -2
- package/docs/{SearchAllProductClassesRequest.md → SearchAllPermissionsRequest.md} +6 -4
- package/docs/SearchAllRolesRequest.md +48 -0
- package/docs/SearchOrdersRequest.md +0 -2
- package/docs/SearchPermissionsRequest.md +50 -0
- package/docs/SearchRolesRequest.md +52 -0
- package/docs/SupplierFrontendResource.md +0 -2
- package/docs/SupplierResource.md +0 -2
- package/docs/UpdateAdminUserRequest.md +0 -2
- package/docs/UpdateCustomerAddressRequest.md +50 -0
- package/docs/UpdateCustomerRequest.md +2 -0
- package/docs/UpdatePageComponentRequest.md +2 -2
- package/docs/UpdateRoleRequest.md +36 -0
- package/docs/UpdateSupplierRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/AdminsApi.ts +116 -0
- package/src/apis/AuthApi.ts +258 -0
- package/src/apis/CustomersApi.ts +188 -0
- package/src/apis/PermissionsApi.ts +184 -0
- package/src/apis/RolesApi.ts +577 -0
- package/src/apis/index.ts +3 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/AdminListResource.ts +3 -2
- package/src/models/AdminLiteResource.ts +3 -2
- 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 +12 -2
- package/src/models/AdminUserLiteResource.ts +3 -2
- package/src/models/AttachAdminsToRoleRequest.ts +66 -0
- package/src/models/AttachPermissionsToRoleRequest.ts +66 -0
- package/src/models/AttachRolesToAdminRequest.ts +66 -0
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CartResource.ts +10 -10
- package/src/models/CategoryAutomationFieldType.ts +1 -3
- package/src/models/CreateAdminUserRequest.ts +0 -9
- package/src/models/CreateCustomerAddressRequest.ts +146 -0
- package/src/models/CreateCustomerRequest.ts +10 -3
- package/src/models/CreatePageComponentRequest.ts +8 -8
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +1 -3
- package/src/models/CreateRoleRequest.ts +75 -0
- package/src/models/CreateSupplierRequest.ts +0 -8
- package/src/models/CustomerListResource.ts +9 -0
- package/src/models/CustomerResource.ts +28 -5
- package/src/models/ForgotPasswordAdminRequest.ts +66 -0
- package/src/models/FrontendCartResource.ts +0 -27
- package/src/models/LoginAdminRequest.ts +75 -0
- package/src/models/NetsuiteSyncLiteResource.ts +84 -0
- package/src/models/NetsuiteSyncLiteResourceArrayResponse.ts +73 -0
- package/src/models/OrderStatusWithCountResource.ts +0 -18
- package/src/models/PaginatedPermissionListResourceResponse.ts +90 -0
- package/src/models/PaginatedPermissionLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedRoleListResourceResponse.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/ProductClassResource.ts +2 -2
- 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 +9 -0
- package/src/models/RoleResource.ts +150 -0
- package/src/models/RoleResourceArrayResponse.ts +73 -0
- package/src/models/SearchAdminUsersRequest.ts +8 -8
- package/src/models/SearchAllAdminUsersRequest.ts +8 -0
- package/src/models/SearchAllOrdersRequest.ts +0 -8
- package/src/models/SearchAllPermissionsRequest.ts +134 -0
- package/src/models/SearchAllRolesRequest.ts +143 -0
- package/src/models/SearchOrdersRequest.ts +0 -8
- package/src/models/SearchPermissionsRequest.ts +150 -0
- package/src/models/SearchRolesRequest.ts +159 -0
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/SupplierFrontendResource.ts +0 -9
- package/src/models/SupplierResource.ts +0 -9
- package/src/models/UpdateAdminUserRequest.ts +0 -9
- package/src/models/UpdateCustomerAddressRequest.ts +146 -0
- package/src/models/UpdateCustomerRequest.ts +8 -0
- package/src/models/UpdatePageComponentRequest.ts +8 -8
- package/src/models/UpdateRoleRequest.ts +75 -0
- package/src/models/UpdateSupplierRequest.ts +0 -8
- package/src/models/index.ts +31 -4
- package/dist/apis/ProductClassApi.d.ts +0 -34
- package/dist/apis/ProductClassApi.js +0 -139
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +0 -57
- package/dist/models/ProductClassLiteResource.d.ts +0 -44
- package/dist/models/ProductClassLiteResource.js +0 -57
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductClassLiteResourceArrayResponse.js +0 -50
- package/dist/models/SearchAllProductClassesRequest.d.ts +0 -78
- package/docs/ProductClassApi.md +0 -74
- package/src/apis/ProductClassApi.ts +0 -76
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +0 -90
- package/src/models/ProductClassLiteResource.ts +0 -83
- package/src/models/ProductClassLiteResourceArrayResponse.ts +0 -73
- package/src/models/SearchAllProductClassesRequest.ts +0 -125
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* @interface AttachPermissionsToRoleRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachPermissionsToRoleRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof AttachPermissionsToRoleRequest
|
|
22
|
+
*/
|
|
23
|
+
permissionIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AttachPermissionsToRoleRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAttachPermissionsToRoleRequest(value: object): value is AttachPermissionsToRoleRequest;
|
|
29
|
+
export declare function AttachPermissionsToRoleRequestFromJSON(json: any): AttachPermissionsToRoleRequest;
|
|
30
|
+
export declare function AttachPermissionsToRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachPermissionsToRoleRequest;
|
|
31
|
+
export declare function AttachPermissionsToRoleRequestToJSON(json: any): AttachPermissionsToRoleRequest;
|
|
32
|
+
export declare function AttachPermissionsToRoleRequestToJSONTyped(value?: AttachPermissionsToRoleRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAttachPermissionsToRoleRequest = instanceOfAttachPermissionsToRoleRequest;
|
|
17
|
+
exports.AttachPermissionsToRoleRequestFromJSON = AttachPermissionsToRoleRequestFromJSON;
|
|
18
|
+
exports.AttachPermissionsToRoleRequestFromJSONTyped = AttachPermissionsToRoleRequestFromJSONTyped;
|
|
19
|
+
exports.AttachPermissionsToRoleRequestToJSON = AttachPermissionsToRoleRequestToJSON;
|
|
20
|
+
exports.AttachPermissionsToRoleRequestToJSONTyped = AttachPermissionsToRoleRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachPermissionsToRoleRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachPermissionsToRoleRequest(value) {
|
|
25
|
+
if (!('permissionIds' in value) || value['permissionIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AttachPermissionsToRoleRequestFromJSON(json) {
|
|
30
|
+
return AttachPermissionsToRoleRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AttachPermissionsToRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'permissionIds': json['permission_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AttachPermissionsToRoleRequestToJSON(json) {
|
|
41
|
+
return AttachPermissionsToRoleRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AttachPermissionsToRoleRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'permission_ids': value['permissionIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* @interface AttachRolesToAdminRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachRolesToAdminRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof AttachRolesToAdminRequest
|
|
22
|
+
*/
|
|
23
|
+
roleIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AttachRolesToAdminRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAttachRolesToAdminRequest(value: object): value is AttachRolesToAdminRequest;
|
|
29
|
+
export declare function AttachRolesToAdminRequestFromJSON(json: any): AttachRolesToAdminRequest;
|
|
30
|
+
export declare function AttachRolesToAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachRolesToAdminRequest;
|
|
31
|
+
export declare function AttachRolesToAdminRequestToJSON(json: any): AttachRolesToAdminRequest;
|
|
32
|
+
export declare function AttachRolesToAdminRequestToJSONTyped(value?: AttachRolesToAdminRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAttachRolesToAdminRequest = instanceOfAttachRolesToAdminRequest;
|
|
17
|
+
exports.AttachRolesToAdminRequestFromJSON = AttachRolesToAdminRequestFromJSON;
|
|
18
|
+
exports.AttachRolesToAdminRequestFromJSONTyped = AttachRolesToAdminRequestFromJSONTyped;
|
|
19
|
+
exports.AttachRolesToAdminRequestToJSON = AttachRolesToAdminRequestToJSON;
|
|
20
|
+
exports.AttachRolesToAdminRequestToJSONTyped = AttachRolesToAdminRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachRolesToAdminRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachRolesToAdminRequest(value) {
|
|
25
|
+
if (!('roleIds' in value) || value['roleIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AttachRolesToAdminRequestFromJSON(json) {
|
|
30
|
+
return AttachRolesToAdminRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AttachRolesToAdminRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'roleIds': json['role_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AttachRolesToAdminRequestToJSON(json) {
|
|
41
|
+
return AttachRolesToAdminRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AttachRolesToAdminRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'role_ids': value['roleIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -27,8 +27,6 @@ var CustomerListResource_1 = require("./CustomerListResource");
|
|
|
27
27
|
function instanceOfCartListResource(value) {
|
|
28
28
|
if (!('source' in value) || value['source'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
31
|
-
return false;
|
|
32
30
|
if (!('site' in value) || value['site'] === undefined)
|
|
33
31
|
return false;
|
|
34
32
|
if (!('customer' in value) || value['customer'] === undefined)
|
|
@@ -54,7 +52,6 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'source': json['source'],
|
|
55
53
|
'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
|
|
56
54
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
57
|
-
'expiryDate': (new Date(json['expiryDate'])),
|
|
58
55
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
59
56
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
60
57
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
@@ -76,7 +73,6 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
76
73
|
'source': value['source'],
|
|
77
74
|
'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
78
75
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
79
|
-
'expiryDate': value['expiryDate'].toISOString(),
|
|
80
76
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
81
77
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
82
78
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
13
|
import type { LineItemListResource } from './LineItemListResource';
|
|
14
14
|
import type { CustomerResource } from './CustomerResource';
|
|
15
|
-
import type {
|
|
15
|
+
import type { AdminUserLiteResource } from './AdminUserLiteResource';
|
|
16
16
|
import type { AddressResource } from './AddressResource';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -118,10 +118,10 @@ export interface CartResource {
|
|
|
118
118
|
useAsBillingAddress: boolean;
|
|
119
119
|
/**
|
|
120
120
|
*
|
|
121
|
-
* @type {
|
|
121
|
+
* @type {AdminUserLiteResource}
|
|
122
122
|
* @memberof CartResource
|
|
123
123
|
*/
|
|
124
|
-
admin:
|
|
124
|
+
admin: AdminUserLiteResource | null;
|
|
125
125
|
/**
|
|
126
126
|
*
|
|
127
127
|
* @type {SiteLiteResource}
|
|
@@ -21,7 +21,7 @@ exports.CartResourceToJSONTyped = CartResourceToJSONTyped;
|
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
22
|
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
23
|
var CustomerResource_1 = require("./CustomerResource");
|
|
24
|
-
var
|
|
24
|
+
var AdminUserLiteResource_1 = require("./AdminUserLiteResource");
|
|
25
25
|
var AddressResource_1 = require("./AddressResource");
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the CartResource interface.
|
|
@@ -103,7 +103,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
103
103
|
'includeInsurance': json['includeInsurance'],
|
|
104
104
|
'overrideInsurance': json['overrideInsurance'],
|
|
105
105
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
106
|
-
'admin': (0,
|
|
106
|
+
'admin': (0, AdminUserLiteResource_1.AdminUserLiteResourceFromJSON)(json['admin']),
|
|
107
107
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
108
108
|
'customer': (0, CustomerResource_1.CustomerResourceFromJSON)(json['customer']),
|
|
109
109
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
@@ -148,7 +148,7 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
148
148
|
'includeInsurance': value['includeInsurance'],
|
|
149
149
|
'overrideInsurance': value['overrideInsurance'],
|
|
150
150
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
151
|
-
'admin': (0,
|
|
151
|
+
'admin': (0, AdminUserLiteResource_1.AdminUserLiteResourceToJSON)(value['admin']),
|
|
152
152
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
153
153
|
'customer': (0, CustomerResource_1.CustomerResourceToJSON)(value['customer']),
|
|
154
154
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
@@ -21,8 +21,6 @@ export declare const CategoryAutomationFieldType: {
|
|
|
21
21
|
readonly Tag: "tag";
|
|
22
22
|
readonly Supplier: "supplier";
|
|
23
23
|
readonly Label: "label";
|
|
24
|
-
readonly ProductType: "product_type";
|
|
25
|
-
readonly ProductClass: "product_class";
|
|
26
24
|
};
|
|
27
25
|
export type CategoryAutomationFieldType = typeof CategoryAutomationFieldType[keyof typeof CategoryAutomationFieldType];
|
|
28
26
|
export declare function instanceOfCategoryAutomationFieldType(value: any): boolean;
|
|
@@ -30,9 +30,7 @@ exports.CategoryAutomationFieldType = {
|
|
|
30
30
|
Attribute: 'attribute',
|
|
31
31
|
Tag: 'tag',
|
|
32
32
|
Supplier: 'supplier',
|
|
33
|
-
Label: 'label'
|
|
34
|
-
ProductType: 'product_type',
|
|
35
|
-
ProductClass: 'product_class'
|
|
33
|
+
Label: 'label'
|
|
36
34
|
};
|
|
37
35
|
function instanceOfCategoryAutomationFieldType(value) {
|
|
38
36
|
for (var key in exports.CategoryAutomationFieldType) {
|
|
@@ -45,12 +45,6 @@ export interface CreateAdminUserRequest {
|
|
|
45
45
|
* @memberof CreateAdminUserRequest
|
|
46
46
|
*/
|
|
47
47
|
email: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Array<number>}
|
|
51
|
-
* @memberof CreateAdminUserRequest
|
|
52
|
-
*/
|
|
53
|
-
roleIds: Array<number>;
|
|
54
48
|
}
|
|
55
49
|
/**
|
|
56
50
|
* Check if a given object implements the CreateAdminUserRequest interface.
|
|
@@ -30,8 +30,6 @@ function instanceOfCreateAdminUserRequest(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('email' in value) || value['email'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('roleIds' in value) || value['roleIds'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
return true;
|
|
36
34
|
}
|
|
37
35
|
function CreateAdminUserRequestFromJSON(json) {
|
|
@@ -47,7 +45,6 @@ function CreateAdminUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
48
46
|
'password': json['password'],
|
|
49
47
|
'email': json['email'],
|
|
50
|
-
'roleIds': json['role_ids'],
|
|
51
48
|
};
|
|
52
49
|
}
|
|
53
50
|
function CreateAdminUserRequestToJSON(json) {
|
|
@@ -64,6 +61,5 @@ function CreateAdminUserRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
64
61
|
'phone': value['phone'],
|
|
65
62
|
'password': value['password'],
|
|
66
63
|
'email': value['email'],
|
|
67
|
-
'role_ids': value['roleIds'],
|
|
68
64
|
};
|
|
69
65
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
* @interface CreateCustomerAddressRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateCustomerAddressRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateCustomerAddressRequest
|
|
22
|
+
*/
|
|
23
|
+
addresseeName?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateCustomerAddressRequest
|
|
28
|
+
*/
|
|
29
|
+
company?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateCustomerAddressRequest
|
|
34
|
+
*/
|
|
35
|
+
line1: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateCustomerAddressRequest
|
|
40
|
+
*/
|
|
41
|
+
line2?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateCustomerAddressRequest
|
|
46
|
+
*/
|
|
47
|
+
suburb: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateCustomerAddressRequest
|
|
52
|
+
*/
|
|
53
|
+
state: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateCustomerAddressRequest
|
|
58
|
+
*/
|
|
59
|
+
postcode: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CreateCustomerAddressRequest
|
|
64
|
+
*/
|
|
65
|
+
country?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {CreateCustomerAddressRequestTypeEnum}
|
|
69
|
+
* @memberof CreateCustomerAddressRequest
|
|
70
|
+
*/
|
|
71
|
+
type?: CreateCustomerAddressRequestTypeEnum;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const CreateCustomerAddressRequestTypeEnum: {
|
|
77
|
+
readonly Shipping: "shipping";
|
|
78
|
+
readonly Billing: "billing";
|
|
79
|
+
readonly ShippingBilling: "shipping-billing";
|
|
80
|
+
readonly Others: "others";
|
|
81
|
+
};
|
|
82
|
+
export type CreateCustomerAddressRequestTypeEnum = typeof CreateCustomerAddressRequestTypeEnum[keyof typeof CreateCustomerAddressRequestTypeEnum];
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the CreateCustomerAddressRequest interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfCreateCustomerAddressRequest(value: object): value is CreateCustomerAddressRequest;
|
|
87
|
+
export declare function CreateCustomerAddressRequestFromJSON(json: any): CreateCustomerAddressRequest;
|
|
88
|
+
export declare function CreateCustomerAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCustomerAddressRequest;
|
|
89
|
+
export declare function CreateCustomerAddressRequestToJSON(json: any): CreateCustomerAddressRequest;
|
|
90
|
+
export declare function CreateCustomerAddressRequestToJSONTyped(value?: CreateCustomerAddressRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.CreateCustomerAddressRequestTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateCustomerAddressRequest = instanceOfCreateCustomerAddressRequest;
|
|
18
|
+
exports.CreateCustomerAddressRequestFromJSON = CreateCustomerAddressRequestFromJSON;
|
|
19
|
+
exports.CreateCustomerAddressRequestFromJSONTyped = CreateCustomerAddressRequestFromJSONTyped;
|
|
20
|
+
exports.CreateCustomerAddressRequestToJSON = CreateCustomerAddressRequestToJSON;
|
|
21
|
+
exports.CreateCustomerAddressRequestToJSONTyped = CreateCustomerAddressRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateCustomerAddressRequestTypeEnum = {
|
|
26
|
+
Shipping: 'shipping',
|
|
27
|
+
Billing: 'billing',
|
|
28
|
+
ShippingBilling: 'shipping-billing',
|
|
29
|
+
Others: 'others'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateCustomerAddressRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfCreateCustomerAddressRequest(value) {
|
|
35
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function CreateCustomerAddressRequestFromJSON(json) {
|
|
46
|
+
return CreateCustomerAddressRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function CreateCustomerAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
54
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
55
|
+
'line1': json['line_1'],
|
|
56
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
57
|
+
'suburb': json['suburb'],
|
|
58
|
+
'state': json['state'],
|
|
59
|
+
'postcode': json['postcode'],
|
|
60
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
61
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function CreateCustomerAddressRequestToJSON(json) {
|
|
65
|
+
return CreateCustomerAddressRequestToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function CreateCustomerAddressRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
68
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'addressee_name': value['addresseeName'],
|
|
74
|
+
'company': value['company'],
|
|
75
|
+
'line_1': value['line1'],
|
|
76
|
+
'line_2': value['line2'],
|
|
77
|
+
'suburb': value['suburb'],
|
|
78
|
+
'state': value['state'],
|
|
79
|
+
'postcode': value['postcode'],
|
|
80
|
+
'country': value['country'],
|
|
81
|
+
'type': value['type'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -38,7 +38,7 @@ export interface CreateCustomerRequest {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateCustomerRequest
|
|
40
40
|
*/
|
|
41
|
-
password
|
|
41
|
+
password?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -57,6 +57,12 @@ export interface CreateCustomerRequest {
|
|
|
57
57
|
* @memberof CreateCustomerRequest
|
|
58
58
|
*/
|
|
59
59
|
subscribedToNewsletter?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CreateCustomerRequest
|
|
64
|
+
*/
|
|
65
|
+
netsuiteId?: number | null;
|
|
60
66
|
}
|
|
61
67
|
/**
|
|
62
68
|
* Check if a given object implements the CreateCustomerRequest interface.
|
|
@@ -26,8 +26,6 @@ function instanceOfCreateCustomerRequest(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('password' in value) || value['password'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
@@ -45,10 +43,11 @@ function CreateCustomerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
'firstName': json['first_name'],
|
|
46
44
|
'lastName': json['last_name'],
|
|
47
45
|
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
48
|
-
'password': json['password'],
|
|
46
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
49
47
|
'email': json['email'],
|
|
50
48
|
'siteId': json['site_id'],
|
|
51
49
|
'subscribedToNewsletter': json['subscribed_to_newsletter'] == null ? undefined : json['subscribed_to_newsletter'],
|
|
50
|
+
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
53
|
function CreateCustomerRequestToJSON(json) {
|
|
@@ -67,5 +66,6 @@ function CreateCustomerRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
66
|
'email': value['email'],
|
|
68
67
|
'site_id': value['siteId'],
|
|
69
68
|
'subscribed_to_newsletter': value['subscribedToNewsletter'],
|
|
69
|
+
'netsuite_id': value['netsuiteId'],
|
|
70
70
|
};
|
|
71
71
|
}
|
|
@@ -48,16 +48,16 @@ export interface CreatePageComponentRequest {
|
|
|
48
48
|
order?: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {Date}
|
|
52
52
|
* @memberof CreatePageComponentRequest
|
|
53
53
|
*/
|
|
54
|
-
startDate?:
|
|
54
|
+
startDate?: Date | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {Date}
|
|
58
58
|
* @memberof CreatePageComponentRequest
|
|
59
59
|
*/
|
|
60
|
-
endDate?:
|
|
60
|
+
endDate?: Date | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {object}
|
|
@@ -44,8 +44,8 @@ function CreatePageComponentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'type': json['type'],
|
|
45
45
|
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
46
46
|
'order': json['order'] == null ? undefined : json['order'],
|
|
47
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
48
|
-
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
47
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
48
|
+
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
49
49
|
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
50
50
|
'relations': json['relations'] == null ? undefined : (json['relations'].map(CreatePageComponentRequestRelationsInner_1.CreatePageComponentRequestRelationsInnerFromJSON)),
|
|
51
51
|
};
|
|
@@ -64,8 +64,8 @@ function CreatePageComponentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
64
64
|
'type': value['type'],
|
|
65
65
|
'disabled': value['disabled'],
|
|
66
66
|
'order': value['order'],
|
|
67
|
-
'start_date': value['startDate'],
|
|
68
|
-
'end_date': value['endDate'],
|
|
67
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
68
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
69
69
|
'component_data': value['componentData'],
|
|
70
70
|
'relations': value['relations'] == null ? undefined : (value['relations'].map(CreatePageComponentRequestRelationsInner_1.CreatePageComponentRequestRelationsInnerToJSON)),
|
|
71
71
|
};
|
|
@@ -63,8 +63,6 @@ export declare const CreateProductCategoryRequestAutomationRulesInnerFieldTypeEn
|
|
|
63
63
|
readonly Tag: "tag";
|
|
64
64
|
readonly Supplier: "supplier";
|
|
65
65
|
readonly Label: "label";
|
|
66
|
-
readonly ProductType: "product_type";
|
|
67
|
-
readonly ProductClass: "product_class";
|
|
68
66
|
};
|
|
69
67
|
export type CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
70
68
|
/**
|
|
@@ -29,9 +29,7 @@ exports.CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
|
29
29
|
Attribute: 'attribute',
|
|
30
30
|
Tag: 'tag',
|
|
31
31
|
Supplier: 'supplier',
|
|
32
|
-
Label: 'label'
|
|
33
|
-
ProductType: 'product_type',
|
|
34
|
-
ProductClass: 'product_class'
|
|
32
|
+
Label: 'label'
|
|
35
33
|
};
|
|
36
34
|
/**
|
|
37
35
|
* @export
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* @interface CreateRoleRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateRoleRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateRoleRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<number>}
|
|
27
|
+
* @memberof CreateRoleRequest
|
|
28
|
+
*/
|
|
29
|
+
permissionIds: Array<number>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateRoleRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateRoleRequest(value: object): value is CreateRoleRequest;
|
|
35
|
+
export declare function CreateRoleRequestFromJSON(json: any): CreateRoleRequest;
|
|
36
|
+
export declare function CreateRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRoleRequest;
|
|
37
|
+
export declare function CreateRoleRequestToJSON(json: any): CreateRoleRequest;
|
|
38
|
+
export declare function CreateRoleRequestToJSONTyped(value?: CreateRoleRequest | null, ignoreDiscriminator?: boolean): any;
|