@digital8/lighting-illusions-ts-sdk 0.0.713 → 0.0.715

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.
@@ -105,6 +105,7 @@ docs/IndexAttributeRequest.md
105
105
  docs/IndexDefinitionRequest.md
106
106
  docs/IndexDocumentRequest.md
107
107
  docs/IndexExternalApiLogRequest.md
108
+ docs/IndexModelAttributeRequest.md
108
109
  docs/IndexOverlayTemplateRequest.md
109
110
  docs/IndexProductCategoryRequest.md
110
111
  docs/IndexProductChildRequest.md
@@ -115,6 +116,8 @@ docs/IndexSiteNotificationRequest.md
115
116
  docs/IndexSiteRequest.md
116
117
  docs/IndexSupplierRequest.md
117
118
  docs/IndexTagRequest.md
119
+ docs/ModelAttributeListResource.md
120
+ docs/ModelAttributeListResourceArrayResponse.md
118
121
  docs/ModelAttributeResource.md
119
122
  docs/ModelAttributeResourceArrayResponse.md
120
123
  docs/OverlayTemplateApi.md
@@ -140,6 +143,7 @@ docs/PaginatedDocumentResourceResponse.md
140
143
  docs/PaginatedExternalApiLogListResourceResponse.md
141
144
  docs/PaginatedExternalApiLogResourceResponse.md
142
145
  docs/PaginatedGoogleCategoryResourceResponse.md
146
+ docs/PaginatedModelAttributeListResourceResponse.md
143
147
  docs/PaginatedOverlayTemplateListResourceResponse.md
144
148
  docs/PaginatedOverlayTemplateLiteResourceResponse.md
145
149
  docs/PaginatedOverlayTemplateResourceResponse.md
@@ -438,6 +442,7 @@ src/models/IndexAttributeRequest.ts
438
442
  src/models/IndexDefinitionRequest.ts
439
443
  src/models/IndexDocumentRequest.ts
440
444
  src/models/IndexExternalApiLogRequest.ts
445
+ src/models/IndexModelAttributeRequest.ts
441
446
  src/models/IndexOverlayTemplateRequest.ts
442
447
  src/models/IndexProductCategoryRequest.ts
443
448
  src/models/IndexProductChildRequest.ts
@@ -448,6 +453,8 @@ src/models/IndexSiteNotificationRequest.ts
448
453
  src/models/IndexSiteRequest.ts
449
454
  src/models/IndexSupplierRequest.ts
450
455
  src/models/IndexTagRequest.ts
456
+ src/models/ModelAttributeListResource.ts
457
+ src/models/ModelAttributeListResourceArrayResponse.ts
451
458
  src/models/ModelAttributeResource.ts
452
459
  src/models/ModelAttributeResourceArrayResponse.ts
453
460
  src/models/OverlayTemplateAssetFrontendResource.ts
@@ -472,6 +479,7 @@ src/models/PaginatedDocumentResourceResponse.ts
472
479
  src/models/PaginatedExternalApiLogListResourceResponse.ts
473
480
  src/models/PaginatedExternalApiLogResourceResponse.ts
474
481
  src/models/PaginatedGoogleCategoryResourceResponse.ts
482
+ src/models/PaginatedModelAttributeListResourceResponse.ts
475
483
  src/models/PaginatedOverlayTemplateListResourceResponse.ts
476
484
  src/models/PaginatedOverlayTemplateLiteResourceResponse.ts
