@digital8/lighting-illusions-ts-sdk 0.0.1529 → 0.0.1530
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.
- package/.openapi-generator/FILES +4 -40
- package/README.md +4 -25
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/ModelAttributeFrontendResource.d.ts +38 -0
- package/dist/models/ModelAttributeFrontendResource.js +55 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +7 -0
- package/dist/models/ProductRangeFrontendResource.js +5 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/index.d.ts +2 -19
- package/dist/models/index.js +2 -19
- package/docs/{ProductRegistrationAssetType.md → ModelAttributeFrontendResource.md} +8 -4
- package/docs/{ProductRegistrationResourceArrayResponse.md → ModelAttributeFrontendResourceArrayResponse.md} +5 -5
- package/docs/ProductRangeFrontendResource.md +2 -0
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +6 -4
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/ModelAttributeFrontendResource.ts +75 -0
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeFrontendResource.ts +16 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/index.ts +2 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -79
- package/dist/apis/ProductRegistrationApi.js +0 -316
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/ListAssetsProductRegistrationRequest.js +0 -83
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -90
- package/dist/models/ProductRegistrationResource.js +0 -81
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/GetAllProductRegistrationRequest.md +0 -46
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/ListAssetsProductRegistrationRequest.md +0 -52
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationListResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -275
- package/docs/ProductRegistrationAssetResource.md +0 -38
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationCustomerResource.md +0 -44
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResource.md +0 -36
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -238
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -171
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
package/dist/models/index.d.ts
CHANGED
|
@@ -90,7 +90,6 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
90
90
|
export * from './GetAllProductCategoryRequest';
|
|
91
91
|
export * from './GetAllProductChildRequest';
|
|
92
92
|
export * from './GetAllProductRangeRequest';
|
|
93
|
-
export * from './GetAllProductRegistrationRequest';
|
|
94
93
|
export * from './GetAllProductRequest';
|
|
95
94
|
export * from './GetAllProductTypeRequest';
|
|
96
95
|
export * from './GetAllStoreRequest';
|
|
@@ -118,7 +117,6 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
118
117
|
export * from './IndexProductCategoryRequest';
|
|
119
118
|
export * from './IndexProductChildRequest';
|
|
120
119
|
export * from './IndexProductRangeRequest';
|
|
121
|
-
export * from './IndexProductRegistrationRequest';
|
|
122
120
|
export * from './IndexProductRequest';
|
|
123
121
|
export * from './IndexProductTypeRequest';
|
|
124
122
|
export * from './IndexSiteNotificationRequest';
|
|
@@ -132,7 +130,8 @@ export * from './LabelLiteResource';
|
|
|
132
130
|
export * from './LabelLiteResourceArrayResponse';
|
|
133
131
|
export * from './LabelResource';
|
|
134
132
|
export * from './LabelResourceArrayResponse';
|
|
135
|
-
export * from './
|
|
133
|
+
export * from './ModelAttributeFrontendResource';
|
|
134
|
+
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
136
135
|
export * from './ModelAttributeListResource';
|
|
137
136
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
138
137
|
export * from './ModelAttributeResource';
|
|
@@ -179,9 +178,6 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
179
178
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
180
179
|
export * from './PaginatedProductRangeResourceResponse';
|
|
181
180
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
182
|
-
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
183
|
-
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
184
|
-
export * from './PaginatedProductRegistrationResourceResponse';
|
|
185
181
|
export * from './PaginatedProductResourceResponse';
|
|
186
182
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
187
183
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -264,19 +260,6 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
264
260
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
265
261
|
export * from './ProductRangeSortBy';
|
|
266
262
|
export * from './ProductRating';
|
|
267
|
-
export * from './ProductRegistrationAssetResource';
|
|
268
|
-
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
269
|
-
export * from './ProductRegistrationAssetType';
|
|
270
|
-
export * from './ProductRegistrationCustomerResource';
|
|
271
|
-
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
272
|
-
export * from './ProductRegistrationListResource';
|
|
273
|
-
export * from './ProductRegistrationListResourceArrayResponse';
|
|
274
|
-
export * from './ProductRegistrationLiteResource';
|
|
275
|
-
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
276
|
-
export * from './ProductRegistrationProductChildResource';
|
|
277
|
-
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
278
|
-
export * from './ProductRegistrationResource';
|
|
279
|
-
export * from './ProductRegistrationResourceArrayResponse';
|
|
280
263
|
export * from './ProductResource';
|
|
281
264
|
export * from './ProductResourceArrayResponse';
|
|
282
265
|
export * from './ProductSearchResponseResource';
|
package/dist/models/index.js
CHANGED
|
@@ -108,7 +108,6 @@ __exportStar(require("./GetAllOverlayTemplateRequest"), exports);
|
|
|
108
108
|
__exportStar(require("./GetAllProductCategoryRequest"), exports);
|
|
109
109
|
__exportStar(require("./GetAllProductChildRequest"), exports);
|
|
110
110
|
__exportStar(require("./GetAllProductRangeRequest"), exports);
|
|
111
|
-
__exportStar(require("./GetAllProductRegistrationRequest"), exports);
|
|
112
111
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
113
112
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
114
113
|
__exportStar(require("./GetAllStoreRequest"), exports);
|
|
@@ -136,7 +135,6 @@ __exportStar(require("./IndexOverlayTemplateRequest"), exports);
|
|
|
136
135
|
__exportStar(require("./IndexProductCategoryRequest"), exports);
|
|
137
136
|
__exportStar(require("./IndexProductChildRequest"), exports);
|
|
138
137
|
__exportStar(require("./IndexProductRangeRequest"), exports);
|
|
139
|
-
__exportStar(require("./IndexProductRegistrationRequest"), exports);
|
|
140
138
|
__exportStar(require("./IndexProductRequest"), exports);
|
|
141
139
|
__exportStar(require("./IndexProductTypeRequest"), exports);
|
|
142
140
|
__exportStar(require("./IndexSiteNotificationRequest"), exports);
|
|
@@ -150,7 +148,8 @@ __exportStar(require("./LabelLiteResource"), exports);
|
|
|
150
148
|
__exportStar(require("./LabelLiteResourceArrayResponse"), exports);
|
|
151
149
|
__exportStar(require("./LabelResource"), exports);
|
|
152
150
|
__exportStar(require("./LabelResourceArrayResponse"), exports);
|
|
153
|
-
__exportStar(require("./
|
|
151
|
+
__exportStar(require("./ModelAttributeFrontendResource"), exports);
|
|
152
|
+
__exportStar(require("./ModelAttributeFrontendResourceArrayResponse"), exports);
|
|
154
153
|
__exportStar(require("./ModelAttributeListResource"), exports);
|
|
155
154
|
__exportStar(require("./ModelAttributeListResourceArrayResponse"), exports);
|
|
156
155
|
__exportStar(require("./ModelAttributeResource"), exports);
|
|
@@ -197,9 +196,6 @@ __exportStar(require("./PaginatedProductRangeListResourceResponse"), exports);
|
|
|
197
196
|
__exportStar(require("./PaginatedProductRangeLiteResourceResponse"), exports);
|
|
198
197
|
__exportStar(require("./PaginatedProductRangeResourceResponse"), exports);
|
|
199
198
|
__exportStar(require("./PaginatedProductRangeSearchResultResourceResponse"), exports);
|
|
200
|
-
__exportStar(require("./PaginatedProductRegistrationAssetResourceResponse"), exports);
|
|
201
|
-
__exportStar(require("./PaginatedProductRegistrationListResourceResponse"), exports);
|
|
202
|
-
__exportStar(require("./PaginatedProductRegistrationResourceResponse"), exports);
|
|
203
199
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
204
200
|
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
205
201
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
@@ -282,19 +278,6 @@ __exportStar(require("./ProductRangeSiteDetailResource"), exports);
|
|
|
282
278
|
__exportStar(require("./ProductRangeSiteDetailResourceArrayResponse"), exports);
|
|
283
279
|
__exportStar(require("./ProductRangeSortBy"), exports);
|
|
284
280
|
__exportStar(require("./ProductRating"), exports);
|
|
285
|
-
__exportStar(require("./ProductRegistrationAssetResource"), exports);
|
|
286
|
-
__exportStar(require("./ProductRegistrationAssetResourceArrayResponse"), exports);
|
|
287
|
-
__exportStar(require("./ProductRegistrationAssetType"), exports);
|
|
288
|
-
__exportStar(require("./ProductRegistrationCustomerResource"), exports);
|
|
289
|
-
__exportStar(require("./ProductRegistrationCustomerResourceArrayResponse"), exports);
|
|
290
|
-
__exportStar(require("./ProductRegistrationListResource"), exports);
|
|
291
|
-
__exportStar(require("./ProductRegistrationListResourceArrayResponse"), exports);
|
|
292
|
-
__exportStar(require("./ProductRegistrationLiteResource"), exports);
|
|
293
|
-
__exportStar(require("./ProductRegistrationLiteResourceArrayResponse"), exports);
|
|
294
|
-
__exportStar(require("./ProductRegistrationProductChildResource"), exports);
|
|
295
|
-
__exportStar(require("./ProductRegistrationProductChildResourceArrayResponse"), exports);
|
|
296
|
-
__exportStar(require("./ProductRegistrationResource"), exports);
|
|
297
|
-
__exportStar(require("./ProductRegistrationResourceArrayResponse"), exports);
|
|
298
281
|
__exportStar(require("./ProductResource"), exports);
|
|
299
282
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
300
283
|
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ModelAttributeFrontendResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`value` | string
|
|
9
11
|
|
|
10
12
|
## Example
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
13
|
-
import type {
|
|
15
|
+
import type { ModelAttributeFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
16
|
|
|
15
17
|
// TODO: Update the object below with actual values
|
|
16
18
|
const example = {
|
|
17
|
-
|
|
19
|
+
"name": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies ModelAttributeFrontendResource
|
|
18
22
|
|
|
19
23
|
console.log(example)
|
|
20
24
|
|
|
@@ -23,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
27
|
console.log(exampleJSON)
|
|
24
28
|
|
|
25
29
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelAttributeFrontendResource
|
|
27
31
|
console.log(exampleParsed)
|
|
28
32
|
```
|
|
29
33
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ModelAttributeFrontendResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ModelAttributeFrontendResource>](ModelAttributeFrontendResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ModelAttributeFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ModelAttributeFrontendResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelAttributeFrontendResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -21,6 +21,7 @@ Name | Type
|
|
|
21
21
|
`seo` | object
|
|
22
22
|
`assets` | object
|
|
23
23
|
`thumbnail` | string
|
|
24
|
+
`attributes` | [Array<ModelAttributeFrontendResource>](ModelAttributeFrontendResource.md)
|
|
24
25
|
|
|
25
26
|
## Example
|
|
26
27
|
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"seo": null,
|
|
45
46
|
"assets": null,
|
|
46
47
|
"thumbnail": null,
|
|
48
|
+
"attributes": null,
|
|
47
49
|
} satisfies ProductRangeFrontendResource
|
|
48
50
|
|
|
49
51
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/index.ts
CHANGED
|
@@ -12,7 +12,6 @@ export * from './OverlayTemplateApi';
|
|
|
12
12
|
export * from './ProductApi';
|
|
13
13
|
export * from './ProductCategoryApi';
|
|
14
14
|
export * from './ProductRangeApi';
|
|
15
|
-
export * from './ProductRegistrationApi';
|
|
16
15
|
export * from './ProductTypeApi';
|
|
17
16
|
export * from './SiteApi';
|
|
18
17
|
export * from './StoreApi';
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -75,6 +75,7 @@ export interface AddressFrontendResource {
|
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
76
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
78
79
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
80
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
80
81
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -95,7 +96,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
95
96
|
|
|
96
97
|
'company': json['company'],
|
|
97
98
|
'line1': json['line1'],
|
|
98
|
-
'line2': json['line2']
|
|
99
|
+
'line2': json['line2'],
|
|
99
100
|
'postcode': json['postcode'],
|
|
100
101
|
'suburb': json['suburb'],
|
|
101
102
|
'country': json['country'],
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
line2
|
|
45
|
+
line2: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -79,7 +79,9 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
82
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
83
85
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
84
86
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
87
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -99,9 +101,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
99
101
|
return {
|
|
100
102
|
|
|
101
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
|
-
'company': json['company']
|
|
104
|
+
'company': json['company'],
|
|
103
105
|
'line1': json['line_1'],
|
|
104
|
-
'line2': json['line_2']
|
|
106
|
+
'line2': json['line_2'],
|
|
105
107
|
'postcode': json['postcode'],
|
|
106
108
|
'suburb': json['suburb'],
|
|
107
109
|
'country': json['country'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
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']),
|
|
@@ -184,7 +184,6 @@ export const IndexProductChildRequestRelatedTypeEnum = {
|
|
|
184
184
|
OverlayTemplate: 'overlayTemplate',
|
|
185
185
|
ProductType: 'productType',
|
|
186
186
|
ProductRange: 'productRange',
|
|
187
|
-
ProductRegistration: 'productRegistration',
|
|
188
187
|
Supplier: 'supplier',
|
|
189
188
|
Tag: 'tag',
|
|
190
189
|
Label: 'label',
|
|
@@ -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 ModelAttributeFrontendResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ModelAttributeFrontendResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ModelAttributeFrontendResource
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ModelAttributeFrontendResource
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ModelAttributeFrontendResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfModelAttributeFrontendResource(value: object): value is ModelAttributeFrontendResource {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ModelAttributeFrontendResourceFromJSON(json: any): ModelAttributeFrontendResource {
|
|
46
|
+
return ModelAttributeFrontendResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ModelAttributeFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ModelAttributeFrontendResourceToJSON(json: any): ModelAttributeFrontendResource {
|
|
61
|
+
return ModelAttributeFrontendResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ModelAttributeFrontendResourceToJSONTyped(value?: ModelAttributeFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'value': value['value'],
|
|
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 { ModelAttributeFrontendResource } from './ModelAttributeFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
ModelAttributeFrontendResourceFromJSON,
|
|
19
|
+
ModelAttributeFrontendResourceFromJSONTyped,
|
|
20
|
+
ModelAttributeFrontendResourceToJSON,
|
|
21
|
+
ModelAttributeFrontendResourceToJSONTyped,
|
|
22
|
+
} from './ModelAttributeFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ModelAttributeFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ModelAttributeFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ModelAttributeFrontendResource>}
|
|
33
|
+
* @memberof ModelAttributeFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ModelAttributeFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ModelAttributeFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfModelAttributeFrontendResourceArrayResponse(value: object): value is ModelAttributeFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ModelAttributeFrontendResourceArrayResponseFromJSON(json: any): ModelAttributeFrontendResourceArrayResponse {
|
|
46
|
+
return ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ModelAttributeFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ModelAttributeFrontendResourceArrayResponseToJSON(json: any): ModelAttributeFrontendResourceArrayResponse {
|
|
60
|
+
return ModelAttributeFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ModelAttributeFrontendResourceArrayResponseToJSONTyped(value?: ModelAttributeFrontendResourceArrayResponse | 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(ModelAttributeFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SupplierFrontendResourceToJSON,
|
|
21
21
|
SupplierFrontendResourceToJSONTyped,
|
|
22
22
|
} from './SupplierFrontendResource';
|
|
23
|
+
import type { ModelAttributeFrontendResource } from './ModelAttributeFrontendResource';
|
|
24
|
+
import {
|
|
25
|
+
ModelAttributeFrontendResourceFromJSON,
|
|
26
|
+
ModelAttributeFrontendResourceFromJSONTyped,
|
|
27
|
+
ModelAttributeFrontendResourceToJSON,
|
|
28
|
+
ModelAttributeFrontendResourceToJSONTyped,
|
|
29
|
+
} from './ModelAttributeFrontendResource';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -117,6 +124,12 @@ export interface ProductRangeFrontendResource {
|
|
|
117
124
|
* @memberof ProductRangeFrontendResource
|
|
118
125
|
*/
|
|
119
126
|
thumbnail?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {Array<ModelAttributeFrontendResource>}
|
|
130
|
+
* @memberof ProductRangeFrontendResource
|
|
131
|
+
*/
|
|
132
|
+
attributes: Array<ModelAttributeFrontendResource> | null;
|
|
120
133
|
}
|
|
121
134
|
|
|
122
135
|
/**
|
|
@@ -137,6 +150,7 @@ export function instanceOfProductRangeFrontendResource(value: object): value is
|
|
|
137
150
|
if (!('documents' in value) || value['documents'] === undefined) return false;
|
|
138
151
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
139
152
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
153
|
+
if (!('attributes' in value) || value['attributes'] === undefined) return false;
|
|
140
154
|
return true;
|
|
141
155
|
}
|
|
142
156
|
|
|
@@ -165,6 +179,7 @@ export function ProductRangeFrontendResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
165
179
|
'seo': json['seo'],
|
|
166
180
|
'assets': json['assets'],
|
|
167
181
|
'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
|
|
182
|
+
'attributes': (json['attributes'] == null ? null : (json['attributes'] as Array<any>).map(ModelAttributeFrontendResourceFromJSON)),
|
|
168
183
|
};
|
|
169
184
|
}
|
|
170
185
|
|
|
@@ -194,6 +209,7 @@ export function ProductRangeFrontendResourceToJSONTyped(value?: ProductRangeFron
|
|
|
194
209
|
'seo': value['seo'],
|
|
195
210
|
'assets': value['assets'],
|
|
196
211
|
'thumbnail': value['thumbnail'],
|
|
212
|
+
'attributes': (value['attributes'] == null ? null : (value['attributes'] as Array<any>).map(ModelAttributeFrontendResourceToJSON)),
|
|
197
213
|
};
|
|
198
214
|
}
|
|
199
215
|
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -92,7 +92,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
92
92
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
93
93
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
94
94
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
95
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
96
95
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
97
96
|
return true;
|
|
98
97
|
}
|
|
@@ -113,7 +112,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
113
112
|
'phone': json['phone'],
|
|
114
113
|
'longitude': json['longitude'],
|
|
115
114
|
'latitude': json['latitude'],
|
|
116
|
-
'tagLine': json['tag_line'],
|
|
115
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
117
116
|
'email': json['email'],
|
|
118
117
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
119
118
|
};
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -131,7 +131,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
131
131
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
132
132
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
133
133
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
134
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
135
134
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
136
135
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
137
136
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
@@ -155,7 +154,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
155
154
|
'phone': json['phone'],
|
|
156
155
|
'longitude': json['longitude'],
|
|
157
156
|
'latitude': json['latitude'],
|
|
158
|
-
'tagLine': json['tag_line'],
|
|
157
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
159
158
|
'email': json['email'],
|
|
160
159
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
161
160
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
package/src/models/index.ts
CHANGED
|
@@ -92,7 +92,6 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
92
92
|
export * from './GetAllProductCategoryRequest';
|
|
93
93
|
export * from './GetAllProductChildRequest';
|
|
94
94
|
export * from './GetAllProductRangeRequest';
|
|
95
|
-
export * from './GetAllProductRegistrationRequest';
|
|
96
95
|
export * from './GetAllProductRequest';
|
|
97
96
|
export * from './GetAllProductTypeRequest';
|
|
98
97
|
export * from './GetAllStoreRequest';
|
|
@@ -120,7 +119,6 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
120
119
|
export * from './IndexProductCategoryRequest';
|
|
121
120
|
export * from './IndexProductChildRequest';
|
|
122
121
|
export * from './IndexProductRangeRequest';
|
|
123
|
-
export * from './IndexProductRegistrationRequest';
|
|
124
122
|
export * from './IndexProductRequest';
|
|
125
123
|
export * from './IndexProductTypeRequest';
|
|
126
124
|
export * from './IndexSiteNotificationRequest';
|
|
@@ -134,7 +132,8 @@ export * from './LabelLiteResource';
|
|
|
134
132
|
export * from './LabelLiteResourceArrayResponse';
|
|
135
133
|
export * from './LabelResource';
|
|
136
134
|
export * from './LabelResourceArrayResponse';
|
|
137
|
-
export * from './
|
|
135
|
+
export * from './ModelAttributeFrontendResource';
|
|
136
|
+
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
138
137
|
export * from './ModelAttributeListResource';
|
|
139
138
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
140
139
|
export * from './ModelAttributeResource';
|
|
@@ -181,9 +180,6 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
181
180
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
182
181
|
export * from './PaginatedProductRangeResourceResponse';
|
|
183
182
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
184
|
-
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
185
|
-
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
186
|
-
export * from './PaginatedProductRegistrationResourceResponse';
|
|
187
183
|
export * from './PaginatedProductResourceResponse';
|
|
188
184
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
189
185
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -266,19 +262,6 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
266
262
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
267
263
|
export * from './ProductRangeSortBy';
|
|
268
264
|
export * from './ProductRating';
|
|
269
|
-
export * from './ProductRegistrationAssetResource';
|
|
270
|
-
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
271
|
-
export * from './ProductRegistrationAssetType';
|
|
272
|
-
export * from './ProductRegistrationCustomerResource';
|
|
273
|
-
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
274
|
-
export * from './ProductRegistrationListResource';
|
|
275
|
-
export * from './ProductRegistrationListResourceArrayResponse';
|
|
276
|
-
export * from './ProductRegistrationLiteResource';
|
|
277
|
-
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
278
|
-
export * from './ProductRegistrationProductChildResource';
|
|
279
|
-
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
280
|
-
export * from './ProductRegistrationResource';
|
|
281
|
-
export * from './ProductRegistrationResourceArrayResponse';
|
|
282
265
|
export * from './ProductResource';
|
|
283
266
|
export * from './ProductResourceArrayResponse';
|
|
284
267
|
export * from './ProductSearchResponseResource';
|