@digital8/lighting-illusions-ts-sdk 0.0.1513 → 0.0.1514
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 +40 -56
- package/README.md +26 -41
- package/dist/apis/ProductRegistrationApi.d.ts +95 -0
- package/dist/apis/{MenuApi.js → ProductRegistrationApi.js} +74 -130
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
- package/dist/models/{GetAllMenuRequest.js → GetAllProductRegistrationRequest.js} +21 -21
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
- package/dist/models/IndexProductRegistrationRequest.js +98 -0
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/{IndexMenuRequest.js → ListAssetsProductRegistrationRequest.js} +22 -23
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +6 -0
- package/dist/models/ProductChildListResource.js +2 -0
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
- package/dist/models/ProductRegistrationCustomerResource.js +65 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +57 -0
- package/dist/models/ProductRegistrationListResource.js +64 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
- package/dist/models/ProductRegistrationProductChildResource.js +63 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +90 -0
- package/dist/models/ProductRegistrationResource.js +81 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/StoreAssetForAssetableRequest.d.ts +0 -2
- package/dist/models/StoreAssetForAssetableRequest.js +1 -3
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/index.d.ts +19 -26
- package/dist/models/index.js +19 -26
- package/docs/{GetAllMenuRequest.md → GetAllProductRegistrationRequest.md} +4 -6
- package/docs/{GetAllMenuItemRequest.md → IndexProductRegistrationRequest.md} +18 -8
- package/docs/{IndexMenuRequest.md → ListAssetsProductRegistrationRequest.md} +8 -8
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
- package/docs/{PaginatedMenuListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductChildListResource.md +2 -0
- package/docs/ProductRegistrationApi.md +344 -0
- package/docs/{MenuResource.md → ProductRegistrationAssetResource.md} +8 -14
- package/docs/{MenuItemEditResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
- package/docs/{MenuItemType.md → ProductRegistrationAssetType.md} +4 -4
- package/docs/{MenuItemLinkResource.md → ProductRegistrationCustomerResource.md} +12 -14
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/{MenuItemHierarchyResource.md → ProductRegistrationListResource.md} +12 -18
- package/docs/{MenuItemHierarchyResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{UpdateMenuRequestMenuItemOrderInner.md → ProductRegistrationLiteResource.md} +6 -8
- package/docs/{MenuItemResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
- package/docs/{MenuListResource.md → ProductRegistrationProductChildResource.md} +8 -10
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +52 -0
- package/docs/{MenuItemLinkResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +297 -0
- package/src/apis/index.ts +1 -2
- package/src/models/AddressResource.ts +3 -2
- package/src/models/GetAllProductRegistrationRequest.ts +137 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRegistrationRequest.ts +193 -0
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +8 -0
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerResource.ts +108 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +108 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationProductChildResource.ts +93 -0
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +171 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/StoreAssetForAssetableRequest.ts +1 -3
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/index.ts +19 -26
- package/dist/apis/MenuApi.d.ts +0 -109
- package/dist/apis/MenuItemsApi.d.ts +0 -124
- package/dist/apis/MenuItemsApi.js +0 -491
- package/dist/models/GetAllMenuItemRequest.d.ts +0 -93
- package/dist/models/GetAllMenuItemRequest.js +0 -81
- package/dist/models/GetAllMenuRequest.d.ts +0 -92
- package/dist/models/GetHierarchyMenuItemRequest.d.ts +0 -32
- package/dist/models/GetHierarchyMenuItemRequest.js +0 -51
- package/dist/models/IndexMenuRequest.d.ts +0 -104
- package/dist/models/MenuItemEditResource.d.ts +0 -119
- package/dist/models/MenuItemEditResource.js +0 -94
- package/dist/models/MenuItemEditResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuItemEditResourceArrayResponse.js +0 -50
- package/dist/models/MenuItemHierarchyResource.d.ts +0 -74
- package/dist/models/MenuItemHierarchyResource.js +0 -73
- package/dist/models/MenuItemHierarchyResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuItemHierarchyResourceArrayResponse.js +0 -50
- package/dist/models/MenuItemLinkResource.d.ts +0 -68
- package/dist/models/MenuItemLinkResource.js +0 -67
- package/dist/models/MenuItemLinkResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuItemLinkResourceArrayResponse.js +0 -50
- package/dist/models/MenuItemResource.d.ts +0 -124
- package/dist/models/MenuItemResource.js +0 -95
- package/dist/models/MenuItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuItemResourceArrayResponse.js +0 -50
- package/dist/models/MenuItemType.d.ts +0 -27
- package/dist/models/MenuItemType.js +0 -53
- package/dist/models/MenuListResource.d.ts +0 -57
- package/dist/models/MenuListResource.js +0 -66
- package/dist/models/MenuListResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuListResourceArrayResponse.js +0 -50
- package/dist/models/MenuPosition.d.ts +0 -27
- package/dist/models/MenuPosition.js +0 -53
- package/dist/models/MenuResource.d.ts +0 -63
- package/dist/models/MenuResource.js +0 -70
- package/dist/models/MenuResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedMenuListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedMenuListResourceResponse.js +0 -57
- package/dist/models/SearchLinkablesMenuItemRequest.d.ts +0 -54
- package/dist/models/SearchLinkablesMenuItemRequest.js +0 -65
- package/dist/models/StoreMenuItemRequest.d.ts +0 -97
- package/dist/models/StoreMenuItemRequest.js +0 -84
- package/dist/models/StoreMenuItemRequestMenuItemLink.d.ts +0 -60
- package/dist/models/StoreMenuItemRequestMenuItemLink.js +0 -65
- package/dist/models/StoreMenuRequest.d.ts +0 -54
- package/dist/models/StoreMenuRequest.js +0 -69
- package/dist/models/UpdateMenuItemRequest.d.ts +0 -97
- package/dist/models/UpdateMenuItemRequest.js +0 -78
- package/dist/models/UpdateMenuRequest.d.ts +0 -61
- package/dist/models/UpdateMenuRequest.js +0 -66
- package/dist/models/UpdateMenuRequestMenuItemOrderInner.d.ts +0 -44
- package/dist/models/UpdateMenuRequestMenuItemOrderInner.js +0 -53
- package/docs/GetHierarchyMenuItemRequest.md +0 -34
- package/docs/MenuApi.md +0 -407
- package/docs/MenuItemEditResource.md +0 -62
- package/docs/MenuItemResource.md +0 -64
- package/docs/MenuItemsApi.md +0 -473
- package/docs/MenuListResourceArrayResponse.md +0 -34
- package/docs/MenuPosition.md +0 -32
- package/docs/MenuResourceArrayResponse.md +0 -34
- package/docs/SearchLinkablesMenuItemRequest.md +0 -38
- package/docs/StoreMenuItemRequest.md +0 -52
- package/docs/StoreMenuItemRequestMenuItemLink.md +0 -40
- package/docs/StoreMenuRequest.md +0 -38
- package/docs/UpdateMenuItemRequest.md +0 -52
- package/docs/UpdateMenuRequest.md +0 -40
- package/src/apis/MenuApi.ts +0 -334
- package/src/apis/MenuItemsApi.ts +0 -381
- package/src/models/GetAllMenuItemRequest.ts +0 -144
- package/src/models/GetAllMenuRequest.ts +0 -143
- package/src/models/GetHierarchyMenuItemRequest.ts +0 -66
- package/src/models/IndexMenuRequest.ts +0 -159
- package/src/models/MenuItemEditResource.ts +0 -206
- package/src/models/MenuItemEditResourceArrayResponse.ts +0 -73
- package/src/models/MenuItemHierarchyResource.ts +0 -126
- package/src/models/MenuItemHierarchyResourceArrayResponse.ts +0 -73
- package/src/models/MenuItemLinkResource.ts +0 -116
- package/src/models/MenuItemLinkResourceArrayResponse.ts +0 -73
- package/src/models/MenuItemResource.ts +0 -207
- package/src/models/MenuItemResourceArrayResponse.ts +0 -73
- package/src/models/MenuItemType.ts +0 -55
- package/src/models/MenuListResource.ts +0 -109
- package/src/models/MenuListResourceArrayResponse.ts +0 -73
- package/src/models/MenuPosition.ts +0 -55
- package/src/models/MenuResource.ts +0 -118
- package/src/models/MenuResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedMenuListResourceResponse.ts +0 -90
- package/src/models/SearchLinkablesMenuItemRequest.ts +0 -95
- package/src/models/StoreMenuItemRequest.ts +0 -161
- package/src/models/StoreMenuItemRequestMenuItemLink.ts +0 -102
- package/src/models/StoreMenuRequest.ts +0 -97
- package/src/models/UpdateMenuItemRequest.ts +0 -158
- package/src/models/UpdateMenuRequest.ts +0 -110
- package/src/models/UpdateMenuRequestMenuItemOrderInner.ts +0 -81
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,6 +79,7 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
82
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
83
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
84
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -99,7 +100,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
99
100
|
return {
|
|
100
101
|
|
|
101
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
|
-
'company': json['company']
|
|
103
|
+
'company': json['company'],
|
|
103
104
|
'line1': json['line_1'],
|
|
104
105
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
105
106
|
'postcode': json['postcode'],
|
|
@@ -0,0 +1,137 @@
|
|
|
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 GetAllProductRegistrationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GetAllProductRegistrationRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetAllProductRegistrationRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {GetAllProductRegistrationRequestSortByEnum}
|
|
31
|
+
* @memberof GetAllProductRegistrationRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: GetAllProductRegistrationRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {GetAllProductRegistrationRequestSortDirectionEnum}
|
|
37
|
+
* @memberof GetAllProductRegistrationRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: GetAllProductRegistrationRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetAllProductRegistrationRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetAllProductRegistrationRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllProductRegistrationRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof GetAllProductRegistrationRequest
|
|
62
|
+
*/
|
|
63
|
+
siteId?: Array<string>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const GetAllProductRegistrationRequestSortByEnum = {
|
|
71
|
+
Id: 'id',
|
|
72
|
+
CustomerName: 'customer-name',
|
|
73
|
+
CustomerEmail: 'customer-email',
|
|
74
|
+
CustomerPhone: 'customer-phone',
|
|
75
|
+
CreatedAt: 'created_at',
|
|
76
|
+
PurchasedDate: 'purchased_date'
|
|
77
|
+
} as const;
|
|
78
|
+
export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export const GetAllProductRegistrationRequestSortDirectionEnum = {
|
|
84
|
+
Asc: 'asc',
|
|
85
|
+
Desc: 'desc'
|
|
86
|
+
} as const;
|
|
87
|
+
export type GetAllProductRegistrationRequestSortDirectionEnum = typeof GetAllProductRegistrationRequestSortDirectionEnum[keyof typeof GetAllProductRegistrationRequestSortDirectionEnum];
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the GetAllProductRegistrationRequest interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfGetAllProductRegistrationRequest(value: object): value is GetAllProductRegistrationRequest {
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function GetAllProductRegistrationRequestFromJSON(json: any): GetAllProductRegistrationRequest {
|
|
98
|
+
return GetAllProductRegistrationRequestFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function GetAllProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductRegistrationRequest {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
108
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
109
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
110
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
111
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
112
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
113
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function GetAllProductRegistrationRequestToJSON(json: any): GetAllProductRegistrationRequest {
|
|
118
|
+
return GetAllProductRegistrationRequestToJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function GetAllProductRegistrationRequestToJSONTyped(value?: GetAllProductRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
122
|
+
if (value == null) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'search': value['search'],
|
|
129
|
+
'sortBy': value['sortBy'],
|
|
130
|
+
'sortDirection': value['sortDirection'],
|
|
131
|
+
'related_id': value['relatedId'],
|
|
132
|
+
'related_type': value['relatedType'],
|
|
133
|
+
'includes_relations': value['includesRelations'],
|
|
134
|
+
'site_id': value['siteId'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -184,6 +184,7 @@ export const IndexProductChildRequestRelatedTypeEnum = {
|
|
|
184
184
|
OverlayTemplate: 'overlayTemplate',
|
|
185
185
|
ProductType: 'productType',
|
|
186
186
|
ProductRange: 'productRange',
|
|
187
|
+
ProductRegistration: 'productRegistration',
|
|
187
188
|
Supplier: 'supplier',
|
|
188
189
|
Tag: 'tag',
|
|
189
190
|
Label: 'label',
|
|
@@ -0,0 +1,193 @@
|
|
|
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 IndexProductRegistrationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexProductRegistrationRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexProductRegistrationRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {IndexProductRegistrationRequestSortByEnum}
|
|
31
|
+
* @memberof IndexProductRegistrationRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexProductRegistrationRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {IndexProductRegistrationRequestSortDirectionEnum}
|
|
37
|
+
* @memberof IndexProductRegistrationRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexProductRegistrationRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexProductRegistrationRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexProductRegistrationRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof IndexProductRegistrationRequest
|
|
56
|
+
*/
|
|
57
|
+
siteId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof IndexProductRegistrationRequest
|
|
62
|
+
*/
|
|
63
|
+
beforePurchasedDate?: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof IndexProductRegistrationRequest
|
|
68
|
+
*/
|
|
69
|
+
afterPurchasedDate?: Date;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof IndexProductRegistrationRequest
|
|
74
|
+
*/
|
|
75
|
+
beforeCreatedAt?: Date;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof IndexProductRegistrationRequest
|
|
80
|
+
*/
|
|
81
|
+
afterCreatedAt?: Date;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof IndexProductRegistrationRequest
|
|
86
|
+
*/
|
|
87
|
+
relatedId?: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {IndexProductRegistrationRequestRelatedTypeEnum}
|
|
91
|
+
* @memberof IndexProductRegistrationRequest
|
|
92
|
+
*/
|
|
93
|
+
relatedType?: IndexProductRegistrationRequestRelatedTypeEnum;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof IndexProductRegistrationRequest
|
|
98
|
+
*/
|
|
99
|
+
includesRelations?: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export const IndexProductRegistrationRequestSortByEnum = {
|
|
107
|
+
Id: 'id',
|
|
108
|
+
CustomerName: 'customer-name',
|
|
109
|
+
CustomerEmail: 'customer-email',
|
|
110
|
+
CustomerPhone: 'customer-phone',
|
|
111
|
+
CreatedAt: 'created_at',
|
|
112
|
+
PurchasedDate: 'purchased_date'
|
|
113
|
+
} as const;
|
|
114
|
+
export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
export const IndexProductRegistrationRequestSortDirectionEnum = {
|
|
120
|
+
Asc: 'asc',
|
|
121
|
+
Desc: 'desc'
|
|
122
|
+
} as const;
|
|
123
|
+
export type IndexProductRegistrationRequestSortDirectionEnum = typeof IndexProductRegistrationRequestSortDirectionEnum[keyof typeof IndexProductRegistrationRequestSortDirectionEnum];
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @export
|
|
127
|
+
*/
|
|
128
|
+
export const IndexProductRegistrationRequestRelatedTypeEnum = {
|
|
129
|
+
ProductChild: 'productChild'
|
|
130
|
+
} as const;
|
|
131
|
+
export type IndexProductRegistrationRequestRelatedTypeEnum = typeof IndexProductRegistrationRequestRelatedTypeEnum[keyof typeof IndexProductRegistrationRequestRelatedTypeEnum];
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Check if a given object implements the IndexProductRegistrationRequest interface.
|
|
136
|
+
*/
|
|
137
|
+
export function instanceOfIndexProductRegistrationRequest(value: object): value is IndexProductRegistrationRequest {
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function IndexProductRegistrationRequestFromJSON(json: any): IndexProductRegistrationRequest {
|
|
142
|
+
return IndexProductRegistrationRequestFromJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function IndexProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRegistrationRequest {
|
|
146
|
+
if (json == null) {
|
|
147
|
+
return json;
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
|
|
151
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
152
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
153
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
154
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
155
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
156
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
157
|
+
'beforePurchasedDate': json['before_purchased_date'] == null ? undefined : (new Date(json['before_purchased_date'])),
|
|
158
|
+
'afterPurchasedDate': json['after_purchased_date'] == null ? undefined : (new Date(json['after_purchased_date'])),
|
|
159
|
+
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
160
|
+
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
161
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
162
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
163
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function IndexProductRegistrationRequestToJSON(json: any): IndexProductRegistrationRequest {
|
|
168
|
+
return IndexProductRegistrationRequestToJSONTyped(json, false);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function IndexProductRegistrationRequestToJSONTyped(value?: IndexProductRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
172
|
+
if (value == null) {
|
|
173
|
+
return value;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return {
|
|
177
|
+
|
|
178
|
+
'search': value['search'],
|
|
179
|
+
'sortBy': value['sortBy'],
|
|
180
|
+
'sortDirection': value['sortDirection'],
|
|
181
|
+
'per_page': value['perPage'],
|
|
182
|
+
'page': value['page'],
|
|
183
|
+
'site_id': value['siteId'],
|
|
184
|
+
'before_purchased_date': value['beforePurchasedDate'] == null ? value['beforePurchasedDate'] : value['beforePurchasedDate'].toISOString(),
|
|
185
|
+
'after_purchased_date': value['afterPurchasedDate'] == null ? value['afterPurchasedDate'] : value['afterPurchasedDate'].toISOString(),
|
|
186
|
+
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
187
|
+
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
188
|
+
'related_id': value['relatedId'],
|
|
189
|
+
'related_type': value['relatedType'],
|
|
190
|
+
'includes_relations': value['includesRelations'],
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
@@ -0,0 +1,158 @@
|
|
|
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 ListAssetsProductRegistrationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ListAssetsProductRegistrationRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ListAssetsProductRegistrationRequestSortByEnum}
|
|
31
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: ListAssetsProductRegistrationRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ListAssetsProductRegistrationRequestSortDirectionEnum}
|
|
37
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: ListAssetsProductRegistrationRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
56
|
+
*/
|
|
57
|
+
productRegistrationId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
62
|
+
*/
|
|
63
|
+
type?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
68
|
+
*/
|
|
69
|
+
relatedId?: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
74
|
+
*/
|
|
75
|
+
relatedType?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
80
|
+
*/
|
|
81
|
+
includesRelations?: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const ListAssetsProductRegistrationRequestSortByEnum = {
|
|
89
|
+
Id: 'id',
|
|
90
|
+
Type: 'type',
|
|
91
|
+
CreatedAt: 'created_at'
|
|
92
|
+
} as const;
|
|
93
|
+
export type ListAssetsProductRegistrationRequestSortByEnum = typeof ListAssetsProductRegistrationRequestSortByEnum[keyof typeof ListAssetsProductRegistrationRequestSortByEnum];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export const ListAssetsProductRegistrationRequestSortDirectionEnum = {
|
|
99
|
+
Asc: 'asc',
|
|
100
|
+
Desc: 'desc'
|
|
101
|
+
} as const;
|
|
102
|
+
export type ListAssetsProductRegistrationRequestSortDirectionEnum = typeof ListAssetsProductRegistrationRequestSortDirectionEnum[keyof typeof ListAssetsProductRegistrationRequestSortDirectionEnum];
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the ListAssetsProductRegistrationRequest interface.
|
|
107
|
+
*/
|
|
108
|
+
export function instanceOfListAssetsProductRegistrationRequest(value: object): value is ListAssetsProductRegistrationRequest {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function ListAssetsProductRegistrationRequestFromJSON(json: any): ListAssetsProductRegistrationRequest {
|
|
113
|
+
return ListAssetsProductRegistrationRequestFromJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ListAssetsProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssetsProductRegistrationRequest {
|
|
117
|
+
if (json == null) {
|
|
118
|
+
return json;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
123
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
124
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
125
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
126
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
127
|
+
'productRegistrationId': json['product_registration_id'] == null ? undefined : json['product_registration_id'],
|
|
128
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
129
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
130
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
131
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function ListAssetsProductRegistrationRequestToJSON(json: any): ListAssetsProductRegistrationRequest {
|
|
136
|
+
return ListAssetsProductRegistrationRequestToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function ListAssetsProductRegistrationRequestToJSONTyped(value?: ListAssetsProductRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'search': value['search'],
|
|
147
|
+
'sortBy': value['sortBy'],
|
|
148
|
+
'sortDirection': value['sortDirection'],
|
|
149
|
+
'per_page': value['perPage'],
|
|
150
|
+
'page': value['page'],
|
|
151
|
+
'product_registration_id': value['productRegistrationId'],
|
|
152
|
+
'type': value['type'],
|
|
153
|
+
'related_id': value['relatedId'],
|
|
154
|
+
'related_type': value['relatedType'],
|
|
155
|
+
'includes_relations': value['includesRelations'],
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductRegistrationAssetResource } from './ProductRegistrationAssetResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductRegistrationAssetResourceFromJSON,
|
|
26
|
+
ProductRegistrationAssetResourceFromJSONTyped,
|
|
27
|
+
ProductRegistrationAssetResourceToJSON,
|
|
28
|
+
ProductRegistrationAssetResourceToJSONTyped,
|
|
29
|
+
} from './ProductRegistrationAssetResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductRegistrationAssetResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductRegistrationAssetResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductRegistrationAssetResource>}
|
|
40
|
+
* @memberof PaginatedProductRegistrationAssetResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductRegistrationAssetResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductRegistrationAssetResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductRegistrationAssetResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductRegistrationAssetResourceResponse(value: object): value is PaginatedProductRegistrationAssetResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductRegistrationAssetResourceResponseFromJSON(json: any): PaginatedProductRegistrationAssetResourceResponse {
|
|
61
|
+
return PaginatedProductRegistrationAssetResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductRegistrationAssetResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRegistrationAssetResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductRegistrationAssetResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductRegistrationAssetResourceResponseToJSON(json: any): PaginatedProductRegistrationAssetResourceResponse {
|
|
76
|
+
return PaginatedProductRegistrationAssetResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductRegistrationAssetResourceResponseToJSONTyped(value?: PaginatedProductRegistrationAssetResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductRegistrationAssetResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|