@digital8/lighting-illusions-ts-sdk 0.0.1637 → 0.0.1639

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 (165) hide show
  1. package/.openapi-generator/FILES +26 -40
  2. package/README.md +20 -26
  3. package/dist/apis/ReviewApi.d.ts +109 -0
  4. package/dist/apis/{ProductRegistrationApi.js → ReviewApi.js} +130 -74
  5. package/dist/apis/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AddressFrontendResource.d.ts +2 -2
  8. package/dist/models/AddressFrontendResource.js +6 -2
  9. package/dist/models/AddressResource.d.ts +2 -2
  10. package/dist/models/AddressResource.js +4 -4
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +1 -3
  13. package/dist/models/GlobalSearchProductResource.d.ts +0 -6
  14. package/dist/models/GlobalSearchProductResource.js +0 -4
  15. package/dist/models/IndexProductChildRequest.d.ts +0 -1
  16. package/dist/models/IndexProductChildRequest.js +0 -1
  17. package/dist/models/IndexReviewRequest.d.ts +110 -0
  18. package/dist/models/{ListAssetsProductRegistrationRequest.js → IndexReviewRequest.js} +24 -21
  19. package/dist/models/PaginatedReviewListResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedReviewListResourceResponse.js +57 -0
  21. package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedReviewLiteResourceResponse.js +57 -0
  23. package/dist/models/PaginatedReviewResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedReviewResourceResponse.js +57 -0
  25. package/dist/models/ProductChildListResource.d.ts +0 -6
  26. package/dist/models/ProductChildListResource.js +0 -2
  27. package/dist/models/ProductSearchResultResource.d.ts +0 -6
  28. package/dist/models/ProductSearchResultResource.js +0 -4
  29. package/dist/models/ReviewListResource.d.ts +87 -0
  30. package/dist/models/ReviewListResource.js +82 -0
  31. package/dist/models/ReviewListResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/ReviewListResourceArrayResponse.js +50 -0
  33. package/dist/models/ReviewLiteResource.d.ts +44 -0
  34. package/dist/models/ReviewLiteResource.js +59 -0
  35. package/dist/models/ReviewLiteResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/ReviewLiteResourceArrayResponse.js +50 -0
  37. package/dist/models/ReviewResource.d.ts +117 -0
  38. package/dist/models/ReviewResource.js +100 -0
  39. package/dist/models/ReviewResourceArrayResponse.d.ts +33 -0
  40. package/dist/models/ReviewResourceArrayResponse.js +50 -0
  41. package/dist/models/StoreListResource.d.ts +2 -2
  42. package/dist/models/StoreListResource.js +4 -4
  43. package/dist/models/StoreResource.d.ts +2 -2
  44. package/dist/models/StoreResource.js +2 -6
  45. package/dist/models/StoreReviewRequest.d.ts +74 -0
  46. package/dist/models/StoreReviewRequest.js +71 -0
  47. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  48. package/dist/models/StoreSpecialDateResource.js +1 -3
  49. package/dist/models/UpdateReviewRequest.d.ts +62 -0
  50. package/dist/models/UpdateReviewRequest.js +63 -0
  51. package/dist/models/index.d.ts +12 -19
  52. package/dist/models/index.js +12 -19
  53. package/docs/GlobalSearchProductResource.md +0 -2
  54. package/docs/{ListAssetsProductRegistrationRequest.md → IndexReviewRequest.md} +10 -8
  55. package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedReviewListResourceResponse.md} +5 -5
  56. package/docs/{PaginatedProductRegistrationListResourceResponse.md → PaginatedReviewLiteResourceResponse.md} +5 -5
  57. package/docs/{ProductRegistrationResourceArrayResponse.md → PaginatedReviewResourceResponse.md} +7 -5
  58. package/docs/ProductChildListResource.md +0 -2
  59. package/docs/ProductSearchResultResource.md +0 -2
  60. package/docs/ReviewApi.md +407 -0
  61. package/docs/ReviewListResource.md +52 -0
  62. package/docs/{ProductRegistrationAssetResource.md → ReviewListResourceArrayResponse.md} +6 -10
  63. package/docs/{ProductRegistrationLiteResource.md → ReviewLiteResource.md} +8 -6
  64. package/docs/ReviewLiteResourceArrayResponse.md +34 -0
  65. package/docs/ReviewResource.md +62 -0
  66. package/docs/{ProductRegistrationAssetType.md → ReviewResourceArrayResponse.md} +6 -4
  67. package/docs/StoreReviewRequest.md +48 -0
  68. package/docs/StoreSpecialDateResource.md +1 -1
  69. package/docs/{ProductRegistrationAssetResourceArrayResponse.md → UpdateReviewRequest.md} +16 -6
  70. package/package.json +1 -1
  71. package/src/apis/ReviewApi.ts +331 -0
  72. package/src/apis/index.ts +1 -1
  73. package/src/models/AddressFrontendResource.ts +6 -4
  74. package/src/models/AddressResource.ts +5 -5
  75. package/src/models/ExternalApiLogResource.ts +2 -3
  76. package/src/models/GlobalSearchProductResource.ts +0 -9
  77. package/src/models/IndexProductChildRequest.ts +0 -1
  78. package/src/models/IndexReviewRequest.ts +167 -0
  79. package/src/models/PaginatedReviewListResourceResponse.ts +90 -0
  80. package/src/models/PaginatedReviewLiteResourceResponse.ts +90 -0
  81. package/src/models/PaginatedReviewResourceResponse.ts +90 -0
  82. package/src/models/ProductChildListResource.ts +0 -8
  83. package/src/models/ProductSearchResultResource.ts +0 -9
  84. package/src/models/ReviewListResource.ts +152 -0
  85. package/src/models/ReviewListResourceArrayResponse.ts +73 -0
  86. package/src/models/ReviewLiteResource.ts +84 -0
  87. package/src/models/ReviewLiteResourceArrayResponse.ts +73 -0
  88. package/src/models/ReviewResource.ts +196 -0
  89. package/src/models/ReviewResourceArrayResponse.ts +73 -0
  90. package/src/models/StoreListResource.ts +5 -5
  91. package/src/models/StoreResource.ts +4 -6
  92. package/src/models/StoreReviewRequest.ts +125 -0
  93. package/src/models/StoreSpecialDateResource.ts +3 -4
  94. package/src/models/UpdateReviewRequest.ts +107 -0
  95. package/src/models/index.ts +12 -19
  96. package/dist/apis/ProductRegistrationApi.d.ts +0 -95
  97. package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
  98. package/dist/models/GetAllProductRegistrationRequest.js +0 -80
  99. package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
  100. package/dist/models/IndexProductRegistrationRequest.js +0 -98
  101. package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
  102. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
  103. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
  104. package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
  105. package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
  106. package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
  107. package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
  108. package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
  109. package/dist/models/ProductRegistrationAssetResource.js +0 -58
  110. package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
  111. package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
  112. package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
  113. package/dist/models/ProductRegistrationAssetType.js +0 -51
  114. package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
  115. package/dist/models/ProductRegistrationCustomerResource.js +0 -65
  116. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
  117. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
  118. package/dist/models/ProductRegistrationListResource.d.ts +0 -57
  119. package/dist/models/ProductRegistrationListResource.js +0 -64
  120. package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
  121. package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
  122. package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
  123. package/dist/models/ProductRegistrationLiteResource.js +0 -53
  124. package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
  125. package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
  126. package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
  127. package/dist/models/ProductRegistrationProductChildResource.js +0 -63
  128. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
  129. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
  130. package/dist/models/ProductRegistrationResource.d.ts +0 -90
  131. package/dist/models/ProductRegistrationResource.js +0 -81
  132. package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
  133. package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
  134. package/docs/GetAllProductRegistrationRequest.md +0 -46
  135. package/docs/IndexProductRegistrationRequest.md +0 -58
  136. package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
  137. package/docs/ProductRegistrationApi.md +0 -344
  138. package/docs/ProductRegistrationCustomerResource.md +0 -44
  139. package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
  140. package/docs/ProductRegistrationListResource.md +0 -42
  141. package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
  142. package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
  143. package/docs/ProductRegistrationProductChildResource.md +0 -40
  144. package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
  145. package/docs/ProductRegistrationResource.md +0 -52
  146. package/src/apis/ProductRegistrationApi.ts +0 -297
  147. package/src/models/GetAllProductRegistrationRequest.ts +0 -137
  148. package/src/models/IndexProductRegistrationRequest.ts +0 -193
  149. package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
  150. package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
  151. package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
  152. package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
  153. package/src/models/ProductRegistrationAssetResource.ts +0 -91
  154. package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
  155. package/src/models/ProductRegistrationAssetType.ts +0 -53
  156. package/src/models/ProductRegistrationCustomerResource.ts +0 -108
  157. package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
  158. package/src/models/ProductRegistrationListResource.ts +0 -108
  159. package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
  160. package/src/models/ProductRegistrationLiteResource.ts +0 -74
  161. package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
  162. package/src/models/ProductRegistrationProductChildResource.ts +0 -93
  163. package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
  164. package/src/models/ProductRegistrationResource.ts +0 -171
  165. package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
