@digital8/lighting-illusions-ts-sdk 0.0.708 → 0.0.710

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 (149) hide show
  1. package/.openapi-generator/FILES +56 -0
  2. package/README.md +43 -2
  3. package/dist/apis/ProductRangeApi.d.ts +181 -0
  4. package/dist/apis/ProductRangeApi.js +739 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +32 -0
  8. package/dist/models/AttachAccessoriesProductRangeRequest.js +51 -0
  9. package/dist/models/AttachAttributesProductRangeRequest.d.ts +32 -0
  10. package/dist/models/AttachAttributesProductRangeRequest.js +51 -0
  11. package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
  12. package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
  13. package/dist/models/AttachDocumentsProductRangeRequest.d.ts +33 -0
  14. package/dist/models/AttachDocumentsProductRangeRequest.js +52 -0
  15. package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +32 -0
  16. package/dist/models/DetachAccessoriesProductRangeRequest.js +51 -0
  17. package/dist/models/DetachAttributesProductRangeRequest.d.ts +32 -0
  18. package/dist/models/DetachAttributesProductRangeRequest.js +51 -0
  19. package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
  20. package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
  21. package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
  22. package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
  23. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  24. package/dist/models/ExternalApiLogResource.js +1 -3
  25. package/dist/models/GetAllDocumentRequest.d.ts +1 -0
  26. package/dist/models/GetAllDocumentRequest.js +1 -0
  27. package/dist/models/GetAllProductChildRequest.d.ts +1 -0
  28. package/dist/models/GetAllProductChildRequest.js +1 -0
  29. package/dist/models/GetAllProductRangeRequest.d.ts +98 -0
  30. package/dist/models/GetAllProductRangeRequest.js +82 -0
  31. package/dist/models/IndexAttributeRequest.d.ts +2 -0
  32. package/dist/models/IndexAttributeRequest.js +3 -1
  33. package/dist/models/IndexDocumentRequest.d.ts +1 -0
  34. package/dist/models/IndexDocumentRequest.js +1 -0
  35. package/dist/models/IndexProductChildRequest.d.ts +1 -0
  36. package/dist/models/IndexProductChildRequest.js +1 -0
  37. package/dist/models/IndexProductRangeRequest.d.ts +110 -0
  38. package/dist/models/IndexProductRangeRequest.js +86 -0
  39. package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +40 -0
  40. package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +57 -0
  41. package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +40 -0
  42. package/dist/models/PaginatedProductRangeListResourceResponse.js +57 -0
  43. package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +40 -0
  44. package/dist/models/PaginatedProductRangeLiteResourceResponse.js +57 -0
  45. package/dist/models/PaginatedProductRangeResourceResponse.d.ts +40 -0
  46. package/dist/models/PaginatedProductRangeResourceResponse.js +57 -0
  47. package/dist/models/ProductChildResource.d.ts +7 -1
  48. package/dist/models/ProductChildResource.js +4 -2
  49. package/dist/models/ProductRangeFrontendListResource.d.ts +62 -0
  50. package/dist/models/ProductRangeFrontendListResource.js +71 -0
  51. package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +33 -0
  52. package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +50 -0
  53. package/dist/models/ProductRangeFrontendResource.d.ts +118 -0
  54. package/dist/models/ProductRangeFrontendResource.js +109 -0
  55. package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +33 -0
  56. package/dist/models/ProductRangeFrontendResourceArrayResponse.js +50 -0
  57. package/dist/models/ProductRangeListResource.d.ts +52 -0
  58. package/dist/models/ProductRangeListResource.js +65 -0
  59. package/dist/models/ProductRangeListResourceArrayResponse.d.ts +33 -0
  60. package/dist/models/ProductRangeListResourceArrayResponse.js +50 -0
  61. package/dist/models/ProductRangeLiteResource.d.ts +38 -0
  62. package/dist/models/ProductRangeLiteResource.js +55 -0
  63. package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +33 -0
  64. package/dist/models/ProductRangeLiteResourceArrayResponse.js +50 -0
  65. package/dist/models/ProductRangeResource.d.ts +83 -0
  66. package/dist/models/ProductRangeResource.js +82 -0
  67. package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
  68. package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
  69. package/dist/models/ProductRangeSiteDetailResource.d.ts +94 -0
  70. package/dist/models/ProductRangeSiteDetailResource.js +93 -0
  71. package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
  72. package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -0
  73. package/dist/models/StoreProductRangeRequest.d.ts +52 -0
  74. package/dist/models/StoreProductRangeRequest.js +59 -0
  75. package/dist/models/StoreProductRangeRequestSitesInner.d.ts +92 -0
  76. package/dist/models/StoreProductRangeRequestSitesInner.js +75 -0
  77. package/dist/models/UpdateProductRangeRequest.d.ts +52 -0
  78. package/dist/models/UpdateProductRangeRequest.js +59 -0
  79. package/dist/models/index.d.ts +27 -0
  80. package/dist/models/index.js +27 -0
  81. package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
  82. package/docs/AttachAttributesProductRangeRequest.md +34 -0
  83. package/docs/AttachDocumentsProductRangeRequest.md +34 -0
  84. package/docs/DetachAccessoriesProductRangeRequest.md +34 -0
  85. package/docs/DetachAttributesProductRangeRequest.md +34 -0
  86. package/docs/DetachDocumentsProductRangeRequest.md +34 -0
  87. package/docs/GetAllProductRangeRequest.md +50 -0
  88. package/docs/IndexProductRangeRequest.md +54 -0
  89. package/docs/PaginatedProductRangeFrontendListResourceResponse.md +36 -0
  90. package/docs/PaginatedProductRangeListResourceResponse.md +36 -0
  91. package/docs/PaginatedProductRangeLiteResourceResponse.md +36 -0
  92. package/docs/PaginatedProductRangeResourceResponse.md +36 -0
  93. package/docs/ProductChildResource.md +4 -2
  94. package/docs/ProductRangeApi.md +959 -0
  95. package/docs/ProductRangeFrontendListResource.md +44 -0
  96. package/docs/ProductRangeFrontendListResourceArrayResponse.md +34 -0
  97. package/docs/ProductRangeFrontendResource.md +62 -0
  98. package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
  99. package/docs/ProductRangeListResource.md +40 -0
  100. package/docs/ProductRangeListResourceArrayResponse.md +34 -0
  101. package/docs/ProductRangeLiteResource.md +36 -0
  102. package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
  103. package/docs/ProductRangeResource.md +50 -0
  104. package/docs/ProductRangeResourceArrayResponse.md +34 -0
  105. package/docs/ProductRangeSiteDetailResource.md +54 -0
  106. package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
  107. package/docs/StoreProductRangeRequest.md +40 -0
  108. package/docs/StoreProductRangeRequestSitesInner.md +54 -0
  109. package/docs/UpdateProductRangeRequest.md +40 -0
  110. package/package.json +1 -1
  111. package/src/apis/ProductRangeApi.ts +664 -0
  112. package/src/apis/index.ts +1 -0
  113. package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
  114. package/src/models/AttachAttributesProductRangeRequest.ts +66 -0
  115. package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -0
  116. package/src/models/AttachDocumentsProductRangeRequest.ts +74 -0
  117. package/src/models/DetachAccessoriesProductRangeRequest.ts +66 -0
  118. package/src/models/DetachAttributesProductRangeRequest.ts +66 -0
  119. package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -0
  120. package/src/models/DetachDocumentsProductRangeRequest.ts +66 -0
  121. package/src/models/ExternalApiLogResource.ts +2 -3
  122. package/src/models/GetAllDocumentRequest.ts +1 -0
  123. package/src/models/GetAllProductChildRequest.ts +1 -0
  124. package/src/models/GetAllProductRangeRequest.ts +151 -0
  125. package/src/models/IndexAttributeRequest.ts +3 -1
  126. package/src/models/IndexDocumentRequest.ts +1 -0
  127. package/src/models/IndexProductChildRequest.ts +1 -0
  128. package/src/models/IndexProductRangeRequest.ts +167 -0
  129. package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +90 -0
  130. package/src/models/PaginatedProductRangeListResourceResponse.ts +90 -0
  131. package/src/models/PaginatedProductRangeLiteResourceResponse.ts +90 -0
  132. package/src/models/PaginatedProductRangeResourceResponse.ts +90 -0
  133. package/src/models/ProductChildResource.ts +11 -3
  134. package/src/models/ProductRangeFrontendListResource.ts +111 -0
  135. package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
  136. package/src/models/ProductRangeFrontendResource.ts +207 -0
  137. package/src/models/ProductRangeFrontendResourceArrayResponse.ts +73 -0
  138. package/src/models/ProductRangeListResource.ts +108 -0
  139. package/src/models/ProductRangeListResourceArrayResponse.ts +73 -0
  140. package/src/models/ProductRangeLiteResource.ts +75 -0
  141. package/src/models/ProductRangeLiteResourceArrayResponse.ts +73 -0
  142. package/src/models/ProductRangeResource.ts +158 -0
  143. package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
  144. package/src/models/ProductRangeSiteDetailResource.ts +171 -0
  145. package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
  146. package/src/models/StoreProductRangeRequest.ts +105 -0
  147. package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
  148. package/src/models/UpdateProductRangeRequest.ts +105 -0
  149. package/src/models/index.ts +27 -0
