@digital8/lighting-illusions-ts-sdk 0.0.446 → 0.0.448

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 (76) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +18 -2
  3. package/dist/apis/AttributeApi.d.ts +14 -3
  4. package/dist/apis/AttributeApi.js +46 -1
  5. package/dist/apis/ProductTypeApi.d.ts +14 -3
  6. package/dist/apis/ProductTypeApi.js +46 -1
  7. package/dist/apis/SiteApi.d.ts +14 -3
  8. package/dist/apis/SiteApi.js +46 -1
  9. package/dist/apis/SupplierApi.d.ts +14 -3
  10. package/dist/apis/SupplierApi.js +46 -1
  11. package/dist/models/AttributeListResource.d.ts +56 -0
  12. package/dist/models/AttributeListResource.js +67 -0
  13. package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/AttributeListResourceArrayResponse.js +50 -0
  15. package/dist/models/IndexAttributeRequest.d.ts +8 -1
  16. package/dist/models/IndexAttributeRequest.js +7 -1
  17. package/dist/models/IndexSupplierRequest.d.ts +8 -1
  18. package/dist/models/IndexSupplierRequest.js +7 -1
  19. package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
  21. package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
  23. package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
  25. package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
  26. package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
  27. package/dist/models/ProductTypeListResource.d.ts +38 -0
  28. package/dist/models/ProductTypeListResource.js +55 -0
  29. package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
  31. package/dist/models/SiteListResource.d.ts +50 -0
  32. package/dist/models/SiteListResource.js +63 -0
  33. package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/SiteListResourceArrayResponse.js +50 -0
  35. package/dist/models/SupplierListResource.d.ts +57 -0
  36. package/dist/models/SupplierListResource.js +68 -0
  37. package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/SupplierListResourceArrayResponse.js +50 -0
  39. package/dist/models/index.d.ts +12 -0
  40. package/dist/models/index.js +12 -0
  41. package/docs/AttributeApi.md +69 -3
  42. package/docs/AttributeListResource.md +42 -0
  43. package/docs/AttributeListResourceArrayResponse.md +34 -0
  44. package/docs/PaginatedAttributeListResourceResponse.md +36 -0
  45. package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
  46. package/docs/PaginatedSiteListResourceResponse.md +36 -0
  47. package/docs/PaginatedSupplierListResourceResponse.md +36 -0
  48. package/docs/ProductTypeApi.md +69 -3
  49. package/docs/ProductTypeListResource.md +36 -0
  50. package/docs/ProductTypeListResourceArrayResponse.md +34 -0
  51. package/docs/SiteApi.md +69 -3
  52. package/docs/SiteListResource.md +40 -0
  53. package/docs/SiteListResourceArrayResponse.md +34 -0
  54. package/docs/SupplierApi.md +69 -3
  55. package/docs/SupplierListResource.md +42 -0
  56. package/docs/SupplierListResourceArrayResponse.md +34 -0
  57. package/package.json +1 -1
  58. package/src/apis/AttributeApi.ts +42 -6
  59. package/src/apis/ProductTypeApi.ts +42 -6
  60. package/src/apis/SiteApi.ts +42 -6
  61. package/src/apis/SupplierApi.ts +42 -6
  62. package/src/models/AttributeListResource.ts +102 -0
  63. package/src/models/AttributeListResourceArrayResponse.ts +73 -0
  64. package/src/models/IndexAttributeRequest.ts +9 -1
  65. package/src/models/IndexSupplierRequest.ts +9 -1
  66. package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
  67. package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
  68. package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
  69. package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
  70. package/src/models/ProductTypeListResource.ts +75 -0
  71. package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
  72. package/src/models/SiteListResource.ts +93 -0
  73. package/src/models/SiteListResourceArrayResponse.ts +73 -0
  74. package/src/models/SupplierListResource.ts +110 -0
  75. package/src/models/SupplierListResourceArrayResponse.ts +73 -0
  76. package/src/models/index.ts +12 -0
@@ -295,7 +295,7 @@ var SupplierApi = /** @class */ (function (_super) {
295
295
  }, initOverrides)];
296
296
  case 1:
297
297
  response = _a.sent();
298
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSupplierResourceResponseFromJSON)(jsonValue); })];
298
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSupplierListResourceResponseFromJSON)(jsonValue); })];
299
299
  }
