@digital8/lighting-illusions-ts-sdk 0.0.1456 → 0.0.1457
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 +40 -74
- package/README.md +25 -56
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/{LabelApi.js → ProductRegistrationApi.js} +57 -174
- package/dist/apis/SupplierApi.d.ts +1 -33
- package/dist/apis/SupplierApi.js +0 -122
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/models/AddressResource.js +6 -6
- package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
- package/dist/models/{GetAllStoreRequest.js → GetAllProductRegistrationRequest.js} +20 -24
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
- package/dist/models/IndexProductRegistrationRequest.js +95 -0
- package/dist/models/LabelResource.d.ts +4 -23
- package/dist/models/LabelResource.js +8 -19
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/{IndexLabelRequest.js → ListAssetsProductRegistrationRequest.js} +22 -31
- 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/ProductRegistrationCustomerLiteResource.d.ts +44 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
- package/dist/models/ProductRegistrationCustomerResource.js +61 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +51 -0
- package/dist/models/ProductRegistrationListResource.js +60 -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/ProductRegistrationResource.d.ts +76 -0
- package/dist/models/ProductRegistrationResource.js +75 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +19 -35
- package/dist/models/index.js +19 -35
- package/docs/{GetAllStoreRequest.md → GetAllProductRegistrationRequest.md} +4 -8
- package/docs/{IndexStoreRequest.md → IndexProductRegistrationRequest.md} +12 -8
- package/docs/LabelResource.md +6 -12
- package/docs/{IndexLabelRequest.md → ListAssetsProductRegistrationRequest.md} +8 -6
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
- package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/{LabelLiteResource.md → ProductRegistrationAssetResource.md} +8 -12
- package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
- package/docs/{DetachStoresSupplierRequest.md → ProductRegistrationAssetType.md} +4 -6
- package/docs/{StoreLiteResource.md → ProductRegistrationCustomerLiteResource.md} +6 -6
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
- package/docs/{UpdateStoreRequestSpecialDatesInner.md → ProductRegistrationCustomerResource.md} +8 -10
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/{StoreSpecialDateResource.md → ProductRegistrationListResource.md} +10 -16
- package/docs/{LabelLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{DetachSuppliersStoreRequest.md → ProductRegistrationLiteResource.md} +8 -6
- package/docs/{AddressFrontendResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductRegistrationResource.md +48 -0
- package/docs/{LabelListResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/SupplierApi.md +0 -138
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/SupplierApi.ts +0 -112
- package/src/apis/index.ts +1 -2
- package/src/models/AddressResource.ts +6 -6
- package/src/models/GetAllProductRegistrationRequest.ts +128 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexProductRegistrationRequest.ts +184 -0
- package/src/models/LabelResource.ts +12 -46
- 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/ProductRegistrationCustomerLiteResource.ts +83 -0
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationCustomerResource.ts +92 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +99 -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/ProductRegistrationResource.ts +141 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +19 -35
- package/dist/apis/LabelApi.d.ts +0 -109
- package/dist/apis/StoreApi.d.ts +0 -190
- package/dist/apis/StoreApi.js +0 -744
- package/dist/models/AddressFrontendResource.d.ts +0 -74
- package/dist/models/AddressFrontendResource.js +0 -75
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
- package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/AttachStoresSupplierRequest.js +0 -51
- package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/AttachSuppliersStoreRequest.js +0 -51
- package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/DetachStoresSupplierRequest.js +0 -51
- package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/DetachSuppliersStoreRequest.js +0 -51
- package/dist/models/GetAllStoreRequest.d.ts +0 -93
- package/dist/models/IndexLabelRequest.d.ts +0 -109
- package/dist/models/IndexStoreRequest.d.ts +0 -105
- package/dist/models/IndexStoreRequest.js +0 -85
- package/dist/models/LabelListResource.d.ts +0 -75
- package/dist/models/LabelListResource.js +0 -74
- package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelListResourceArrayResponse.js +0 -50
- package/dist/models/LabelLiteResource.d.ts +0 -56
- package/dist/models/LabelLiteResource.js +0 -65
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
- package/dist/models/StoreFrontendResource.d.ts +0 -98
- package/dist/models/StoreFrontendResource.js +0 -89
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreLabelRequest.d.ts +0 -74
- package/dist/models/StoreLabelRequest.js +0 -71
- package/dist/models/StoreListResource.d.ts +0 -81
- package/dist/models/StoreListResource.js +0 -80
- package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreListResourceArrayResponse.js +0 -50
- package/dist/models/StoreLiteResource.d.ts +0 -45
- package/dist/models/StoreLiteResource.js +0 -58
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
- package/dist/models/StoreResource.d.ts +0 -102
- package/dist/models/StoreResource.js +0 -95
- package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateFrontendResource.js +0 -71
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateResource.js +0 -71
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
- package/dist/models/StoreStoreRequest.d.ts +0 -94
- package/dist/models/StoreStoreRequest.js +0 -85
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -68
- package/dist/models/StoreStoreRequestAddress.js +0 -73
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -62
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -61
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -62
- package/dist/models/StoreStoreSpecialDateRequest.js +0 -61
- package/dist/models/UpdateLabelRequest.d.ts +0 -74
- package/dist/models/UpdateLabelRequest.js +0 -63
- package/dist/models/UpdateStoreRequest.d.ts +0 -94
- package/dist/models/UpdateStoreRequest.js +0 -85
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +0 -56
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +0 -57
- package/docs/AddressFrontendResource.md +0 -48
- package/docs/AttachStoresSupplierRequest.md +0 -34
- package/docs/AttachSuppliersStoreRequest.md +0 -34
- package/docs/LabelApi.md +0 -407
- package/docs/LabelListResource.md +0 -48
- package/docs/StoreApi.md +0 -755
- package/docs/StoreFrontendResource.md +0 -56
- package/docs/StoreFrontendResourceArrayResponse.md +0 -34
- package/docs/StoreLabelRequest.md +0 -48
- package/docs/StoreListResource.md +0 -50
- package/docs/StoreListResourceArrayResponse.md +0 -34
- package/docs/StoreLiteResourceArrayResponse.md +0 -34
- package/docs/StoreResource.md +0 -56
- package/docs/StoreResourceArrayResponse.md +0 -34
- package/docs/StoreSpecialDateFrontendResource.md +0 -46
- package/docs/StoreSpecialDateResourceArrayResponse.md +0 -34
- package/docs/StoreStoreRequest.md +0 -54
- package/docs/StoreStoreRequestAddress.md +0 -46
- package/docs/StoreStoreRequestSpecialDatesInner.md +0 -44
- package/docs/StoreStoreSpecialDateRequest.md +0 -44
- package/docs/UpdateLabelRequest.md +0 -48
- package/docs/UpdateStoreRequest.md +0 -54
- package/src/apis/LabelApi.ts +0 -328
- package/src/apis/StoreApi.ts +0 -625
- package/src/models/AddressFrontendResource.ts +0 -127
- package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
- package/src/models/AttachStoresSupplierRequest.ts +0 -66
- package/src/models/AttachSuppliersStoreRequest.ts +0 -66
- package/src/models/DetachStoresSupplierRequest.ts +0 -66
- package/src/models/DetachSuppliersStoreRequest.ts +0 -66
- package/src/models/GetAllStoreRequest.ts +0 -144
- package/src/models/IndexLabelRequest.ts +0 -163
- package/src/models/IndexStoreRequest.ts +0 -160
- package/src/models/LabelListResource.ts +0 -134
- package/src/models/LabelListResourceArrayResponse.ts +0 -73
- package/src/models/LabelLiteResource.ts +0 -101
- package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
- package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
- package/src/models/StoreFrontendResource.ts +0 -162
- package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreLabelRequest.ts +0 -125
- package/src/models/StoreListResource.ts +0 -144
- package/src/models/StoreListResourceArrayResponse.ts +0 -73
- package/src/models/StoreLiteResource.ts +0 -91
- package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
- package/src/models/StoreResource.ts +0 -192
- package/src/models/StoreResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateFrontendResource.ts +0 -118
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateResource.ts +0 -118
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
- package/src/models/StoreStoreRequest.ts +0 -167
- package/src/models/StoreStoreRequestAddress.ts +0 -119
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -106
- package/src/models/StoreStoreSpecialDateRequest.ts +0 -106
- package/src/models/UpdateLabelRequest.ts +0 -121
- package/src/models/UpdateStoreRequest.ts +0 -167
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +0 -97
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductRegistrationLiteResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ProductRegistrationLiteResource>](ProductRegistrationLiteResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ProductRegistrationLiteResourceArrayResponse } 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 ProductRegistrationLiteResourceArrayResponse
|
|
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 ProductRegistrationLiteResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductRegistrationResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`purchasedDate` | string
|
|
11
|
+
`customer` | [ProductRegistrationCustomerResource](ProductRegistrationCustomerResource.md)
|
|
12
|
+
`address` | [AddressResource](AddressResource.md)
|
|
13
|
+
`productChildren` | object
|
|
14
|
+
`assets` | object
|
|
15
|
+
`createdAt` | string
|
|
16
|
+
`updatedAt` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { ProductRegistrationResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"id": null,
|
|
26
|
+
"purchasedDate": null,
|
|
27
|
+
"customer": null,
|
|
28
|
+
"address": null,
|
|
29
|
+
"productChildren": null,
|
|
30
|
+
"assets": null,
|
|
31
|
+
"createdAt": null,
|
|
32
|
+
"updatedAt": null,
|
|
33
|
+
} satisfies ProductRegistrationResource
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationResource
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
package/docs/{LabelListResourceArrayResponse.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/docs/SupplierApi.md
CHANGED
|
@@ -4,9 +4,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**attachStoresSupplier**](SupplierApi.md#attachstoressupplieroperation) | **POST** /admin-api/supplier/{supplier}/attach-stores | Auto-generated: attachStoresSupplier |
|
|
8
7
|
| [**destroySupplier**](SupplierApi.md#destroysupplier) | **DELETE** /admin-api/supplier/{supplier}/delete | Auto-generated: destroySupplier |
|
|
9
|
-
| [**detachStoresSupplier**](SupplierApi.md#detachstoressupplieroperation) | **POST** /admin-api/supplier/{supplier}/detach-stores | Auto-generated: detachStoresSupplier |
|
|
10
8
|
| [**exportSupplier**](SupplierApi.md#exportsupplier) | **POST** /admin-api/supplier/export | Auto-generated: exportSupplier |
|
|
11
9
|
| [**getAllSupplier**](SupplierApi.md#getallsupplieroperation) | **POST** /admin-api/supplier/all | Auto-generated: getAllSupplier |
|
|
12
10
|
| [**importSupplier**](SupplierApi.md#importsupplier) | **POST** /admin-api/supplier/import | Auto-generated: importSupplier |
|
|
@@ -17,74 +15,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
17
15
|
|
|
18
16
|
|
|
19
17
|
|
|
20
|
-
## attachStoresSupplier
|
|
21
|
-
|
|
22
|
-
> SupplierResource attachStoresSupplier(supplier, attachStoresSupplierRequest)
|
|
23
|
-
|
|
24
|
-
Auto-generated: attachStoresSupplier
|
|
25
|
-
|
|
26
|
-
### Example
|
|
27
|
-
|
|
28
|
-
```ts
|
|
29
|
-
import {
|
|
30
|
-
Configuration,
|
|
31
|
-
SupplierApi,
|
|
32
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
33
|
-
import type { AttachStoresSupplierOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
34
|
-
|
|
35
|
-
async function example() {
|
|
36
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
37
|
-
const api = new SupplierApi();
|
|
38
|
-
|
|
39
|
-
const body = {
|
|
40
|
-
// number | The id of the supplier
|
|
41
|
-
supplier: 56,
|
|
42
|
-
// AttachStoresSupplierRequest (optional)
|
|
43
|
-
attachStoresSupplierRequest: ...,
|
|
44
|
-
} satisfies AttachStoresSupplierOperationRequest;
|
|
45
|
-
|
|
46
|
-
try {
|
|
47
|
-
const data = await api.attachStoresSupplier(body);
|
|
48
|
-
console.log(data);
|
|
49
|
-
} catch (error) {
|
|
50
|
-
console.error(error);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Run the test
|
|
55
|
-
example().catch(console.error);
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Parameters
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
| Name | Type | Description | Notes |
|
|
62
|
-
|------------- | ------------- | ------------- | -------------|
|
|
63
|
-
| **supplier** | `number` | The id of the supplier | [Defaults to `undefined`] |
|
|
64
|
-
| **attachStoresSupplierRequest** | [AttachStoresSupplierRequest](AttachStoresSupplierRequest.md) | | [Optional] |
|
|
65
|
-
|
|
66
|
-
### Return type
|
|
67
|
-
|
|
68
|
-
[**SupplierResource**](SupplierResource.md)
|
|
69
|
-
|
|
70
|
-
### Authorization
|
|
71
|
-
|
|
72
|
-
No authorization required
|
|
73
|
-
|
|
74
|
-
### HTTP request headers
|
|
75
|
-
|
|
76
|
-
- **Content-Type**: `application/json`
|
|
77
|
-
- **Accept**: `application/json`
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### HTTP response details
|
|
81
|
-
| Status code | Description | Response headers |
|
|
82
|
-
|-------------|-------------|------------------|
|
|
83
|
-
| **200** | Successful resource response | - |
|
|
84
|
-
|
|
85
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
86
|
-
|
|
87
|
-
|
|
88
18
|
## destroySupplier
|
|
89
19
|
|
|
90
20
|
> GenericResponse destroySupplier(supplier)
|
|
@@ -150,74 +80,6 @@ No authorization required
|
|
|
150
80
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
151
81
|
|
|
152
82
|
|
|
153
|
-
## detachStoresSupplier
|
|
154
|
-
|
|
155
|
-
> SupplierResource detachStoresSupplier(supplier, detachStoresSupplierRequest)
|
|
156
|
-
|
|
157
|
-
Auto-generated: detachStoresSupplier
|
|
158
|
-
|
|
159
|
-
### Example
|
|
160
|
-
|
|
161
|
-
```ts
|
|
162
|
-
import {
|
|
163
|
-
Configuration,
|
|
164
|
-
SupplierApi,
|
|
165
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
166
|
-
import type { DetachStoresSupplierOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
167
|
-
|
|
168
|
-
async function example() {
|
|
169
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
170
|
-
const api = new SupplierApi();
|
|
171
|
-
|
|
172
|
-
const body = {
|
|
173
|
-
// number | The id of the supplier
|
|
174
|
-
supplier: 56,
|
|
175
|
-
// DetachStoresSupplierRequest (optional)
|
|
176
|
-
detachStoresSupplierRequest: ...,
|
|
177
|
-
} satisfies DetachStoresSupplierOperationRequest;
|
|
178
|
-
|
|
179
|
-
try {
|
|
180
|
-
const data = await api.detachStoresSupplier(body);
|
|
181
|
-
console.log(data);
|
|
182
|
-
} catch (error) {
|
|
183
|
-
console.error(error);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// Run the test
|
|
188
|
-
example().catch(console.error);
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### Parameters
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
| Name | Type | Description | Notes |
|
|
195
|
-
|------------- | ------------- | ------------- | -------------|
|
|
196
|
-
| **supplier** | `number` | The id of the supplier | [Defaults to `undefined`] |
|
|
197
|
-
| **detachStoresSupplierRequest** | [DetachStoresSupplierRequest](DetachStoresSupplierRequest.md) | | [Optional] |
|
|
198
|
-
|
|
199
|
-
### Return type
|
|
200
|
-
|
|
201
|
-
[**SupplierResource**](SupplierResource.md)
|
|
202
|
-
|
|
203
|
-
### Authorization
|
|
204
|
-
|
|
205
|
-
No authorization required
|
|
206
|
-
|
|
207
|
-
### HTTP request headers
|
|
208
|
-
|
|
209
|
-
- **Content-Type**: `application/json`
|
|
210
|
-
- **Accept**: `application/json`
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
### HTTP response details
|
|
214
|
-
| Status code | Description | Response headers |
|
|
215
|
-
|-------------|-------------|------------------|
|
|
216
|
-
| **200** | Successful resource response | - |
|
|
217
|
-
|
|
218
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
219
|
-
|
|
220
|
-
|
|
221
83
|
## exportSupplier
|
|
222
84
|
|
|
223
85
|
> Blob exportSupplier(indexSupplierRequest)
|
package/package.json
CHANGED
|
@@ -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/SupplierApi.ts
CHANGED
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
AttachStoresSupplierRequest,
|
|
19
|
-
DetachStoresSupplierRequest,
|
|
20
18
|
GenericResponse,
|
|
21
19
|
GetAllSupplierRequest,
|
|
22
20
|
IndexSupplierRequest,
|
|
@@ -27,10 +25,6 @@ import type {
|
|
|
27
25
|
UpdateSupplierRequest,
|
|
28
26
|
} from '../models/index';
|
|
29
27
|
import {
|
|
30
|
-
AttachStoresSupplierRequestFromJSON,
|
|
31
|
-
AttachStoresSupplierRequestToJSON,
|
|
32
|
-
DetachStoresSupplierRequestFromJSON,
|
|
33
|
-
DetachStoresSupplierRequestToJSON,
|
|
34
28
|
GenericResponseFromJSON,
|
|
35
29
|
GenericResponseToJSON,
|
|
36
30
|
GetAllSupplierRequestFromJSON,
|
|
@@ -49,20 +43,10 @@ import {
|
|
|
49
43
|
UpdateSupplierRequestToJSON,
|
|
50
44
|
} from '../models/index';
|
|
51
45
|
|
|
52
|
-
export interface AttachStoresSupplierOperationRequest {
|
|
53
|
-
supplier: number;
|
|
54
|
-
attachStoresSupplierRequest?: AttachStoresSupplierRequest;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
46
|
export interface DestroySupplierRequest {
|
|
58
47
|
supplier: number;
|
|
59
48
|
}
|
|
60
49
|
|
|
61
|
-
export interface DetachStoresSupplierOperationRequest {
|
|
62
|
-
supplier: number;
|
|
63
|
-
detachStoresSupplierRequest?: DetachStoresSupplierRequest;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
50
|
export interface ExportSupplierRequest {
|
|
67
51
|
indexSupplierRequest?: IndexSupplierRequest;
|
|
68
52
|
}
|
|
@@ -97,54 +81,6 @@ export interface UpdateSupplierOperationRequest {
|
|
|
97
81
|
*/
|
|
98
82
|
export class SupplierApi extends runtime.BaseAPI {
|
|
99
83
|
|
|
100
|
-
/**
|
|
101
|
-
* Creates request options for attachStoresSupplier without sending the request
|
|
102
|
-
*/
|
|
103
|
-
async attachStoresSupplierRequestOpts(requestParameters: AttachStoresSupplierOperationRequest): Promise<runtime.RequestOpts> {
|
|
104
|
-
if (requestParameters['supplier'] == null) {
|
|
105
|
-
throw new runtime.RequiredError(
|
|
106
|
-
'supplier',
|
|
107
|
-
'Required parameter "supplier" was null or undefined when calling attachStoresSupplier().'
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const queryParameters: any = {};
|
|
112
|
-
|
|
113
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
114
|
-
|
|
115
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
let urlPath = `/admin-api/supplier/{supplier}/attach-stores`;
|
|
119
|
-
urlPath = urlPath.replace(`{${"supplier"}}`, encodeURIComponent(String(requestParameters['supplier'])));
|
|
120
|
-
|
|
121
|
-
return {
|
|
122
|
-
path: urlPath,
|
|
123
|
-
method: 'POST',
|
|
124
|
-
headers: headerParameters,
|
|
125
|
-
query: queryParameters,
|
|
126
|
-
body: AttachStoresSupplierRequestToJSON(requestParameters['attachStoresSupplierRequest']),
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Auto-generated: attachStoresSupplier
|
|
132
|
-
*/
|
|
133
|
-
async attachStoresSupplierRaw(requestParameters: AttachStoresSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupplierResource>> {
|
|
134
|
-
const requestOptions = await this.attachStoresSupplierRequestOpts(requestParameters);
|
|
135
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
136
|
-
|
|
137
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SupplierResourceFromJSON(jsonValue));
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Auto-generated: attachStoresSupplier
|
|
142
|
-
*/
|
|
143
|
-
async attachStoresSupplier(requestParameters: AttachStoresSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupplierResource> {
|
|
144
|
-
const response = await this.attachStoresSupplierRaw(requestParameters, initOverrides);
|
|
145
|
-
return await response.value();
|
|
146
|
-
}
|
|
147
|
-
|
|
148
84
|
/**
|
|
149
85
|
* Creates request options for destroySupplier without sending the request
|
|
150
86
|
*/
|
|
@@ -190,54 +126,6 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
190
126
|
return await response.value();
|
|
191
127
|
}
|
|
192
128
|
|
|
193
|
-
/**
|
|
194
|
-
* Creates request options for detachStoresSupplier without sending the request
|
|
195
|
-
*/
|
|
196
|
-
async detachStoresSupplierRequestOpts(requestParameters: DetachStoresSupplierOperationRequest): Promise<runtime.RequestOpts> {
|
|
197
|
-
if (requestParameters['supplier'] == null) {
|
|
198
|
-
throw new runtime.RequiredError(
|
|
199
|
-
'supplier',
|
|
200
|
-
'Required parameter "supplier" was null or undefined when calling detachStoresSupplier().'
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
const queryParameters: any = {};
|
|
205
|
-
|
|
206
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
207
|
-
|
|
208
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
let urlPath = `/admin-api/supplier/{supplier}/detach-stores`;
|
|
212
|
-
urlPath = urlPath.replace(`{${"supplier"}}`, encodeURIComponent(String(requestParameters['supplier'])));
|
|
213
|
-
|
|
214
|
-
return {
|
|
215
|
-
path: urlPath,
|
|
216
|
-
method: 'POST',
|
|
217
|
-
headers: headerParameters,
|
|
218
|
-
query: queryParameters,
|
|
219
|
-
body: DetachStoresSupplierRequestToJSON(requestParameters['detachStoresSupplierRequest']),
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Auto-generated: detachStoresSupplier
|
|
225
|
-
*/
|
|
226
|
-
async detachStoresSupplierRaw(requestParameters: DetachStoresSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupplierResource>> {
|
|
227
|
-
const requestOptions = await this.detachStoresSupplierRequestOpts(requestParameters);
|
|
228
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
229
|
-
|
|
230
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SupplierResourceFromJSON(jsonValue));
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Auto-generated: detachStoresSupplier
|
|
235
|
-
*/
|
|
236
|
-
async detachStoresSupplier(requestParameters: DetachStoresSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupplierResource> {
|
|
237
|
-
const response = await this.detachStoresSupplierRaw(requestParameters, initOverrides);
|
|
238
|
-
return await response.value();
|
|
239
|
-
}
|
|
240
|
-
|
|
241
129
|
/**
|
|
242
130
|
* Creates request options for exportSupplier without sending the request
|
|
243
131
|
*/
|
package/src/apis/index.ts
CHANGED
|
@@ -7,13 +7,12 @@ export * from './DefinitionApi';
|
|
|
7
7
|
export * from './DocumentApi';
|
|
8
8
|
export * from './ExternalApiLogApi';
|
|
9
9
|
export * from './GoogleCategoryApi';
|
|
10
|
-
export * from './LabelApi';
|
|
11
10
|
export * from './OverlayTemplateApi';
|
|
12
11
|
export * from './ProductApi';
|
|
13
12
|
export * from './ProductCategoryApi';
|
|
14
13
|
export * from './ProductRangeApi';
|
|
14
|
+
export * from './ProductRegistrationApi';
|
|
15
15
|
export * from './ProductTypeApi';
|
|
16
16
|
export * from './SiteApi';
|
|
17
|
-
export * from './StoreApi';
|
|
18
17
|
export * from './SupplierApi';
|
|
19
18
|
export * from './TagApi';
|