477
485
  src/models/PaginatedOverlayTemplateResourceResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.713
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.715
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -57,6 +57,7 @@ All URIs are relative to *http://localhost/api*
57
57
  *AttributeApi* | [**detachProductTypeAttribute**](docs/AttributeApi.md#detachproducttypeattribute) | **POST** /admin-api/attribute/{attribute}/detach-product-type/{productType} | Auto-generated: detachProductTypeAttribute
58
58
  *AttributeApi* | [**getAllAttribute**](docs/AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute
59
59
  *AttributeApi* | [**indexAttribute**](docs/AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute
60
+ *AttributeApi* | [**indexModelAttribute**](docs/AttributeApi.md#indexmodelattributeoperation) | **POST** /admin-api/attribute/model-attribute/list | Auto-generated: indexModelAttribute
60
61
  *AttributeApi* | [**showAttribute**](docs/AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute
61
62
  *AttributeApi* | [**storeAttribute**](docs/AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute
62
63
  *AttributeApi* | [**storeAttributeValue**](docs/AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue
@@ -277,6 +278,7 @@ All URIs are relative to *http://localhost/api*
277
278
  - [IndexDefinitionRequest](docs/IndexDefinitionRequest.md)
278
279
  - [IndexDocumentRequest](docs/IndexDocumentRequest.md)
279
280
  - [IndexExternalApiLogRequest](docs/IndexExternalApiLogRequest.md)
281
+ - [IndexModelAttributeRequest](docs/IndexModelAttributeRequest.md)
280
282
  - [IndexOverlayTemplateRequest](docs/IndexOverlayTemplateRequest.md)
281
283
  - [IndexProductCategoryRequest](docs/IndexProductCategoryRequest.md)
282
284
  - [IndexProductChildRequest](docs/IndexProductChildRequest.md)
@@ -287,6 +289,8 @@ All URIs are relative to *http://localhost/api*
287
289
  - [IndexSiteRequest](docs/IndexSiteRequest.md)
288
290
  - [IndexSupplierRequest](docs/IndexSupplierRequest.md)
289
291
  - [IndexTagRequest](docs/IndexTagRequest.md)
292
+ - [ModelAttributeListResource](docs/ModelAttributeListResource.md)
293
+ - [ModelAttributeListResourceArrayResponse](docs/ModelAttributeListResourceArrayResponse.md)
290
294
  - [ModelAttributeResource](docs/ModelAttributeResource.md)
291
295
  - [ModelAttributeResourceArrayResponse](docs/ModelAttributeResourceArrayResponse.md)
292
296
  - [OverlayTemplateAssetFrontendResource](docs/OverlayTemplateAssetFrontendResource.md)
@@ -311,6 +315,7 @@ All URIs are relative to *http://localhost/api*
311
315
  - [PaginatedExternalApiLogListResourceResponse](docs/PaginatedExternalApiLogListResourceResponse.md)
312
316
  - [PaginatedExternalApiLogResourceResponse](docs/PaginatedExternalApiLogResourceResponse.md)
313
317
  - [PaginatedGoogleCategoryResourceResponse](docs/PaginatedGoogleCategoryResourceResponse.md)
318
+ - [PaginatedModelAttributeListResourceResponse](docs/PaginatedModelAttributeListResourceResponse.md)
314
319
  - [PaginatedOverlayTemplateListResourceResponse](docs/PaginatedOverlayTemplateListResourceResponse.md)
315
320
  - [PaginatedOverlayTemplateLiteResourceResponse](docs/PaginatedOverlayTemplateLiteResourceResponse.md)
316
321
  - [PaginatedOverlayTemplateResourceResponse](docs/PaginatedOverlayTemplateResourceResponse.md)
@@ -501,7 +506,7 @@ and is automatically generated by the
501
506
  [OpenAPI Generator](https://openapi-generator.tech) project:
502
507
 
503
508
  - API version: `1.0.0`
504
- - Package version: `0.0.713`
509
+ - Package version: `0.0.715`
505
510
  - Generator version: `7.19.0`
506
511
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
507
512
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
13
+ import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, IndexModelAttributeRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, PaginatedModelAttributeListResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
14
14
  export interface AttachProductTypeAttributeOperationRequest {
15
15
  attribute: number;
16
16
  attachProductTypeAttributeRequest?: AttachProductTypeAttributeRequest;
@@ -32,6 +32,9 @@ export interface GetAllAttributeOperationRequest {
32
32
  export interface IndexAttributeOperationRequest {
33
33
  indexAttributeRequest?: IndexAttributeRequest;
34
34
  }
35
+ export interface IndexModelAttributeOperationRequest {
36
+ indexModelAttributeRequest?: IndexModelAttributeRequest;
37
+ }
35
38
  export interface ShowAttributeRequest {
36
39
  attribute: number;
37
40
  }
@@ -112,6 +115,14 @@ export declare class AttributeApi extends runtime.BaseAPI {
112
115
  * Auto-generated: indexAttribute
113
116
  */
114
117
  indexAttribute(requestParameters?: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse>;
118
+ /**
119
+ * Auto-generated: indexModelAttribute
120
+ */
121
+ indexModelAttributeRaw(requestParameters: IndexModelAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedModelAttributeListResourceResponse>>;
122
+ /**
123
+ * Auto-generated: indexModelAttribute
124
+ */
125
+ indexModelAttribute(requestParameters?: IndexModelAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedModelAttributeListResourceResponse>;
115
126
  /**
116
127
  * Auto-generated: showAttribute
117
128
  */
@@ -357,6 +357,51 @@ var AttributeApi = /** @class */ (function (_super) {
357
357
  });
358
358
  });
359
359
  };
360
+ /**
361
+ * Auto-generated: indexModelAttribute
362
+ */
363
+ AttributeApi.prototype.indexModelAttributeRaw = function (requestParameters, initOverrides) {
364
+ return __awaiter(this, void 0, void 0, function () {
365
+ var queryParameters, headerParameters, urlPath, response;
366
+ return __generator(this, function (_a) {
367
+ switch (_a.label) {
368
+ case 0:
369
+ queryParameters = {};
370
+ headerParameters = {};
371
+ headerParameters['Content-Type'] = 'application/json';
372
+ urlPath = "/admin-api/attribute/model-attribute/list";
373
+ return [4 /*yield*/, this.request({
374
+ path: urlPath,
375
+ method: 'POST',
376
+ headers: headerParameters,
377
+ query: queryParameters,
378
+ body: (0, index_1.IndexModelAttributeRequestToJSON)(requestParameters['indexModelAttributeRequest']),
379
+ }, initOverrides)];
380
+ case 1:
381
+ response = _a.sent();
382
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedModelAttributeListResourceResponseFromJSON)(jsonValue); })];
383
+ }
384
+ });
385
+ });
386
+ };
387
+ /**
388
+ * Auto-generated: indexModelAttribute
389
+ */
390
+ AttributeApi.prototype.indexModelAttribute = function () {
391
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
392
+ var response;
393
+ if (requestParameters === void 0) { requestParameters = {}; }
394
+ return __generator(this, function (_a) {
395
+ switch (_a.label) {
396
+ case 0: return [4 /*yield*/, this.indexModelAttributeRaw(requestParameters, initOverrides)];
397
+ case 1:
398
+ response = _a.sent();
399
+ return [4 /*yield*/, response.value()];
400
+ case 2: return [2 /*return*/, _a.sent()];
401
+ }
402
+ });
403
+ });
404
+ };
360
405
  /**
361
406
  * Auto-generated: showAttribute
362
407
  */
@@ -0,0 +1,133 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface IndexModelAttributeRequest
16
+ */
17
+ export interface IndexModelAttributeRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IndexModelAttributeRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IndexModelAttributeRequest
28
+ */
29
+ sortBy?: IndexModelAttributeRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IndexModelAttributeRequest
34
+ */
35
+ sortDirection?: IndexModelAttributeRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IndexModelAttributeRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof IndexModelAttributeRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof IndexModelAttributeRequest
52
+ */
53
+ attributableType?: Array<IndexModelAttributeRequestAttributableTypeEnum>;
54
+ /**
55
+ *
56
+ * @type {Array<number>}
57
+ * @memberof IndexModelAttributeRequest
58
+ */
59
+ attributableId?: Array<number>;
60
+ /**
61
+ *
62
+ * @type {Array<string>}
63
+ * @memberof IndexModelAttributeRequest
64
+ */
65
+ attributeId?: Array<string>;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof IndexModelAttributeRequest
70
+ */
71
+ relatedId?: number;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof IndexModelAttributeRequest
76
+ */
77
+ relatedType?: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof IndexModelAttributeRequest
82
+ */
83
+ includesRelations?: boolean;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const IndexModelAttributeRequestSortByEnum: {
89
+ readonly Id: "id";
90
+ readonly AttributeId: "attribute_id";
91
+ readonly CreatedAt: "created_at";
92
+ readonly AttributeName: "attribute-name";
93
+ };
94
+ export type IndexModelAttributeRequestSortByEnum = typeof IndexModelAttributeRequestSortByEnum[keyof typeof IndexModelAttributeRequestSortByEnum];
95
+ /**
96
+ * @export
97
+ */
98
+ export declare const IndexModelAttributeRequestSortDirectionEnum: {
99
+ readonly Asc: "asc";
100
+ readonly Desc: "desc";
101
+ };
102
+ export type IndexModelAttributeRequestSortDirectionEnum = typeof IndexModelAttributeRequestSortDirectionEnum[keyof typeof IndexModelAttributeRequestSortDirectionEnum];
103
+ /**
104
+ * @export
105
+ */
106
+ export declare const IndexModelAttributeRequestAttributableTypeEnum: {
107
+ readonly Asset: "asset";
108
+ readonly Attribute: "attribute";
109
+ readonly ProductCategory: "productCategory";
110
+ readonly Description: "description";
111
+ readonly Document: "document";
112
+ readonly OverlayTemplate: "overlayTemplate";
113
+ readonly OverlayTemplateAsset: "overlayTemplateAsset";
114
+ readonly Product: "product";
115
+ readonly ProductChild: "productChild";
116
+ readonly ProductChildSiteDetail: "productChildSiteDetail";
117
+ readonly ProductRange: "productRange";
118
+ readonly ProductRangeSiteDetail: "productRangeSiteDetail";
119
+ readonly AppModelsProductRange: "App\\Models\\ProductRange";
120
+ readonly ProductRangeSite: "productRangeSite";
121
+ readonly ProductType: "productType";
122
+ readonly Supplier: "supplier";
123
+ readonly Tag: "tag";
124
+ };
125
+ export type IndexModelAttributeRequestAttributableTypeEnum = typeof IndexModelAttributeRequestAttributableTypeEnum[keyof typeof IndexModelAttributeRequestAttributableTypeEnum];
126
+ /**
127
+ * Check if a given object implements the IndexModelAttributeRequest interface.
128
+ */
129
+ export declare function instanceOfIndexModelAttributeRequest(value: object): value is IndexModelAttributeRequest;
130
+ export declare function IndexModelAttributeRequestFromJSON(json: any): IndexModelAttributeRequest;
131
+ export declare function IndexModelAttributeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexModelAttributeRequest;
132
+ export declare function IndexModelAttributeRequestToJSON(json: any): IndexModelAttributeRequest;
133
+ export declare function IndexModelAttributeRequestToJSONTyped(value?: IndexModelAttributeRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IndexModelAttributeRequestAttributableTypeEnum = exports.IndexModelAttributeRequestSortDirectionEnum = exports.IndexModelAttributeRequestSortByEnum = void 0;
17
+ exports.instanceOfIndexModelAttributeRequest = instanceOfIndexModelAttributeRequest;
18
+ exports.IndexModelAttributeRequestFromJSON = IndexModelAttributeRequestFromJSON;
19
+ exports.IndexModelAttributeRequestFromJSONTyped = IndexModelAttributeRequestFromJSONTyped;
20
+ exports.IndexModelAttributeRequestToJSON = IndexModelAttributeRequestToJSON;
21
+ exports.IndexModelAttributeRequestToJSONTyped = IndexModelAttributeRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IndexModelAttributeRequestSortByEnum = {
26
+ Id: 'id',
27
+ AttributeId: 'attribute_id',
28
+ CreatedAt: 'created_at',
29
+ AttributeName: 'attribute-name'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.IndexModelAttributeRequestSortDirectionEnum = {
35
+ Asc: 'asc',
36
+ Desc: 'desc'
37
+ };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.IndexModelAttributeRequestAttributableTypeEnum = {
42
+ Asset: 'asset',
43
+ Attribute: 'attribute',
44
+ ProductCategory: 'productCategory',
45
+ Description: 'description',
46
+ Document: 'document',
47
+ OverlayTemplate: 'overlayTemplate',
48
+ OverlayTemplateAsset: 'overlayTemplateAsset',
49
+ Product: 'product',
50
+ ProductChild: 'productChild',
51
+ ProductChildSiteDetail: 'productChildSiteDetail',
52
+ ProductRange: 'productRange',
53
+ ProductRangeSiteDetail: 'productRangeSiteDetail',
54
+ AppModelsProductRange: 'App\\Models\\ProductRange',
55
+ ProductRangeSite: 'productRangeSite',
56
+ ProductType: 'productType',
57
+ Supplier: 'supplier',
58
+ Tag: 'tag'
59
+ };
60
+ /**
61
+ * Check if a given object implements the IndexModelAttributeRequest interface.
62
+ */
63
+ function instanceOfIndexModelAttributeRequest(value) {
64
+ return true;
65
+ }
66
+ function IndexModelAttributeRequestFromJSON(json) {
67
+ return IndexModelAttributeRequestFromJSONTyped(json, false);
68
+ }
69
+ function IndexModelAttributeRequestFromJSONTyped(json, ignoreDiscriminator) {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+ 'search': json['search'] == null ? undefined : json['search'],
75
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
76
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
77
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
78
+ 'page': json['page'] == null ? undefined : json['page'],
79
+ 'attributableType': json['attributable_type'] == null ? undefined : json['attributable_type'],
80
+ 'attributableId': json['attributable_id'] == null ? undefined : json['attributable_id'],
81
+ 'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
82
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
83
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
84
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
85
+ };
86
+ }
87
+ function IndexModelAttributeRequestToJSON(json) {
88
+ return IndexModelAttributeRequestToJSONTyped(json, false);
89
+ }
90
+ function IndexModelAttributeRequestToJSONTyped(value, ignoreDiscriminator) {
91
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ 'search': value['search'],
97
+ 'sortBy': value['sortBy'],
98
+ 'sortDirection': value['sortDirection'],
99
+ 'per_page': value['perPage'],
100
+ 'page': value['page'],
101
+ 'attributable_type': value['attributableType'],
102
+ 'attributable_id': value['attributableId'],
103
+ 'attribute_id': value['attributeId'],
104
+ 'related_id': value['relatedId'],
105
+ 'related_type': value['relatedType'],
106
+ 'includes_relations': value['includesRelations'],
107
+ };
108
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AttributeLiteResource } from './AttributeLiteResource';
13
+ import type { AttributeValueResource } from './AttributeValueResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ModelAttributeListResource
18
+ */
19
+ export interface ModelAttributeListResource {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof ModelAttributeListResource
24
+ */
25
+ id: number;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ModelAttributeListResource
30
+ */
31
+ value: string;
32
+ /**
33
+ *
34
+ * @type {AttributeLiteResource}
35
+ * @memberof ModelAttributeListResource
36
+ */
37
+ attribute: AttributeLiteResource | null;
38
+ /**
39
+ *
40
+ * @type {Array<AttributeValueResource>}
41
+ * @memberof ModelAttributeListResource
42
+ */
43
+ attributeValues: Array<AttributeValueResource> | null;
44
+ }
45
+ /**
46
+ * Check if a given object implements the ModelAttributeListResource interface.
47
+ */
48
+ export declare function instanceOfModelAttributeListResource(value: object): value is ModelAttributeListResource;
49
+ export declare function ModelAttributeListResourceFromJSON(json: any): ModelAttributeListResource;
50
+ export declare function ModelAttributeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeListResource;
51
+ export declare function ModelAttributeListResourceToJSON(json: any): ModelAttributeListResource;
52
+ export declare function ModelAttributeListResourceToJSONTyped(value?: ModelAttributeListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfModelAttributeListResource = instanceOfModelAttributeListResource;
17
+ exports.ModelAttributeListResourceFromJSON = ModelAttributeListResourceFromJSON;
18
+ exports.ModelAttributeListResourceFromJSONTyped = ModelAttributeListResourceFromJSONTyped;
19
+ exports.ModelAttributeListResourceToJSON = ModelAttributeListResourceToJSON;
20
+ exports.ModelAttributeListResourceToJSONTyped = ModelAttributeListResourceToJSONTyped;
21
+ var AttributeLiteResource_1 = require("./AttributeLiteResource");
22
+ var AttributeValueResource_1 = require("./AttributeValueResource");
23
+ /**
24
+ * Check if a given object implements the ModelAttributeListResource interface.
25
+ */
26
+ function instanceOfModelAttributeListResource(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('value' in value) || value['value'] === undefined)
30
+ return false;
31
+ if (!('attribute' in value) || value['attribute'] === undefined)
32
+ return false;
33
+ if (!('attributeValues' in value) || value['attributeValues'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ModelAttributeListResourceFromJSON(json) {
38
+ return ModelAttributeListResourceFromJSONTyped(json, false);
39
+ }
40
+ function ModelAttributeListResourceFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'value': json['value'],
47
+ 'attribute': (0, AttributeLiteResource_1.AttributeLiteResourceFromJSON)(json['attribute']),
48
+ 'attributeValues': (json['attributeValues'] == null ? null : json['attributeValues'].map(AttributeValueResource_1.AttributeValueResourceFromJSON)),
49
+ };
50
+ }
51
+ function ModelAttributeListResourceToJSON(json) {
52
+ return ModelAttributeListResourceToJSONTyped(json, false);
53
+ }
54
+ function ModelAttributeListResourceToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'value': value['value'],
62
+ 'attribute': (0, AttributeLiteResource_1.AttributeLiteResourceToJSON)(value['attribute']),
63
+ 'attributeValues': (value['attributeValues'] == null ? null : value['attributeValues'].map(AttributeValueResource_1.AttributeValueResourceToJSON)),
64
+ };
65
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ModelAttributeListResource } from './ModelAttributeListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ModelAttributeListResourceArrayResponse
17
+ */
18
+ export interface ModelAttributeListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ModelAttributeListResource>}
22
+ * @memberof ModelAttributeListResourceArrayResponse
23
+ */
24
+ data?: Array<ModelAttributeListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ModelAttributeListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfModelAttributeListResourceArrayResponse(value: object): value is ModelAttributeListResourceArrayResponse;
30
+ export declare function ModelAttributeListResourceArrayResponseFromJSON(json: any): ModelAttributeListResourceArrayResponse;
31
+ export declare function ModelAttributeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeListResourceArrayResponse;
32
+ export declare function ModelAttributeListResourceArrayResponseToJSON(json: any): ModelAttributeListResourceArrayResponse;
33
+ export declare function ModelAttributeListResourceArrayResponseToJSONTyped(value?: ModelAttributeListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfModelAttributeListResourceArrayResponse = instanceOfModelAttributeListResourceArrayResponse;
17
+ exports.ModelAttributeListResourceArrayResponseFromJSON = ModelAttributeListResourceArrayResponseFromJSON;
18
+ exports.ModelAttributeListResourceArrayResponseFromJSONTyped = ModelAttributeListResourceArrayResponseFromJSONTyped;
19
+ exports.ModelAttributeListResourceArrayResponseToJSON = ModelAttributeListResourceArrayResponseToJSON;
20
+ exports.ModelAttributeListResourceArrayResponseToJSONTyped = ModelAttributeListResourceArrayResponseToJSONTyped;
21
+ var ModelAttributeListResource_1 = require("./ModelAttributeListResource");
22
+ /**
23
+ * Check if a given object implements the ModelAttributeListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfModelAttributeListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ModelAttributeListResourceArrayResponseFromJSON(json) {
29
+ return ModelAttributeListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ModelAttributeListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ModelAttributeListResource_1.ModelAttributeListResourceFromJSON)),
37
+ };
38
+ }
39
+ function ModelAttributeListResourceArrayResponseToJSON(json) {
40
+ return ModelAttributeListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ModelAttributeListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(ModelAttributeListResource_1.ModelAttributeListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PagingMetadata } from './PagingMetadata';
13
+ import type { ModelAttributeListResource } from './ModelAttributeListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedModelAttributeListResourceResponse
18
+ */
19
+ export interface PaginatedModelAttributeListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ModelAttributeListResource>}
23
+ * @memberof PaginatedModelAttributeListResourceResponse
24
+ */
25
+ data: Array<ModelAttributeListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedModelAttributeListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedModelAttributeListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedModelAttributeListResourceResponse(value: object): value is PaginatedModelAttributeListResourceResponse;
37
+ export declare function PaginatedModelAttributeListResourceResponseFromJSON(json: any): PaginatedModelAttributeListResourceResponse;
38
+ export declare function PaginatedModelAttributeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedModelAttributeListResourceResponse;
39
+ export declare function PaginatedModelAttributeListResourceResponseToJSON(json: any): PaginatedModelAttributeListResourceResponse;
40
+ export declare function PaginatedModelAttributeListResourceResponseToJSONTyped(value?: PaginatedModelAttributeListResourceResponse | null, ignoreDiscriminator?: boolean): any;