300
300
  });
301
301
  });
@@ -318,6 +318,51 @@ var SupplierApi = /** @class */ (function (_super) {
318
318
  });
319
319
  });
320
320
  };
321
+ /**
322
+ * Auto-generated: searchExcludingRelationsSupplier
323
+ */
324
+ SupplierApi.prototype.searchExcludingRelationsSupplierRaw = function (requestParameters, initOverrides) {
325
+ return __awaiter(this, void 0, void 0, function () {
326
+ var queryParameters, headerParameters, urlPath, response;
327
+ return __generator(this, function (_a) {
328
+ switch (_a.label) {
329
+ case 0:
330
+ queryParameters = {};
331
+ headerParameters = {};
332
+ headerParameters['Content-Type'] = 'application/json';
333
+ urlPath = "/admin-api/supplier/search-excluding-relations";
334
+ return [4 /*yield*/, this.request({
335
+ path: urlPath,
336
+ method: 'POST',
337
+ headers: headerParameters,
338
+ query: queryParameters,
339
+ body: (0, index_1.IndexSupplierRequestToJSON)(requestParameters['indexSupplierRequest']),
340
+ }, initOverrides)];
341
+ case 1:
342
+ response = _a.sent();
343
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSupplierListResourceResponseFromJSON)(jsonValue); })];
344
+ }
345
+ });
346
+ });
347
+ };
348
+ /**
349
+ * Auto-generated: searchExcludingRelationsSupplier
350
+ */
351
+ SupplierApi.prototype.searchExcludingRelationsSupplier = function () {
352
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
353
+ var response;
354
+ if (requestParameters === void 0) { requestParameters = {}; }
355
+ return __generator(this, function (_a) {
356
+ switch (_a.label) {
357
+ case 0: return [4 /*yield*/, this.searchExcludingRelationsSupplierRaw(requestParameters, initOverrides)];
358
+ case 1:
359
+ response = _a.sent();
360
+ return [4 /*yield*/, response.value()];
361
+ case 2: return [2 /*return*/, _a.sent()];
362
+ }
363
+ });
364
+ });
365
+ };
321
366
  /**
322
367
  * Auto-generated: showSupplier
323
368
  */
