@digital8/lighting-illusions-ts-sdk 0.0.445 → 0.0.447

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 (67) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +14 -2
  3. package/dist/apis/SiteApi.d.ts +14 -3
  4. package/dist/apis/SiteApi.js +46 -1
  5. package/dist/apis/SupplierApi.d.ts +14 -3
  6. package/dist/apis/SupplierApi.js +46 -1
  7. package/dist/apis/TagApi.d.ts +14 -3
  8. package/dist/apis/TagApi.js +46 -1
  9. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  10. package/dist/models/ExternalApiLogResource.js +3 -1
  11. package/dist/models/IndexSupplierRequest.d.ts +8 -1
  12. package/dist/models/IndexSupplierRequest.js +7 -1
  13. package/dist/models/IndexTagRequest.d.ts +8 -1
  14. package/dist/models/IndexTagRequest.js +7 -1
  15. package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
  17. package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
  18. package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
  19. package/dist/models/PaginatedTagListResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedTagListResourceResponse.js +57 -0
  21. package/dist/models/SiteListResource.d.ts +50 -0
  22. package/dist/models/SiteListResource.js +63 -0
  23. package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
  24. package/dist/models/SiteListResourceArrayResponse.js +50 -0
  25. package/dist/models/SupplierListResource.d.ts +57 -0
  26. package/dist/models/SupplierListResource.js +68 -0
  27. package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
  28. package/dist/models/SupplierListResourceArrayResponse.js +50 -0
  29. package/dist/models/TagListResource.d.ts +57 -0
  30. package/dist/models/TagListResource.js +68 -0
  31. package/dist/models/TagListResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/TagListResourceArrayResponse.js +50 -0
  33. package/dist/models/TagLiteResource.d.ts +0 -7
  34. package/dist/models/TagLiteResource.js +0 -5
  35. package/dist/models/index.d.ts +9 -0
  36. package/dist/models/index.js +9 -0
  37. package/docs/PaginatedSiteListResourceResponse.md +36 -0
  38. package/docs/PaginatedSupplierListResourceResponse.md +36 -0
  39. package/docs/PaginatedTagListResourceResponse.md +36 -0
  40. package/docs/SiteApi.md +69 -3
  41. package/docs/SiteListResource.md +40 -0
  42. package/docs/SiteListResourceArrayResponse.md +34 -0
  43. package/docs/SupplierApi.md +69 -3
  44. package/docs/SupplierListResource.md +42 -0
  45. package/docs/SupplierListResourceArrayResponse.md +34 -0
  46. package/docs/TagApi.md +69 -3
  47. package/docs/TagListResource.md +42 -0
  48. package/docs/TagListResourceArrayResponse.md +34 -0
  49. package/docs/TagLiteResource.md +0 -2
  50. package/package.json +1 -1
  51. package/src/apis/SiteApi.ts +42 -6
  52. package/src/apis/SupplierApi.ts +42 -6
  53. package/src/apis/TagApi.ts +42 -6
  54. package/src/models/ExternalApiLogResource.ts +3 -2
  55. package/src/models/IndexSupplierRequest.ts +9 -1
  56. package/src/models/IndexTagRequest.ts +9 -1
  57. package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
  58. package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
  59. package/src/models/PaginatedTagListResourceResponse.ts +90 -0
  60. package/src/models/SiteListResource.ts +93 -0
  61. package/src/models/SiteListResourceArrayResponse.ts +73 -0
  62. package/src/models/SupplierListResource.ts +110 -0
  63. package/src/models/SupplierListResourceArrayResponse.ts +73 -0
  64. package/src/models/TagListResource.ts +110 -0
  65. package/src/models/TagListResourceArrayResponse.ts +73 -0
  66. package/src/models/TagLiteResource.ts +0 -17
  67. package/src/models/index.ts +9 -0
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload?: string | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -60,7 +60,7 @@ export interface IndexSupplierRequest {
60
60
  * @type {string}
61
61
  * @memberof IndexSupplierRequest
62
62
  */
63
- relatedType?: string;
63
+ relatedType?: IndexSupplierRequestRelatedTypeEnum;
64
64
  }
65
65
 
66
66
 
@@ -86,6 +86,14 @@ export const IndexSupplierRequestSortDirectionEnum = {
86
86
  } as const;
87
87
  export type IndexSupplierRequestSortDirectionEnum = typeof IndexSupplierRequestSortDirectionEnum[keyof typeof IndexSupplierRequestSortDirectionEnum];
88
88
 
89
+ /**
90
+ * @export
91
+ */
92
+ export const IndexSupplierRequestRelatedTypeEnum = {
93
+ ProductChild: 'productChild'
94
+ } as const;
95
+ export type IndexSupplierRequestRelatedTypeEnum = typeof IndexSupplierRequestRelatedTypeEnum[keyof typeof IndexSupplierRequestRelatedTypeEnum];
96
+
89
97
 
