@digital8/lighting-illusions-ts-sdk 0.0.2265 → 0.0.2266

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.
Files changed (65) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +7 -2
  3. package/dist/apis/ProductClassApi.d.ts +34 -0
  4. package/dist/apis/ProductClassApi.js +139 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressFrontendResource.d.ts +2 -2
  8. package/dist/models/AddressFrontendResource.js +6 -2
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +1 -3
  11. package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
  12. package/dist/models/CategoryAutomationFieldType.js +3 -1
  13. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
  14. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
  15. package/dist/models/FrontendCartResource.d.ts +0 -12
  16. package/dist/models/FrontendCartResource.js +0 -8
  17. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  18. package/dist/models/OrderFulfillmentResource.js +3 -3
  19. package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
  21. package/dist/models/ProductClassLiteResource.d.ts +44 -0
  22. package/dist/models/ProductClassLiteResource.js +57 -0
  23. package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
  24. package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
  25. package/dist/models/ProductClassResource.d.ts +2 -2
  26. package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
  27. package/dist/models/SearchAllProductClassesRequest.js +74 -0
  28. package/dist/models/StoreListResource.d.ts +2 -2
  29. package/dist/models/StoreListResource.js +2 -6
  30. package/dist/models/StoreResource.d.ts +1 -1
  31. package/dist/models/StoreResource.js +3 -1
  32. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  33. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  34. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  35. package/dist/models/StoreSpecialDateResource.js +3 -1
  36. package/dist/models/index.d.ts +4 -0
  37. package/dist/models/index.js +4 -0
  38. package/docs/FrontendCartResource.md +0 -4
  39. package/docs/PaginatedProductClassLiteResourceResponse.md +36 -0
  40. package/docs/ProductClassApi.md +74 -0
  41. package/docs/ProductClassLiteResource.md +38 -0
  42. package/docs/ProductClassLiteResourceArrayResponse.md +34 -0
  43. package/docs/ProductClassResource.md +1 -1
  44. package/docs/SearchAllProductClassesRequest.md +44 -0
  45. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  46. package/docs/StoreSpecialDateResource.md +1 -1
  47. package/package.json +1 -1
  48. package/src/apis/ProductClassApi.ts +76 -0
  49. package/src/apis/index.ts +1 -0
  50. package/src/models/AddressFrontendResource.ts +6 -4
  51. package/src/models/AddressResource.ts +2 -3
  52. package/src/models/CategoryAutomationFieldType.ts +3 -1
  53. package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
  54. package/src/models/FrontendCartResource.ts +0 -18
  55. package/src/models/OrderFulfillmentResource.ts +5 -5
  56. package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
  57. package/src/models/ProductClassLiteResource.ts +83 -0
  58. package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
  59. package/src/models/ProductClassResource.ts +2 -2
  60. package/src/models/SearchAllProductClassesRequest.ts +125 -0
  61. package/src/models/StoreListResource.ts +4 -6
  62. package/src/models/StoreResource.ts +3 -2
  63. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  64. package/src/models/StoreSpecialDateResource.ts +4 -3
  65. package/src/models/index.ts +4 -0
@@ -0,0 +1,34 @@
1
+
2
+ # ProductClassLiteResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ProductClassLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies ProductClassLiteResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ProductClassLiteResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `netsuiteId` | string
11
11
  `name` | string
12
- `parentId` | string
12
+ `parentId` | number
13
13
 
14
14
  ## Example
15
15
 
@@ -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
+
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | object
12
+ `date` | string
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | string
15
15
  `displayEndDate` | string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2265",
3
+ "version": "0.0.2266",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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';
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company?: string | null;
27
+ company: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2?: string | null;
39
+ line2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -73,7 +73,9 @@ export interface AddressFrontendResource {
73
73
  * Check if a given object implements the AddressFrontendResource interface.
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
+ if (!('company' in value) || value['company'] === undefined) return false;
76
77
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
+ if (!('line2' in value) || value['line2'] === undefined) return false;
77
79
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
78
80
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
79
81
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -92,9 +94,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
92
94
  }