@@ -0,0 +1,56 @@
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 AttributeListResource
16
+ */
17
+ export interface AttributeListResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AttributeListResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AttributeListResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AttributeListResource
34
+ */
35
+ type: string;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof AttributeListResource
40
+ */
41
+ isFilterable: boolean;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AttributeListResource
46
+ */
47
+ filterIndex: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AttributeListResource interface.
51
+ */
52
+ export declare function instanceOfAttributeListResource(value: object): value is AttributeListResource;
53
+ export declare function AttributeListResourceFromJSON(json: any): AttributeListResource;
54
+ export declare function AttributeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResource;
55
+ export declare function AttributeListResourceToJSON(json: any): AttributeListResource;
56
+ export declare function AttributeListResourceToJSONTyped(value?: AttributeListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfAttributeListResource = instanceOfAttributeListResource;
17
+ exports.AttributeListResourceFromJSON = AttributeListResourceFromJSON;
18
+ exports.AttributeListResourceFromJSONTyped = AttributeListResourceFromJSONTyped;
19
+ exports.AttributeListResourceToJSON = AttributeListResourceToJSON;
20
+ exports.AttributeListResourceToJSONTyped = AttributeListResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AttributeListResource interface.
23
+ */
24
+ function instanceOfAttributeListResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('type' in value) || value['type'] === undefined)
30
+ return false;
31
+ if (!('isFilterable' in value) || value['isFilterable'] === undefined)
32
+ return false;
33
+ if (!('filterIndex' in value) || value['filterIndex'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AttributeListResourceFromJSON(json) {
38
+ return AttributeListResourceFromJSONTyped(json, false);
39
+ }
40
+ function AttributeListResourceFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'name': json['name'],
47
+ 'type': json['type'],
48
+ 'isFilterable': json['isFilterable'],
49
+ 'filterIndex': json['filterIndex'],
50
+ };
51
+ }
52
+ function AttributeListResourceToJSON(json) {
53
+ return AttributeListResourceToJSONTyped(json, false);
54
+ }
55
+ function AttributeListResourceToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'id': value['id'],
62
+ 'name': value['name'],
63
+ 'type': value['type'],
64
+ 'isFilterable': value['isFilterable'],
65
+ 'filterIndex': value['filterIndex'],
66
+ };
67
+ }
@@ -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 { AttributeListResource } from './AttributeListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AttributeListResourceArrayResponse
17
+ */
18
+ export interface AttributeListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<AttributeListResource>}
22
+ * @memberof AttributeListResourceArrayResponse
23
+ */
24
+ data?: Array<AttributeListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AttributeListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfAttributeListResourceArrayResponse(value: object): value is AttributeListResourceArrayResponse;
30
+ export declare function AttributeListResourceArrayResponseFromJSON(json: any): AttributeListResourceArrayResponse;
31
+ export declare function AttributeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResourceArrayResponse;
32
+ export declare function AttributeListResourceArrayResponseToJSON(json: any): AttributeListResourceArrayResponse;
33
+ export declare function AttributeListResourceArrayResponseToJSONTyped(value?: AttributeListResourceArrayResponse | 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.instanceOfAttributeListResourceArrayResponse = instanceOfAttributeListResourceArrayResponse;
17
+ exports.AttributeListResourceArrayResponseFromJSON = AttributeListResourceArrayResponseFromJSON;
18
+ exports.AttributeListResourceArrayResponseFromJSONTyped = AttributeListResourceArrayResponseFromJSONTyped;
19
+ exports.AttributeListResourceArrayResponseToJSON = AttributeListResourceArrayResponseToJSON;
20
+ exports.AttributeListResourceArrayResponseToJSONTyped = AttributeListResourceArrayResponseToJSONTyped;
21
+ var AttributeListResource_1 = require("./AttributeListResource");
22
+ /**
23
+ * Check if a given object implements the AttributeListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfAttributeListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function AttributeListResourceArrayResponseFromJSON(json) {
29
+ return AttributeListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function AttributeListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(AttributeListResource_1.AttributeListResourceFromJSON)),
37
+ };
38
+ }
39
+ function AttributeListResourceArrayResponseToJSON(json) {
40
+ return AttributeListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function AttributeListResourceArrayResponseToJSONTyped(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(AttributeListResource_1.AttributeListResourceToJSON)),
49
+ };
50
+ }
@@ -74,7 +74,7 @@ export interface IndexAttributeRequest {
74
74
  * @type {string}
75
75
  * @memberof IndexAttributeRequest
76
76
  */
77
- relatedType?: string;
77
+ relatedType?: IndexAttributeRequestRelatedTypeEnum;
78
78
  }
79
79
  /**
80
80
  * @export
@@ -94,6 +94,13 @@ export declare const IndexAttributeRequestSortDirectionEnum: {
94
94
  readonly Desc: "desc";
95
95
  };
96
96
  export type IndexAttributeRequestSortDirectionEnum = typeof IndexAttributeRequestSortDirectionEnum[keyof typeof IndexAttributeRequestSortDirectionEnum];
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const IndexAttributeRequestRelatedTypeEnum: {
101
+ readonly ProductType: "productType";
102
+ };
103
+ export type IndexAttributeRequestRelatedTypeEnum = typeof IndexAttributeRequestRelatedTypeEnum[keyof typeof IndexAttributeRequestRelatedTypeEnum];
97
104
  /**
98
105
  * Check if a given object implements the IndexAttributeRequest interface.
99
106
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IndexAttributeRequestSortDirectionEnum = exports.IndexAttributeRequestSortByEnum = void 0;
16
+ exports.IndexAttributeRequestRelatedTypeEnum = exports.IndexAttributeRequestSortDirectionEnum = exports.IndexAttributeRequestSortByEnum = void 0;
17
17
  exports.instanceOfIndexAttributeRequest = instanceOfIndexAttributeRequest;
18
18
  exports.IndexAttributeRequestFromJSON = IndexAttributeRequestFromJSON;
19
19
  exports.IndexAttributeRequestFromJSONTyped = IndexAttributeRequestFromJSONTyped;
@@ -35,6 +35,12 @@ exports.IndexAttributeRequestSortDirectionEnum = {
35
35
  Asc: 'asc',
36
36
  Desc: 'desc'
37
37
  };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.IndexAttributeRequestRelatedTypeEnum = {
42
+ ProductType: 'productType'
43
+ };
38
44
  /**
39
45
  * Check if a given object implements the IndexAttributeRequest interface.
40
46
  */