90
98
  /**
91
99
  * Check if a given object implements the IndexSupplierRequest interface.
@@ -72,7 +72,7 @@ export interface IndexTagRequest {
72
72
  * @type {string}
73
73
  * @memberof IndexTagRequest
74
74
  */
75
- relatedType?: string;
75
+ relatedType?: IndexTagRequestRelatedTypeEnum;
76
76
  }
77
77
 
78
78
 
@@ -97,6 +97,14 @@ export const IndexTagRequestSortDirectionEnum = {
97
97
  } as const;
98
98
  export type IndexTagRequestSortDirectionEnum = typeof IndexTagRequestSortDirectionEnum[keyof typeof IndexTagRequestSortDirectionEnum];
99
99
 
100
+ /**
101
+ * @export
102
+ */
103
+ export const IndexTagRequestRelatedTypeEnum = {
104
+ ProductChild: 'productChild'
105
+ } as const;
106
+ export type IndexTagRequestRelatedTypeEnum = typeof IndexTagRequestRelatedTypeEnum[keyof typeof IndexTagRequestRelatedTypeEnum];
107
+
100
108
 
101
109
  /**
102
110
  * Check if a given object implements the IndexTagRequest interface.
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { SiteListResource } from './SiteListResource';
24
+ import {
25
+ SiteListResourceFromJSON,
26
+ SiteListResourceFromJSONTyped,
27
+ SiteListResourceToJSON,
28
+ SiteListResourceToJSONTyped,
29
+ } from './SiteListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedSiteListResourceResponse
35
+ */
36
+ export interface PaginatedSiteListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<SiteListResource>}
40
+ * @memberof PaginatedSiteListResourceResponse
41
+ */
42
+ data: Array<SiteListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedSiteListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedSiteListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedSiteListResourceResponse(value: object): value is PaginatedSiteListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedSiteListResourceResponseFromJSON(json: any): PaginatedSiteListResourceResponse {
61
+ return PaginatedSiteListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSiteListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSiteListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(SiteListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSiteListResourceResponseToJSON(json: any): PaginatedSiteListResourceResponse {
76
+ return PaginatedSiteListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedSiteListResourceResponseToJSONTyped(value?: PaginatedSiteListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(SiteListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { SupplierListResource } from './SupplierListResource';
24
+ import {
25
+ SupplierListResourceFromJSON,
26
+ SupplierListResourceFromJSONTyped,
27
+ SupplierListResourceToJSON,
28
+ SupplierListResourceToJSONTyped,
29
+ } from './SupplierListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedSupplierListResourceResponse
35
+ */
36
+ export interface PaginatedSupplierListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<SupplierListResource>}
40
+ * @memberof PaginatedSupplierListResourceResponse
41
+ */
42
+ data: Array<SupplierListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedSupplierListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedSupplierListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedSupplierListResourceResponse(value: object): value is PaginatedSupplierListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedSupplierListResourceResponseFromJSON(json: any): PaginatedSupplierListResourceResponse {
61
+ return PaginatedSupplierListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSupplierListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupplierListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(SupplierListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSupplierListResourceResponseToJSON(json: any): PaginatedSupplierListResourceResponse {
76
+ return PaginatedSupplierListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedSupplierListResourceResponseToJSONTyped(value?: PaginatedSupplierListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(SupplierListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { TagListResource } from './TagListResource';
24
+ import {
25
+ TagListResourceFromJSON,
26
+ TagListResourceFromJSONTyped,
27
+ TagListResourceToJSON,
28
+ TagListResourceToJSONTyped,
29
+ } from './TagListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedTagListResourceResponse
35
+ */
36
+ export interface PaginatedTagListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<TagListResource>}
40
+ * @memberof PaginatedTagListResourceResponse
41
+ */
42
+ data: Array<TagListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedTagListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedTagListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedTagListResourceResponse(value: object): value is PaginatedTagListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedTagListResourceResponseFromJSON(json: any): PaginatedTagListResourceResponse {
61
+ return PaginatedTagListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedTagListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTagListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(TagListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedTagListResourceResponseToJSON(json: any): PaginatedTagListResourceResponse {
76
+ return PaginatedTagListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedTagListResourceResponseToJSONTyped(value?: PaginatedTagListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(TagListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SiteListResource
20
+ */
21
+ export interface SiteListResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof SiteListResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SiteListResource
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SiteListResource
38
+ */
39
+ abbreviation: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof SiteListResource
44
+ */
45
+ domain: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the SiteListResource interface.
50
+ */
51
+ export function instanceOfSiteListResource(value: object): value is SiteListResource {
52
+ if (!('id' in value) || value['id'] === undefined) return false;
53
+ if (!('name' in value) || value['name'] === undefined) return false;
54
+ if (!('abbreviation' in value) || value['abbreviation'] === undefined) return false;
55
+ if (!('domain' in value) || value['domain'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function SiteListResourceFromJSON(json: any): SiteListResource {
60
+ return SiteListResourceFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function SiteListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SiteListResource {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'name': json['name'],
71
+ 'abbreviation': json['abbreviation'],
72
+ 'domain': json['domain'],
73
+ };
74
+ }
75
+
76
+ export function SiteListResourceToJSON(json: any): SiteListResource {
77
+ return SiteListResourceToJSONTyped(json, false);
78
+ }
79
+
80
+ export function SiteListResourceToJSONTyped(value?: SiteListResource | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'id': value['id'],
88
+ 'name': value['name'],
89
+ 'abbreviation': value['abbreviation'],
90
+ 'domain': value['domain'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SiteListResource } from './SiteListResource';
17
+ import {
18
+ SiteListResourceFromJSON,
19
+ SiteListResourceFromJSONTyped,
20
+ SiteListResourceToJSON,
21
+ SiteListResourceToJSONTyped,
22
+ } from './SiteListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SiteListResourceArrayResponse
28
+ */
29
+ export interface SiteListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<SiteListResource>}
33
+ * @memberof SiteListResourceArrayResponse
34
+ */
35
+ data?: Array<SiteListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SiteListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfSiteListResourceArrayResponse(value: object): value is SiteListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function SiteListResourceArrayResponseFromJSON(json: any): SiteListResourceArrayResponse {
46
+ return SiteListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SiteListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SiteListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SiteListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function SiteListResourceArrayResponseToJSON(json: any): SiteListResourceArrayResponse {
60
+ return SiteListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SiteListResourceArrayResponseToJSONTyped(value?: SiteListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(SiteListResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { AssetLiteResource } from './AssetLiteResource';
17
+ import {
18
+ AssetLiteResourceFromJSON,
19
+ AssetLiteResourceFromJSONTyped,
20
+ AssetLiteResourceToJSON,
21
+ AssetLiteResourceToJSONTyped,
22
+ } from './AssetLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SupplierListResource
28
+ */
29
+ export interface SupplierListResource {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SupplierListResource
34
+ */
35
+ id: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SupplierListResource
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SupplierListResource
46
+ */
47
+ slug: string;
48
+ /**
49
+ *
50
+ * @type {AssetLiteResource}
51
+ * @memberof SupplierListResource
52
+ */
53
+ thumbnail: AssetLiteResource | null;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof SupplierListResource
58
+ */
59
+ supplierEta: number;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the SupplierListResource interface.
64
+ */
65
+ export function instanceOfSupplierListResource(value: object): value is SupplierListResource {
66
+ if (!('id' in value) || value['id'] === undefined) return false;
67
+ if (!('name' in value) || value['name'] === undefined) return false;
68
+ if (!('slug' in value) || value['slug'] === undefined) return false;
69
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
70
+ if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function SupplierListResourceFromJSON(json: any): SupplierListResource {
75
+ return SupplierListResourceFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function SupplierListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierListResource {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'id': json['id'],
85
+ 'name': json['name'],
86
+ 'slug': json['slug'],
87
+ 'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
88
+ 'supplierEta': json['supplierEta'],
89
+ };
90
+ }
91
+
92
+ export function SupplierListResourceToJSON(json: any): SupplierListResource {
93
+ return SupplierListResourceToJSONTyped(json, false);
94
+ }
95
+
96
+ export function SupplierListResourceToJSONTyped(value?: SupplierListResource | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'id': value['id'],
104
+ 'name': value['name'],
105
+ 'slug': value['slug'],
106
+ 'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
107
+ 'supplierEta': value['supplierEta'],
108
+ };
109
+ }
110
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SupplierListResource } from './SupplierListResource';
17
+ import {
18
+ SupplierListResourceFromJSON,
19
+ SupplierListResourceFromJSONTyped,
20
+ SupplierListResourceToJSON,
21
+ SupplierListResourceToJSONTyped,
22
+ } from './SupplierListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SupplierListResourceArrayResponse
28
+ */
29
+ export interface SupplierListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<SupplierListResource>}
33
+ * @memberof SupplierListResourceArrayResponse
34
+ */
35
+ data?: Array<SupplierListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SupplierListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfSupplierListResourceArrayResponse(value: object): value is SupplierListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function SupplierListResourceArrayResponseFromJSON(json: any): SupplierListResourceArrayResponse {
46
+ return SupplierListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SupplierListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SupplierListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function SupplierListResourceArrayResponseToJSON(json: any): SupplierListResourceArrayResponse {
60
+ return SupplierListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SupplierListResourceArrayResponseToJSONTyped(value?: SupplierListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(SupplierListResourceToJSON)),
71
+ };
72
+ }
73
+