@digital8/lighting-illusions-ts-sdk 0.0.592 → 0.0.593

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 (65) hide show
  1. package/.openapi-generator/FILES +16 -4
  2. package/README.md +10 -7
  3. package/dist/apis/ProductCategoryApi.d.ts +1 -36
  4. package/dist/apis/ProductCategoryApi.js +0 -142
  5. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  6. package/dist/models/ExternalApiLogResource.js +1 -3
  7. package/dist/models/GetAllDocumentRequest.d.ts +0 -6
  8. package/dist/models/GetAllDocumentRequest.js +0 -2
  9. package/dist/models/GetAllProductChildRequest.d.ts +1 -1
  10. package/dist/models/GetAllProductChildRequest.js +3 -3
  11. package/dist/models/GlobalSearchCategoryResource.d.ts +44 -0
  12. package/dist/models/GlobalSearchCategoryResource.js +59 -0
  13. package/dist/models/GlobalSearchCategoryResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/GlobalSearchCategoryResourceArrayResponse.js +50 -0
  15. package/dist/models/GlobalSearchProductResource.d.ts +86 -0
  16. package/dist/models/GlobalSearchProductResource.js +87 -0
  17. package/dist/models/GlobalSearchProductResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/GlobalSearchProductResourceArrayResponse.js +50 -0
  19. package/dist/models/GlobalSearchRangeResource.d.ts +56 -0
  20. package/dist/models/GlobalSearchRangeResource.js +67 -0
  21. package/dist/models/GlobalSearchRangeResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/GlobalSearchRangeResourceArrayResponse.js +50 -0
  23. package/dist/models/GlobalSearchResponseResource.d.ts +47 -0
  24. package/dist/models/GlobalSearchResponseResource.js +62 -0
  25. package/dist/models/GlobalSearchResponseResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/GlobalSearchResponseResourceArrayResponse.js +50 -0
  27. package/dist/models/IndexDocumentRequest.d.ts +0 -6
  28. package/dist/models/IndexDocumentRequest.js +0 -2
  29. package/dist/models/IndexProductChildRequest.d.ts +1 -3
  30. package/dist/models/IndexProductChildRequest.js +3 -5
  31. package/dist/models/index.d.ts +8 -2
  32. package/dist/models/index.js +8 -2
  33. package/docs/GetAllDocumentRequest.md +0 -2
  34. package/docs/{AttachProductsProductCategoryRequest.md → GlobalSearchCategoryResource.md} +10 -6
  35. package/docs/GlobalSearchCategoryResourceArrayResponse.md +34 -0
  36. package/docs/GlobalSearchProductResource.md +52 -0
  37. package/docs/GlobalSearchProductResourceArrayResponse.md +34 -0
  38. package/docs/GlobalSearchRangeResource.md +42 -0
  39. package/docs/{DetachProductsProductCategoryRequest.md → GlobalSearchRangeResourceArrayResponse.md} +6 -6
  40. package/docs/GlobalSearchResponseResource.md +38 -0
  41. package/docs/GlobalSearchResponseResourceArrayResponse.md +34 -0
  42. package/docs/IndexDocumentRequest.md +0 -2
  43. package/docs/ProductCategoryApi.md +0 -204
  44. package/package.json +1 -1
  45. package/src/apis/ProductCategoryApi.ts +0 -137
  46. package/src/models/ExternalApiLogResource.ts +2 -3
  47. package/src/models/GetAllDocumentRequest.ts +0 -8
  48. package/src/models/GetAllProductChildRequest.ts +3 -3
  49. package/src/models/GlobalSearchCategoryResource.ts +84 -0
  50. package/src/models/GlobalSearchCategoryResourceArrayResponse.ts +73 -0
  51. package/src/models/GlobalSearchProductResource.ts +147 -0
  52. package/src/models/GlobalSearchProductResourceArrayResponse.ts +73 -0
  53. package/src/models/GlobalSearchRangeResource.ts +102 -0
  54. package/src/models/GlobalSearchRangeResourceArrayResponse.ts +73 -0
  55. package/src/models/GlobalSearchResponseResource.ts +106 -0
  56. package/src/models/GlobalSearchResponseResourceArrayResponse.ts +73 -0
  57. package/src/models/IndexDocumentRequest.ts +0 -8
  58. package/src/models/IndexProductChildRequest.ts +3 -5
  59. package/src/models/index.ts +8 -2
  60. package/dist/models/AttachProductsProductCategoryRequest.d.ts +0 -32
  61. package/dist/models/AttachProductsProductCategoryRequest.js +0 -51
  62. package/dist/models/DetachProductsProductCategoryRequest.d.ts +0 -32
  63. package/dist/models/DetachProductsProductCategoryRequest.js +0 -51
  64. package/src/models/AttachProductsProductCategoryRequest.ts +0 -66
  65. package/src/models/DetachProductsProductCategoryRequest.ts +0 -66