@@ -56,7 +56,7 @@ export interface IndexSupplierRequest {
56
56
  * @type {string}
57
57
  * @memberof IndexSupplierRequest
58
58
  */
59
- relatedType?: string;
59
+ relatedType?: IndexSupplierRequestRelatedTypeEnum;
60
60
  }
61
61
  /**
62
62
  * @export
@@ -78,6 +78,13 @@ export declare const IndexSupplierRequestSortDirectionEnum: {
78
78
  readonly Desc: "desc";
79
79
  };
80
80
  export type IndexSupplierRequestSortDirectionEnum = typeof IndexSupplierRequestSortDirectionEnum[keyof typeof IndexSupplierRequestSortDirectionEnum];
81
+ /**
82
+ * @export
83
+ */
84
+ export declare const IndexSupplierRequestRelatedTypeEnum: {
85
+ readonly ProductChild: "productChild";
86
+ };
87
+ export type IndexSupplierRequestRelatedTypeEnum = typeof IndexSupplierRequestRelatedTypeEnum[keyof typeof IndexSupplierRequestRelatedTypeEnum];
81
88
  /**
82
89
  * Check if a given object implements the IndexSupplierRequest interface.
83
90
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IndexSupplierRequestSortDirectionEnum = exports.IndexSupplierRequestSortByEnum = void 0;
16
+ exports.IndexSupplierRequestRelatedTypeEnum = exports.IndexSupplierRequestSortDirectionEnum = exports.IndexSupplierRequestSortByEnum = void 0;
17
17
  exports.instanceOfIndexSupplierRequest = instanceOfIndexSupplierRequest;
18
18
  exports.IndexSupplierRequestFromJSON = IndexSupplierRequestFromJSON;
19
19
  exports.IndexSupplierRequestFromJSONTyped = IndexSupplierRequestFromJSONTyped;
@@ -37,6 +37,12 @@ exports.IndexSupplierRequestSortDirectionEnum = {
37
37
  Asc: 'asc',
38
38
  Desc: 'desc'
39
39
  };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.IndexSupplierRequestRelatedTypeEnum = {
44
+ ProductChild: 'productChild'
45
+ };
40
46
  /**
41
47
  * Check if a given object implements the IndexSupplierRequest interface.
42
48
  */
