@digital8/lighting-illusions-ts-sdk 0.0.1452 → 0.0.1453
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 +74 -40
- package/README.md +56 -25
- package/dist/apis/LabelApi.d.ts +109 -0
- package/dist/apis/{ProductRegistrationApi.js → LabelApi.js} +174 -57
- package/dist/apis/StoreApi.d.ts +190 -0
- package/dist/apis/StoreApi.js +744 -0
- package/dist/apis/SupplierApi.d.ts +33 -1
- package/dist/apis/SupplierApi.js +122 -0
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/models/AddressFrontendResource.d.ts +74 -0
- package/dist/models/AddressFrontendResource.js +77 -0
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressFrontendResourceArrayResponse.js +50 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +9 -7
- package/dist/models/AttachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/AttachStoresSupplierRequest.js +51 -0
- package/dist/models/AttachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/AttachSuppliersStoreRequest.js +51 -0
- package/dist/models/DetachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/DetachStoresSupplierRequest.js +51 -0
- package/dist/models/DetachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/DetachSuppliersStoreRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllStoreRequest.d.ts +93 -0
- package/dist/models/{GetAllProductRegistrationRequest.js → GetAllStoreRequest.js} +24 -20
- package/dist/models/IndexLabelRequest.d.ts +109 -0
- package/dist/models/{ListAssetsProductRegistrationRequest.js → IndexLabelRequest.js} +31 -22
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexStoreRequest.d.ts +105 -0
- package/dist/models/IndexStoreRequest.js +85 -0
- package/dist/models/LabelListResource.d.ts +75 -0
- package/dist/models/LabelListResource.js +74 -0
- package/dist/models/LabelListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelListResourceArrayResponse.js +50 -0
- package/dist/models/LabelLiteResource.d.ts +56 -0
- package/dist/models/LabelLiteResource.js +65 -0
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelLiteResourceArrayResponse.js +50 -0
- package/dist/models/LabelResource.d.ts +23 -4
- package/dist/models/LabelResource.js +19 -8
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLabelListResourceResponse.js +57 -0
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedStoreListResourceResponse.js +57 -0
- package/dist/models/StoreFrontendResource.d.ts +98 -0
- package/dist/models/StoreFrontendResource.js +89 -0
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreFrontendResourceArrayResponse.js +50 -0
- package/dist/models/StoreLabelRequest.d.ts +74 -0
- package/dist/models/StoreLabelRequest.js +71 -0
- package/dist/models/StoreListResource.d.ts +81 -0
- package/dist/models/StoreListResource.js +78 -0
- package/dist/models/StoreListResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreListResourceArrayResponse.js +50 -0
- package/dist/models/StoreLiteResource.d.ts +45 -0
- package/dist/models/StoreLiteResource.js +58 -0
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +102 -0
- package/dist/models/StoreResource.js +95 -0
- package/dist/models/StoreResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +68 -0
- package/dist/models/StoreSpecialDateFrontendResource.js +73 -0
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateResource.d.ts +68 -0
- package/dist/models/StoreSpecialDateResource.js +73 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +50 -0
- package/dist/models/StoreStoreRequest.d.ts +94 -0
- package/dist/models/StoreStoreRequest.js +85 -0
- package/dist/models/StoreStoreRequestAddress.d.ts +68 -0
- package/dist/models/StoreStoreRequestAddress.js +73 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +62 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +61 -0
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +62 -0
- package/dist/models/StoreStoreSpecialDateRequest.js +61 -0
- package/dist/models/UpdateLabelRequest.d.ts +74 -0
- package/dist/models/UpdateLabelRequest.js +63 -0
- package/dist/models/UpdateStoreRequest.d.ts +94 -0
- package/dist/models/UpdateStoreRequest.js +85 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/index.d.ts +35 -19
- package/dist/models/index.js +35 -19
- package/docs/{PaginatedProductRegistrationAssetResourceResponse.md → AddressFrontendResource.md} +20 -8
- package/docs/{ProductRegistrationResourceArrayResponse.md → AddressFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationAssetType.md → AttachStoresSupplierRequest.md} +6 -4
- package/docs/{ProductRegistrationLiteResource.md → AttachSuppliersStoreRequest.md} +6 -8
- package/docs/DetachStoresSupplierRequest.md +34 -0
- package/docs/DetachSuppliersStoreRequest.md +34 -0
- package/docs/{GetAllProductRegistrationRequest.md → GetAllStoreRequest.md} +8 -4
- package/docs/{ListAssetsProductRegistrationRequest.md → IndexLabelRequest.md} +6 -8
- package/docs/{IndexProductRegistrationRequest.md → IndexStoreRequest.md} +8 -12
- package/docs/LabelApi.md +407 -0
- package/docs/LabelListResource.md +48 -0
- package/docs/LabelListResourceArrayResponse.md +34 -0
- package/docs/{ProductRegistrationAssetResource.md → LabelLiteResource.md} +12 -8
- package/docs/LabelLiteResourceArrayResponse.md +34 -0
- package/docs/LabelResource.md +12 -6
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedLabelListResourceResponse.md} +5 -5
- package/docs/{PaginatedProductRegistrationListResourceResponse.md → PaginatedStoreListResourceResponse.md} +5 -5
- package/docs/StoreApi.md +755 -0
- package/docs/StoreFrontendResource.md +56 -0
- package/docs/StoreFrontendResourceArrayResponse.md +34 -0
- package/docs/StoreLabelRequest.md +48 -0
- package/docs/StoreListResource.md +50 -0
- package/docs/StoreListResourceArrayResponse.md +34 -0
- package/docs/{ProductRegistrationCustomerLiteResource.md → StoreLiteResource.md} +6 -6
- package/docs/StoreLiteResourceArrayResponse.md +34 -0
- package/docs/StoreResource.md +56 -0
- package/docs/StoreResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateFrontendResource.md +46 -0
- package/docs/{ProductRegistrationAssetResourceArrayResponse.md → StoreSpecialDateFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationListResource.md → StoreSpecialDateResource.md} +16 -10
- package/docs/StoreSpecialDateResourceArrayResponse.md +34 -0
- package/docs/StoreStoreRequest.md +54 -0
- package/docs/StoreStoreRequestAddress.md +46 -0
- package/docs/StoreStoreRequestSpecialDatesInner.md +44 -0
- package/docs/StoreStoreSpecialDateRequest.md +44 -0
- package/docs/SupplierApi.md +138 -0
- package/docs/UpdateLabelRequest.md +48 -0
- package/docs/UpdateStoreRequest.md +54 -0
- package/docs/{ProductRegistrationCustomerResource.md → UpdateStoreRequestSpecialDatesInner.md} +10 -8
- package/package.json +1 -1
- package/src/apis/LabelApi.ts +328 -0
- package/src/apis/StoreApi.ts +625 -0
- package/src/apis/SupplierApi.ts +112 -0
- package/src/apis/index.ts +2 -1
- package/src/models/AddressFrontendResource.ts +128 -0
- package/src/models/AddressFrontendResourceArrayResponse.ts +73 -0
- package/src/models/AddressResource.ts +9 -8
- package/src/models/AttachStoresSupplierRequest.ts +66 -0
- package/src/models/AttachSuppliersStoreRequest.ts +66 -0
- package/src/models/DetachStoresSupplierRequest.ts +66 -0
- package/src/models/DetachSuppliersStoreRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllStoreRequest.ts +144 -0
- package/src/models/IndexLabelRequest.ts +163 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexStoreRequest.ts +160 -0
- package/src/models/LabelListResource.ts +134 -0
- package/src/models/LabelListResourceArrayResponse.ts +73 -0
- package/src/models/LabelLiteResource.ts +101 -0
- package/src/models/LabelLiteResourceArrayResponse.ts +73 -0
- package/src/models/LabelResource.ts +46 -12
- package/src/models/PaginatedLabelListResourceResponse.ts +90 -0
- package/src/models/PaginatedStoreListResourceResponse.ts +90 -0
- package/src/models/StoreFrontendResource.ts +162 -0
- package/src/models/StoreFrontendResourceArrayResponse.ts +73 -0
- package/src/models/StoreLabelRequest.ts +125 -0
- package/src/models/StoreListResource.ts +143 -0
- package/src/models/StoreListResourceArrayResponse.ts +73 -0
- package/src/models/StoreLiteResource.ts +91 -0
- package/src/models/StoreLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +192 -0
- package/src/models/StoreResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateFrontendResource.ts +119 -0
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateResource.ts +119 -0
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +73 -0
- package/src/models/StoreStoreRequest.ts +167 -0
- package/src/models/StoreStoreRequestAddress.ts +119 -0
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +106 -0
- package/src/models/StoreStoreSpecialDateRequest.ts +106 -0
- package/src/models/UpdateLabelRequest.ts +121 -0
- package/src/models/UpdateStoreRequest.ts +167 -0
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
- package/src/models/index.ts +35 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -79
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -81
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -124
- package/dist/models/IndexProductRegistrationRequest.js +0 -95
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- 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/ProductRegistrationCustomerLiteResource.d.ts +0 -44
- package/dist/models/ProductRegistrationCustomerLiteResource.js +0 -57
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -50
- package/dist/models/ProductRegistrationCustomerResource.js +0 -61
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -51
- package/dist/models/ProductRegistrationListResource.js +0 -60
- 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/ProductRegistrationResource.d.ts +0 -76
- package/dist/models/ProductRegistrationResource.js +0 -75
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/ProductRegistrationApi.md +0 -275
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -48
- package/src/apis/ProductRegistrationApi.ts +0 -238
- package/src/models/GetAllProductRegistrationRequest.ts +0 -128
- package/src/models/IndexProductRegistrationRequest.ts +0 -184
- 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/ProductRegistrationCustomerLiteResource.ts +0 -83
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationCustomerResource.ts +0 -92
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -99
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -141
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
package/src/apis/SupplierApi.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AttachStoresSupplierRequest,
|
|
19
|
+
DetachStoresSupplierRequest,
|
|
18
20
|
GenericResponse,
|
|
19
21
|
GetAllSupplierRequest,
|
|
20
22
|
IndexSupplierRequest,
|
|
@@ -25,6 +27,10 @@ import type {
|
|
|
25
27
|
UpdateSupplierRequest,
|
|
26
28
|
} from '../models/index';
|
|
27
29
|
import {
|
|
30
|
+
AttachStoresSupplierRequestFromJSON,
|
|
31
|
+
AttachStoresSupplierRequestToJSON,
|
|
32
|
+
DetachStoresSupplierRequestFromJSON,
|
|
33
|
+
DetachStoresSupplierRequestToJSON,
|
|
28
34
|
GenericResponseFromJSON,
|
|
29
35
|
GenericResponseToJSON,
|
|
30
36
|
GetAllSupplierRequestFromJSON,
|
|
@@ -43,10 +49,20 @@ import {
|
|
|
43
49
|
UpdateSupplierRequestToJSON,
|
|
44
50
|
} from '../models/index';
|
|
45
51
|
|
|
52
|
+
export interface AttachStoresSupplierOperationRequest {
|
|
53
|
+
supplier: number;
|
|
54
|
+
attachStoresSupplierRequest?: AttachStoresSupplierRequest;
|
|
55
|
+
}
|
|
56
|
+
|
|
46
57
|
export interface DestroySupplierRequest {
|
|
47
58
|
supplier: number;
|
|
48
59
|
}
|
|
49
60
|
|
|
61
|
+
export interface DetachStoresSupplierOperationRequest {
|
|
62
|
+
supplier: number;
|
|
63
|
+
detachStoresSupplierRequest?: DetachStoresSupplierRequest;
|
|
64
|
+
}
|
|
65
|
+
|
|
50
66
|
export interface ExportSupplierRequest {
|
|
51
67
|
indexSupplierRequest?: IndexSupplierRequest;
|
|
52
68
|
}
|
|
@@ -81,6 +97,54 @@ export interface UpdateSupplierOperationRequest {
|
|
|
81
97
|
*/
|
|
82
98
|
export class SupplierApi extends runtime.BaseAPI {
|
|
83
99
|
|
|
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
|
+
|
|
84
148
|
/**
|
|
85
149
|
* Creates request options for destroySupplier without sending the request
|
|
86
150
|
*/
|
|
@@ -126,6 +190,54 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
126
190
|
return await response.value();
|
|
127
191
|
}
|
|
128
192
|
|
|
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
|
+
|
|
129
241
|
/**
|
|
130
242
|
* Creates request options for exportSupplier without sending the request
|
|
131
243
|
*/
|
package/src/apis/index.ts
CHANGED
|
@@ -7,12 +7,13 @@ export * from './DefinitionApi';
|
|
|
7
7
|
export * from './DocumentApi';
|
|
8
8
|
export * from './ExternalApiLogApi';
|
|
9
9
|
export * from './GoogleCategoryApi';
|
|
10
|
+
export * from './LabelApi';
|
|
10
11
|
export * from './OverlayTemplateApi';
|
|
11
12
|
export * from './ProductApi';
|
|
12
13
|
export * from './ProductCategoryApi';
|
|
13
14
|
export * from './ProductRangeApi';
|
|
14
|
-
export * from './ProductRegistrationApi';
|
|
15
15
|
export * from './ProductTypeApi';
|
|
16
16
|
export * from './SiteApi';
|
|
17
|
+
export * from './StoreApi';
|
|
17
18
|
export * from './SupplierApi';
|
|
18
19
|
export * from './TagApi';
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AddressFrontendResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AddressFrontendResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AddressFrontendResource
|
|
26
|
+
*/
|
|
27
|
+
company: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AddressFrontendResource
|
|
32
|
+
*/
|
|
33
|
+
line1: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AddressFrontendResource
|
|
38
|
+
*/
|
|
39
|
+
line2?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AddressFrontendResource
|
|
44
|
+
*/
|
|
45
|
+
postcode: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AddressFrontendResource
|
|
50
|
+
*/
|
|
51
|
+
suburb: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AddressFrontendResource
|
|
56
|
+
*/
|
|
57
|
+
country: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AddressFrontendResource
|
|
62
|
+
*/
|
|
63
|
+
state: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof AddressFrontendResource
|
|
68
|
+
*/
|
|
69
|
+
fullAddress: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
|
+
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
+
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
|
+
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
80
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
81
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
82
|
+
if (!('fullAddress' in value) || value['fullAddress'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function AddressFrontendResourceFromJSON(json: any): AddressFrontendResource {
|
|
87
|
+
return AddressFrontendResourceFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressFrontendResource {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'company': json['company'],
|
|
97
|
+
'line1': json['line1'],
|
|
98
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
99
|
+
'postcode': json['postcode'],
|
|
100
|
+
'suburb': json['suburb'],
|
|
101
|
+
'country': json['country'],
|
|
102
|
+
'state': json['state'],
|
|
103
|
+
'fullAddress': json['fullAddress'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function AddressFrontendResourceToJSON(json: any): AddressFrontendResource {
|
|
108
|
+
return AddressFrontendResourceToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function AddressFrontendResourceToJSONTyped(value?: AddressFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'company': value['company'],
|
|
119
|
+
'line1': value['line1'],
|
|
120
|
+
'line2': value['line2'],
|
|
121
|
+
'postcode': value['postcode'],
|
|
122
|
+
'suburb': value['suburb'],
|
|
123
|
+
'country': value['country'],
|
|
124
|
+
'state': value['state'],
|
|
125
|
+
'fullAddress': value['fullAddress'],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AddressFrontendResource } from './AddressFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
AddressFrontendResourceFromJSON,
|
|
19
|
+
AddressFrontendResourceFromJSONTyped,
|
|
20
|
+
AddressFrontendResourceToJSON,
|
|
21
|
+
AddressFrontendResourceToJSONTyped,
|
|
22
|
+
} from './AddressFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AddressFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AddressFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AddressFrontendResource>}
|
|
33
|
+
* @memberof AddressFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AddressFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AddressFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAddressFrontendResourceArrayResponse(value: object): value is AddressFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AddressFrontendResourceArrayResponseFromJSON(json: any): AddressFrontendResourceArrayResponse {
|
|
46
|
+
return AddressFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AddressFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AddressFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AddressFrontendResourceArrayResponseToJSON(json: any): AddressFrontendResourceArrayResponse {
|
|
60
|
+
return AddressFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AddressFrontendResourceArrayResponseToJSONTyped(value?: AddressFrontendResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(AddressFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,6 +79,7 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
82
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
83
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
84
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -99,14 +100,14 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
99
100
|
return {
|
|
100
101
|
|
|
101
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
|
-
'company': json['company']
|
|
103
|
-
'line1': json['
|
|
104
|
-
'line2': json['
|
|
103
|
+
'company': json['company'],
|
|
104
|
+
'line1': json['line_1'],
|
|
105
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
105
106
|
'postcode': json['postcode'],
|
|
106
107
|
'suburb': json['suburb'],
|
|
107
108
|
'country': json['country'],
|
|
108
109
|
'state': json['state'],
|
|
109
|
-
'fullAddress': json['
|
|
110
|
+
'fullAddress': json['full_address'],
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
113
|
|
|
@@ -123,13 +124,13 @@ export function AddressResourceToJSONTyped(value?: AddressResource | null, ignor
|
|
|
123
124
|
|
|
124
125
|
'id': value['id'],
|
|
125
126
|
'company': value['company'],
|
|
126
|
-
'
|
|
127
|
-
'
|
|
127
|
+
'line_1': value['line1'],
|
|
128
|
+
'line_2': value['line2'],
|
|
128
129
|
'postcode': value['postcode'],
|
|
129
130
|
'suburb': value['suburb'],
|
|
130
131
|
'country': value['country'],
|
|
131
132
|
'state': value['state'],
|
|
132
|
-
'
|
|
133
|
+
'full_address': value['fullAddress'],
|
|
133
134
|
};
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttachStoresSupplierRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachStoresSupplierRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof AttachStoresSupplierRequest
|
|
26
|
+
*/
|
|
27
|
+
storeIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AttachStoresSupplierRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAttachStoresSupplierRequest(value: object): value is AttachStoresSupplierRequest {
|
|
34
|
+
if (!('storeIds' in value) || value['storeIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AttachStoresSupplierRequestFromJSON(json: any): AttachStoresSupplierRequest {
|
|
39
|
+
return AttachStoresSupplierRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AttachStoresSupplierRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachStoresSupplierRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'storeIds': json['store_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AttachStoresSupplierRequestToJSON(json: any): AttachStoresSupplierRequest {
|
|
53
|
+
return AttachStoresSupplierRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AttachStoresSupplierRequestToJSONTyped(value?: AttachStoresSupplierRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'store_ids': value['storeIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttachSuppliersStoreRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachSuppliersStoreRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof AttachSuppliersStoreRequest
|
|
26
|
+
*/
|
|
27
|
+
supplierIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AttachSuppliersStoreRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAttachSuppliersStoreRequest(value: object): value is AttachSuppliersStoreRequest {
|
|
34
|
+
if (!('supplierIds' in value) || value['supplierIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AttachSuppliersStoreRequestFromJSON(json: any): AttachSuppliersStoreRequest {
|
|
39
|
+
return AttachSuppliersStoreRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AttachSuppliersStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachSuppliersStoreRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'supplierIds': json['supplier_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AttachSuppliersStoreRequestToJSON(json: any): AttachSuppliersStoreRequest {
|
|
53
|
+
return AttachSuppliersStoreRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AttachSuppliersStoreRequestToJSONTyped(value?: AttachSuppliersStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'supplier_ids': value['supplierIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DetachStoresSupplierRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DetachStoresSupplierRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof DetachStoresSupplierRequest
|
|
26
|
+
*/
|
|
27
|
+
storeIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DetachStoresSupplierRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDetachStoresSupplierRequest(value: object): value is DetachStoresSupplierRequest {
|
|
34
|
+
if (!('storeIds' in value) || value['storeIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DetachStoresSupplierRequestFromJSON(json: any): DetachStoresSupplierRequest {
|
|
39
|
+
return DetachStoresSupplierRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DetachStoresSupplierRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachStoresSupplierRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'storeIds': json['store_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DetachStoresSupplierRequestToJSON(json: any): DetachStoresSupplierRequest {
|
|
53
|
+
return DetachStoresSupplierRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DetachStoresSupplierRequestToJSONTyped(value?: DetachStoresSupplierRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'store_ids': value['storeIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DetachSuppliersStoreRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DetachSuppliersStoreRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof DetachSuppliersStoreRequest
|
|
26
|
+
*/
|
|
27
|
+
supplierIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DetachSuppliersStoreRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDetachSuppliersStoreRequest(value: object): value is DetachSuppliersStoreRequest {
|
|
34
|
+
if (!('supplierIds' in value) || value['supplierIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DetachSuppliersStoreRequestFromJSON(json: any): DetachSuppliersStoreRequest {
|
|
39
|
+
return DetachSuppliersStoreRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DetachSuppliersStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachSuppliersStoreRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'supplierIds': json['supplier_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DetachSuppliersStoreRequestToJSON(json: any): DetachSuppliersStoreRequest {
|
|
53
|
+
return DetachSuppliersStoreRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DetachSuppliersStoreRequestToJSONTyped(value?: DetachSuppliersStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'supplier_ids': value['supplierIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|