93
95
  return {
94
96
 
95
- 'company': json['company'] == null ? undefined : json['company'],
97
+ 'company': json['company'],
96
98
  'line1': json['line1'],
97
- 'line2': json['line2'] == null ? undefined : json['line2'],
99
+ 'line2': json['line2'],
98
100
  'postcode': json['postcode'],
99
101
  'suburb': json['suburb'],
100
102
  'country': json['country'],
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- addresseeName: string;
45
+ addresseeName?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -97,7 +97,6 @@ export interface AddressResource {
97
97
  * Check if a given object implements the AddressResource interface.
98
98
  */
99
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
- if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
101
100
  if (!('line1' in value) || value['line1'] === undefined) return false;
102
101
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
103
102
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -120,7 +119,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
120
119
  'id': json['id'] == null ? undefined : json['id'],
121
120
  'type': json['type'] == null ? undefined : json['type'],
122
121
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
123
- 'addresseeName': json['addresseeName'],
122
+ 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
124
123
  'company': json['company'] == null ? undefined : json['company'],
125
124
  'line1': json['line1'],
126
125
  'line2': json['line2'] == null ? undefined : json['line2'],
@@ -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
 
@@ -150,18 +150,6 @@ export interface FrontendCartResource {
150
150
  * @memberof FrontendCartResource
151
151
  */
152
152
  transitInsurance: number;
153
- /**
154
- *
155
- * @type {number}
156
- * @memberof FrontendCartResource
157
- */
158
- deliveryShippingQuote: number;
159
- /**
160
- *
161
- * @type {number}
162
- * @memberof FrontendCartResource
163
- */
164
- transitInsuranceQuote: number;
165
153
  /**
166
154
  *
167
155
  * @type {number}
@@ -194,8 +182,6 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
194
182
  if (!('couponShippingDiscount' in value) || value['couponShippingDiscount'] === undefined) return false;
195
183
  if (!('shipping' in value) || value['shipping'] === undefined) return false;
196
184
  if (!('transitInsurance' in value) || value['transitInsurance'] === undefined) return false;
197
- if (!('deliveryShippingQuote' in value) || value['deliveryShippingQuote'] === undefined) return false;
198
- if (!('transitInsuranceQuote' in value) || value['transitInsuranceQuote'] === undefined) return false;
199
185
  if (!('gst' in value) || value['gst'] === undefined) return false;
200
186
  if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
201
187
  return true;
@@ -228,8 +214,6 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
228
214
  'couponShippingDiscount': json['couponShippingDiscount'],
229
215
  'shipping': json['shipping'],
230
216
  'transitInsurance': json['transitInsurance'],
231
- 'deliveryShippingQuote': json['deliveryShippingQuote'],
232
- 'transitInsuranceQuote': json['transitInsuranceQuote'],
233
217
  'gst': json['gst'],
234
218
  'grandTotal': json['grandTotal'],
235
219
  };
@@ -263,8 +247,6 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
263
247
  'couponShippingDiscount': value['couponShippingDiscount'],
264
248
  'shipping': value['shipping'],
265
249
  'transitInsurance': value['transitInsurance'],
266
- 'deliveryShippingQuote': value['deliveryShippingQuote'],
267
- 'transitInsuranceQuote': value['transitInsuranceQuote'],
268
250
  'gst': value['gst'],
269
251
  'grandTotal': value['grandTotal'],
270
252
  };
@@ -56,13 +56,13 @@ export interface OrderFulfillmentResource {
56
56
  * @type {string}
57
57
  * @memberof OrderFulfillmentResource
58
58
  */
59
- trackingUrl?: string | null;
59
+ trackingUrl: string;
60
60
  /**
61
61
  *
62
62
  * @type {string}
63
63
  * @memberof OrderFulfillmentResource
64
64
  */
65
- trackingCompany: string;
65
+ trackingCompany?: string | null;
66
66
  /**
67
67
  *
68
68
  * @type {string}
@@ -102,7 +102,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
102
102
  if (!('id' in value) || value['id'] === undefined) return false;
103
103
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
105
+ if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
106
106
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
107
107
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
108
108
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
@@ -123,8 +123,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
123
123
  'orderId': json['orderId'],
124
124
  'dateShipped': (new Date(json['dateShipped'])),
125
125
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
126
- 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
127
- 'trackingCompany': json['trackingCompany'],
126
+ 'trackingUrl': json['trackingUrl'],
127
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
128
128
  'docnum': json['docnum'],
129
129
  'netsuiteId': json['netsuiteId'],
130
130
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -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
+
@@ -39,10 +39,10 @@ export interface ProductClassResource {
39
39
  name: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {number}
43
43
  * @memberof ProductClassResource
44
44
  */
45
- parentId?: string | null;
45
+ parentId?: number | null;
46
46
  }
47
47
 
48
48
  /**