@digital8/lighting-illusions-ts-sdk 0.0.1636 → 0.0.1638
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 +0 -40
- package/README.md +2 -26
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GlobalSearchProductResource.d.ts +0 -6
- package/dist/models/GlobalSearchProductResource.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -2
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/index.d.ts +0 -19
- package/dist/models/index.js +0 -19
- package/docs/GlobalSearchProductResource.md +0 -2
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductSearchResultResource.md +0 -2
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +3 -2
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GlobalSearchProductResource.ts +0 -9
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/ProductChildListResource.ts +0 -8
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +5 -5
- package/src/models/index.ts +0 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -95
- package/dist/apis/ProductRegistrationApi.js +0 -377
- 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 -344
- package/docs/ProductRegistrationAssetResource.md +0 -38
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationAssetType.md +0 -32
- 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/docs/ProductRegistrationResourceArrayResponse.md +0 -34
- package/src/apis/ProductRegistrationApi.ts +0 -297
- 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
|
@@ -14,7 +14,6 @@ Name | Type
|
|
|
14
14
|
`stock` | number
|
|
15
15
|
`isDisabled` | string
|
|
16
16
|
`displayInSocialFeed` | boolean
|
|
17
|
-
`quantity` | string
|
|
18
17
|
`netsuiteId` | number
|
|
19
18
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
20
19
|
`siteDetails` | [Array<ProductChildSiteDetailLiteResource>](ProductChildSiteDetailLiteResource.md)
|
|
@@ -34,7 +33,6 @@ const example = {
|
|
|
34
33
|
"stock": null,
|
|
35
34
|
"isDisabled": null,
|
|
36
35
|
"displayInSocialFeed": null,
|
|
37
|
-
"quantity": null,
|
|
38
36
|
"netsuiteId": null,
|
|
39
37
|
"thumbnail": null,
|
|
40
38
|
"siteDetails": null,
|
|
@@ -9,7 +9,6 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`sku` | string
|
|
11
11
|
`model` | string
|
|
12
|
-
`modelRaw` | string
|
|
13
12
|
`barcode` | string
|
|
14
13
|
`name` | string
|
|
15
14
|
`slug` | string
|
|
@@ -36,7 +35,6 @@ const example = {
|
|
|
36
35
|
"id": null,
|
|
37
36
|
"sku": null,
|
|
38
37
|
"model": null,
|
|
39
|
-
"modelRaw": null,
|
|
40
38
|
"barcode": null,
|
|
41
39
|
"name": null,
|
|
42
40
|
"slug": null,
|
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 './RedirectApi';
|
|
18
17
|
export * from './SiteApi';
|
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -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}
|
|
@@ -73,8 +73,8 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
76
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
78
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
80
80
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -93,9 +93,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
93
93
|
}
|
|
94
94
|
return {
|
|
95
95
|
|
|
96
|
-
'company': json['company'],
|
|
96
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
97
97
|
'line1': json['line1'],
|
|
98
|
-
'line2': json['line2']
|
|
98
|
+
'line2': json['line2'],
|
|
99
99
|
'postcode': json['postcode'],
|
|
100
100
|
'suburb': json['suburb'],
|
|
101
101
|
'country': json['country'],
|
|
@@ -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}
|
|
@@ -81,6 +81,7 @@ export interface AddressResource {
|
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
84
85
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
86
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
86
87
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -102,7 +103,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'company': json['company'],
|
|
104
105
|
'line1': json['line_1'],
|
|
105
|
-
'line2': json['line_2']
|
|
106
|
+
'line2': json['line_2'],
|
|
106
107
|
'postcode': json['postcode'],
|
|
107
108
|
'suburb': json['suburb'],
|
|
108
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']),
|
|
@@ -37,12 +37,6 @@ export interface GlobalSearchProductResource {
|
|
|
37
37
|
* @memberof GlobalSearchProductResource
|
|
38
38
|
*/
|
|
39
39
|
model: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof GlobalSearchProductResource
|
|
44
|
-
*/
|
|
45
|
-
modelRaw: string;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {string}
|
|
@@ -100,7 +94,6 @@ export function instanceOfGlobalSearchProductResource(value: object): value is G
|
|
|
100
94
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
101
95
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
102
96
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
103
|
-
if (!('modelRaw' in value) || value['modelRaw'] === undefined) return false;
|
|
104
97
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
105
98
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
106
99
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
@@ -125,7 +118,6 @@ export function GlobalSearchProductResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
125
118
|
'id': json['id'],
|
|
126
119
|
'name': json['name'],
|
|
127
120
|
'model': json['model'],
|
|
128
|
-
'modelRaw': json['modelRaw'],
|
|
129
121
|
'slug': json['slug'],
|
|
130
122
|
'sku': json['sku'],
|
|
131
123
|
'thumbnail': json['thumbnail'],
|
|
@@ -151,7 +143,6 @@ export function GlobalSearchProductResourceToJSONTyped(value?: GlobalSearchProdu
|
|
|
151
143
|
'id': value['id'],
|
|
152
144
|
'name': value['name'],
|
|
153
145
|
'model': value['model'],
|
|
154
|
-
'modelRaw': value['modelRaw'],
|
|
155
146
|
'slug': value['slug'],
|
|
156
147
|
'sku': value['sku'],
|
|
157
148
|
'thumbnail': value['thumbnail'],
|
|
@@ -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',
|
|
@@ -82,12 +82,6 @@ export interface ProductChildListResource {
|
|
|
82
82
|
* @memberof ProductChildListResource
|
|
83
83
|
*/
|
|
84
84
|
displayInSocialFeed: boolean;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof ProductChildListResource
|
|
89
|
-
*/
|
|
90
|
-
quantity?: string | null;
|
|
91
85
|
/**
|
|
92
86
|
*
|
|
93
87
|
* @type {number}
|
|
@@ -142,7 +136,6 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
142
136
|
'stock': json['stock'],
|
|
143
137
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
144
138
|
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
145
|
-
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
146
139
|
'netsuiteId': json['netsuiteId'],
|
|
147
140
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
148
141
|
'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceFromJSON)),
|
|
@@ -168,7 +161,6 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
|
|
|
168
161
|
'stock': value['stock'],
|
|
169
162
|
'isDisabled': value['isDisabled'],
|
|
170
163
|
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
171
|
-
'quantity': value['quantity'],
|
|
172
164
|
'netsuiteId': value['netsuiteId'],
|
|
173
165
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
174
166
|
'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceToJSON)),
|
|
@@ -37,12 +37,6 @@ export interface ProductSearchResultResource {
|
|
|
37
37
|
* @memberof ProductSearchResultResource
|
|
38
38
|
*/
|
|
39
39
|
model: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof ProductSearchResultResource
|
|
44
|
-
*/
|
|
45
|
-
modelRaw: string;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {string}
|
|
@@ -142,7 +136,6 @@ export function instanceOfProductSearchResultResource(value: object): value is P
|
|
|
142
136
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
143
137
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
144
138
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
145
|
-
if (!('modelRaw' in value) || value['modelRaw'] === undefined) return false;
|
|
146
139
|
if (!('barcode' in value) || value['barcode'] === undefined) return false;
|
|
147
140
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
148
141
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
@@ -173,7 +166,6 @@ export function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
173
166
|
'id': json['id'],
|
|
174
167
|
'sku': json['sku'],
|
|
175
168
|
'model': json['model'],
|
|
176
|
-
'modelRaw': json['modelRaw'],
|
|
177
169
|
'barcode': json['barcode'],
|
|
178
170
|
'name': json['name'],
|
|
179
171
|
'slug': json['slug'],
|
|
@@ -206,7 +198,6 @@ export function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResu
|
|
|
206
198
|
'id': value['id'],
|
|
207
199
|
'sku': value['sku'],
|
|
208
200
|
'model': value['model'],
|
|
209
|
-
'modelRaw': value['modelRaw'],
|
|
210
201
|
'barcode': value['barcode'],
|
|
211
202
|
'name': value['name'],
|
|
212
203
|
'slug': value['slug'],
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +128,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
128
|
'siteId': json['siteId'],
|
|
130
129
|
'name': json['name'],
|
|
131
130
|
'email': json['email'],
|
|
132
|
-
'website': json['website'],
|
|
131
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
133
132
|
'phone': json['phone'],
|
|
134
133
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
134
|
'latitude': json['latitude'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website?: string | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {string}
|
|
@@ -137,8 +137,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
137
137
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
138
138
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
139
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
140
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
140
141
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
141
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
142
142
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
143
143
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
144
144
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -161,9 +161,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
161
161
|
'phone': json['phone'],
|
|
162
162
|
'longitude': json['longitude'],
|
|
163
163
|
'latitude': json['latitude'],
|
|
164
|
-
'tagLine': json['tag_line']
|
|
164
|
+
'tagLine': json['tag_line'],
|
|
165
165
|
'email': json['email'],
|
|
166
|
-
'website': json['website'],
|
|
166
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
167
167
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
168
168
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
169
169
|
'address': AddressResourceFromJSON(json['address']),
|
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 './IndexRedirectRequest';
|
|
@@ -135,7 +133,6 @@ export * from './LabelLiteResource';
|
|
|
135
133
|
export * from './LabelLiteResourceArrayResponse';
|
|
136
134
|
export * from './LabelResource';
|
|
137
135
|
export * from './LabelResourceArrayResponse';
|
|
138
|
-
export * from './ListAssetsProductRegistrationRequest';
|
|
139
136
|
export * from './ModelAttributeFrontendResource';
|
|
140
137
|
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
141
138
|
export * from './ModelAttributeListResource';
|
|
@@ -184,9 +181,6 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
184
181
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
185
182
|
export * from './PaginatedProductRangeResourceResponse';
|
|
186
183
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
187
|
-
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
188
|
-
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
189
|
-
export * from './PaginatedProductRegistrationResourceResponse';
|
|
190
184
|
export * from './PaginatedProductResourceResponse';
|
|
191
185
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
192
186
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -270,19 +264,6 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
270
264
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
271
265
|
export * from './ProductRangeSortBy';
|
|
272
266
|
export * from './ProductRating';
|
|
273
|
-
export * from './ProductRegistrationAssetResource';
|
|
274
|
-
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
275
|
-
export * from './ProductRegistrationAssetType';
|
|
276
|
-
export * from './ProductRegistrationCustomerResource';
|
|
277
|
-
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
278
|
-
export * from './ProductRegistrationListResource';
|
|
279
|
-
export * from './ProductRegistrationListResourceArrayResponse';
|
|
280
|
-
export * from './ProductRegistrationLiteResource';
|
|
281
|
-
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
282
|
-
export * from './ProductRegistrationProductChildResource';
|
|
283
|
-
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
284
|
-
export * from './ProductRegistrationResource';
|
|
285
|
-
export * from './ProductRegistrationResourceArrayResponse';
|
|
286
267
|
export * from './ProductResource';
|
|
287
268
|
export * from './ProductResourceArrayResponse';
|
|
288
269
|
export * from './ProductSearchResponseResource';
|
|
@@ -1,95 +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 * as runtime from '../runtime';
|
|
13
|
-
import type { GetAllProductRegistrationRequest, IndexProductChildRequest, IndexProductRegistrationRequest, ListAssetsProductRegistrationRequest, PaginatedProductChildListResourceResponse, PaginatedProductRegistrationAssetResourceResponse, PaginatedProductRegistrationListResourceResponse, ProductRegistrationLiteResourceArrayResponse, ProductRegistrationResource } from '../models/index';
|
|
14
|
-
export interface GetAllProductRegistrationOperationRequest {
|
|
15
|
-
getAllProductRegistrationRequest?: GetAllProductRegistrationRequest;
|
|
16
|
-
}
|
|
17
|
-
export interface IndexProductRegistrationOperationRequest {
|
|
18
|
-
indexProductRegistrationRequest?: IndexProductRegistrationRequest;
|
|
19
|
-
}
|
|
20
|
-
export interface ListAssetsProductRegistrationOperationRequest {
|
|
21
|
-
productRegistration: number;
|
|
22
|
-
listAssetsProductRegistrationRequest?: ListAssetsProductRegistrationRequest;
|
|
23
|
-
}
|
|
24
|
-
export interface ListProductsProductRegistrationRequest {
|
|
25
|
-
productRegistration: number;
|
|
26
|
-
indexProductChildRequest?: IndexProductChildRequest;
|
|
27
|
-
}
|
|
28
|
-
export interface ShowProductRegistrationRequest {
|
|
29
|
-
productRegistration: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare class ProductRegistrationApi extends runtime.BaseAPI {
|
|
35
|
-
/**
|
|
36
|
-
* Creates request options for getAllProductRegistration without sending the request
|
|
37
|
-
*/
|
|
38
|
-
getAllProductRegistrationRequestOpts(requestParameters: GetAllProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
39
|
-
/**
|
|
40
|
-
* Auto-generated: getAllProductRegistration
|
|
41
|
-
*/
|
|
42
|
-
getAllProductRegistrationRaw(requestParameters: GetAllProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationLiteResourceArrayResponse>>;
|
|
43
|
-
/**
|
|
44
|
-
* Auto-generated: getAllProductRegistration
|
|
45
|
-
*/
|
|
46
|
-
getAllProductRegistration(requestParameters?: GetAllProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationLiteResourceArrayResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* Creates request options for indexProductRegistration without sending the request
|
|
49
|
-
*/
|
|
50
|
-
indexProductRegistrationRequestOpts(requestParameters: IndexProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
51
|
-
/**
|
|
52
|
-
* Auto-generated: indexProductRegistration
|
|
53
|
-
*/
|
|
54
|
-
indexProductRegistrationRaw(requestParameters: IndexProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationListResourceResponse>>;
|
|
55
|
-
/**
|
|
56
|
-
* Auto-generated: indexProductRegistration
|
|
57
|
-
*/
|
|
58
|
-
indexProductRegistration(requestParameters?: IndexProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationListResourceResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* Creates request options for listAssetsProductRegistration without sending the request
|
|
61
|
-
*/
|
|
62
|
-
listAssetsProductRegistrationRequestOpts(requestParameters: ListAssetsProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
63
|
-
/**
|
|
64
|
-
* Auto-generated: listAssetsProductRegistration
|
|
65
|
-
*/
|
|
66
|
-
listAssetsProductRegistrationRaw(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationAssetResourceResponse>>;
|
|
67
|
-
/**
|
|
68
|
-
* Auto-generated: listAssetsProductRegistration
|
|
69
|
-
*/
|
|
70
|
-
listAssetsProductRegistration(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationAssetResourceResponse>;
|
|
71
|
-
/**
|
|
72
|
-
* Creates request options for listProductsProductRegistration without sending the request
|
|
73
|
-
*/
|
|
74
|
-
listProductsProductRegistrationRequestOpts(requestParameters: ListProductsProductRegistrationRequest): Promise<runtime.RequestOpts>;
|
|
75
|
-
/**
|
|
76
|
-
* Auto-generated: listProductsProductRegistration
|
|
77
|
-
*/
|
|
78
|
-
listProductsProductRegistrationRaw(requestParameters: ListProductsProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
79
|
-
/**
|
|
80
|
-
* Auto-generated: listProductsProductRegistration
|
|
81
|
-
*/
|
|
82
|
-
listProductsProductRegistration(requestParameters: ListProductsProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* Creates request options for showProductRegistration without sending the request
|
|
85
|
-
*/
|
|
86
|
-
showProductRegistrationRequestOpts(requestParameters: ShowProductRegistrationRequest): Promise<runtime.RequestOpts>;
|
|
87
|
-
/**
|
|
88
|
-
* Auto-generated: showProductRegistration
|
|
89
|
-
*/
|
|
90
|
-
showProductRegistrationRaw(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationResource>>;
|
|
91
|
-
/**
|
|
92
|
-
* Auto-generated: showProductRegistration
|
|
93
|
-
*/
|
|
94
|
-
showProductRegistration(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationResource>;
|
|
95
|
-
}
|