@@ -0,0 +1,66 @@
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 AttachAccessoriesProductRangeRequest
20
+ */
21
+ export interface AttachAccessoriesProductRangeRequest {
22
+ /**
23
+ *
24
+ * @type {Array<number>}
25
+ * @memberof AttachAccessoriesProductRangeRequest
26
+ */
27
+ productChildIds: Array<number>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AttachAccessoriesProductRangeRequest interface.
32
+ */
33
+ export function instanceOfAttachAccessoriesProductRangeRequest(value: object): value is AttachAccessoriesProductRangeRequest {
34
+ if (!('productChildIds' in value) || value['productChildIds'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AttachAccessoriesProductRangeRequestFromJSON(json: any): AttachAccessoriesProductRangeRequest {
39
+ return AttachAccessoriesProductRangeRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AttachAccessoriesProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAccessoriesProductRangeRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'productChildIds': json['product_child_ids'],
49
+ };
50
+ }
51
+
52
+ export function AttachAccessoriesProductRangeRequestToJSON(json: any): AttachAccessoriesProductRangeRequest {
53
+ return AttachAccessoriesProductRangeRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AttachAccessoriesProductRangeRequestToJSONTyped(value?: AttachAccessoriesProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'product_child_ids': value['productChildIds'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,66 @@
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 AttachAttributesProductRangeRequest
20
+ */
21
+ export interface AttachAttributesProductRangeRequest {
22
+ /**
23
+ *
24
+ * @type {Array<number>}
25
+ * @memberof AttachAttributesProductRangeRequest
26
+ */
27
+ attributes: Array<number>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AttachAttributesProductRangeRequest interface.
32
+ */
33
+ export function instanceOfAttachAttributesProductRangeRequest(value: object): value is AttachAttributesProductRangeRequest {
34
+ if (!('attributes' in value) || value['attributes'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AttachAttributesProductRangeRequestFromJSON(json: any): AttachAttributesProductRangeRequest {
39
+ return AttachAttributesProductRangeRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AttachAttributesProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAttributesProductRangeRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'attributes': json['attributes'],
49
+ };
50
+ }
51
+
52
+ export function AttachAttributesProductRangeRequestToJSON(json: any): AttachAttributesProductRangeRequest {
53
+ return AttachAttributesProductRangeRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AttachAttributesProductRangeRequestToJSONTyped(value?: AttachAttributesProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'attributes': value['attributes'],
64
+ };
65
+ }
66
+
@@ -45,6 +45,7 @@ export interface AttachDocumentablesDocumentRequestDocumentablesInner {
45
45
  */
46
46
  export const AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = {
47
47
  AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
48
+ AppModelsProductRangesProductRange: 'App\\Models\\ProductRanges\\ProductRange',
48
49
  AppModelsProductRangeSite: 'App\\Models\\ProductRangeSite'
49
50
  } as const;
50
51
  export type AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = typeof AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum[keyof typeof AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum];
@@ -0,0 +1,74 @@
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 { AttachDocumentsProductChildRequestDocumentsInner } from './AttachDocumentsProductChildRequestDocumentsInner';
17
+ import {
18
+ AttachDocumentsProductChildRequestDocumentsInnerFromJSON,
19
+ AttachDocumentsProductChildRequestDocumentsInnerFromJSONTyped,
20
+ AttachDocumentsProductChildRequestDocumentsInnerToJSON,
21
+ AttachDocumentsProductChildRequestDocumentsInnerToJSONTyped,
22
+ } from './AttachDocumentsProductChildRequestDocumentsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AttachDocumentsProductRangeRequest
28
+ */
29
+ export interface AttachDocumentsProductRangeRequest {
30
+ /**
31
+ *
32
+ * @type {Array<AttachDocumentsProductChildRequestDocumentsInner>}
33
+ * @memberof AttachDocumentsProductRangeRequest
34
+ */
35
+ documents: Array<AttachDocumentsProductChildRequestDocumentsInner>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AttachDocumentsProductRangeRequest interface.
40
+ */
41
+ export function instanceOfAttachDocumentsProductRangeRequest(value: object): value is AttachDocumentsProductRangeRequest {
42
+ if (!('documents' in value) || value['documents'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function AttachDocumentsProductRangeRequestFromJSON(json: any): AttachDocumentsProductRangeRequest {
47
+ return AttachDocumentsProductRangeRequestFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function AttachDocumentsProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachDocumentsProductRangeRequest {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'documents': ((json['documents'] as Array<any>).map(AttachDocumentsProductChildRequestDocumentsInnerFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function AttachDocumentsProductRangeRequestToJSON(json: any): AttachDocumentsProductRangeRequest {
61
+ return AttachDocumentsProductRangeRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AttachDocumentsProductRangeRequestToJSONTyped(value?: AttachDocumentsProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'documents': ((value['documents'] as Array<any>).map(AttachDocumentsProductChildRequestDocumentsInnerToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,66 @@
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 DetachAccessoriesProductRangeRequest
20
+ */
21
+ export interface DetachAccessoriesProductRangeRequest {
22
+ /**
23
+ *
24
+ * @type {Array<number>}
25
+ * @memberof DetachAccessoriesProductRangeRequest
26
+ */
27
+ productChildIds: Array<number>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the DetachAccessoriesProductRangeRequest interface.
32
+ */
33
+ export function instanceOfDetachAccessoriesProductRangeRequest(value: object): value is DetachAccessoriesProductRangeRequest {
34
+ if (!('productChildIds' in value) || value['productChildIds'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function DetachAccessoriesProductRangeRequestFromJSON(json: any): DetachAccessoriesProductRangeRequest {
39
+ return DetachAccessoriesProductRangeRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DetachAccessoriesProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachAccessoriesProductRangeRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'productChildIds': json['product_child_ids'],
49
+ };
50
+ }
51
+
52
+ export function DetachAccessoriesProductRangeRequestToJSON(json: any): DetachAccessoriesProductRangeRequest {
53
+ return DetachAccessoriesProductRangeRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function DetachAccessoriesProductRangeRequestToJSONTyped(value?: DetachAccessoriesProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'product_child_ids': value['productChildIds'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,66 @@
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 DetachAttributesProductRangeRequest
20
+ */
21
+ export interface DetachAttributesProductRangeRequest {
22
+ /**
23
+ *
24
+ * @type {Array<number>}
25
+ * @memberof DetachAttributesProductRangeRequest
26
+ */
27
+ attributes: Array<number>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the DetachAttributesProductRangeRequest interface.
32
+ */
33
+ export function instanceOfDetachAttributesProductRangeRequest(value: object): value is DetachAttributesProductRangeRequest {
34
+ if (!('attributes' in value) || value['attributes'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function DetachAttributesProductRangeRequestFromJSON(json: any): DetachAttributesProductRangeRequest {
39
+ return DetachAttributesProductRangeRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DetachAttributesProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachAttributesProductRangeRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'attributes': json['attributes'],
49
+ };
50
+ }
51
+
52
+ export function DetachAttributesProductRangeRequestToJSON(json: any): DetachAttributesProductRangeRequest {
53
+ return DetachAttributesProductRangeRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function DetachAttributesProductRangeRequestToJSONTyped(value?: DetachAttributesProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'attributes': value['attributes'],
64
+ };
65
+ }
66
+
@@ -39,6 +39,7 @@ export interface DetachDocumentablesDocumentRequestDocumentablesInner {
39
39
  */
40
40
  export const DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = {
41
41
  AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
42
+ AppModelsProductRangesProductRange: 'App\\Models\\ProductRanges\\ProductRange',
42
43
  AppModelsProductRangeSite: 'App\\Models\\ProductRangeSite'
43
44
  } as const;
44
45
  export type DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = typeof DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum[keyof typeof DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum];
@@ -0,0 +1,66 @@
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 DetachDocumentsProductRangeRequest
20
+ */
21
+ export interface DetachDocumentsProductRangeRequest {
22
+ /**
23
+ *
24
+ * @type {Array<number>}
25
+ * @memberof DetachDocumentsProductRangeRequest
26
+ */
27
+ documents: Array<number>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the DetachDocumentsProductRangeRequest interface.
32
+ */
33
+ export function instanceOfDetachDocumentsProductRangeRequest(value: object): value is DetachDocumentsProductRangeRequest {
34
+ if (!('documents' in value) || value['documents'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function DetachDocumentsProductRangeRequestFromJSON(json: any): DetachDocumentsProductRangeRequest {
39
+ return DetachDocumentsProductRangeRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DetachDocumentsProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachDocumentsProductRangeRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'documents': json['documents'],
49
+ };
50
+ }
51
+
52
+ export function DetachDocumentsProductRangeRequestToJSON(json: any): DetachDocumentsProductRangeRequest {
53
+ return DetachDocumentsProductRangeRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function DetachDocumentsProductRangeRequestToJSONTyped(value?: DetachDocumentsProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'documents': value['documents'],
64
+ };
65
+ }
66
+
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ 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;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -89,6 +89,7 @@ export type GetAllDocumentRequestSortDirectionEnum = typeof GetAllDocumentReques
89
89
  */
90
90
  export const GetAllDocumentRequestRelatedTypeEnum = {
91
91
  ProductChild: 'productChild',
92
+ ProductRange: 'productRange',
92
93
  ProductRangeSite: 'productRangeSite'
93
94
  } as const;
94
95
  export type GetAllDocumentRequestRelatedTypeEnum = typeof GetAllDocumentRequestRelatedTypeEnum[keyof typeof GetAllDocumentRequestRelatedTypeEnum];
@@ -109,6 +109,7 @@ export type GetAllProductChildRequestSortDirectionEnum = typeof GetAllProductChi
109
109
  */
110
110
  export const GetAllProductChildRequestRelatedTypeEnum = {
111
111
  OverlayTemplate: 'overlayTemplate',
112
+ ProductRange: 'productRange',
112
113
  Supplier: 'supplier',
113
114
  Tag: 'tag',
114
115
  Document: 'document'
@@ -0,0 +1,151 @@
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 GetAllProductRangeRequest
20
+ */
21
+ export interface GetAllProductRangeRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetAllProductRangeRequest
26
+ */
27
+ search?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GetAllProductRangeRequest
32
+ */
33
+ sortBy?: GetAllProductRangeRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GetAllProductRangeRequest
38
+ */
39
+ sortDirection?: GetAllProductRangeRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof GetAllProductRangeRequest
44
+ */
45
+ relatedId?: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof GetAllProductRangeRequest
50
+ */
51
+ relatedType?: string;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof GetAllProductRangeRequest
56
+ */
57
+ includesRelations?: boolean;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof GetAllProductRangeRequest
62
+ */
63
+ siteDetailsSiteId?: Array<string>;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof GetAllProductRangeRequest
68
+ */
69
+ supplierId?: Array<string>;
70
+ /**
71
+ *
72
+ * @type {Array<string>}
73
+ * @memberof GetAllProductRangeRequest
74
+ */
75
+ siteDetailsCategoriesId?: Array<string>;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const GetAllProductRangeRequestSortByEnum = {
83
+ Id: 'id',
84
+ Name: 'name',
85
+ CreatedAt: 'created_at',
86
+ UpdatedAt: 'updated_at'
87
+ } as const;
88
+ export type GetAllProductRangeRequestSortByEnum = typeof GetAllProductRangeRequestSortByEnum[keyof typeof GetAllProductRangeRequestSortByEnum];
89
+
90
+ /**
91
+ * @export
92
+ */
93
+ export const GetAllProductRangeRequestSortDirectionEnum = {
94
+ Asc: 'asc',
95
+ Desc: 'desc'
96
+ } as const;
97
+ export type GetAllProductRangeRequestSortDirectionEnum = typeof GetAllProductRangeRequestSortDirectionEnum[keyof typeof GetAllProductRangeRequestSortDirectionEnum];
98
+
99
+
100
+ /**
101
+ * Check if a given object implements the GetAllProductRangeRequest interface.
102
+ */
103
+ export function instanceOfGetAllProductRangeRequest(value: object): value is GetAllProductRangeRequest {
104
+ return true;
105
+ }
106
+
107
+ export function GetAllProductRangeRequestFromJSON(json: any): GetAllProductRangeRequest {
108
+ return GetAllProductRangeRequestFromJSONTyped(json, false);
109
+ }
110
+
111
+ export function GetAllProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductRangeRequest {
112
+ if (json == null) {
113
+ return json;
114
+ }
115
+ return {
116
+
117
+ 'search': json['search'] == null ? undefined : json['search'],
118
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
119
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
120
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
121
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
122
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
123
+ 'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
124
+ 'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
125
+ 'siteDetailsCategoriesId': json['siteDetails-categories-id'] == null ? undefined : json['siteDetails-categories-id'],
126
+ };
127
+ }
128
+
129
+ export function GetAllProductRangeRequestToJSON(json: any): GetAllProductRangeRequest {
130
+ return GetAllProductRangeRequestToJSONTyped(json, false);
131
+ }
132
+
133
+ export function GetAllProductRangeRequestToJSONTyped(value?: GetAllProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
134
+ if (value == null) {
135
+ return value;
136
+ }
137
+
138
+ return {
139
+
140
+ 'search': value['search'],
141
+ 'sortBy': value['sortBy'],
142
+ 'sortDirection': value['sortDirection'],
143
+ 'related_id': value['relatedId'],
144
+ 'related_type': value['relatedType'],
145
+ 'includes_relations': value['includesRelations'],
146
+ 'siteDetails-site_id': value['siteDetailsSiteId'],
147
+ 'supplier_id': value['supplierId'],
148
+ 'siteDetails-categories-id': value['siteDetailsCategoriesId'],
149
+ };
150
+ }
151
+
@@ -112,7 +112,9 @@ export type IndexAttributeRequestSortDirectionEnum = typeof IndexAttributeReques
112
112
  * @export
113
113
  */
114
114
  export const IndexAttributeRequestRelatedTypeEnum = {
115
- ProductType: 'productType'
115
+ ProductType: 'productType',
116
+ ProductRange: 'productRange',
117
+ Category: 'category'
116
118
  } as const;
117
119
  export type IndexAttributeRequestRelatedTypeEnum = typeof IndexAttributeRequestRelatedTypeEnum[keyof typeof IndexAttributeRequestRelatedTypeEnum];
118
120
 
@@ -101,6 +101,7 @@ export type IndexDocumentRequestSortDirectionEnum = typeof IndexDocumentRequestS
101
101
  */
102
102
  export const IndexDocumentRequestRelatedTypeEnum = {
103
103
  ProductChild: 'productChild',
104
+ ProductRange: 'productRange',
104
105
  ProductRangeSite: 'productRangeSite'
105
106
  } as const;
106
107
  export type IndexDocumentRequestRelatedTypeEnum = typeof IndexDocumentRequestRelatedTypeEnum[keyof typeof IndexDocumentRequestRelatedTypeEnum];
@@ -129,6 +129,7 @@ export const IndexProductChildRequestRelatedTypeEnum = {
129
129
  Document: 'document',
130
130
  OverlayTemplate: 'overlayTemplate',
131
131
  ProductType: 'productType',
132
+ ProductRange: 'productRange',
132
133
  Supplier: 'supplier',
133
134
  Tag: 'tag',
134
135
  Site: 'site'