@@ -0,0 +1,110 @@
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 IndexReviewRequest
16
+ */
17
+ export interface IndexReviewRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IndexReviewRequest
22
+ */
23
+ search?: string | null;
24
+ /**
25
+ *
26
+ * @type {IndexReviewRequestSortByEnum}
27
+ * @memberof IndexReviewRequest
28
+ */
29
+ sortBy?: IndexReviewRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {IndexReviewRequestSortDirectionEnum}
33
+ * @memberof IndexReviewRequest
34
+ */
35
+ sortDirection?: IndexReviewRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IndexReviewRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof IndexReviewRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof IndexReviewRequest
52
+ */
53
+ siteId?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof IndexReviewRequest
58
+ */
59
+ createdByAdmin?: Array<string>;
60
+ /**
61
+ *
62
+ * @type {Array<string>}
63
+ * @memberof IndexReviewRequest
64
+ */
65
+ hasApprovedAt?: Array<string>;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof IndexReviewRequest
70
+ */
71
+ relatedId?: number;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof IndexReviewRequest
76
+ */
77
+ relatedType?: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof IndexReviewRequest
82
+ */
83
+ includesRelations?: boolean;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const IndexReviewRequestSortByEnum: {
89
+ readonly Id: "id";
90
+ readonly Rating: "rating";
91
+ readonly ApprovedAt: "approved_at";
92
+ readonly CreatedAt: "created_at";
93
+ };
94
+ export type IndexReviewRequestSortByEnum = typeof IndexReviewRequestSortByEnum[keyof typeof IndexReviewRequestSortByEnum];
95
+ /**
96
+ * @export
97
+ */
98
+ export declare const IndexReviewRequestSortDirectionEnum: {
99
+ readonly Asc: "asc";
100
+ readonly Desc: "desc";
101
+ };
102
+ export type IndexReviewRequestSortDirectionEnum = typeof IndexReviewRequestSortDirectionEnum[keyof typeof IndexReviewRequestSortDirectionEnum];
103
+ /**
104
+ * Check if a given object implements the IndexReviewRequest interface.
105
+ */
106
+ export declare function instanceOfIndexReviewRequest(value: object): value is IndexReviewRequest;
107
+ export declare function IndexReviewRequestFromJSON(json: any): IndexReviewRequest;
108
+ export declare function IndexReviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexReviewRequest;
109
+ export declare function IndexReviewRequestToJSON(json: any): IndexReviewRequest;
110
+ export declare function IndexReviewRequestToJSONTyped(value?: IndexReviewRequest | null, ignoreDiscriminator?: boolean): any;
@@ -13,37 +13,38 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ListAssetsProductRegistrationRequestSortDirectionEnum = exports.ListAssetsProductRegistrationRequestSortByEnum = void 0;
17
- exports.instanceOfListAssetsProductRegistrationRequest = instanceOfListAssetsProductRegistrationRequest;
18
- exports.ListAssetsProductRegistrationRequestFromJSON = ListAssetsProductRegistrationRequestFromJSON;
19
- exports.ListAssetsProductRegistrationRequestFromJSONTyped = ListAssetsProductRegistrationRequestFromJSONTyped;
20
- exports.ListAssetsProductRegistrationRequestToJSON = ListAssetsProductRegistrationRequestToJSON;
21
- exports.ListAssetsProductRegistrationRequestToJSONTyped = ListAssetsProductRegistrationRequestToJSONTyped;
16
+ exports.IndexReviewRequestSortDirectionEnum = exports.IndexReviewRequestSortByEnum = void 0;
17
+ exports.instanceOfIndexReviewRequest = instanceOfIndexReviewRequest;
18
+ exports.IndexReviewRequestFromJSON = IndexReviewRequestFromJSON;
19
+ exports.IndexReviewRequestFromJSONTyped = IndexReviewRequestFromJSONTyped;
20
+ exports.IndexReviewRequestToJSON = IndexReviewRequestToJSON;
21
+ exports.IndexReviewRequestToJSONTyped = IndexReviewRequestToJSONTyped;
22
22
  /**
23
23
  * @export
24
24
  */
