@digital8/lighting-illusions-ts-sdk 0.0.572 → 0.0.573

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +0 -16
  2. package/README.md +2 -10
  3. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  4. package/dist/models/ExternalApiLogResource.js +1 -3
  5. package/dist/models/IndexProductChildRequest.d.ts +2 -0
  6. package/dist/models/IndexProductChildRequest.js +2 -0
  7. package/dist/models/index.d.ts +0 -8
  8. package/dist/models/index.js +0 -8
  9. package/package.json +1 -1
  10. package/src/models/ExternalApiLogResource.ts +2 -3
  11. package/src/models/IndexProductChildRequest.ts +2 -0
  12. package/src/models/index.ts +0 -8
  13. package/dist/models/GlobalSearchCategoryResource.d.ts +0 -44
  14. package/dist/models/GlobalSearchCategoryResource.js +0 -59
  15. package/dist/models/GlobalSearchCategoryResourceArrayResponse.d.ts +0 -33
  16. package/dist/models/GlobalSearchCategoryResourceArrayResponse.js +0 -50
  17. package/dist/models/GlobalSearchProductResource.d.ts +0 -86
  18. package/dist/models/GlobalSearchProductResource.js +0 -87
  19. package/dist/models/GlobalSearchProductResourceArrayResponse.d.ts +0 -33
  20. package/dist/models/GlobalSearchProductResourceArrayResponse.js +0 -50
  21. package/dist/models/GlobalSearchRangeResource.d.ts +0 -56
  22. package/dist/models/GlobalSearchRangeResource.js +0 -67
  23. package/dist/models/GlobalSearchRangeResourceArrayResponse.d.ts +0 -33
  24. package/dist/models/GlobalSearchRangeResourceArrayResponse.js +0 -50
  25. package/dist/models/GlobalSearchResponseResource.d.ts +0 -47
  26. package/dist/models/GlobalSearchResponseResource.js +0 -62
  27. package/dist/models/GlobalSearchResponseResourceArrayResponse.d.ts +0 -33
  28. package/dist/models/GlobalSearchResponseResourceArrayResponse.js +0 -50
  29. package/docs/GlobalSearchCategoryResource.md +0 -38
  30. package/docs/GlobalSearchCategoryResourceArrayResponse.md +0 -34
  31. package/docs/GlobalSearchProductResource.md +0 -52
  32. package/docs/GlobalSearchProductResourceArrayResponse.md +0 -34
  33. package/docs/GlobalSearchRangeResource.md +0 -42
  34. package/docs/GlobalSearchRangeResourceArrayResponse.md +0 -34
  35. package/docs/GlobalSearchResponseResource.md +0 -38
  36. package/docs/GlobalSearchResponseResourceArrayResponse.md +0 -34
  37. package/src/models/GlobalSearchCategoryResource.ts +0 -84
  38. package/src/models/GlobalSearchCategoryResourceArrayResponse.ts +0 -73
  39. package/src/models/GlobalSearchProductResource.ts +0 -147
  40. package/src/models/GlobalSearchProductResourceArrayResponse.ts +0 -73
  41. package/src/models/GlobalSearchRangeResource.ts +0 -102
  42. package/src/models/GlobalSearchRangeResourceArrayResponse.ts +0 -73
  43. package/src/models/GlobalSearchResponseResource.ts +0 -106
  44. package/src/models/GlobalSearchResponseResourceArrayResponse.ts +0 -73
@@ -67,14 +67,6 @@ docs/GetAllProductChildRequest.md
67
67
  docs/GetAllProductRequest.md
68
68
  docs/GetAllProductTypeRequest.md
69
69
  docs/GetAllSupplierRequest.md
70
- docs/GlobalSearchCategoryResource.md
71
- docs/GlobalSearchCategoryResourceArrayResponse.md
72
- docs/GlobalSearchProductResource.md
73
- docs/GlobalSearchProductResourceArrayResponse.md
74
- docs/GlobalSearchRangeResource.md
75
- docs/GlobalSearchRangeResourceArrayResponse.md
76
- docs/GlobalSearchResponseResource.md
77
- docs/GlobalSearchResponseResourceArrayResponse.md
78
70
  docs/GoogleCategoryApi.md
79
71
  docs/GoogleCategoryResource.md
80
72
  docs/GoogleCategoryResourceArrayResponse.md
@@ -342,14 +334,6 @@ src/models/GetAllProductChildRequest.ts
342
334
  src/models/GetAllProductRequest.ts
343
335
  src/models/GetAllProductTypeRequest.ts
344
336
  src/models/GetAllSupplierRequest.ts
