@digital8/lighting-illusions-ts-sdk 0.0.1455 → 0.0.1457
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 -74
- package/README.md +25 -56
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/{LabelApi.js → ProductRegistrationApi.js} +57 -174
- package/dist/apis/SupplierApi.d.ts +1 -33
- package/dist/apis/SupplierApi.js +0 -122
- 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 +7 -9
- package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
- package/dist/models/{GetAllStoreRequest.js → GetAllProductRegistrationRequest.js} +20 -24
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
- package/dist/models/IndexProductRegistrationRequest.js +95 -0
- package/dist/models/LabelResource.d.ts +4 -23
- package/dist/models/LabelResource.js +8 -19
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/{IndexLabelRequest.js → ListAssetsProductRegistrationRequest.js} +22 -31
- 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/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/ProductRegistrationCustomerLiteResource.d.ts +44 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
- package/dist/models/ProductRegistrationCustomerResource.js +61 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +51 -0
- package/dist/models/ProductRegistrationListResource.js +60 -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/ProductRegistrationResource.d.ts +76 -0
- package/dist/models/ProductRegistrationResource.js +75 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +19 -35
- package/dist/models/index.js +19 -35
- package/docs/{GetAllStoreRequest.md → GetAllProductRegistrationRequest.md} +4 -8
- package/docs/{IndexStoreRequest.md → IndexProductRegistrationRequest.md} +12 -8
- package/docs/LabelResource.md +6 -12
- package/docs/{IndexLabelRequest.md → ListAssetsProductRegistrationRequest.md} +8 -6
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
- package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/{LabelLiteResource.md → ProductRegistrationAssetResource.md} +8 -12
- package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
- package/docs/{DetachStoresSupplierRequest.md → ProductRegistrationAssetType.md} +4 -6
- package/docs/{StoreLiteResource.md → ProductRegistrationCustomerLiteResource.md} +6 -6
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
- package/docs/{UpdateStoreRequestSpecialDatesInner.md → ProductRegistrationCustomerResource.md} +8 -10
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/{StoreSpecialDateResource.md → ProductRegistrationListResource.md} +10 -16
- package/docs/{LabelLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{DetachSuppliersStoreRequest.md → ProductRegistrationLiteResource.md} +8 -6
- package/docs/{AddressFrontendResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductRegistrationResource.md +48 -0
- package/docs/{LabelListResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/SupplierApi.md +0 -138
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/SupplierApi.ts +0 -112
- package/src/apis/index.ts +1 -2
- package/src/models/AddressResource.ts +8 -9
- package/src/models/GetAllProductRegistrationRequest.ts +128 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexProductRegistrationRequest.ts +184 -0
- package/src/models/LabelResource.ts +12 -46
- 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/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerLiteResource.ts +83 -0
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationCustomerResource.ts +92 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +99 -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/ProductRegistrationResource.ts +141 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +19 -35
- package/dist/apis/LabelApi.d.ts +0 -109
- package/dist/apis/StoreApi.d.ts +0 -190
- package/dist/apis/StoreApi.js +0 -744
- package/dist/models/AddressFrontendResource.d.ts +0 -74
- package/dist/models/AddressFrontendResource.js +0 -75
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
- package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/AttachStoresSupplierRequest.js +0 -51
- package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/AttachSuppliersStoreRequest.js +0 -51
- package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/DetachStoresSupplierRequest.js +0 -51
- package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/DetachSuppliersStoreRequest.js +0 -51
- package/dist/models/GetAllStoreRequest.d.ts +0 -93
- package/dist/models/IndexLabelRequest.d.ts +0 -109
- package/dist/models/IndexStoreRequest.d.ts +0 -105
- package/dist/models/IndexStoreRequest.js +0 -85
- package/dist/models/LabelListResource.d.ts +0 -75
- package/dist/models/LabelListResource.js +0 -74
- package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelListResourceArrayResponse.js +0 -50
- package/dist/models/LabelLiteResource.d.ts +0 -56
- package/dist/models/LabelLiteResource.js +0 -65
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
- package/dist/models/StoreFrontendResource.d.ts +0 -98
- package/dist/models/StoreFrontendResource.js +0 -89
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreLabelRequest.d.ts +0 -74
- package/dist/models/StoreLabelRequest.js +0 -71
- package/dist/models/StoreListResource.d.ts +0 -81
- package/dist/models/StoreListResource.js +0 -78
- package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreListResourceArrayResponse.js +0 -50
- package/dist/models/StoreLiteResource.d.ts +0 -45
- package/dist/models/StoreLiteResource.js +0 -58
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
- package/dist/models/StoreResource.d.ts +0 -102
- package/dist/models/StoreResource.js +0 -95
- package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateFrontendResource.js +0 -73
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateResource.js +0 -73
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
- package/dist/models/StoreStoreRequest.d.ts +0 -94
- package/dist/models/StoreStoreRequest.js +0 -85
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -68
- package/dist/models/StoreStoreRequestAddress.js +0 -73
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -62
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -61
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -62
- package/dist/models/StoreStoreSpecialDateRequest.js +0 -61
- package/dist/models/UpdateLabelRequest.d.ts +0 -74
- package/dist/models/UpdateLabelRequest.js +0 -63
- package/dist/models/UpdateStoreRequest.d.ts +0 -94
- package/dist/models/UpdateStoreRequest.js +0 -85
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +0 -56
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +0 -57
- package/docs/AddressFrontendResource.md +0 -48
- package/docs/AttachStoresSupplierRequest.md +0 -34
- package/docs/AttachSuppliersStoreRequest.md +0 -34
- package/docs/LabelApi.md +0 -407
- package/docs/LabelListResource.md +0 -48
- package/docs/StoreApi.md +0 -755
- package/docs/StoreFrontendResource.md +0 -56
- package/docs/StoreFrontendResourceArrayResponse.md +0 -34
- package/docs/StoreLabelRequest.md +0 -48
- package/docs/StoreListResource.md +0 -50
- package/docs/StoreListResourceArrayResponse.md +0 -34
- package/docs/StoreLiteResourceArrayResponse.md +0 -34
- package/docs/StoreResource.md +0 -56
- package/docs/StoreResourceArrayResponse.md +0 -34
- package/docs/StoreSpecialDateFrontendResource.md +0 -46
- package/docs/StoreSpecialDateResourceArrayResponse.md +0 -34
- package/docs/StoreStoreRequest.md +0 -54
- package/docs/StoreStoreRequestAddress.md +0 -46
- package/docs/StoreStoreRequestSpecialDatesInner.md +0 -44
- package/docs/StoreStoreSpecialDateRequest.md +0 -44
- package/docs/UpdateLabelRequest.md +0 -48
- package/docs/UpdateStoreRequest.md +0 -54
- package/src/apis/LabelApi.ts +0 -328
- package/src/apis/StoreApi.ts +0 -625
- package/src/models/AddressFrontendResource.ts +0 -127
- package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
- package/src/models/AttachStoresSupplierRequest.ts +0 -66
- package/src/models/AttachSuppliersStoreRequest.ts +0 -66
- package/src/models/DetachStoresSupplierRequest.ts +0 -66
- package/src/models/DetachSuppliersStoreRequest.ts +0 -66
- package/src/models/GetAllStoreRequest.ts +0 -144
- package/src/models/IndexLabelRequest.ts +0 -163
- package/src/models/IndexStoreRequest.ts +0 -160
- package/src/models/LabelListResource.ts +0 -134
- package/src/models/LabelListResourceArrayResponse.ts +0 -73
- package/src/models/LabelLiteResource.ts +0 -101
- package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
- package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
- package/src/models/StoreFrontendResource.ts +0 -162
- package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreLabelRequest.ts +0 -125
- package/src/models/StoreListResource.ts +0 -143
- package/src/models/StoreListResourceArrayResponse.ts +0 -73
- package/src/models/StoreLiteResource.ts +0 -91
- package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
- package/src/models/StoreResource.ts +0 -192
- package/src/models/StoreResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateFrontendResource.ts +0 -119
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateResource.ts +0 -119
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
- package/src/models/StoreStoreRequest.ts +0 -167
- package/src/models/StoreStoreRequestAddress.ts +0 -119
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -106
- package/src/models/StoreStoreSpecialDateRequest.ts +0 -106
- package/src/models/UpdateLabelRequest.ts +0 -121
- package/src/models/UpdateStoreRequest.ts +0 -167
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +0 -97
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,7 +79,6 @@ 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;
|
|
83
82
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
83
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -100,14 +99,14 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
99
|
return {
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company'],
|
|
104
|
-
'line1': json['
|
|
105
|
-
'line2': json['
|
|
102
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
103
|
+
'line1': json['line1'],
|
|
104
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
106
105
|
'postcode': json['postcode'],
|
|
107
106
|
'suburb': json['suburb'],
|
|
108
107
|
'country': json['country'],
|
|
109
108
|
'state': json['state'],
|
|
110
|
-
'fullAddress': json['
|
|
109
|
+
'fullAddress': json['fullAddress'],
|
|
111
110
|
};
|
|
112
111
|
}
|
|
113
112
|
|
|
@@ -124,13 +123,13 @@ export function AddressResourceToJSONTyped(value?: AddressResource | null, ignor
|
|
|
124
123
|
|
|
125
124
|
'id': value['id'],
|
|
126
125
|
'company': value['company'],
|
|
127
|
-
'
|
|
128
|
-
'
|
|
126
|
+
'line1': value['line1'],
|
|
127
|
+
'line2': value['line2'],
|
|
129
128
|
'postcode': value['postcode'],
|
|
130
129
|
'suburb': value['suburb'],
|
|
131
130
|
'country': value['country'],
|
|
132
131
|
'state': value['state'],
|
|
133
|
-
'
|
|
132
|
+
'fullAddress': value['fullAddress'],
|
|
134
133
|
};
|
|
135
134
|
}
|
|
136
135
|
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const GetAllProductRegistrationRequestSortByEnum = {
|
|
65
|
+
Id: 'id',
|
|
66
|
+
CustomerName: 'customer-name',
|
|
67
|
+
CustomerEmail: 'customer-email',
|
|
68
|
+
CustomerPhone: 'customer-phone',
|
|
69
|
+
CreatedAt: 'created_at'
|
|
70
|
+
} as const;
|
|
71
|
+
export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const GetAllProductRegistrationRequestSortDirectionEnum = {
|
|
77
|
+
Asc: 'asc',
|
|
78
|
+
Desc: 'desc'
|
|
79
|
+
} as const;
|
|
80
|
+
export type GetAllProductRegistrationRequestSortDirectionEnum = typeof GetAllProductRegistrationRequestSortDirectionEnum[keyof typeof GetAllProductRegistrationRequestSortDirectionEnum];
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the GetAllProductRegistrationRequest interface.
|
|
85
|
+
*/
|
|
86
|
+
export function instanceOfGetAllProductRegistrationRequest(value: object): value is GetAllProductRegistrationRequest {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetAllProductRegistrationRequestFromJSON(json: any): GetAllProductRegistrationRequest {
|
|
91
|
+
return GetAllProductRegistrationRequestFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetAllProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductRegistrationRequest {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
101
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
102
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
103
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
104
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
105
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function GetAllProductRegistrationRequestToJSON(json: any): GetAllProductRegistrationRequest {
|
|
110
|
+
return GetAllProductRegistrationRequestToJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function GetAllProductRegistrationRequestToJSONTyped(value?: GetAllProductRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'search': value['search'],
|
|
121
|
+
'sortBy': value['sortBy'],
|
|
122
|
+
'sortDirection': value['sortDirection'],
|
|
123
|
+
'related_id': value['relatedId'],
|
|
124
|
+
'related_type': value['relatedType'],
|
|
125
|
+
'includes_relations': value['includesRelations'],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -184,9 +184,9 @@ 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
|
-
Label: 'label',
|
|
190
190
|
Site: 'site'
|
|
191
191
|
} as const;
|
|
192
192
|
export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
|
|
@@ -0,0 +1,184 @@
|
|
|
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 {Date}
|
|
55
|
+
* @memberof IndexProductRegistrationRequest
|
|
56
|
+
*/
|
|
57
|
+
beforePurchasedDate?: Date;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof IndexProductRegistrationRequest
|
|
62
|
+
*/
|
|
63
|
+
afterPurchasedDate?: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof IndexProductRegistrationRequest
|
|
68
|
+
*/
|
|
69
|
+
beforeCreatedAt?: Date;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof IndexProductRegistrationRequest
|
|
74
|
+
*/
|
|
75
|
+
afterCreatedAt?: Date;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof IndexProductRegistrationRequest
|
|
80
|
+
*/
|
|
81
|
+
relatedId?: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {IndexProductRegistrationRequestRelatedTypeEnum}
|
|
85
|
+
* @memberof IndexProductRegistrationRequest
|
|
86
|
+
*/
|
|
87
|
+
relatedType?: IndexProductRegistrationRequestRelatedTypeEnum;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof IndexProductRegistrationRequest
|
|
92
|
+
*/
|
|
93
|
+
includesRelations?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const IndexProductRegistrationRequestSortByEnum = {
|
|
101
|
+
Id: 'id',
|
|
102
|
+
CustomerName: 'customer-name',
|
|
103
|
+
CustomerEmail: 'customer-email',
|
|
104
|
+
CustomerPhone: 'customer-phone',
|
|
105
|
+
CreatedAt: 'created_at'
|
|
106
|
+
} as const;
|
|
107
|
+
export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export const IndexProductRegistrationRequestSortDirectionEnum = {
|
|
113
|
+
Asc: 'asc',
|
|
114
|
+
Desc: 'desc'
|
|
115
|
+
} as const;
|
|
116
|
+
export type IndexProductRegistrationRequestSortDirectionEnum = typeof IndexProductRegistrationRequestSortDirectionEnum[keyof typeof IndexProductRegistrationRequestSortDirectionEnum];
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export const IndexProductRegistrationRequestRelatedTypeEnum = {
|
|
122
|
+
ProductChild: 'productChild'
|
|
123
|
+
} as const;
|
|
124
|
+
export type IndexProductRegistrationRequestRelatedTypeEnum = typeof IndexProductRegistrationRequestRelatedTypeEnum[keyof typeof IndexProductRegistrationRequestRelatedTypeEnum];
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the IndexProductRegistrationRequest interface.
|
|
129
|
+
*/
|
|
130
|
+
export function instanceOfIndexProductRegistrationRequest(value: object): value is IndexProductRegistrationRequest {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function IndexProductRegistrationRequestFromJSON(json: any): IndexProductRegistrationRequest {
|
|
135
|
+
return IndexProductRegistrationRequestFromJSONTyped(json, false);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function IndexProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRegistrationRequest {
|
|
139
|
+
if (json == null) {
|
|
140
|
+
return json;
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
145
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
146
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
147
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
148
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
149
|
+
'beforePurchasedDate': json['before_purchased_date'] == null ? undefined : (new Date(json['before_purchased_date'])),
|
|
150
|
+
'afterPurchasedDate': json['after_purchased_date'] == null ? undefined : (new Date(json['after_purchased_date'])),
|
|
151
|
+
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
152
|
+
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
153
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
154
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
155
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function IndexProductRegistrationRequestToJSON(json: any): IndexProductRegistrationRequest {
|
|
160
|
+
return IndexProductRegistrationRequestToJSONTyped(json, false);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function IndexProductRegistrationRequestToJSONTyped(value?: IndexProductRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
164
|
+
if (value == null) {
|
|
165
|
+
return value;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'search': value['search'],
|
|
171
|
+
'sortBy': value['sortBy'],
|
|
172
|
+
'sortDirection': value['sortDirection'],
|
|
173
|
+
'per_page': value['perPage'],
|
|
174
|
+
'page': value['page'],
|
|
175
|
+
'before_purchased_date': value['beforePurchasedDate'] == null ? value['beforePurchasedDate'] : value['beforePurchasedDate'].toISOString(),
|
|
176
|
+
'after_purchased_date': value['afterPurchasedDate'] == null ? value['afterPurchasedDate'] : value['afterPurchasedDate'].toISOString(),
|
|
177
|
+
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
178
|
+
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
179
|
+
'related_id': value['relatedId'],
|
|
180
|
+
'related_type': value['relatedType'],
|
|
181
|
+
'includes_relations': value['includesRelations'],
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
SiteLiteResourceFromJSON,
|
|
19
|
-
SiteLiteResourceFromJSONTyped,
|
|
20
|
-
SiteLiteResourceToJSON,
|
|
21
|
-
SiteLiteResourceToJSONTyped,
|
|
22
|
-
} from './SiteLiteResource';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -47,40 +39,22 @@ export interface LabelResource {
|
|
|
47
39
|
longName: string;
|
|
48
40
|
/**
|
|
49
41
|
*
|
|
50
|
-
* @type {
|
|
51
|
-
* @memberof LabelResource
|
|
52
|
-
*/
|
|
53
|
-
site: SiteLiteResource | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof LabelResource
|
|
58
|
-
*/
|
|
59
|
-
cartButtonText: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof LabelResource
|
|
64
|
-
*/
|
|
65
|
-
colour: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
42
|
+
* @type {number}
|
|
69
43
|
* @memberof LabelResource
|
|
70
44
|
*/
|
|
71
|
-
|
|
45
|
+
siteId: number;
|
|
72
46
|
/**
|
|
73
47
|
*
|
|
74
48
|
* @type {string}
|
|
75
49
|
* @memberof LabelResource
|
|
76
50
|
*/
|
|
77
|
-
|
|
51
|
+
color: string;
|
|
78
52
|
/**
|
|
79
53
|
*
|
|
80
54
|
* @type {string}
|
|
81
55
|
* @memberof LabelResource
|
|
82
56
|
*/
|
|
83
|
-
|
|
57
|
+
textColor?: string | null;
|
|
84
58
|
}
|
|
85
59
|
|
|
86
60
|
/**
|
|
@@ -89,10 +63,8 @@ export interface LabelResource {
|
|
|
89
63
|
export function instanceOfLabelResource(value: object): value is LabelResource {
|
|
90
64
|
if (!('shortName' in value) || value['shortName'] === undefined) return false;
|
|
91
65
|
if (!('longName' in value) || value['longName'] === undefined) return false;
|
|
92
|
-
if (!('
|
|
93
|
-
if (!('
|
|
94
|
-
if (!('colour' in value) || value['colour'] === undefined) return false;
|
|
95
|
-
if (!('textColour' in value) || value['textColour'] === undefined) return false;
|
|
66
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
67
|
+
if (!('color' in value) || value['color'] === undefined) return false;
|
|
96
68
|
return true;
|
|
97
69
|
}
|
|
98
70
|
|
|
@@ -109,12 +81,9 @@ export function LabelResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
109
81
|
'id': json['id'] == null ? undefined : json['id'],
|
|
110
82
|
'shortName': json['shortName'],
|
|
111
83
|
'longName': json['longName'],
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'textColour': json['textColour'],
|
|
116
|
-
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
117
|
-
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
84
|
+
'siteId': json['siteId'],
|
|
85
|
+
'color': json['color'],
|
|
86
|
+
'textColor': json['textColor'] == null ? undefined : json['textColor'],
|
|
118
87
|
};
|
|
119
88
|
}
|
|
120
89
|
|
|
@@ -132,12 +101,9 @@ export function LabelResourceToJSONTyped(value?: LabelResource | null, ignoreDis
|
|
|
132
101
|
'id': value['id'],
|
|
133
102
|
'shortName': value['shortName'],
|
|
134
103
|
'longName': value['longName'],
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'
|
|
138
|
-
'textColour': value['textColour'],
|
|
139
|
-
'startDate': value['startDate'],
|
|
140
|
-
'endDate': value['endDate'],
|
|
104
|
+
'siteId': value['siteId'],
|
|
105
|
+
'color': value['color'],
|
|
106
|
+
'textColor': value['textColor'],
|
|
141
107
|
};
|
|
142
108
|
}
|
|
143
109
|
|
|
@@ -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
|
+
|