@digital8/lighting-illusions-ts-sdk 0.0.2267 → 0.0.2269
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 +10 -0
- package/README.md +7 -2
- package/dist/apis/ProductClassApi.d.ts +34 -0
- package/dist/apis/ProductClassApi.js +139 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
- package/dist/models/CategoryAutomationFieldType.js +3 -1
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
- package/dist/models/FrontendCartResource.d.ts +0 -18
- package/dist/models/FrontendCartResource.js +0 -12
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +2 -6
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
- package/dist/models/ProductClassLiteResource.d.ts +44 -0
- package/dist/models/ProductClassLiteResource.js +57 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
- package/dist/models/SearchAllProductClassesRequest.js +74 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/FrontendCartResource.md +0 -6
- package/docs/PaginatedProductClassLiteResourceResponse.md +36 -0
- package/docs/ProductClassApi.md +74 -0
- package/docs/ProductClassLiteResource.md +38 -0
- package/docs/ProductClassLiteResourceArrayResponse.md +34 -0
- package/docs/ProductClassResource.md +1 -1
- package/docs/SearchAllProductClassesRequest.md +44 -0
- package/package.json +1 -1
- package/src/apis/ProductClassApi.ts +76 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +2 -3
- package/src/models/CategoryAutomationFieldType.ts +3 -1
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
- package/src/models/FrontendCartResource.ts +0 -27
- package/src/models/OrderFulfillmentResource.ts +4 -6
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
- package/src/models/ProductClassLiteResource.ts +83 -0
- package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllProductClassesRequest.ts +125 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +5 -5
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchAllProductClassesRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { SearchAllProductClassesRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"search": null,
|
|
24
|
+
"sortBy": null,
|
|
25
|
+
"sortDirection": null,
|
|
26
|
+
"relatedId": null,
|
|
27
|
+
"relatedType": null,
|
|
28
|
+
"includesRelations": null,
|
|
29
|
+
} satisfies SearchAllProductClassesRequest
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchAllProductClassesRequest
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
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 * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type ProductClassLiteResourceArrayResponse,
|
|
18
|
+
ProductClassLiteResourceArrayResponseFromJSON,
|
|
19
|
+
ProductClassLiteResourceArrayResponseToJSON,
|
|
20
|
+
} from '../models/ProductClassLiteResourceArrayResponse';
|
|
21
|
+
import {
|
|
22
|
+
type SearchAllProductClassesRequest,
|
|
23
|
+
SearchAllProductClassesRequestFromJSON,
|
|
24
|
+
SearchAllProductClassesRequestToJSON,
|
|
25
|
+
} from '../models/SearchAllProductClassesRequest';
|
|
26
|
+
|
|
27
|
+
export interface GetAllProductClassRequest {
|
|
28
|
+
searchAllProductClassesRequest?: SearchAllProductClassesRequest;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export class ProductClassApi extends runtime.BaseAPI {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Creates request options for getAllProductClass without sending the request
|
|
38
|
+
*/
|
|
39
|
+
async getAllProductClassRequestOpts(requestParameters: GetAllProductClassRequest): Promise<runtime.RequestOpts> {
|
|
40
|
+
const queryParameters: any = {};
|
|
41
|
+
|
|
42
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
43
|
+
|
|
44
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
let urlPath = `/admin-api/product-class/all`;
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
path: urlPath,
|
|
51
|
+
method: 'POST',
|
|
52
|
+
headers: headerParameters,
|
|
53
|
+
query: queryParameters,
|
|
54
|
+
body: SearchAllProductClassesRequestToJSON(requestParameters['searchAllProductClassesRequest']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Auto-generated: getAllProductClass
|
|
60
|
+
*/
|
|
61
|
+
async getAllProductClassRaw(requestParameters: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductClassLiteResourceArrayResponse>> {
|
|
62
|
+
const requestOptions = await this.getAllProductClassRequestOpts(requestParameters);
|
|
63
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
64
|
+
|
|
65
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductClassLiteResourceArrayResponseFromJSON(jsonValue));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Auto-generated: getAllProductClass
|
|
70
|
+
*/
|
|
71
|
+
async getAllProductClass(requestParameters: GetAllProductClassRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductClassLiteResourceArrayResponse> {
|
|
72
|
+
const response = await this.getAllProductClassRaw(requestParameters, initOverrides);
|
|
73
|
+
return await response.value();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './PageApi';
|
|
|
20
20
|
export * from './PageComponentApi';
|
|
21
21
|
export * from './ProductApi';
|
|
22
22
|
export * from './ProductCategoryApi';
|
|
23
|
+
export * from './ProductClassApi';
|
|
23
24
|
export * from './ProductRangeApi';
|
|
24
25
|
export * from './ProductRegistrationApi';
|
|
25
26
|
export * from './ProductTypeApi';
|
|
@@ -48,7 +48,7 @@ export interface AddressResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
company
|
|
51
|
+
company?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -98,7 +98,6 @@ export interface AddressResource {
|
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
102
101
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
103
102
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
104
103
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -122,7 +121,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
122
121
|
'type': json['type'] == null ? undefined : json['type'],
|
|
123
122
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
124
123
|
'addresseeName': json['addresseeName'],
|
|
125
|
-
'company': json['company'],
|
|
124
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
126
125
|
'line1': json['line1'],
|
|
127
126
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
128
127
|
'postcode': json['postcode'],
|
|
@@ -24,7 +24,9 @@ export const CategoryAutomationFieldType = {
|
|
|
24
24
|
Attribute: 'attribute',
|
|
25
25
|
Tag: 'tag',
|
|
26
26
|
Supplier: 'supplier',
|
|
27
|
-
Label: 'label'
|
|
27
|
+
Label: 'label',
|
|
28
|
+
ProductType: 'product_type',
|
|
29
|
+
ProductClass: 'product_class'
|
|
28
30
|
} as const;
|
|
29
31
|
export type CategoryAutomationFieldType = typeof CategoryAutomationFieldType[keyof typeof CategoryAutomationFieldType];
|
|
30
32
|
|
|
@@ -68,7 +68,9 @@ export const CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
|
68
68
|
Attribute: 'attribute',
|
|
69
69
|
Tag: 'tag',
|
|
70
70
|
Supplier: 'supplier',
|
|
71
|
-
Label: 'label'
|
|
71
|
+
Label: 'label',
|
|
72
|
+
ProductType: 'product_type',
|
|
73
|
+
ProductClass: 'product_class'
|
|
72
74
|
} as const;
|
|
73
75
|
export type CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
74
76
|
|
|
@@ -120,12 +120,6 @@ export interface FrontendCartResource {
|
|
|
120
120
|
* @memberof FrontendCartResource
|
|
121
121
|
*/
|
|
122
122
|
subtotal: number;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @type {number}
|
|
126
|
-
* @memberof FrontendCartResource
|
|
127
|
-
*/
|
|
128
|
-
subtotalAfterDiscounts: number;
|
|
129
123
|
/**
|
|
130
124
|
*
|
|
131
125
|
* @type {number}
|
|
@@ -156,18 +150,6 @@ export interface FrontendCartResource {
|
|
|
156
150
|
* @memberof FrontendCartResource
|
|
157
151
|
*/
|
|
158
152
|
transitInsurance: number;
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {number}
|
|
162
|
-
* @memberof FrontendCartResource
|
|
163
|
-
*/
|
|
164
|
-
deliveryShippingQuote: number;
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
* @type {number}
|
|
168
|
-
* @memberof FrontendCartResource
|
|
169
|
-
*/
|
|
170
|
-
transitInsuranceQuote: number;
|
|
171
153
|
/**
|
|
172
154
|
*
|
|
173
155
|
* @type {number}
|
|
@@ -195,14 +177,11 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
|
|
|
195
177
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
196
178
|
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
197
179
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
198
|
-
if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined) return false;
|
|
199
180
|
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
|
|
200
181
|
if (!('couponSubtotalDiscount' in value) || value['couponSubtotalDiscount'] === undefined) return false;
|
|
201
182
|
if (!('couponShippingDiscount' in value) || value['couponShippingDiscount'] === undefined) return false;
|
|
202
183
|
if (!('shipping' in value) || value['shipping'] === undefined) return false;
|
|
203
184
|
if (!('transitInsurance' in value) || value['transitInsurance'] === undefined) return false;
|
|
204
|
-
if (!('deliveryShippingQuote' in value) || value['deliveryShippingQuote'] === undefined) return false;
|
|
205
|
-
if (!('transitInsuranceQuote' in value) || value['transitInsuranceQuote'] === undefined) return false;
|
|
206
185
|
if (!('gst' in value) || value['gst'] === undefined) return false;
|
|
207
186
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
|
|
208
187
|
return true;
|
|
@@ -230,14 +209,11 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
230
209
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
231
210
|
'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
|
|
232
211
|
'subtotal': json['subtotal'],
|
|
233
|
-
'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
|
|
234
212
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
235
213
|
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
236
214
|
'couponShippingDiscount': json['couponShippingDiscount'],
|
|
237
215
|
'shipping': json['shipping'],
|
|
238
216
|
'transitInsurance': json['transitInsurance'],
|
|
239
|
-
'deliveryShippingQuote': json['deliveryShippingQuote'],
|
|
240
|
-
'transitInsuranceQuote': json['transitInsuranceQuote'],
|
|
241
217
|
'gst': json['gst'],
|
|
242
218
|
'grandTotal': json['grandTotal'],
|
|
243
219
|
};
|
|
@@ -266,14 +242,11 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
|
|
|
266
242
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
267
243
|
'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
|
|
268
244
|
'subtotal': value['subtotal'],
|
|
269
|
-
'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
|
|
270
245
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
271
246
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
272
247
|
'couponShippingDiscount': value['couponShippingDiscount'],
|
|
273
248
|
'shipping': value['shipping'],
|
|
274
249
|
'transitInsurance': value['transitInsurance'],
|
|
275
|
-
'deliveryShippingQuote': value['deliveryShippingQuote'],
|
|
276
|
-
'transitInsuranceQuote': value['transitInsuranceQuote'],
|
|
277
250
|
'gst': value['gst'],
|
|
278
251
|
'grandTotal': value['grandTotal'],
|
|
279
252
|
};
|
|
@@ -50,13 +50,13 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -102,8 +102,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
-
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
|
-
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
107
105
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
106
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
109
107
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -123,8 +121,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
123
121
|
'id': json['id'],
|
|
124
122
|
'orderId': json['orderId'],
|
|
125
123
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
|
-
'trackingNumber': json['trackingNumber'],
|
|
127
|
-
'trackingUrl': json['trackingUrl'],
|
|
124
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
125
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
128
126
|
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
129
127
|
'docnum': json['docnum'],
|
|
130
128
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -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 { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductClassLiteResourceFromJSON,
|
|
26
|
+
ProductClassLiteResourceFromJSONTyped,
|
|
27
|
+
ProductClassLiteResourceToJSON,
|
|
28
|
+
ProductClassLiteResourceToJSONTyped,
|
|
29
|
+
} from './ProductClassLiteResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductClassLiteResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductClassLiteResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductClassLiteResource>}
|
|
40
|
+
* @memberof PaginatedProductClassLiteResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductClassLiteResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductClassLiteResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductClassLiteResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductClassLiteResourceResponse(value: object): value is PaginatedProductClassLiteResourceResponse {
|
|
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 PaginatedProductClassLiteResourceResponseFromJSON(json: any): PaginatedProductClassLiteResourceResponse {
|
|
61
|
+
return PaginatedProductClassLiteResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductClassLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductClassLiteResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductClassLiteResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductClassLiteResourceResponseToJSON(json: any): PaginatedProductClassLiteResourceResponse {
|
|
76
|
+
return PaginatedProductClassLiteResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductClassLiteResourceResponseToJSONTyped(value?: PaginatedProductClassLiteResourceResponse | 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(ProductClassLiteResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 ProductClassLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductClassLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductClassLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductClassLiteResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProductClassLiteResource
|
|
38
|
+
*/
|
|
39
|
+
pathString: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ProductClassLiteResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfProductClassLiteResource(value: object): value is ProductClassLiteResource {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('pathString' in value) || value['pathString'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ProductClassLiteResourceFromJSON(json: any): ProductClassLiteResource {
|
|
52
|
+
return ProductClassLiteResourceFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ProductClassLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResource {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'pathString': json['pathString'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ProductClassLiteResourceToJSON(json: any): ProductClassLiteResource {
|
|
68
|
+
return ProductClassLiteResourceToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ProductClassLiteResourceToJSONTyped(value?: ProductClassLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'pathString': value['pathString'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductClassLiteResourceFromJSON,
|
|
19
|
+
ProductClassLiteResourceFromJSONTyped,
|
|
20
|
+
ProductClassLiteResourceToJSON,
|
|
21
|
+
ProductClassLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductClassLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductClassLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductClassLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductClassLiteResource>}
|
|
33
|
+
* @memberof ProductClassLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductClassLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductClassLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductClassLiteResourceArrayResponse(value: object): value is ProductClassLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductClassLiteResourceArrayResponseFromJSON(json: any): ProductClassLiteResourceArrayResponse {
|
|
46
|
+
return ProductClassLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductClassLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductClassLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductClassLiteResourceArrayResponseToJSON(json: any): ProductClassLiteResourceArrayResponse {
|
|
60
|
+
return ProductClassLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductClassLiteResourceArrayResponseToJSONTyped(value?: ProductClassLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductClassLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|