25
- exports.ListAssetsProductRegistrationRequestSortByEnum = {
25
+ exports.IndexReviewRequestSortByEnum = {
26
26
  Id: 'id',
27
- Type: 'type',
27
+ Rating: 'rating',
28
+ ApprovedAt: 'approved_at',
28
29
  CreatedAt: 'created_at'
29
30
  };
30
31
  /**
31
32
  * @export
32
33
  */
33
- exports.ListAssetsProductRegistrationRequestSortDirectionEnum = {
34
+ exports.IndexReviewRequestSortDirectionEnum = {
34
35
  Asc: 'asc',
35
36
  Desc: 'desc'
36
37
  };
37
38
  /**
38
- * Check if a given object implements the ListAssetsProductRegistrationRequest interface.
39
+ * Check if a given object implements the IndexReviewRequest interface.
39
40
  */
40
- function instanceOfListAssetsProductRegistrationRequest(value) {
41
+ function instanceOfIndexReviewRequest(value) {
41
42
  return true;
42
43
  }
43
- function ListAssetsProductRegistrationRequestFromJSON(json) {
44
- return ListAssetsProductRegistrationRequestFromJSONTyped(json, false);
44
+ function IndexReviewRequestFromJSON(json) {
45
+ return IndexReviewRequestFromJSONTyped(json, false);
45
46
  }
46
- function ListAssetsProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
47
+ function IndexReviewRequestFromJSONTyped(json, ignoreDiscriminator) {
47
48
  if (json == null) {
48
49
  return json;
49
50
  }
@@ -53,17 +54,18 @@ function ListAssetsProductRegistrationRequestFromJSONTyped(json, ignoreDiscrimin
53
54
  'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
54
55
  'perPage': json['per_page'] == null ? undefined : json['per_page'],
55
56
  'page': json['page'] == null ? undefined : json['page'],
56
- 'productRegistrationId': json['product_registration_id'] == null ? undefined : json['product_registration_id'],
57
- 'type': json['type'] == null ? undefined : json['type'],
57
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
58
+ 'createdByAdmin': json['created_by_admin'] == null ? undefined : json['created_by_admin'],
59
+ 'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
58
60
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
59
61
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
60
62
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
61
63
  };
62
64
  }
63
- function ListAssetsProductRegistrationRequestToJSON(json) {
64
- return ListAssetsProductRegistrationRequestToJSONTyped(json, false);
65
+ function IndexReviewRequestToJSON(json) {
66
+ return IndexReviewRequestToJSONTyped(json, false);
65
67
  }
66
- function ListAssetsProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
68
+ function IndexReviewRequestToJSONTyped(value, ignoreDiscriminator) {
67
69
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
68
70
  if (value == null) {
69
71
  return value;
@@ -74,8 +76,9 @@ function ListAssetsProductRegistrationRequestToJSONTyped(value, ignoreDiscrimina
74
76
  'sortDirection': value['sortDirection'],
75
77
  'per_page': value['perPage'],
76
78
  'page': value['page'],
77
- 'product_registration_id': value['productRegistrationId'],
78
- 'type': value['type'],
79
+ 'site_id': value['siteId'],
80
+ 'created_by_admin': value['createdByAdmin'],
81
+ 'has_approved_at': value['hasApprovedAt'],
79
82
  'related_id': value['relatedId'],
80
83
  'related_type': value['relatedType'],
81
84
  'includes_relations': value['includesRelations'],
@@ -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 { ReviewListResource } from './ReviewListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedReviewListResourceResponse
18
+ */
19
+ export interface PaginatedReviewListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ReviewListResource>}
23
+ * @memberof PaginatedReviewListResourceResponse
24
+ */
25
+ data: Array<ReviewListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedReviewListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedReviewListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedReviewListResourceResponse(value: object): value is PaginatedReviewListResourceResponse;
37
+ export declare function PaginatedReviewListResourceResponseFromJSON(json: any): PaginatedReviewListResourceResponse;
38
+ export declare function PaginatedReviewListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedReviewListResourceResponse;
39
+ export declare function PaginatedReviewListResourceResponseToJSON(json: any): PaginatedReviewListResourceResponse;
40
+ export declare function PaginatedReviewListResourceResponseToJSONTyped(value?: PaginatedReviewListResourceResponse | 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.instanceOfPaginatedReviewListResourceResponse = instanceOfPaginatedReviewListResourceResponse;
17
+ exports.PaginatedReviewListResourceResponseFromJSON = PaginatedReviewListResourceResponseFromJSON;
18
+ exports.PaginatedReviewListResourceResponseFromJSONTyped = PaginatedReviewListResourceResponseFromJSONTyped;
19
+ exports.PaginatedReviewListResourceResponseToJSON = PaginatedReviewListResourceResponseToJSON;
20
+ exports.PaginatedReviewListResourceResponseToJSONTyped = PaginatedReviewListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var ReviewListResource_1 = require("./ReviewListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedReviewListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedReviewListResourceResponse(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 PaginatedReviewListResourceResponseFromJSON(json) {
34
+ return PaginatedReviewListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedReviewListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ReviewListResource_1.ReviewListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedReviewListResourceResponseToJSON(json) {
46
+ return PaginatedReviewListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedReviewListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ReviewListResource_1.ReviewListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PagingMetadata } from './PagingMetadata';
13
+ import type { ReviewLiteResource } from './ReviewLiteResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedReviewLiteResourceResponse
18
+ */
19
+ export interface PaginatedReviewLiteResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ReviewLiteResource>}
23
+ * @memberof PaginatedReviewLiteResourceResponse
24
+ */
25
+ data: Array<ReviewLiteResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedReviewLiteResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedReviewLiteResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedReviewLiteResourceResponse(value: object): value is PaginatedReviewLiteResourceResponse;
37
+ export declare function PaginatedReviewLiteResourceResponseFromJSON(json: any): PaginatedReviewLiteResourceResponse;
38
+ export declare function PaginatedReviewLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedReviewLiteResourceResponse;
39
+ export declare function PaginatedReviewLiteResourceResponseToJSON(json: any): PaginatedReviewLiteResourceResponse;
40
+ export declare function PaginatedReviewLiteResourceResponseToJSONTyped(value?: PaginatedReviewLiteResourceResponse | 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.instanceOfPaginatedReviewLiteResourceResponse = instanceOfPaginatedReviewLiteResourceResponse;
17
+ exports.PaginatedReviewLiteResourceResponseFromJSON = PaginatedReviewLiteResourceResponseFromJSON;
18
+ exports.PaginatedReviewLiteResourceResponseFromJSONTyped = PaginatedReviewLiteResourceResponseFromJSONTyped;
19
+ exports.PaginatedReviewLiteResourceResponseToJSON = PaginatedReviewLiteResourceResponseToJSON;
20
+ exports.PaginatedReviewLiteResourceResponseToJSONTyped = PaginatedReviewLiteResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var ReviewLiteResource_1 = require("./ReviewLiteResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedReviewLiteResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedReviewLiteResourceResponse(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 PaginatedReviewLiteResourceResponseFromJSON(json) {
34
+ return PaginatedReviewLiteResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedReviewLiteResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ReviewLiteResource_1.ReviewLiteResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedReviewLiteResourceResponseToJSON(json) {
46
+ return PaginatedReviewLiteResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedReviewLiteResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ReviewLiteResource_1.ReviewLiteResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PagingMetadata } from './PagingMetadata';
13
+ import type { ReviewResource } from './ReviewResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedReviewResourceResponse
18
+ */
19
+ export interface PaginatedReviewResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ReviewResource>}
23
+ * @memberof PaginatedReviewResourceResponse
24
+ */
25
+ data: Array<ReviewResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedReviewResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedReviewResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedReviewResourceResponse(value: object): value is PaginatedReviewResourceResponse;
37
+ export declare function PaginatedReviewResourceResponseFromJSON(json: any): PaginatedReviewResourceResponse;
38
+ export declare function PaginatedReviewResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedReviewResourceResponse;
39
+ export declare function PaginatedReviewResourceResponseToJSON(json: any): PaginatedReviewResourceResponse;
40
+ export declare function PaginatedReviewResourceResponseToJSONTyped(value?: PaginatedReviewResourceResponse | 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.instanceOfPaginatedReviewResourceResponse = instanceOfPaginatedReviewResourceResponse;
17
+ exports.PaginatedReviewResourceResponseFromJSON = PaginatedReviewResourceResponseFromJSON;
18
+ exports.PaginatedReviewResourceResponseFromJSONTyped = PaginatedReviewResourceResponseFromJSONTyped;
19
+ exports.PaginatedReviewResourceResponseToJSON = PaginatedReviewResourceResponseToJSON;
20
+ exports.PaginatedReviewResourceResponseToJSONTyped = PaginatedReviewResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var ReviewResource_1 = require("./ReviewResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedReviewResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedReviewResourceResponse(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 PaginatedReviewResourceResponseFromJSON(json) {
34
+ return PaginatedReviewResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedReviewResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(ReviewResource_1.ReviewResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedReviewResourceResponseToJSON(json) {
46
+ return PaginatedReviewResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedReviewResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(ReviewResource_1.ReviewResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -65,12 +65,6 @@ export interface ProductChildListResource {
65
65
  * @memberof ProductChildListResource
66
66
  */
67
67
  displayInSocialFeed: boolean;
68
- /**
69
- *
70
- * @type {string}
71
- * @memberof ProductChildListResource
72
- */
73
- quantity?: string | null;
74
68
  /**
75
69
  *
76
70
  * @type {number}
@@ -60,7 +60,6 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'stock': json['stock'],
61
61
  'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
62
62
  'displayInSocialFeed': json['displayInSocialFeed'],
63
- 'quantity': json['quantity'] == null ? undefined : json['quantity'],
64
63
  'netsuiteId': json['netsuiteId'],
65
64
  'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
66
65
  'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
@@ -83,7 +82,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
83
82
  'stock': value['stock'],
84
83
  'isDisabled': value['isDisabled'],
85
84
  'displayInSocialFeed': value['displayInSocialFeed'],
86
- 'quantity': value['quantity'],
87
85
  'netsuiteId': value['netsuiteId'],
88
86
  'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
89
87
  'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
@@ -33,12 +33,6 @@ export interface ProductSearchResultResource {
33
33
  * @memberof ProductSearchResultResource
34
34
  */
35
35
  model: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof ProductSearchResultResource
40
- */
41
- modelRaw: string;
42
36
  /**
43
37
  *
44
38
  * @type {string}
@@ -28,8 +28,6 @@ function instanceOfProductSearchResultResource(value) {
28
28
  return false;
29
29
  if (!('model' in value) || value['model'] === undefined)
30
30
  return false;
31
- if (!('modelRaw' in value) || value['modelRaw'] === undefined)
32
- return false;
33
31
  if (!('barcode' in value) || value['barcode'] === undefined)
34
32
  return false;
35
33
  if (!('name' in value) || value['name'] === undefined)
@@ -71,7 +69,6 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
71
69
  'id': json['id'],
72
70
  'sku': json['sku'],
73
71
  'model': json['model'],
74
- 'modelRaw': json['modelRaw'],
75
72
  'barcode': json['barcode'],
76
73
  'name': json['name'],
77
74
  'slug': json['slug'],
@@ -101,7 +98,6 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
101
98
  'id': value['id'],
102
99
  'sku': value['sku'],
103
100
  'model': value['model'],
104
- 'modelRaw': value['modelRaw'],
105
101
  'barcode': value['barcode'],
106
102
  'name': value['name'],
107
103
  'slug': value['slug'],
@@ -0,0 +1,87 @@
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 { SiteLiteResource } from './SiteLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ReviewListResource
17
+ */
18
+ export interface ReviewListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof ReviewListResource
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ReviewListResource
29
+ */
30
+ reviewerName: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ReviewListResource
35
+ */
36
+ rating: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ReviewListResource
41
+ */
42
+ comment: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ReviewListResource
47
+ */
48
+ replyFromAdmin?: string | null;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof ReviewListResource
53
+ */
54
+ createdByAdmin: boolean;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ReviewListResource
59
+ */
60
+ approvedAt?: string | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ReviewListResource
65
+ */
66
+ createdAt?: string | null;
67
+ /**
68
+ *
69
+ * @type {SiteLiteResource}
70
+ * @memberof ReviewListResource
71
+ */
72
+ site: SiteLiteResource | null;
73
+ /**
74
+ *
75
+ * @type {Array<number>}
76
+ * @memberof ReviewListResource
77
+ */
78
+ productChild: Array<number>;
79
+ }
80
+ /**
81
+ * Check if a given object implements the ReviewListResource interface.
82
+ */
83
+ export declare function instanceOfReviewListResource(value: object): value is ReviewListResource;
84
+ export declare function ReviewListResourceFromJSON(json: any): ReviewListResource;
85
+ export declare function ReviewListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewListResource;
86
+ export declare function ReviewListResourceToJSON(json: any): ReviewListResource;
87
+ export declare function ReviewListResourceToJSONTyped(value?: ReviewListResource | null, ignoreDiscriminator?: boolean): any;