@digital8/lighting-illusions-ts-sdk 0.0.520 → 0.0.521

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 (33) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +7 -2
  3. package/dist/apis/GoogleCategoryApi.d.ts +29 -0
  4. package/dist/apis/GoogleCategoryApi.js +125 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/GetAllGoogleCategoryRequest.d.ts +92 -0
  8. package/dist/models/GetAllGoogleCategoryRequest.js +80 -0
  9. package/dist/models/GoogleCategoryResource.d.ts +38 -0
  10. package/dist/models/GoogleCategoryResource.js +55 -0
  11. package/dist/models/GoogleCategoryResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/GoogleCategoryResourceArrayResponse.js +50 -0
  13. package/dist/models/PaginatedGoogleCategoryResourceResponse.d.ts +40 -0
  14. package/dist/models/PaginatedGoogleCategoryResourceResponse.js +57 -0
  15. package/dist/models/ProductResource.d.ts +7 -0
  16. package/dist/models/ProductResource.js +5 -0
  17. package/dist/models/index.d.ts +4 -0
  18. package/dist/models/index.js +4 -0
  19. package/docs/GetAllGoogleCategoryRequest.md +48 -0
  20. package/docs/GoogleCategoryApi.md +74 -0
  21. package/docs/GoogleCategoryResource.md +36 -0
  22. package/docs/GoogleCategoryResourceArrayResponse.md +34 -0
  23. package/docs/PaginatedGoogleCategoryResourceResponse.md +36 -0
  24. package/docs/ProductResource.md +2 -0
  25. package/package.json +1 -1
  26. package/src/apis/GoogleCategoryApi.ts +69 -0
  27. package/src/apis/index.ts +1 -0
  28. package/src/models/GetAllGoogleCategoryRequest.ts +143 -0
  29. package/src/models/GoogleCategoryResource.ts +75 -0
  30. package/src/models/GoogleCategoryResourceArrayResponse.ts +73 -0
  31. package/src/models/PaginatedGoogleCategoryResourceResponse.ts +90 -0
  32. package/src/models/ProductResource.ts +16 -0
  33. package/src/models/index.ts +4 -0
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GoogleCategoryResource
20
+ */
21
+ export interface GoogleCategoryResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof GoogleCategoryResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GoogleCategoryResource
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GoogleCategoryResource interface.
38
+ */
39
+ export function instanceOfGoogleCategoryResource(value: object): value is GoogleCategoryResource {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GoogleCategoryResourceFromJSON(json: any): GoogleCategoryResource {
46
+ return GoogleCategoryResourceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GoogleCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleCategoryResource {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function GoogleCategoryResourceToJSON(json: any): GoogleCategoryResource {
61
+ return GoogleCategoryResourceToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GoogleCategoryResourceToJSONTyped(value?: GoogleCategoryResource | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { GoogleCategoryResource } from './GoogleCategoryResource';
17
+ import {
18
+ GoogleCategoryResourceFromJSON,
19
+ GoogleCategoryResourceFromJSONTyped,
20
+ GoogleCategoryResourceToJSON,
21
+ GoogleCategoryResourceToJSONTyped,
22
+ } from './GoogleCategoryResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GoogleCategoryResourceArrayResponse
28
+ */
29
+ export interface GoogleCategoryResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<GoogleCategoryResource>}
33
+ * @memberof GoogleCategoryResourceArrayResponse
34
+ */
35
+ data?: Array<GoogleCategoryResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GoogleCategoryResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfGoogleCategoryResourceArrayResponse(value: object): value is GoogleCategoryResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function GoogleCategoryResourceArrayResponseFromJSON(json: any): GoogleCategoryResourceArrayResponse {
46
+ return GoogleCategoryResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GoogleCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleCategoryResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(GoogleCategoryResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function GoogleCategoryResourceArrayResponseToJSON(json: any): GoogleCategoryResourceArrayResponse {
60
+ return GoogleCategoryResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function GoogleCategoryResourceArrayResponseToJSONTyped(value?: GoogleCategoryResourceArrayResponse | 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(GoogleCategoryResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { GoogleCategoryResource } from './GoogleCategoryResource';
24
+ import {
25
+ GoogleCategoryResourceFromJSON,
26
+ GoogleCategoryResourceFromJSONTyped,
27
+ GoogleCategoryResourceToJSON,
28
+ GoogleCategoryResourceToJSONTyped,
29
+ } from './GoogleCategoryResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedGoogleCategoryResourceResponse
35
+ */
36
+ export interface PaginatedGoogleCategoryResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<GoogleCategoryResource>}
40
+ * @memberof PaginatedGoogleCategoryResourceResponse
41
+ */
42
+ data: Array<GoogleCategoryResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedGoogleCategoryResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedGoogleCategoryResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedGoogleCategoryResourceResponse(value: object): value is PaginatedGoogleCategoryResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedGoogleCategoryResourceResponseFromJSON(json: any): PaginatedGoogleCategoryResourceResponse {
61
+ return PaginatedGoogleCategoryResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedGoogleCategoryResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGoogleCategoryResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(GoogleCategoryResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedGoogleCategoryResourceResponseToJSON(json: any): PaginatedGoogleCategoryResourceResponse {
76
+ return PaginatedGoogleCategoryResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedGoogleCategoryResourceResponseToJSONTyped(value?: PaginatedGoogleCategoryResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(GoogleCategoryResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -20,6 +20,13 @@ import {
20
20
  ProductTypeLiteResourceToJSON,
21
21
  ProductTypeLiteResourceToJSONTyped,
22
22
  } from './ProductTypeLiteResource';
23
+ import type { GoogleCategoryResource } from './GoogleCategoryResource';
24
+ import {
25
+ GoogleCategoryResourceFromJSON,
26
+ GoogleCategoryResourceFromJSONTyped,
27
+ GoogleCategoryResourceToJSON,
28
+ GoogleCategoryResourceToJSONTyped,
29
+ } from './GoogleCategoryResource';
23
30
  import type { SupplierLiteResource } from './SupplierLiteResource';
24
31
  import {
25
32
  SupplierLiteResourceFromJSON,
@@ -76,6 +83,12 @@ export interface ProductResource {
76
83
  * @memberof ProductResource
77
84
  */
78
85
  isDisabled: boolean;
86
+ /**
87
+ *
88
+ * @type {GoogleCategoryResource}
89
+ * @memberof ProductResource
90
+ */
91
+ googleCategory: GoogleCategoryResource | null;
79
92
  /**
80
93
  *
81
94
  * @type {SupplierLiteResource}
@@ -113,6 +126,7 @@ export function instanceOfProductResource(value: object): value is ProductResour
113
126
  if (!('warranty' in value) || value['warranty'] === undefined) return false;
114
127
  if (!('categoryIDs' in value) || value['categoryIDs'] === undefined) return false;
115
128
  if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
129
+ if (!('googleCategory' in value) || value['googleCategory'] === undefined) return false;
116
130
  if (!('supplier' in value) || value['supplier'] === undefined) return false;
117
131
  if (!('productType' in value) || value['productType'] === undefined) return false;
118
132
  if (!('sites' in value) || value['sites'] === undefined) return false;
@@ -137,6 +151,7 @@ export function ProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
137
151
  'warranty': json['warranty'],
138
152
  'categoryIDs': json['categoryIDs'],
139
153
  'isDisabled': json['isDisabled'],
154
+ 'googleCategory': GoogleCategoryResourceFromJSON(json['googleCategory']),
140
155
  'supplier': SupplierLiteResourceFromJSON(json['supplier']),
141
156
  'productType': ProductTypeLiteResourceFromJSON(json['productType']),
142
157
  'sites': json['sites'],
@@ -162,6 +177,7 @@ export function ProductResourceToJSONTyped(value?: ProductResource | null, ignor
162
177
  'warranty': value['warranty'],
163
178
  'categoryIDs': value['categoryIDs'],
164
179
  'isDisabled': value['isDisabled'],
180
+ 'googleCategory': GoogleCategoryResourceToJSON(value['googleCategory']),
165
181
  'supplier': SupplierLiteResourceToJSON(value['supplier']),
166
182
  'productType': ProductTypeLiteResourceToJSON(value['productType']),
167
183
  'sites': value['sites'],
@@ -49,11 +49,14 @@ export * from './ExternalApiSyncStatus';
49
49
  export * from './GenericResponse';
50
50
  export * from './GetAllAttributeRequest';
51
51
  export * from './GetAllDocumentRequest';
52
+ export * from './GetAllGoogleCategoryRequest';
52
53
  export * from './GetAllOverlayTemplateRequest';
53
54
  export * from './GetAllProductChildRequest';
54
55
  export * from './GetAllProductRequest';
55
56
  export * from './GetAllProductTypeRequest';
56
57
  export * from './GetAllSupplierRequest';
58
+ export * from './GoogleCategoryResource';
59
+ export * from './GoogleCategoryResourceArrayResponse';
57
60
  export * from './IndexAttributeRequest';
58
61
  export * from './IndexDocumentRequest';
59
62
  export * from './IndexExternalApiLogRequest';
@@ -83,6 +86,7 @@ export * from './PaginatedAttributeResourceResponse';
83
86
  export * from './PaginatedDocumentResourceResponse';
84
87
  export * from './PaginatedExternalApiLogListResourceResponse';
85
88
  export * from './PaginatedExternalApiLogResourceResponse';
89
+ export * from './PaginatedGoogleCategoryResourceResponse';
86
90
  export * from './PaginatedOverlayTemplateListResourceResponse';
87
91
  export * from './PaginatedOverlayTemplateLiteResourceResponse';
88
92
  export * from './PaginatedOverlayTemplateResourceResponse';