@digital8/lighting-illusions-ts-sdk 0.0.447 → 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 (44) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +10 -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/models/AttributeListResource.d.ts +56 -0
  8. package/dist/models/AttributeListResource.js +67 -0
  9. package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/AttributeListResourceArrayResponse.js +50 -0
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +1 -3
  13. package/dist/models/IndexAttributeRequest.d.ts +8 -1
  14. package/dist/models/IndexAttributeRequest.js +7 -1
  15. package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
  17. package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
  18. package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
  19. package/dist/models/ProductTypeListResource.d.ts +38 -0
  20. package/dist/models/ProductTypeListResource.js +55 -0
  21. package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
  23. package/dist/models/index.d.ts +6 -0
  24. package/dist/models/index.js +6 -0
  25. package/docs/AttributeApi.md +69 -3
  26. package/docs/AttributeListResource.md +42 -0
  27. package/docs/AttributeListResourceArrayResponse.md +34 -0
  28. package/docs/PaginatedAttributeListResourceResponse.md +36 -0
  29. package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
  30. package/docs/ProductTypeApi.md +69 -3
  31. package/docs/ProductTypeListResource.md +36 -0
  32. package/docs/ProductTypeListResourceArrayResponse.md +34 -0
  33. package/package.json +1 -1
  34. package/src/apis/AttributeApi.ts +42 -6
  35. package/src/apis/ProductTypeApi.ts +42 -6
  36. package/src/models/AttributeListResource.ts +102 -0
  37. package/src/models/AttributeListResourceArrayResponse.ts +73 -0
  38. package/src/models/ExternalApiLogResource.ts +2 -3
  39. package/src/models/IndexAttributeRequest.ts +9 -1
  40. package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
  41. package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
  42. package/src/models/ProductTypeListResource.ts +75 -0
  43. package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
  44. package/src/models/index.ts +6 -0