345
- src/models/GlobalSearchCategoryResource.ts
346
- src/models/GlobalSearchCategoryResourceArrayResponse.ts
347
- src/models/GlobalSearchProductResource.ts
348
- src/models/GlobalSearchProductResourceArrayResponse.ts
349
- src/models/GlobalSearchRangeResource.ts
350
- src/models/GlobalSearchRangeResourceArrayResponse.ts
351
- src/models/GlobalSearchResponseResource.ts
352
- src/models/GlobalSearchResponseResourceArrayResponse.ts
353
337
  src/models/GoogleCategoryResource.ts
354
338
  src/models/GoogleCategoryResourceArrayResponse.ts
355
339
  src/models/IndexAttributeRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.572
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.573
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -216,14 +216,6 @@ All URIs are relative to *http://localhost/api*
216
216
  - [GetAllProductRequest](docs/GetAllProductRequest.md)
217
217
  - [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
218
218
  - [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
219
- - [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
220
- - [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
221
- - [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
222
- - [GlobalSearchProductResourceArrayResponse](docs/GlobalSearchProductResourceArrayResponse.md)
223
- - [GlobalSearchRangeResource](docs/GlobalSearchRangeResource.md)
224
- - [GlobalSearchRangeResourceArrayResponse](docs/GlobalSearchRangeResourceArrayResponse.md)
225
- - [GlobalSearchResponseResource](docs/GlobalSearchResponseResource.md)
226
- - [GlobalSearchResponseResourceArrayResponse](docs/GlobalSearchResponseResourceArrayResponse.md)
227
219
  - [GoogleCategoryResource](docs/GoogleCategoryResource.md)
228
220
  - [GoogleCategoryResourceArrayResponse](docs/GoogleCategoryResourceArrayResponse.md)
229
221
  - [IndexAttributeRequest](docs/IndexAttributeRequest.md)
@@ -418,7 +410,7 @@ and is automatically generated by the
418
410
  [OpenAPI Generator](https://openapi-generator.tech) project:
419
411
 
420
412
  - API version: `1.0.0`
421
- - Package version: `0.0.572`
413
+ - Package version: `0.0.573`
422
414
  - Generator version: `7.18.0`
423
415
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
424
416
 
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -116,6 +116,8 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
116
116
  readonly Attribute: "attribute";
117
117
  readonly AttributeValue: "attributeValue";
118
118
  readonly CompatibleProduct: "compatibleProduct";
119
+ readonly Category: "category";
120
+ readonly AutomatedCategory: "automatedCategory";
119
121
  readonly Document: "document";
120
122
  readonly OverlayTemplate: "overlayTemplate";
121
123
  readonly ProductType: "productType";
@@ -51,6 +51,8 @@ exports.IndexProductChildRequestRelatedTypeEnum = {
51
51
  Attribute: 'attribute',
52
52
  AttributeValue: 'attributeValue',
53
53
  CompatibleProduct: 'compatibleProduct',
54
+ Category: 'category',
55
+ AutomatedCategory: 'automatedCategory',
54
56
  Document: 'document',
55
57
  OverlayTemplate: 'overlayTemplate',
56
58
  ProductType: 'productType',
@@ -59,14 +59,6 @@ export * from './GetAllProductChildRequest';
59
59
  export * from './GetAllProductRequest';
60
60
  export * from './GetAllProductTypeRequest';
61
61
  export * from './GetAllSupplierRequest';
62
- export * from './GlobalSearchCategoryResource';
63
- export * from './GlobalSearchCategoryResourceArrayResponse';
64
- export * from './GlobalSearchProductResource';
65
- export * from './GlobalSearchProductResourceArrayResponse';
66
- export * from './GlobalSearchRangeResource';
67
- export * from './GlobalSearchRangeResourceArrayResponse';
68
- export * from './GlobalSearchResponseResource';
69
- export * from './GlobalSearchResponseResourceArrayResponse';
70
62
  export * from './GoogleCategoryResource';
71
63
  export * from './GoogleCategoryResourceArrayResponse';
72
64
  export * from './IndexAttributeRequest';
@@ -77,14 +77,6 @@ __exportStar(require("./GetAllProductChildRequest"), exports);
77
77
  __exportStar(require("./GetAllProductRequest"), exports);
78
78
  __exportStar(require("./GetAllProductTypeRequest"), exports);
79
79
  __exportStar(require("./GetAllSupplierRequest"), exports);
80
- __exportStar(require("./GlobalSearchCategoryResource"), exports);
81
- __exportStar(require("./GlobalSearchCategoryResourceArrayResponse"), exports);
82
- __exportStar(require("./GlobalSearchProductResource"), exports);
83
- __exportStar(require("./GlobalSearchProductResourceArrayResponse"), exports);
84
- __exportStar(require("./GlobalSearchRangeResource"), exports);
85
- __exportStar(require("./GlobalSearchRangeResourceArrayResponse"), exports);
86
- __exportStar(require("./GlobalSearchResponseResource"), exports);
87
- __exportStar(require("./GlobalSearchResponseResourceArrayResponse"), exports);
88
80
  __exportStar(require("./GoogleCategoryResource"), exports);
89
81
  __exportStar(require("./GoogleCategoryResourceArrayResponse"), exports);
90
82
  __exportStar(require("./IndexAttributeRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.572",
3
+ "version": "0.0.573",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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']),
@@ -124,6 +124,8 @@ export const IndexProductChildRequestRelatedTypeEnum = {
124
124
  Attribute: 'attribute',
125
125
  AttributeValue: 'attributeValue',
126
126
  CompatibleProduct: 'compatibleProduct',
127
+ Category: 'category',
128
+ AutomatedCategory: 'automatedCategory',
127
129
  Document: 'document',
128
130
  OverlayTemplate: 'overlayTemplate',
129
131
  ProductType: 'productType',
@@ -61,14 +61,6 @@ export * from './GetAllProductChildRequest';
61
61
  export * from './GetAllProductRequest';
62
62
  export * from './GetAllProductTypeRequest';
63
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';
72
64
  export * from './GoogleCategoryResource';
73
65
  export * from './GoogleCategoryResourceArrayResponse';
74
66
  export * from './IndexAttributeRequest';
@@ -1,44 +0,0 @@
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 GlobalSearchCategoryResource
16
- */
17
- export interface GlobalSearchCategoryResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof GlobalSearchCategoryResource
22
- */
23
- id: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof GlobalSearchCategoryResource
28
- */
29
- name: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof GlobalSearchCategoryResource
34
- */
35
- slug: string;
36
- }
37
- /**
38
- * Check if a given object implements the GlobalSearchCategoryResource interface.
39
- */
40
- export declare function instanceOfGlobalSearchCategoryResource(value: object): value is GlobalSearchCategoryResource;
41
- export declare function GlobalSearchCategoryResourceFromJSON(json: any): GlobalSearchCategoryResource;
42
- export declare function GlobalSearchCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResource;
43
- export declare function GlobalSearchCategoryResourceToJSON(json: any): GlobalSearchCategoryResource;
44
- export declare function GlobalSearchCategoryResourceToJSONTyped(value?: GlobalSearchCategoryResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,59 +0,0 @@
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.instanceOfGlobalSearchCategoryResource = instanceOfGlobalSearchCategoryResource;
17
- exports.GlobalSearchCategoryResourceFromJSON = GlobalSearchCategoryResourceFromJSON;
18
- exports.GlobalSearchCategoryResourceFromJSONTyped = GlobalSearchCategoryResourceFromJSONTyped;
19
- exports.GlobalSearchCategoryResourceToJSON = GlobalSearchCategoryResourceToJSON;
20
- exports.GlobalSearchCategoryResourceToJSONTyped = GlobalSearchCategoryResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the GlobalSearchCategoryResource interface.
23
- */
24
- function instanceOfGlobalSearchCategoryResource(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('name' in value) || value['name'] === undefined)
28
- return false;
29
- if (!('slug' in value) || value['slug'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function GlobalSearchCategoryResourceFromJSON(json) {
34
- return GlobalSearchCategoryResourceFromJSONTyped(json, false);
35
- }
36
- function GlobalSearchCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'id': json['id'],
42
- 'name': json['name'],
43
- 'slug': json['slug'],
44
- };
45
- }
46
- function GlobalSearchCategoryResourceToJSON(json) {
47
- return GlobalSearchCategoryResourceToJSONTyped(json, false);
48
- }
49
- function GlobalSearchCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
50
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
- if (value == null) {
52
- return value;
53
- }
54
- return {
55
- 'id': value['id'],
56
- 'name': value['name'],
57
- 'slug': value['slug'],
58
- };
59
- }
@@ -1,33 +0,0 @@
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 { GlobalSearchCategoryResource } from './GlobalSearchCategoryResource';
13
- /**
14
- *
15
- * @export
16
- * @interface GlobalSearchCategoryResourceArrayResponse
17
- */
18
- export interface GlobalSearchCategoryResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<GlobalSearchCategoryResource>}
22
- * @memberof GlobalSearchCategoryResourceArrayResponse
23
- */
24
- data?: Array<GlobalSearchCategoryResource>;
25
- }
26
- /**
27
- * Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfGlobalSearchCategoryResourceArrayResponse(value: object): value is GlobalSearchCategoryResourceArrayResponse;
30
- export declare function GlobalSearchCategoryResourceArrayResponseFromJSON(json: any): GlobalSearchCategoryResourceArrayResponse;
31
- export declare function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResourceArrayResponse;
32
- export declare function GlobalSearchCategoryResourceArrayResponseToJSON(json: any): GlobalSearchCategoryResourceArrayResponse;
33
- export declare function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value?: GlobalSearchCategoryResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfGlobalSearchCategoryResourceArrayResponse = instanceOfGlobalSearchCategoryResourceArrayResponse;
17
- exports.GlobalSearchCategoryResourceArrayResponseFromJSON = GlobalSearchCategoryResourceArrayResponseFromJSON;
18
- exports.GlobalSearchCategoryResourceArrayResponseFromJSONTyped = GlobalSearchCategoryResourceArrayResponseFromJSONTyped;
19
- exports.GlobalSearchCategoryResourceArrayResponseToJSON = GlobalSearchCategoryResourceArrayResponseToJSON;
20
- exports.GlobalSearchCategoryResourceArrayResponseToJSONTyped = GlobalSearchCategoryResourceArrayResponseToJSONTyped;
21
- var GlobalSearchCategoryResource_1 = require("./GlobalSearchCategoryResource");
22
- /**
23
- * Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
24
- */
25
- function instanceOfGlobalSearchCategoryResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function GlobalSearchCategoryResourceArrayResponseFromJSON(json) {
29
- return GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(GlobalSearchCategoryResource_1.GlobalSearchCategoryResourceFromJSON)),
37
- };
38
- }
39
- function GlobalSearchCategoryResourceArrayResponseToJSON(json) {
40
- return GlobalSearchCategoryResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(GlobalSearchCategoryResource_1.GlobalSearchCategoryResourceToJSON)),
49
- };
50
- }
@@ -1,86 +0,0 @@
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 GlobalSearchProductResource
16
- */
17
- export interface GlobalSearchProductResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof GlobalSearchProductResource
22
- */
23
- id: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof GlobalSearchProductResource
28
- */
29
- name: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof GlobalSearchProductResource
34
- */
35
- slug: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof GlobalSearchProductResource
40
- */
41
- sku: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof GlobalSearchProductResource
46
- */
47
- thumbnail: string;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof GlobalSearchProductResource
52
- */
53
- price: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof GlobalSearchProductResource
58
- */
59
- salePrice: number;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof GlobalSearchProductResource
64
- */
65
- averageRating: number;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof GlobalSearchProductResource
70
- */
71
- supplierName: string;
72
- /**
73
- *
74
- * @type {Array<object>}
75
- * @memberof GlobalSearchProductResource
76
- */
77
- categories: Array<object>;
78
- }
79
- /**
80
- * Check if a given object implements the GlobalSearchProductResource interface.
81
- */
82
- export declare function instanceOfGlobalSearchProductResource(value: object): value is GlobalSearchProductResource;
83
- export declare function GlobalSearchProductResourceFromJSON(json: any): GlobalSearchProductResource;
84
- export declare function GlobalSearchProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResource;
85
- export declare function GlobalSearchProductResourceToJSON(json: any): GlobalSearchProductResource;
86
- export declare function GlobalSearchProductResourceToJSONTyped(value?: GlobalSearchProductResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,87 +0,0 @@
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.instanceOfGlobalSearchProductResource = instanceOfGlobalSearchProductResource;
17
- exports.GlobalSearchProductResourceFromJSON = GlobalSearchProductResourceFromJSON;
18
- exports.GlobalSearchProductResourceFromJSONTyped = GlobalSearchProductResourceFromJSONTyped;
19
- exports.GlobalSearchProductResourceToJSON = GlobalSearchProductResourceToJSON;
20
- exports.GlobalSearchProductResourceToJSONTyped = GlobalSearchProductResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the GlobalSearchProductResource interface.
23
- */
24
- function instanceOfGlobalSearchProductResource(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('name' in value) || value['name'] === undefined)
28
- return false;
29
- if (!('slug' in value) || value['slug'] === undefined)
30
- return false;
31
- if (!('sku' in value) || value['sku'] === undefined)
32
- return false;
33
- if (!('thumbnail' in value) || value['thumbnail'] === undefined)
34
- return false;
35
- if (!('price' in value) || value['price'] === undefined)
36
- return false;
37
- if (!('salePrice' in value) || value['salePrice'] === undefined)
38
- return false;
39
- if (!('averageRating' in value) || value['averageRating'] === undefined)
40
- return false;
41
- if (!('supplierName' in value) || value['supplierName'] === undefined)
42
- return false;
43
- if (!('categories' in value) || value['categories'] === undefined)
44
- return false;
45
- return true;
46
- }
47
- function GlobalSearchProductResourceFromJSON(json) {
48
- return GlobalSearchProductResourceFromJSONTyped(json, false);
49
- }
50
- function GlobalSearchProductResourceFromJSONTyped(json, ignoreDiscriminator) {
51
- if (json == null) {
52
- return json;
53
- }
54
- return {
55
- 'id': json['id'],
56
- 'name': json['name'],
57
- 'slug': json['slug'],
58
- 'sku': json['sku'],
59
- 'thumbnail': json['thumbnail'],
60
- 'price': json['price'],
61
- 'salePrice': json['salePrice'],
62
- 'averageRating': json['averageRating'],
63
- 'supplierName': json['supplierName'],
64
- 'categories': json['categories'],
65
- };
66
- }
67
- function GlobalSearchProductResourceToJSON(json) {
68
- return GlobalSearchProductResourceToJSONTyped(json, false);
69
- }
70
- function GlobalSearchProductResourceToJSONTyped(value, ignoreDiscriminator) {
71
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
72
- if (value == null) {
73
- return value;
74
- }
75
- return {
76
- 'id': value['id'],
77
- 'name': value['name'],
78
- 'slug': value['slug'],
79
- 'sku': value['sku'],
80
- 'thumbnail': value['thumbnail'],
81
- 'price': value['price'],
82
- 'salePrice': value['salePrice'],
83
- 'averageRating': value['averageRating'],
84
- 'supplierName': value['supplierName'],
85
- 'categories': value['categories'],
86
- };
87
- }
@@ -1,33 +0,0 @@
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 { GlobalSearchProductResource } from './GlobalSearchProductResource';
13
- /**
14
- *
15
- * @export
16
- * @interface GlobalSearchProductResourceArrayResponse
17
- */
18
- export interface GlobalSearchProductResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<GlobalSearchProductResource>}
22
- * @memberof GlobalSearchProductResourceArrayResponse
23
- */
24
- data?: Array<GlobalSearchProductResource>;
25
- }
26
- /**
27
- * Check if a given object implements the GlobalSearchProductResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfGlobalSearchProductResourceArrayResponse(value: object): value is GlobalSearchProductResourceArrayResponse;
30
- export declare function GlobalSearchProductResourceArrayResponseFromJSON(json: any): GlobalSearchProductResourceArrayResponse;
31
- export declare function GlobalSearchProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResourceArrayResponse;
32
- export declare function GlobalSearchProductResourceArrayResponseToJSON(json: any): GlobalSearchProductResourceArrayResponse;
33
- export declare function GlobalSearchProductResourceArrayResponseToJSONTyped(value?: GlobalSearchProductResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfGlobalSearchProductResourceArrayResponse = instanceOfGlobalSearchProductResourceArrayResponse;
17
- exports.GlobalSearchProductResourceArrayResponseFromJSON = GlobalSearchProductResourceArrayResponseFromJSON;
18
- exports.GlobalSearchProductResourceArrayResponseFromJSONTyped = GlobalSearchProductResourceArrayResponseFromJSONTyped;
19
- exports.GlobalSearchProductResourceArrayResponseToJSON = GlobalSearchProductResourceArrayResponseToJSON;
20
- exports.GlobalSearchProductResourceArrayResponseToJSONTyped = GlobalSearchProductResourceArrayResponseToJSONTyped;
21
- var GlobalSearchProductResource_1 = require("./GlobalSearchProductResource");
22
- /**
23
- * Check if a given object implements the GlobalSearchProductResourceArrayResponse interface.
24
- */
25
- function instanceOfGlobalSearchProductResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function GlobalSearchProductResourceArrayResponseFromJSON(json) {
29
- return GlobalSearchProductResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function GlobalSearchProductResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(GlobalSearchProductResource_1.GlobalSearchProductResourceFromJSON)),
37
- };
38
- }
39
- function GlobalSearchProductResourceArrayResponseToJSON(json) {
40
- return GlobalSearchProductResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function GlobalSearchProductResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(GlobalSearchProductResource_1.GlobalSearchProductResourceToJSON)),
49
- };
50
- }