@digital8/lighting-illusions-ts-sdk 0.0.1490 → 0.0.1491
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 +42 -56
- package/README.md +29 -44
- package/dist/apis/AdminApi.d.ts +4 -4
- package/dist/apis/AdminApi.js +3 -3
- package/dist/apis/ProductCategoryApi.d.ts +6 -6
- package/dist/apis/ProductCategoryApi.js +1 -1
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/{MenuApi.js → ProductRegistrationApi.js} +57 -174
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- 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 +4 -4
- package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
- package/dist/models/{GetAllMenuRequest.js → GetAllProductRegistrationRequest.js} +21 -21
- package/dist/models/GetHierarchyProductCategoryRequest.d.ts +32 -0
- package/dist/models/GetHierarchyProductCategoryRequest.js +51 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
- package/dist/models/IndexProductRegistrationRequest.js +98 -0
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/{IndexMenuRequest.js → ListAssetsProductRegistrationRequest.js} +22 -23
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
- package/dist/models/ProductRegistrationCustomerResource.js +65 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +57 -0
- package/dist/models/ProductRegistrationListResource.js +64 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
- package/dist/models/ProductRegistrationProductChildResource.js +63 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +88 -0
- package/dist/models/ProductRegistrationResource.js +79 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/StoreAssetForAssetableRequest.d.ts +0 -2
- package/dist/models/StoreAssetForAssetableRequest.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +20 -26
- package/dist/models/index.js +20 -26
- package/docs/AdminApi.md +12 -12
- package/docs/{GetAllMenuRequest.md → GetAllProductRegistrationRequest.md} +4 -6
- package/docs/{StoreMenuRequest.md → GetHierarchyProductCategoryRequest.md} +4 -8
- package/docs/{GetAllMenuItemRequest.md → IndexProductRegistrationRequest.md} +18 -8
- package/docs/{IndexMenuRequest.md → ListAssetsProductRegistrationRequest.md} +8 -8
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
- package/docs/{PaginatedMenuListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductCategoryApi.md +7 -7
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/{UpdateMenuRequestMenuItemOrderInner.md → ProductRegistrationAssetResource.md} +8 -8
- package/docs/{MenuItemEditResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
- package/docs/{MenuItemType.md → ProductRegistrationAssetType.md} +4 -4
- package/docs/{UpdateMenuRequest.md → ProductRegistrationCustomerResource.md} +14 -10
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/{MenuItemLinkResource.md → ProductRegistrationListResource.md} +12 -14
- package/docs/{MenuItemHierarchyResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{MenuListResource.md → ProductRegistrationLiteResource.md} +6 -10
- package/docs/{MenuItemResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
- package/docs/{MenuResource.md → ProductRegistrationProductChildResource.md} +8 -12
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +52 -0
- package/docs/{MenuItemLinkResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +9 -9
- package/src/apis/ProductCategoryApi.ts +9 -9
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/index.ts +1 -2
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/GetAllProductRegistrationRequest.ts +137 -0
- package/src/models/GetHierarchyProductCategoryRequest.ts +66 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRegistrationRequest.ts +193 -0
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerResource.ts +108 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +108 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationProductChildResource.ts +93 -0
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +157 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/StoreAssetForAssetableRequest.ts +1 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +20 -26
- package/dist/apis/MenuApi.d.ts +0 -109
- package/dist/apis/MenuItemsApi.d.ts +0 -124
- package/dist/apis/MenuItemsApi.js +0 -491
- package/dist/models/GetAllMenuItemRequest.d.ts +0 -93
- package/dist/models/GetAllMenuItemRequest.js +0 -81
- package/dist/models/GetAllMenuRequest.d.ts +0 -92
- package/dist/models/GetHierarchyMenuItemRequest.d.ts +0 -32
- package/dist/models/GetHierarchyMenuItemRequest.js +0 -51
- package/dist/models/IndexMenuRequest.d.ts +0 -104
- package/dist/models/MenuItemEditResource.d.ts +0 -119
- package/dist/models/MenuItemEditResource.js +0 -94
- package/dist/models/MenuItemEditResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuItemEditResourceArrayResponse.js +0 -50
- package/dist/models/MenuItemHierarchyResource.d.ts +0 -74
- package/dist/models/MenuItemHierarchyResource.js +0 -73
- package/dist/models/MenuItemHierarchyResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuItemHierarchyResourceArrayResponse.js +0 -50
- package/dist/models/MenuItemLinkResource.d.ts +0 -62
- package/dist/models/MenuItemLinkResource.js +0 -65
- package/dist/models/MenuItemLinkResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuItemLinkResourceArrayResponse.js +0 -50
- package/dist/models/MenuItemResource.d.ts +0 -124
- package/dist/models/MenuItemResource.js +0 -95
- package/dist/models/MenuItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuItemResourceArrayResponse.js +0 -50
- package/dist/models/MenuItemType.d.ts +0 -27
- package/dist/models/MenuItemType.js +0 -53
- package/dist/models/MenuListResource.d.ts +0 -51
- package/dist/models/MenuListResource.js +0 -62
- package/dist/models/MenuListResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuListResourceArrayResponse.js +0 -50
- package/dist/models/MenuPosition.d.ts +0 -27
- package/dist/models/MenuPosition.js +0 -53
- package/dist/models/MenuResource.d.ts +0 -63
- package/dist/models/MenuResource.js +0 -70
- package/dist/models/MenuResourceArrayResponse.d.ts +0 -33
- package/dist/models/MenuResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedMenuListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedMenuListResourceResponse.js +0 -57
- package/dist/models/SearchLinkablesMenuItemRequest.d.ts +0 -54
- package/dist/models/SearchLinkablesMenuItemRequest.js +0 -65
- package/dist/models/StoreMenuItemRequest.d.ts +0 -97
- package/dist/models/StoreMenuItemRequest.js +0 -84
- package/dist/models/StoreMenuItemRequestMenuItemLink.d.ts +0 -60
- package/dist/models/StoreMenuItemRequestMenuItemLink.js +0 -65
- package/dist/models/StoreMenuRequest.d.ts +0 -54
- package/dist/models/StoreMenuRequest.js +0 -69
- package/dist/models/UpdateMenuItemRequest.d.ts +0 -97
- package/dist/models/UpdateMenuItemRequest.js +0 -78
- package/dist/models/UpdateMenuRequest.d.ts +0 -61
- package/dist/models/UpdateMenuRequest.js +0 -66
- package/dist/models/UpdateMenuRequestMenuItemOrderInner.d.ts +0 -44
- package/dist/models/UpdateMenuRequestMenuItemOrderInner.js +0 -53
- package/docs/GetHierarchyMenuItemRequest.md +0 -34
- package/docs/MenuApi.md +0 -407
- package/docs/MenuItemEditResource.md +0 -62
- package/docs/MenuItemHierarchyResource.md +0 -48
- package/docs/MenuItemResource.md +0 -64
- package/docs/MenuItemsApi.md +0 -473
- package/docs/MenuListResourceArrayResponse.md +0 -34
- package/docs/MenuPosition.md +0 -32
- package/docs/MenuResourceArrayResponse.md +0 -34
- package/docs/SearchLinkablesMenuItemRequest.md +0 -38
- package/docs/StoreMenuItemRequest.md +0 -52
- package/docs/StoreMenuItemRequestMenuItemLink.md +0 -40
- package/docs/UpdateMenuItemRequest.md +0 -52
- package/src/apis/MenuApi.ts +0 -334
- package/src/apis/MenuItemsApi.ts +0 -381
- package/src/models/GetAllMenuItemRequest.ts +0 -144
- package/src/models/GetAllMenuRequest.ts +0 -143
- package/src/models/GetHierarchyMenuItemRequest.ts +0 -66
- package/src/models/IndexMenuRequest.ts +0 -159
- package/src/models/MenuItemEditResource.ts +0 -206
- package/src/models/MenuItemEditResourceArrayResponse.ts +0 -73
- package/src/models/MenuItemHierarchyResource.ts +0 -126
- package/src/models/MenuItemHierarchyResourceArrayResponse.ts +0 -73
- package/src/models/MenuItemLinkResource.ts +0 -108
- package/src/models/MenuItemLinkResourceArrayResponse.ts +0 -73
- package/src/models/MenuItemResource.ts +0 -207
- package/src/models/MenuItemResourceArrayResponse.ts +0 -73
- package/src/models/MenuItemType.ts +0 -55
- package/src/models/MenuListResource.ts +0 -100
- package/src/models/MenuListResourceArrayResponse.ts +0 -73
- package/src/models/MenuPosition.ts +0 -55
- package/src/models/MenuResource.ts +0 -118
- package/src/models/MenuResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedMenuListResourceResponse.ts +0 -90
- package/src/models/SearchLinkablesMenuItemRequest.ts +0 -95
- package/src/models/StoreMenuItemRequest.ts +0 -161
- package/src/models/StoreMenuItemRequestMenuItemLink.ts +0 -102
- package/src/models/StoreMenuRequest.ts +0 -97
- package/src/models/UpdateMenuItemRequest.ts +0 -158
- package/src/models/UpdateMenuRequest.ts +0 -110
- package/src/models/UpdateMenuRequestMenuItemOrderInner.ts +0 -81
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductRegistrationProductChildResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductRegistrationProductChildResource>](ProductRegistrationProductChildResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductRegistrationProductChildResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductRegistrationProductChildResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationProductChildResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductRegistrationResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`purchasedDate` | Date
|
|
11
|
+
`customer` | [ProductRegistrationCustomerResource](ProductRegistrationCustomerResource.md)
|
|
12
|
+
`address` | [AddressResource](AddressResource.md)
|
|
13
|
+
`productChildren` | object
|
|
14
|
+
`assets` | object
|
|
15
|
+
`omnisendId` | string
|
|
16
|
+
`omnisendSyncStatus` | string
|
|
17
|
+
`createdAt` | Date
|
|
18
|
+
`updatedAt` | Date
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { ProductRegistrationResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"id": null,
|
|
28
|
+
"purchasedDate": null,
|
|
29
|
+
"customer": null,
|
|
30
|
+
"address": null,
|
|
31
|
+
"productChildren": null,
|
|
32
|
+
"assets": null,
|
|
33
|
+
"omnisendId": null,
|
|
34
|
+
"omnisendSyncStatus": null,
|
|
35
|
+
"createdAt": null,
|
|
36
|
+
"updatedAt": null,
|
|
37
|
+
} satisfies ProductRegistrationResource
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationResource
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
package/docs/{MenuItemLinkResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductRegistrationResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ProductRegistrationResource>](ProductRegistrationResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ProductRegistrationResourceArrayResponse } 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 ProductRegistrationResourceArrayResponse
|
|
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 ProductRegistrationResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
GenericResponse,
|
|
19
|
-
|
|
19
|
+
GetHierarchyProductCategoryRequest,
|
|
20
20
|
} from '../models/index';
|
|
21
21
|
import {
|
|
22
22
|
GenericResponseFromJSON,
|
|
23
23
|
GenericResponseToJSON,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
GetHierarchyProductCategoryRequestFromJSON,
|
|
25
|
+
GetHierarchyProductCategoryRequestToJSON,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface GenerateGoogleFeedAdminRequest {
|
|
29
|
-
|
|
29
|
+
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export interface GenerateSocialFeedAdminRequest {
|
|
33
|
-
|
|
33
|
+
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export interface GenerateTGNDataFeedAdminRequest {
|
|
37
|
-
|
|
37
|
+
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -60,7 +60,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
60
60
|
method: 'POST',
|
|
61
61
|
headers: headerParameters,
|
|
62
62
|
query: queryParameters,
|
|
63
|
-
body:
|
|
63
|
+
body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -100,7 +100,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
100
100
|
method: 'POST',
|
|
101
101
|
headers: headerParameters,
|
|
102
102
|
query: queryParameters,
|
|
103
|
-
body:
|
|
103
|
+
body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -140,7 +140,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
140
140
|
method: 'POST',
|
|
141
141
|
headers: headerParameters,
|
|
142
142
|
query: queryParameters,
|
|
143
|
-
body:
|
|
143
|
+
body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
DetachProductsProductCategoryRequest,
|
|
20
20
|
GenericResponse,
|
|
21
21
|
GetAllProductCategoryRequest,
|
|
22
|
-
|
|
22
|
+
GetHierarchyProductCategoryRequest,
|
|
23
23
|
IndexProductCategoryRequest,
|
|
24
24
|
PaginatedProductCategoryListResourceResponse,
|
|
25
25
|
PreviewAutomationRulesProductCategoryRequest,
|
|
@@ -40,8 +40,8 @@ import {
|
|
|
40
40
|
GenericResponseToJSON,
|
|
41
41
|
GetAllProductCategoryRequestFromJSON,
|
|
42
42
|
GetAllProductCategoryRequestToJSON,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
GetHierarchyProductCategoryRequestFromJSON,
|
|
44
|
+
GetHierarchyProductCategoryRequestToJSON,
|
|
45
45
|
IndexProductCategoryRequestFromJSON,
|
|
46
46
|
IndexProductCategoryRequestToJSON,
|
|
47
47
|
PaginatedProductCategoryListResourceResponseFromJSON,
|
|
@@ -96,8 +96,8 @@ export interface GetChildrenProductCategoryRequest {
|
|
|
96
96
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export interface
|
|
100
|
-
|
|
99
|
+
export interface GetHierarchyProductCategoryOperationRequest {
|
|
100
|
+
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
export interface IndexProductCategoryOperationRequest {
|
|
@@ -451,7 +451,7 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
451
451
|
/**
|
|
452
452
|
* Creates request options for getHierarchyProductCategory without sending the request
|
|
453
453
|
*/
|
|
454
|
-
async getHierarchyProductCategoryRequestOpts(requestParameters:
|
|
454
|
+
async getHierarchyProductCategoryRequestOpts(requestParameters: GetHierarchyProductCategoryOperationRequest): Promise<runtime.RequestOpts> {
|
|
455
455
|
const queryParameters: any = {};
|
|
456
456
|
|
|
457
457
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -466,14 +466,14 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
466
466
|
method: 'POST',
|
|
467
467
|
headers: headerParameters,
|
|
468
468
|
query: queryParameters,
|
|
469
|
-
body:
|
|
469
|
+
body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
/**
|
|
474
474
|
* Auto-generated: getHierarchyProductCategory
|
|
475
475
|
*/
|
|
476
|
-
async getHierarchyProductCategoryRaw(requestParameters:
|
|
476
|
+
async getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
|
|
477
477
|
const requestOptions = await this.getHierarchyProductCategoryRequestOpts(requestParameters);
|
|
478
478
|
const response = await this.request(requestOptions, initOverrides);
|
|
479
479
|
|
|
@@ -483,7 +483,7 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
483
483
|
/**
|
|
484
484
|
* Auto-generated: getHierarchyProductCategory
|
|
485
485
|
*/
|
|
486
|
-
async getHierarchyProductCategory(requestParameters:
|
|
486
|
+
async getHierarchyProductCategory(requestParameters: GetHierarchyProductCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse> {
|
|
487
487
|
const response = await this.getHierarchyProductCategoryRaw(requestParameters, initOverrides);
|
|
488
488
|
return await response.value();
|
|
489
489
|
}
|
|
@@ -0,0 +1,238 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
GetAllProductRegistrationRequest,
|
|
19
|
+
IndexProductRegistrationRequest,
|
|
20
|
+
ListAssetsProductRegistrationRequest,
|
|
21
|
+
PaginatedProductRegistrationAssetResourceResponse,
|
|
22
|
+
PaginatedProductRegistrationListResourceResponse,
|
|
23
|
+
ProductRegistrationLiteResourceArrayResponse,
|
|
24
|
+
ProductRegistrationResource,
|
|
25
|
+
} from '../models/index';
|
|
26
|
+
import {
|
|
27
|
+
GetAllProductRegistrationRequestFromJSON,
|
|
28
|
+
GetAllProductRegistrationRequestToJSON,
|
|
29
|
+
IndexProductRegistrationRequestFromJSON,
|
|
30
|
+
IndexProductRegistrationRequestToJSON,
|
|
31
|
+
ListAssetsProductRegistrationRequestFromJSON,
|
|
32
|
+
ListAssetsProductRegistrationRequestToJSON,
|
|
33
|
+
PaginatedProductRegistrationAssetResourceResponseFromJSON,
|
|
34
|
+
PaginatedProductRegistrationAssetResourceResponseToJSON,
|
|
35
|
+
PaginatedProductRegistrationListResourceResponseFromJSON,
|
|
36
|
+
PaginatedProductRegistrationListResourceResponseToJSON,
|
|
37
|
+
ProductRegistrationLiteResourceArrayResponseFromJSON,
|
|
38
|
+
ProductRegistrationLiteResourceArrayResponseToJSON,
|
|
39
|
+
ProductRegistrationResourceFromJSON,
|
|
40
|
+
ProductRegistrationResourceToJSON,
|
|
41
|
+
} from '../models/index';
|
|
42
|
+
|
|
43
|
+
export interface GetAllProductRegistrationOperationRequest {
|
|
44
|
+
getAllProductRegistrationRequest?: GetAllProductRegistrationRequest;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface IndexProductRegistrationOperationRequest {
|
|
48
|
+
indexProductRegistrationRequest?: IndexProductRegistrationRequest;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ListAssetsProductRegistrationOperationRequest {
|
|
52
|
+
productRegistration: number;
|
|
53
|
+
listAssetsProductRegistrationRequest?: ListAssetsProductRegistrationRequest;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ShowProductRegistrationRequest {
|
|
57
|
+
productRegistration: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export class ProductRegistrationApi extends runtime.BaseAPI {
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Creates request options for getAllProductRegistration without sending the request
|
|
67
|
+
*/
|
|
68
|
+
async getAllProductRegistrationRequestOpts(requestParameters: GetAllProductRegistrationOperationRequest): Promise<runtime.RequestOpts> {
|
|
69
|
+
const queryParameters: any = {};
|
|
70
|
+
|
|
71
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
|
+
|
|
73
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
let urlPath = `/admin-api/product-registration/all`;
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
path: urlPath,
|
|
80
|
+
method: 'POST',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
body: GetAllProductRegistrationRequestToJSON(requestParameters['getAllProductRegistrationRequest']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Auto-generated: getAllProductRegistration
|
|
89
|
+
*/
|
|
90
|
+
async getAllProductRegistrationRaw(requestParameters: GetAllProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationLiteResourceArrayResponse>> {
|
|
91
|
+
const requestOptions = await this.getAllProductRegistrationRequestOpts(requestParameters);
|
|
92
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
93
|
+
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRegistrationLiteResourceArrayResponseFromJSON(jsonValue));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Auto-generated: getAllProductRegistration
|
|
99
|
+
*/
|
|
100
|
+
async getAllProductRegistration(requestParameters: GetAllProductRegistrationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationLiteResourceArrayResponse> {
|
|
101
|
+
const response = await this.getAllProductRegistrationRaw(requestParameters, initOverrides);
|
|
102
|
+
return await response.value();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Creates request options for indexProductRegistration without sending the request
|
|
107
|
+
*/
|
|
108
|
+
async indexProductRegistrationRequestOpts(requestParameters: IndexProductRegistrationOperationRequest): Promise<runtime.RequestOpts> {
|
|
109
|
+
const queryParameters: any = {};
|
|
110
|
+
|
|
111
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
112
|
+
|
|
113
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
let urlPath = `/admin-api/product-registration/list`;
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
path: urlPath,
|
|
120
|
+
method: 'POST',
|
|
121
|
+
headers: headerParameters,
|
|
122
|
+
query: queryParameters,
|
|
123
|
+
body: IndexProductRegistrationRequestToJSON(requestParameters['indexProductRegistrationRequest']),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Auto-generated: indexProductRegistration
|
|
129
|
+
*/
|
|
130
|
+
async indexProductRegistrationRaw(requestParameters: IndexProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationListResourceResponse>> {
|
|
131
|
+
const requestOptions = await this.indexProductRegistrationRequestOpts(requestParameters);
|
|
132
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
133
|
+
|
|
134
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductRegistrationListResourceResponseFromJSON(jsonValue));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Auto-generated: indexProductRegistration
|
|
139
|
+
*/
|
|
140
|
+
async indexProductRegistration(requestParameters: IndexProductRegistrationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationListResourceResponse> {
|
|
141
|
+
const response = await this.indexProductRegistrationRaw(requestParameters, initOverrides);
|
|
142
|
+
return await response.value();
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Creates request options for listAssetsProductRegistration without sending the request
|
|
147
|
+
*/
|
|
148
|
+
async listAssetsProductRegistrationRequestOpts(requestParameters: ListAssetsProductRegistrationOperationRequest): Promise<runtime.RequestOpts> {
|
|
149
|
+
if (requestParameters['productRegistration'] == null) {
|
|
150
|
+
throw new runtime.RequiredError(
|
|
151
|
+
'productRegistration',
|
|
152
|
+
'Required parameter "productRegistration" was null or undefined when calling listAssetsProductRegistration().'
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const queryParameters: any = {};
|
|
157
|
+
|
|
158
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
159
|
+
|
|
160
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
let urlPath = `/admin-api/product-registration/{productRegistration}/assets`;
|
|
164
|
+
urlPath = urlPath.replace(`{${"productRegistration"}}`, encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
165
|
+
|
|
166
|
+
return {
|
|
167
|
+
path: urlPath,
|
|
168
|
+
method: 'POST',
|
|
169
|
+
headers: headerParameters,
|
|
170
|
+
query: queryParameters,
|
|
171
|
+
body: ListAssetsProductRegistrationRequestToJSON(requestParameters['listAssetsProductRegistrationRequest']),
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Auto-generated: listAssetsProductRegistration
|
|
177
|
+
*/
|
|
178
|
+
async listAssetsProductRegistrationRaw(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationAssetResourceResponse>> {
|
|
179
|
+
const requestOptions = await this.listAssetsProductRegistrationRequestOpts(requestParameters);
|
|
180
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
181
|
+
|
|
182
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductRegistrationAssetResourceResponseFromJSON(jsonValue));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Auto-generated: listAssetsProductRegistration
|
|
187
|
+
*/
|
|
188
|
+
async listAssetsProductRegistration(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationAssetResourceResponse> {
|
|
189
|
+
const response = await this.listAssetsProductRegistrationRaw(requestParameters, initOverrides);
|
|
190
|
+
return await response.value();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Creates request options for showProductRegistration without sending the request
|
|
195
|
+
*/
|
|
196
|
+
async showProductRegistrationRequestOpts(requestParameters: ShowProductRegistrationRequest): Promise<runtime.RequestOpts> {
|
|
197
|
+
if (requestParameters['productRegistration'] == null) {
|
|
198
|
+
throw new runtime.RequiredError(
|
|
199
|
+
'productRegistration',
|
|
200
|
+
'Required parameter "productRegistration" was null or undefined when calling showProductRegistration().'
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const queryParameters: any = {};
|
|
205
|
+
|
|
206
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
let urlPath = `/admin-api/product-registration/{productRegistration}`;
|
|
210
|
+
urlPath = urlPath.replace(`{${"productRegistration"}}`, encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
211
|
+
|
|
212
|
+
return {
|
|
213
|
+
path: urlPath,
|
|
214
|
+
method: 'GET',
|
|
215
|
+
headers: headerParameters,
|
|
216
|
+
query: queryParameters,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Auto-generated: showProductRegistration
|
|
222
|
+
*/
|
|
223
|
+
async showProductRegistrationRaw(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationResource>> {
|
|
224
|
+
const requestOptions = await this.showProductRegistrationRequestOpts(requestParameters);
|
|
225
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
226
|
+
|
|
227
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRegistrationResourceFromJSON(jsonValue));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Auto-generated: showProductRegistration
|
|
232
|
+
*/
|
|
233
|
+
async showProductRegistration(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationResource> {
|
|
234
|
+
const response = await this.showProductRegistrationRaw(requestParameters, initOverrides);
|
|
235
|
+
return await response.value();
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -8,12 +8,11 @@ export * from './DocumentApi';
|
|
|
8
8
|
export * from './ExternalApiLogApi';
|
|
9
9
|
export * from './GoogleCategoryApi';
|
|
10
10
|
export * from './LabelApi';
|
|
11
|
-
export * from './MenuApi';
|
|
12
|
-
export * from './MenuItemsApi';
|
|
13
11
|
export * from './OverlayTemplateApi';
|
|
14
12
|
export * from './ProductApi';
|
|
15
13
|
export * from './ProductCategoryApi';
|
|
16
14
|
export * from './ProductRangeApi';
|
|
15
|
+
export * from './ProductRegistrationApi';
|
|
17
16
|
export * from './ProductTypeApi';
|
|
18
17
|
export * from './SiteApi';
|
|
19
18
|
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 | null;
|
|
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,8 +79,8 @@ 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;
|
|
83
82
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
83
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
84
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
86
86
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -100,9 +100,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
100
|
return {
|
|
101
101
|
|
|
102
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company'],
|
|
103
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
104
104
|
'line1': json['line_1'],
|
|
105
|
-
'line2': json['line_2']
|
|
105
|
+
'line2': json['line_2'],
|
|
106
106
|
'postcode': json['postcode'],
|
|
107
107
|
'suburb': json['suburb'],
|
|
108
108
|
'country': json['country'],
|