@@ -0,0 +1,147 @@
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 GlobalSearchProductResource
20
+ */
21
+ export interface GlobalSearchProductResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof GlobalSearchProductResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GlobalSearchProductResource
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GlobalSearchProductResource
38
+ */
39
+ slug: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof GlobalSearchProductResource
44
+ */
45
+ sku: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof GlobalSearchProductResource
50
+ */
51
+ thumbnail: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof GlobalSearchProductResource
56
+ */
57
+ price: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof GlobalSearchProductResource
62
+ */
63
+ salePrice: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof GlobalSearchProductResource
68
+ */
69
+ averageRating: number;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof GlobalSearchProductResource
74
+ */
75
+ supplierName: string;
76
+ /**
77
+ *
78
+ * @type {Array<object>}
79
+ * @memberof GlobalSearchProductResource
80
+ */
81
+ categories: Array<object>;
82
+ }
83
+
84
+ /**
85
+ * Check if a given object implements the GlobalSearchProductResource interface.
86
+ */
87
+ export function instanceOfGlobalSearchProductResource(value: object): value is GlobalSearchProductResource {
88
+ if (!('id' in value) || value['id'] === undefined) return false;
89
+ if (!('name' in value) || value['name'] === undefined) return false;
90
+ if (!('slug' in value) || value['slug'] === undefined) return false;
91
+ if (!('sku' in value) || value['sku'] === undefined) return false;
92
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
93
+ if (!('price' in value) || value['price'] === undefined) return false;
94
+ if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
95
+ if (!('averageRating' in value) || value['averageRating'] === undefined) return false;
96
+ if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
97
+ if (!('categories' in value) || value['categories'] === undefined) return false;
98
+ return true;
99
+ }
100
+
101
+ export function GlobalSearchProductResourceFromJSON(json: any): GlobalSearchProductResource {
102
+ return GlobalSearchProductResourceFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function GlobalSearchProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResource {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'id': json['id'],
112
+ 'name': json['name'],
113
+ 'slug': json['slug'],
114
+ 'sku': json['sku'],
115
+ 'thumbnail': json['thumbnail'],
116
+ 'price': json['price'],
117
+ 'salePrice': json['salePrice'],
118
+ 'averageRating': json['averageRating'],
119
+ 'supplierName': json['supplierName'],
120
+ 'categories': json['categories'],
121
+ };
122
+ }
123
+
124
+ export function GlobalSearchProductResourceToJSON(json: any): GlobalSearchProductResource {
125
+ return GlobalSearchProductResourceToJSONTyped(json, false);
126
+ }
127
+
128
+ export function GlobalSearchProductResourceToJSONTyped(value?: GlobalSearchProductResource | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'id': value['id'],
136
+ 'name': value['name'],
137
+ 'slug': value['slug'],
138
+ 'sku': value['sku'],
139
+ 'thumbnail': value['thumbnail'],
140
+ 'price': value['price'],
141
+ 'salePrice': value['salePrice'],
142
+ 'averageRating': value['averageRating'],
143
+ 'supplierName': value['supplierName'],
144
+ 'categories': value['categories'],
145
+ };
146
+ }
147
+
@@ -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 { GlobalSearchProductResource } from './GlobalSearchProductResource';
17
+ import {
18
+ GlobalSearchProductResourceFromJSON,
19
+ GlobalSearchProductResourceFromJSONTyped,
20
+ GlobalSearchProductResourceToJSON,
21
+ GlobalSearchProductResourceToJSONTyped,
22
+ } from './GlobalSearchProductResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GlobalSearchProductResourceArrayResponse
28
+ */
29
+ export interface GlobalSearchProductResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<GlobalSearchProductResource>}
33
+ * @memberof GlobalSearchProductResourceArrayResponse
34
+ */
35
+ data?: Array<GlobalSearchProductResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GlobalSearchProductResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfGlobalSearchProductResourceArrayResponse(value: object): value is GlobalSearchProductResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function GlobalSearchProductResourceArrayResponseFromJSON(json: any): GlobalSearchProductResourceArrayResponse {
46
+ return GlobalSearchProductResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GlobalSearchProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(GlobalSearchProductResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function GlobalSearchProductResourceArrayResponseToJSON(json: any): GlobalSearchProductResourceArrayResponse {
60
+ return GlobalSearchProductResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function GlobalSearchProductResourceArrayResponseToJSONTyped(value?: GlobalSearchProductResourceArrayResponse | 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(GlobalSearchProductResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,102 @@
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 GlobalSearchRangeResource
20
+ */
21
+ export interface GlobalSearchRangeResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof GlobalSearchRangeResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GlobalSearchRangeResource
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GlobalSearchRangeResource
38
+ */
39
+ slug: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof GlobalSearchRangeResource
44
+ */
45
+ thumbnail: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof GlobalSearchRangeResource
50
+ */
51
+ description: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the GlobalSearchRangeResource interface.
56
+ */
57
+ export function instanceOfGlobalSearchRangeResource(value: object): value is GlobalSearchRangeResource {
58
+ if (!('id' in value) || value['id'] === undefined) return false;
59
+ if (!('name' in value) || value['name'] === undefined) return false;
60
+ if (!('slug' in value) || value['slug'] === undefined) return false;
61
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
62
+ if (!('description' in value) || value['description'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function GlobalSearchRangeResourceFromJSON(json: any): GlobalSearchRangeResource {
67
+ return GlobalSearchRangeResourceFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function GlobalSearchRangeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchRangeResource {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'name': json['name'],
78
+ 'slug': json['slug'],
79
+ 'thumbnail': json['thumbnail'],
80
+ 'description': json['description'],
81
+ };
82
+ }
83
+
84
+ export function GlobalSearchRangeResourceToJSON(json: any): GlobalSearchRangeResource {
85
+ return GlobalSearchRangeResourceToJSONTyped(json, false);
86
+ }
87
+
88
+ export function GlobalSearchRangeResourceToJSONTyped(value?: GlobalSearchRangeResource | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'id': value['id'],
96
+ 'name': value['name'],
97
+ 'slug': value['slug'],
98
+ 'thumbnail': value['thumbnail'],
99
+ 'description': value['description'],
100
+ };
101
+ }
102
+
@@ -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 { GlobalSearchRangeResource } from './GlobalSearchRangeResource';
17
+ import {
18
+ GlobalSearchRangeResourceFromJSON,
19
+ GlobalSearchRangeResourceFromJSONTyped,
20
+ GlobalSearchRangeResourceToJSON,
21
+ GlobalSearchRangeResourceToJSONTyped,
22
+ } from './GlobalSearchRangeResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GlobalSearchRangeResourceArrayResponse
28
+ */
29
+ export interface GlobalSearchRangeResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<GlobalSearchRangeResource>}
33
+ * @memberof GlobalSearchRangeResourceArrayResponse
34
+ */
35
+ data?: Array<GlobalSearchRangeResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GlobalSearchRangeResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfGlobalSearchRangeResourceArrayResponse(value: object): value is GlobalSearchRangeResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function GlobalSearchRangeResourceArrayResponseFromJSON(json: any): GlobalSearchRangeResourceArrayResponse {
46
+ return GlobalSearchRangeResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GlobalSearchRangeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchRangeResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(GlobalSearchRangeResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function GlobalSearchRangeResourceArrayResponseToJSON(json: any): GlobalSearchRangeResourceArrayResponse {
60
+ return GlobalSearchRangeResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function GlobalSearchRangeResourceArrayResponseToJSONTyped(value?: GlobalSearchRangeResourceArrayResponse | 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(GlobalSearchRangeResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,106 @@
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 { GlobalSearchProductResource } from './GlobalSearchProductResource';
17
+ import {
18
+ GlobalSearchProductResourceFromJSON,
19
+ GlobalSearchProductResourceFromJSONTyped,
20
+ GlobalSearchProductResourceToJSON,
21
+ GlobalSearchProductResourceToJSONTyped,
22
+ } from './GlobalSearchProductResource';
23
+ import type { GlobalSearchCategoryResource } from './GlobalSearchCategoryResource';
24
+ import {
25
+ GlobalSearchCategoryResourceFromJSON,
26
+ GlobalSearchCategoryResourceFromJSONTyped,
27
+ GlobalSearchCategoryResourceToJSON,
28
+ GlobalSearchCategoryResourceToJSONTyped,
29
+ } from './GlobalSearchCategoryResource';
30
+ import type { GlobalSearchRangeResource } from './GlobalSearchRangeResource';
31
+ import {
32
+ GlobalSearchRangeResourceFromJSON,
33
+ GlobalSearchRangeResourceFromJSONTyped,
34
+ GlobalSearchRangeResourceToJSON,
35
+ GlobalSearchRangeResourceToJSONTyped,
36
+ } from './GlobalSearchRangeResource';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface GlobalSearchResponseResource
42
+ */
43
+ export interface GlobalSearchResponseResource {
44
+ /**
45
+ *
46
+ * @type {Array<GlobalSearchProductResource>}
47
+ * @memberof GlobalSearchResponseResource
48
+ */
49
+ products: Array<GlobalSearchProductResource> | null;
50
+ /**
51
+ *
52
+ * @type {Array<GlobalSearchCategoryResource>}
53
+ * @memberof GlobalSearchResponseResource
54
+ */
55
+ categories: Array<GlobalSearchCategoryResource> | null;
56
+ /**
57
+ *
58
+ * @type {Array<GlobalSearchRangeResource>}
59
+ * @memberof GlobalSearchResponseResource
60
+ */
61
+ ranges: Array<GlobalSearchRangeResource> | null;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GlobalSearchResponseResource interface.
66
+ */
67
+ export function instanceOfGlobalSearchResponseResource(value: object): value is GlobalSearchResponseResource {
68
+ if (!('products' in value) || value['products'] === undefined) return false;
69
+ if (!('categories' in value) || value['categories'] === undefined) return false;
70
+ if (!('ranges' in value) || value['ranges'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GlobalSearchResponseResourceFromJSON(json: any): GlobalSearchResponseResource {
75
+ return GlobalSearchResponseResourceFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GlobalSearchResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchResponseResource {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'products': (json['products'] == null ? null : (json['products'] as Array<any>).map(GlobalSearchProductResourceFromJSON)),
85
+ 'categories': (json['categories'] == null ? null : (json['categories'] as Array<any>).map(GlobalSearchCategoryResourceFromJSON)),
86
+ 'ranges': (json['ranges'] == null ? null : (json['ranges'] as Array<any>).map(GlobalSearchRangeResourceFromJSON)),
87
+ };
88
+ }
89
+
90
+ export function GlobalSearchResponseResourceToJSON(json: any): GlobalSearchResponseResource {
91
+ return GlobalSearchResponseResourceToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GlobalSearchResponseResourceToJSONTyped(value?: GlobalSearchResponseResource | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'products': (value['products'] == null ? null : (value['products'] as Array<any>).map(GlobalSearchProductResourceToJSON)),
102
+ 'categories': (value['categories'] == null ? null : (value['categories'] as Array<any>).map(GlobalSearchCategoryResourceToJSON)),
103
+ 'ranges': (value['ranges'] == null ? null : (value['ranges'] as Array<any>).map(GlobalSearchRangeResourceToJSON)),
104
+ };
105
+ }
106
+
@@ -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 { GlobalSearchResponseResource } from './GlobalSearchResponseResource';
17
+ import {
18
+ GlobalSearchResponseResourceFromJSON,
19
+ GlobalSearchResponseResourceFromJSONTyped,
20
+ GlobalSearchResponseResourceToJSON,
21
+ GlobalSearchResponseResourceToJSONTyped,
22
+ } from './GlobalSearchResponseResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GlobalSearchResponseResourceArrayResponse
28
+ */
29
+ export interface GlobalSearchResponseResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<GlobalSearchResponseResource>}
33
+ * @memberof GlobalSearchResponseResourceArrayResponse
34
+ */
35
+ data?: Array<GlobalSearchResponseResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GlobalSearchResponseResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfGlobalSearchResponseResourceArrayResponse(value: object): value is GlobalSearchResponseResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function GlobalSearchResponseResourceArrayResponseFromJSON(json: any): GlobalSearchResponseResourceArrayResponse {
46
+ return GlobalSearchResponseResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GlobalSearchResponseResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchResponseResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(GlobalSearchResponseResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function GlobalSearchResponseResourceArrayResponseToJSON(json: any): GlobalSearchResponseResourceArrayResponse {
60
+ return GlobalSearchResponseResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function GlobalSearchResponseResourceArrayResponseToJSONTyped(value?: GlobalSearchResponseResourceArrayResponse | 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(GlobalSearchResponseResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -49,12 +49,6 @@ export interface IndexDocumentRequest {
49
49
  * @memberof IndexDocumentRequest
50
50
  */
51
51
  page?: number;
52
- /**
53
- *
54
- * @type {Array<string>}
55
- * @memberof IndexDocumentRequest
56
- */
57
- sitesId?: Array<string>;
58
52
  /**
59
53
  *
60
54
  * @type {number}
@@ -128,7 +122,6 @@ export function IndexDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator
128
122
  'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
129
123
  'perPage': json['per_page'] == null ? undefined : json['per_page'],
130
124
  'page': json['page'] == null ? undefined : json['page'],
131
- 'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
132
125
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
133
126
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
134
127
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
@@ -151,7 +144,6 @@ export function IndexDocumentRequestToJSONTyped(value?: IndexDocumentRequest | n
151
144
  'sortDirection': value['sortDirection'],
152
145
  'per_page': value['perPage'],
153
146
  'page': value['page'],
154
- 'sites-id': value['sitesId'],
155
147
  'related_id': value['relatedId'],
156
148
  'related_type': value['relatedType'],
157
149
  'includes_relations': value['includesRelations'],
@@ -99,7 +99,7 @@ export const IndexProductChildRequestSortByEnum = {
99
99
  SiteDetailsSlug: 'siteDetails-slug',
100
100
  Sku: 'sku',
101
101
  Model: 'model',
102
- NetsuiteSyncNetsuiteId: 'netsuiteSync-netsuite_id',
102
+ NetsuiteSyncNetsuiteId: 'netsuite_sync-netsuite_id',
103
103
  NewArrivalStartDate: 'new_arrival_start_date',
104
104
  NewArrivalEndDate: 'new_arrival_end_date',
105
105
  CreatedAt: 'created_at',
@@ -124,8 +124,6 @@ export const IndexProductChildRequestRelatedTypeEnum = {
124
124
  Attribute: 'attribute',
125
125
  AttributeValue: 'attributeValue',
126
126
  CompatibleProduct: 'compatibleProduct',
127
- Category: 'category',
128
- AutomatedCategory: 'automatedCategory',
129
127
  Document: 'document',
130
128
  OverlayTemplate: 'overlayTemplate',
131
129
  ProductType: 'productType',
@@ -160,7 +158,7 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
160
158
  'page': json['page'] == null ? undefined : json['page'],
161
159
  'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
162
160
  'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
163
- 'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
161
+ 'netsuiteSyncHasNetsuiteId': json['netsuite_sync-has_netsuite_id'] == null ? undefined : json['netsuite_sync-has_netsuite_id'],
164
162
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
165
163
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
166
164
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
@@ -185,7 +183,7 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
185
183
  'page': value['page'],
186
184
  'siteDetails-site_id': value['siteDetailsSiteId'],
187
185
  'is_disabled': value['isDisabled'],
188
- 'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
186
+ 'netsuite_sync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
189
187
  'related_id': value['relatedId'],
190
188
  'related_type': value['relatedType'],
191
189
  'includes_relations': value['includesRelations'],
@@ -14,7 +14,6 @@ export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
14
14
  export * from './AttachDocumentsProductChildSiteDetailRequest';
15
15
  export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
16
16
  export * from './AttachProductTypeAttributeRequest';
17
- export * from './AttachProductsProductCategoryRequest';
18
17
  export * from './AttributeFieldType';
19
18
  export * from './AttributeListResource';
20
19
  export * from './AttributeListResourceArrayResponse';
@@ -40,7 +39,6 @@ export * from './DetachAssetableOverlayTemplateRequest';
40
39
  export * from './DetachDocumentablesDocumentRequest';
41
40
  export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
42
41
  export * from './DetachDocumentsProductChildSiteDetailRequest';
43
- export * from './DetachProductsProductCategoryRequest';
44
42
  export * from './DocumentFileForUploadResource';
45
43
  export * from './DocumentFileForUploadResourceArrayResponse';
46
44
  export * from './DocumentLiteResource';
@@ -63,6 +61,14 @@ export * from './GetAllProductChildRequest';
63
61
  export * from './GetAllProductRequest';
64
62
  export * from './GetAllProductTypeRequest';
65
63
  export * from './GetAllSupplierRequest';
64
+ export * from './GlobalSearchCategoryResource';
65
+ export * from './GlobalSearchCategoryResourceArrayResponse';
66
+ export * from './GlobalSearchProductResource';
67
+ export * from './GlobalSearchProductResourceArrayResponse';
68
+ export * from './GlobalSearchRangeResource';
69
+ export * from './GlobalSearchRangeResourceArrayResponse';
70
+ export * from './GlobalSearchResponseResource';
71
+ export * from './GlobalSearchResponseResourceArrayResponse';
66
72
  export * from './GoogleCategoryResource';
67
73
  export * from './GoogleCategoryResourceArrayResponse';
68
74
  export * from './IndexAttributeRequest';