@@ -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 { AttributeListResource } from './AttributeListResource';
24
+ import {
25
+ AttributeListResourceFromJSON,
26
+ AttributeListResourceFromJSONTyped,
27
+ AttributeListResourceToJSON,
28
+ AttributeListResourceToJSONTyped,
29
+ } from './AttributeListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedAttributeListResourceResponse
35
+ */
36
+ export interface PaginatedAttributeListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<AttributeListResource>}
40
+ * @memberof PaginatedAttributeListResourceResponse
41
+ */
42
+ data: Array<AttributeListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedAttributeListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedAttributeListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedAttributeListResourceResponse(value: object): value is PaginatedAttributeListResourceResponse {
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 PaginatedAttributeListResourceResponseFromJSON(json: any): PaginatedAttributeListResourceResponse {
61
+ return PaginatedAttributeListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedAttributeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAttributeListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(AttributeListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedAttributeListResourceResponseToJSON(json: any): PaginatedAttributeListResourceResponse {
76
+ return PaginatedAttributeListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedAttributeListResourceResponseToJSONTyped(value?: PaginatedAttributeListResourceResponse | 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(AttributeListResourceToJSON)),
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 { ProductTypeListResource } from './ProductTypeListResource';
17
+ import {
18
+ ProductTypeListResourceFromJSON,
19
+ ProductTypeListResourceFromJSONTyped,
20
+ ProductTypeListResourceToJSON,
21
+ ProductTypeListResourceToJSONTyped,
22
+ } from './ProductTypeListResource';
23
+ import type { PagingMetadata } from './PagingMetadata';
24
+ import {
25
+ PagingMetadataFromJSON,
26
+ PagingMetadataFromJSONTyped,
27
+ PagingMetadataToJSON,
28
+ PagingMetadataToJSONTyped,
29
+ } from './PagingMetadata';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedProductTypeListResourceResponse
35
+ */
36
+ export interface PaginatedProductTypeListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ProductTypeListResource>}
40
+ * @memberof PaginatedProductTypeListResourceResponse
41
+ */
42
+ data: Array<ProductTypeListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedProductTypeListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedProductTypeListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedProductTypeListResourceResponse(value: object): value is PaginatedProductTypeListResourceResponse {
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 PaginatedProductTypeListResourceResponseFromJSON(json: any): PaginatedProductTypeListResourceResponse {
61
+ return PaginatedProductTypeListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedProductTypeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductTypeListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ProductTypeListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedProductTypeListResourceResponseToJSON(json: any): PaginatedProductTypeListResourceResponse {
76
+ return PaginatedProductTypeListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedProductTypeListResourceResponseToJSONTyped(value?: PaginatedProductTypeListResourceResponse | 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(ProductTypeListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,75 @@
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 ProductTypeListResource
20
+ */
21
+ export interface ProductTypeListResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ProductTypeListResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ProductTypeListResource
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ProductTypeListResource interface.
38
+ */
39
+ export function instanceOfProductTypeListResource(value: object): value is ProductTypeListResource {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ProductTypeListResourceFromJSON(json: any): ProductTypeListResource {
46
+ return ProductTypeListResourceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductTypeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeListResource {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function ProductTypeListResourceToJSON(json: any): ProductTypeListResource {
61
+ return ProductTypeListResourceToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ProductTypeListResourceToJSONTyped(value?: ProductTypeListResource | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -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 { ProductTypeListResource } from './ProductTypeListResource';
17
+ import {
18
+ ProductTypeListResourceFromJSON,
19
+ ProductTypeListResourceFromJSONTyped,
20
+ ProductTypeListResourceToJSON,
21
+ ProductTypeListResourceToJSONTyped,
22
+ } from './ProductTypeListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductTypeListResourceArrayResponse
28
+ */
29
+ export interface ProductTypeListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductTypeListResource>}
33
+ * @memberof ProductTypeListResourceArrayResponse
34
+ */
35
+ data?: Array<ProductTypeListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductTypeListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductTypeListResourceArrayResponse(value: object): value is ProductTypeListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductTypeListResourceArrayResponseFromJSON(json: any): ProductTypeListResourceArrayResponse {
46
+ return ProductTypeListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductTypeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductTypeListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductTypeListResourceArrayResponseToJSON(json: any): ProductTypeListResourceArrayResponse {
60
+ return ProductTypeListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductTypeListResourceArrayResponseToJSONTyped(value?: ProductTypeListResourceArrayResponse | 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(ProductTypeListResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -7,6 +7,8 @@ export * from './AssetLiteResourceArrayResponse';
7
7
  export * from './AssetResource';
8
8
  export * from './AssetResourceArrayResponse';
9
9
  export * from './AttributeFieldType';
10
+ export * from './AttributeListResource';
11
+ export * from './AttributeListResourceArrayResponse';
10
12
  export * from './AttributeLiteResource';
11
13
  export * from './AttributeLiteResourceArrayResponse';
12
14
  export * from './AttributeProductTypeRelationResource';
@@ -51,6 +53,7 @@ export * from './OverlayTemplateLiteResource';
51
53
  export * from './OverlayTemplateLiteResourceArrayResponse';
52
54
  export * from './OverlayTemplateResource';
53
55
  export * from './OverlayTemplateResourceArrayResponse';
56
+ export * from './PaginatedAttributeListResourceResponse';
54
57
  export * from './PaginatedAttributeLiteResourceResponse';
55
58
  export * from './PaginatedAttributeProductTypeRelationResourceResponse';
56
59
  export * from './PaginatedAttributeResourceResponse';
@@ -63,6 +66,7 @@ export * from './PaginatedProductChildRelationResourceResponse';
63
66
  export * from './PaginatedProductChildResourceResponse';
64
67
  export * from './PaginatedProductLiteResourceResponse';
65
68
  export * from './PaginatedProductResourceResponse';
69
+ export * from './PaginatedProductTypeListResourceResponse';
66
70
  export * from './PaginatedProductTypeLiteResourceResponse';
67
71
  export * from './PaginatedProductTypeResourceResponse';
68
72
  export * from './PaginatedSiteListResourceResponse';
@@ -91,6 +95,8 @@ export * from './ProductLiteResource';
91
95
  export * from './ProductLiteResourceArrayResponse';
92
96
  export * from './ProductResource';
93
97
  export * from './ProductResourceArrayResponse';
98
+ export * from './ProductTypeListResource';
99
+ export * from './ProductTypeListResourceArrayResponse';
94
100
  export * from './ProductTypeLiteResource';
95
101
  export * from './ProductTypeLiteResourceArrayResponse';
96
102
  export * from './ProductTypeResource';