@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
@@ -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 { SupplierListResource } from './SupplierListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedSupplierListResourceResponse
18
+ */
19
+ export interface PaginatedSupplierListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<SupplierListResource>}
23
+ * @memberof PaginatedSupplierListResourceResponse
24
+ */
25
+ data: Array<SupplierListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedSupplierListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedSupplierListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedSupplierListResourceResponse(value: object): value is PaginatedSupplierListResourceResponse;
37
+ export declare function PaginatedSupplierListResourceResponseFromJSON(json: any): PaginatedSupplierListResourceResponse;
38
+ export declare function PaginatedSupplierListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupplierListResourceResponse;
39
+ export declare function PaginatedSupplierListResourceResponseToJSON(json: any): PaginatedSupplierListResourceResponse;
40
+ export declare function PaginatedSupplierListResourceResponseToJSONTyped(value?: PaginatedSupplierListResourceResponse | 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.instanceOfPaginatedSupplierListResourceResponse = instanceOfPaginatedSupplierListResourceResponse;
17
+ exports.PaginatedSupplierListResourceResponseFromJSON = PaginatedSupplierListResourceResponseFromJSON;
18
+ exports.PaginatedSupplierListResourceResponseFromJSONTyped = PaginatedSupplierListResourceResponseFromJSONTyped;
19
+ exports.PaginatedSupplierListResourceResponseToJSON = PaginatedSupplierListResourceResponseToJSON;
20
+ exports.PaginatedSupplierListResourceResponseToJSONTyped = PaginatedSupplierListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var SupplierListResource_1 = require("./SupplierListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedSupplierListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedSupplierListResourceResponse(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 PaginatedSupplierListResourceResponseFromJSON(json) {
34
+ return PaginatedSupplierListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedSupplierListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(SupplierListResource_1.SupplierListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedSupplierListResourceResponseToJSON(json) {
46
+ return PaginatedSupplierListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedSupplierListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(SupplierListResource_1.SupplierListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,38 @@
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 ProductTypeListResource
16
+ */
17
+ export interface ProductTypeListResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ProductTypeListResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ProductTypeListResource
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ProductTypeListResource interface.
33
+ */
34
+ export declare function instanceOfProductTypeListResource(value: object): value is ProductTypeListResource;
35
+ export declare function ProductTypeListResourceFromJSON(json: any): ProductTypeListResource;
36
+ export declare function ProductTypeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeListResource;
37
+ export declare function ProductTypeListResourceToJSON(json: any): ProductTypeListResource;
38
+ export declare function ProductTypeListResourceToJSONTyped(value?: ProductTypeListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfProductTypeListResource = instanceOfProductTypeListResource;
17
+ exports.ProductTypeListResourceFromJSON = ProductTypeListResourceFromJSON;
18
+ exports.ProductTypeListResourceFromJSONTyped = ProductTypeListResourceFromJSONTyped;
19
+ exports.ProductTypeListResourceToJSON = ProductTypeListResourceToJSON;
20
+ exports.ProductTypeListResourceToJSONTyped = ProductTypeListResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ProductTypeListResource interface.
23
+ */
24
+ function instanceOfProductTypeListResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ProductTypeListResourceFromJSON(json) {
32
+ return ProductTypeListResourceFromJSONTyped(json, false);
33
+ }
34
+ function ProductTypeListResourceFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function ProductTypeListResourceToJSON(json) {
44
+ return ProductTypeListResourceToJSONTyped(json, false);
45
+ }
46
+ function ProductTypeListResourceToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'id': value['id'],
53
+ 'name': value['name'],
54
+ };
55
+ }
@@ -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 { ProductTypeListResource } from './ProductTypeListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductTypeListResourceArrayResponse
17
+ */
18
+ export interface ProductTypeListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductTypeListResource>}
22
+ * @memberof ProductTypeListResourceArrayResponse
23
+ */
24
+ data?: Array<ProductTypeListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductTypeListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductTypeListResourceArrayResponse(value: object): value is ProductTypeListResourceArrayResponse;
30
+ export declare function ProductTypeListResourceArrayResponseFromJSON(json: any): ProductTypeListResourceArrayResponse;
31
+ export declare function ProductTypeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeListResourceArrayResponse;
32
+ export declare function ProductTypeListResourceArrayResponseToJSON(json: any): ProductTypeListResourceArrayResponse;
33
+ export declare function ProductTypeListResourceArrayResponseToJSONTyped(value?: ProductTypeListResourceArrayResponse | 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.instanceOfProductTypeListResourceArrayResponse = instanceOfProductTypeListResourceArrayResponse;
17
+ exports.ProductTypeListResourceArrayResponseFromJSON = ProductTypeListResourceArrayResponseFromJSON;
18
+ exports.ProductTypeListResourceArrayResponseFromJSONTyped = ProductTypeListResourceArrayResponseFromJSONTyped;
19
+ exports.ProductTypeListResourceArrayResponseToJSON = ProductTypeListResourceArrayResponseToJSON;
20
+ exports.ProductTypeListResourceArrayResponseToJSONTyped = ProductTypeListResourceArrayResponseToJSONTyped;
21
+ var ProductTypeListResource_1 = require("./ProductTypeListResource");
22
+ /**
23
+ * Check if a given object implements the ProductTypeListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductTypeListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductTypeListResourceArrayResponseFromJSON(json) {
29
+ return ProductTypeListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductTypeListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductTypeListResource_1.ProductTypeListResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductTypeListResourceArrayResponseToJSON(json) {
40
+ return ProductTypeListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductTypeListResourceArrayResponseToJSONTyped(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(ProductTypeListResource_1.ProductTypeListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,50 @@
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 SiteListResource
16
+ */
17
+ export interface SiteListResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SiteListResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SiteListResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SiteListResource
34
+ */
35
+ abbreviation: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SiteListResource
40
+ */
41
+ domain: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the SiteListResource interface.
45
+ */
46
+ export declare function instanceOfSiteListResource(value: object): value is SiteListResource;
47
+ export declare function SiteListResourceFromJSON(json: any): SiteListResource;
48
+ export declare function SiteListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SiteListResource;
49
+ export declare function SiteListResourceToJSON(json: any): SiteListResource;
50
+ export declare function SiteListResourceToJSONTyped(value?: SiteListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfSiteListResource = instanceOfSiteListResource;
17
+ exports.SiteListResourceFromJSON = SiteListResourceFromJSON;
18
+ exports.SiteListResourceFromJSONTyped = SiteListResourceFromJSONTyped;
19
+ exports.SiteListResourceToJSON = SiteListResourceToJSON;
20
+ exports.SiteListResourceToJSONTyped = SiteListResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SiteListResource interface.
23
+ */
24
+ function instanceOfSiteListResource(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 (!('abbreviation' in value) || value['abbreviation'] === undefined)
30
+ return false;
31
+ if (!('domain' in value) || value['domain'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function SiteListResourceFromJSON(json) {
36
+ return SiteListResourceFromJSONTyped(json, false);
37
+ }
38
+ function SiteListResourceFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'name': json['name'],
45
+ 'abbreviation': json['abbreviation'],
46
+ 'domain': json['domain'],
47
+ };
48
+ }
49
+ function SiteListResourceToJSON(json) {
50
+ return SiteListResourceToJSONTyped(json, false);
51
+ }
52
+ function SiteListResourceToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'name': value['name'],
60
+ 'abbreviation': value['abbreviation'],
61
+ 'domain': value['domain'],
62
+ };
63
+ }
@@ -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 { SiteListResource } from './SiteListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SiteListResourceArrayResponse
17
+ */
18
+ export interface SiteListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SiteListResource>}
22
+ * @memberof SiteListResourceArrayResponse
23
+ */
24
+ data?: Array<SiteListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SiteListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfSiteListResourceArrayResponse(value: object): value is SiteListResourceArrayResponse;
30
+ export declare function SiteListResourceArrayResponseFromJSON(json: any): SiteListResourceArrayResponse;
31
+ export declare function SiteListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SiteListResourceArrayResponse;
32
+ export declare function SiteListResourceArrayResponseToJSON(json: any): SiteListResourceArrayResponse;
33
+ export declare function SiteListResourceArrayResponseToJSONTyped(value?: SiteListResourceArrayResponse | 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.instanceOfSiteListResourceArrayResponse = instanceOfSiteListResourceArrayResponse;
17
+ exports.SiteListResourceArrayResponseFromJSON = SiteListResourceArrayResponseFromJSON;
18
+ exports.SiteListResourceArrayResponseFromJSONTyped = SiteListResourceArrayResponseFromJSONTyped;
19
+ exports.SiteListResourceArrayResponseToJSON = SiteListResourceArrayResponseToJSON;
20
+ exports.SiteListResourceArrayResponseToJSONTyped = SiteListResourceArrayResponseToJSONTyped;
21
+ var SiteListResource_1 = require("./SiteListResource");
22
+ /**
23
+ * Check if a given object implements the SiteListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfSiteListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function SiteListResourceArrayResponseFromJSON(json) {
29
+ return SiteListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function SiteListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(SiteListResource_1.SiteListResourceFromJSON)),
37
+ };
38
+ }
39
+ function SiteListResourceArrayResponseToJSON(json) {
40
+ return SiteListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function SiteListResourceArrayResponseToJSONTyped(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(SiteListResource_1.SiteListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,57 @@
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 { AssetLiteResource } from './AssetLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SupplierListResource
17
+ */
18
+ export interface SupplierListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof SupplierListResource
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SupplierListResource
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SupplierListResource
35
+ */
36
+ slug: string;
37
+ /**
38
+ *
39
+ * @type {AssetLiteResource}
40
+ * @memberof SupplierListResource
41
+ */
42
+ thumbnail: AssetLiteResource | null;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof SupplierListResource
47
+ */
48
+ supplierEta: number;
49
+ }
50
+ /**
51
+ * Check if a given object implements the SupplierListResource interface.
52
+ */
53
+ export declare function instanceOfSupplierListResource(value: object): value is SupplierListResource;
54
+ export declare function SupplierListResourceFromJSON(json: any): SupplierListResource;
55
+ export declare function SupplierListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierListResource;
56
+ export declare function SupplierListResourceToJSON(json: any): SupplierListResource;
57
+ export declare function SupplierListResourceToJSONTyped(value?: SupplierListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.instanceOfSupplierListResource = instanceOfSupplierListResource;
17
+ exports.SupplierListResourceFromJSON = SupplierListResourceFromJSON;
18
+ exports.SupplierListResourceFromJSONTyped = SupplierListResourceFromJSONTyped;
19
+ exports.SupplierListResourceToJSON = SupplierListResourceToJSON;
20
+ exports.SupplierListResourceToJSONTyped = SupplierListResourceToJSONTyped;
21
+ var AssetLiteResource_1 = require("./AssetLiteResource");
22
+ /**
23
+ * Check if a given object implements the SupplierListResource interface.
24
+ */
25
+ function instanceOfSupplierListResource(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('slug' in value) || value['slug'] === undefined)
31
+ return false;
32
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined)
33
+ return false;
34
+ if (!('supplierEta' in value) || value['supplierEta'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function SupplierListResourceFromJSON(json) {
39
+ return SupplierListResourceFromJSONTyped(json, false);
40
+ }
41
+ function SupplierListResourceFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'id': json['id'],
47
+ 'name': json['name'],
48
+ 'slug': json['slug'],
49
+ 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
50
+ 'supplierEta': json['supplierEta'],
51
+ };
52
+ }
53
+ function SupplierListResourceToJSON(json) {
54
+ return SupplierListResourceToJSONTyped(json, false);
55
+ }
56
+ function SupplierListResourceToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'name': value['name'],
64
+ 'slug': value['slug'],
65
+ 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
66
+ 'supplierEta': value['supplierEta'],
67
+ };
68
+ }
@@ -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 { SupplierListResource } from './SupplierListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SupplierListResourceArrayResponse
17
+ */
18
+ export interface SupplierListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SupplierListResource>}
22
+ * @memberof SupplierListResourceArrayResponse
23
+ */
24
+ data?: Array<SupplierListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SupplierListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfSupplierListResourceArrayResponse(value: object): value is SupplierListResourceArrayResponse;
30
+ export declare function SupplierListResourceArrayResponseFromJSON(json: any): SupplierListResourceArrayResponse;
31
+ export declare function SupplierListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierListResourceArrayResponse;
32
+ export declare function SupplierListResourceArrayResponseToJSON(json: any): SupplierListResourceArrayResponse;
33
+ export declare function SupplierListResourceArrayResponseToJSONTyped(value?: SupplierListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;