@@ -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 { AttributeListResource } from './AttributeListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedAttributeListResourceResponse
18
+ */
19
+ export interface PaginatedAttributeListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<AttributeListResource>}
23
+ * @memberof PaginatedAttributeListResourceResponse
24
+ */
25
+ data: Array<AttributeListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedAttributeListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedAttributeListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedAttributeListResourceResponse(value: object): value is PaginatedAttributeListResourceResponse;
37
+ export declare function PaginatedAttributeListResourceResponseFromJSON(json: any): PaginatedAttributeListResourceResponse;
38
+ export declare function PaginatedAttributeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAttributeListResourceResponse;
39
+ export declare function PaginatedAttributeListResourceResponseToJSON(json: any): PaginatedAttributeListResourceResponse;
40
+ export declare function PaginatedAttributeListResourceResponseToJSONTyped(value?: PaginatedAttributeListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfPaginatedAttributeListResourceResponse = instanceOfPaginatedAttributeListResourceResponse;
17
+ exports.PaginatedAttributeListResourceResponseFromJSON = PaginatedAttributeListResourceResponseFromJSON;
18
+ exports.PaginatedAttributeListResourceResponseFromJSONTyped = PaginatedAttributeListResourceResponseFromJSONTyped;
19
+ exports.PaginatedAttributeListResourceResponseToJSON = PaginatedAttributeListResourceResponseToJSON;
20
+ exports.PaginatedAttributeListResourceResponseToJSONTyped = PaginatedAttributeListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var AttributeListResource_1 = require("./AttributeListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedAttributeListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedAttributeListResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedAttributeListResourceResponseFromJSON(json) {
34
+ return PaginatedAttributeListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedAttributeListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(AttributeListResource_1.AttributeListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedAttributeListResourceResponseToJSON(json) {
46
+ return PaginatedAttributeListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedAttributeListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(AttributeListResource_1.AttributeListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -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 { ProductTypeListResource } from './ProductTypeListResource';
13
+ import type { PagingMetadata } from './PagingMetadata';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedProductTypeListResourceResponse
18
+ */
19
+ export interface PaginatedProductTypeListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ProductTypeListResource>}
23
+ * @memberof PaginatedProductTypeListResourceResponse
24
+ */
25
+ data: Array<ProductTypeListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedProductTypeListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedProductTypeListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedProductTypeListResourceResponse(value: object): value is PaginatedProductTypeListResourceResponse;
37
+ export declare function PaginatedProductTypeListResourceResponseFromJSON(json: any): PaginatedProductTypeListResourceResponse;
38
+ export declare function PaginatedProductTypeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductTypeListResourceResponse;
39
+ export declare function PaginatedProductTypeListResourceResponseToJSON(json: any): PaginatedProductTypeListResourceResponse;
40
+ export declare function PaginatedProductTypeListResourceResponseToJSONTyped(value?: PaginatedProductTypeListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfPaginatedProductTypeListResourceResponse = instanceOfPaginatedProductTypeListResourceResponse;
17
+ exports.PaginatedProductTypeListResourceResponseFromJSON = PaginatedProductTypeListResourceResponseFromJSON;
18
+ exports.PaginatedProductTypeListResourceResponseFromJSONTyped = PaginatedProductTypeListResourceResponseFromJSONTyped;
19
+ exports.PaginatedProductTypeListResourceResponseToJSON = PaginatedProductTypeListResourceResponseToJSON;
20
+ exports.PaginatedProductTypeListResourceResponseToJSONTyped = PaginatedProductTypeListResourceResponseToJSONTyped;
21
+ var ProductTypeListResource_1 = require("./ProductTypeListResource");
22
+ var PagingMetadata_1 = require("./PagingMetadata");
23
+ /**
24
+ * Check if a given object implements the PaginatedProductTypeListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedProductTypeListResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedProductTypeListResourceResponseFromJSON(json) {
34
+ return PaginatedProductTypeListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedProductTypeListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ProductTypeListResource_1.ProductTypeListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedProductTypeListResourceResponseToJSON(json) {
46
+ return PaginatedProductTypeListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedProductTypeListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ProductTypeListResource_1.ProductTypeListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -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 { SiteListResource } from './SiteListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedSiteListResourceResponse
18
+ */
19
+ export interface PaginatedSiteListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<SiteListResource>}
23
+ * @memberof PaginatedSiteListResourceResponse
24
+ */
25
+ data: Array<SiteListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedSiteListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedSiteListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedSiteListResourceResponse(value: object): value is PaginatedSiteListResourceResponse;
37
+ export declare function PaginatedSiteListResourceResponseFromJSON(json: any): PaginatedSiteListResourceResponse;
38
+ export declare function PaginatedSiteListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSiteListResourceResponse;
39
+ export declare function PaginatedSiteListResourceResponseToJSON(json: any): PaginatedSiteListResourceResponse;
40
+ export declare function PaginatedSiteListResourceResponseToJSONTyped(value?: PaginatedSiteListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfPaginatedSiteListResourceResponse = instanceOfPaginatedSiteListResourceResponse;
17
+ exports.PaginatedSiteListResourceResponseFromJSON = PaginatedSiteListResourceResponseFromJSON;
18
+ exports.PaginatedSiteListResourceResponseFromJSONTyped = PaginatedSiteListResourceResponseFromJSONTyped;
19
+ exports.PaginatedSiteListResourceResponseToJSON = PaginatedSiteListResourceResponseToJSON;
20
+ exports.PaginatedSiteListResourceResponseToJSONTyped = PaginatedSiteListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var SiteListResource_1 = require("./SiteListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedSiteListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedSiteListResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedSiteListResourceResponseFromJSON(json) {
34
+ return PaginatedSiteListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedSiteListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(SiteListResource_1.SiteListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedSiteListResourceResponseToJSON(json) {
46
+ return PaginatedSiteListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedSiteListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(SiteListResource_1.SiteListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }