@lcdp/api-react-rest-client 2.5.2 → 2.5.3-DATA-430-migrer-sur-dbt-cloud.6238224716
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/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +0 -2
- package/product/src/apis/ManageProductApi.js +0 -6
- package/product/src/apis/SearchProductApi.d.ts +0 -1
- package/product/src/apis/SearchProductApi.js +0 -3
- package/product/src/apis/SearchProductMetadataApi.d.ts +0 -22
- package/product/src/apis/SearchProductMetadataApi.js +8 -154
- package/product/src/models/Image.d.ts +0 -7
- package/product/src/models/Image.js +0 -3
- package/product/src/models/Product.d.ts +37 -44
- package/product/src/models/Product.js +31 -33
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
- package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
- package/product/src/models/ProductProscription.d.ts +0 -7
- package/product/src/models/ProductProscription.js +0 -3
- package/product/src/models/{DataProvider.d.ts → ProductProvider.d.ts} +5 -7
- package/product/src/models/ProductProvider.js +38 -0
- package/product/src/models/index.d.ts +1 -6
- package/product/src/models/index.js +1 -6
- package/recommendation/src/apis/SearchProductPriceRecommendationApi.d.ts +2 -2
- package/recommendation/src/apis/SearchProductPriceRecommendationApi.js +2 -2
- package/recommendation/src/models/ProductPriceRecommendation.d.ts +1 -1
- package/recommendation/src/models/ProductPriceRecommendation.js +2 -2
- package/catalog/index.d.ts +0 -1
- package/catalog/index.js +0 -17
- package/catalog/src/apis/ManageProductInsightApi.d.ts +0 -54
- package/catalog/src/apis/ManageProductInsightApi.js +0 -295
- package/catalog/src/apis/SearchProductInsightApi.d.ts +0 -54
- package/catalog/src/apis/SearchProductInsightApi.js +0 -249
- package/catalog/src/apis/index.d.ts +0 -2
- package/catalog/src/apis/index.js +0 -18
- package/catalog/src/index.d.ts +0 -3
- package/catalog/src/index.js +0 -19
- package/catalog/src/models/Barcodes.d.ts +0 -45
- package/catalog/src/models/Barcodes.js +0 -48
- package/catalog/src/models/HttpLink.d.ts +0 -27
- package/catalog/src/models/HttpLink.js +0 -41
- package/catalog/src/models/LaboratoryLink.d.ts +0 -34
- package/catalog/src/models/LaboratoryLink.js +0 -50
- package/catalog/src/models/LaboratoryLinkAllOf.d.ts +0 -33
- package/catalog/src/models/LaboratoryLinkAllOf.js +0 -44
- package/catalog/src/models/PaginatedObject.d.ts +0 -28
- package/catalog/src/models/PaginatedObject.js +0 -42
- package/catalog/src/models/PaginatedProductInsights.d.ts +0 -29
- package/catalog/src/models/PaginatedProductInsights.js +0 -50
- package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +0 -28
- package/catalog/src/models/PaginatedProductInsightsAllOf.js +0 -42
- package/catalog/src/models/PagingMetadata.d.ts +0 -45
- package/catalog/src/models/PagingMetadata.js +0 -47
- package/catalog/src/models/ProductInsight.d.ts +0 -106
- package/catalog/src/models/ProductInsight.js +0 -73
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +0 -89
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +0 -64
- package/catalog/src/models/ProductInsightJournal.d.ts +0 -33
- package/catalog/src/models/ProductInsightJournal.js +0 -44
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -34
- package/catalog/src/models/ProductSecondaryTypeLink.js +0 -50
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +0 -33
- package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +0 -44
- package/catalog/src/models/ProductStorageType.d.ts +0 -25
- package/catalog/src/models/ProductStorageType.js +0 -40
- package/catalog/src/models/ProductTypeLink.d.ts +0 -34
- package/catalog/src/models/ProductTypeLink.js +0 -50
- package/catalog/src/models/ProductTypeLinkAllOf.d.ts +0 -33
- package/catalog/src/models/ProductTypeLinkAllOf.js +0 -44
- package/catalog/src/models/RestError.d.ts +0 -85
- package/catalog/src/models/RestError.js +0 -97
- package/catalog/src/models/VatLink.d.ts +0 -40
- package/catalog/src/models/VatLink.js +0 -50
- package/catalog/src/models/VatLinkAllOf.d.ts +0 -39
- package/catalog/src/models/VatLinkAllOf.js +0 -46
- package/catalog/src/models/index.d.ts +0 -19
- package/catalog/src/models/index.js +0 -35
- package/catalog/src/runtime.d.ts +0 -149
- package/catalog/src/runtime.js +0 -480
- package/product/src/models/DataProvider.js +0 -40
- package/product/src/models/ProductJournal.d.ts +0 -27
- package/product/src/models/ProductJournal.js +0 -41
- package/product/src/models/ProductSource.d.ts +0 -47
- package/product/src/models/ProductSource.js +0 -49
- package/product/src/models/ProductSourceBcb.d.ts +0 -39
- package/product/src/models/ProductSourceBcb.js +0 -46
- package/product/src/models/ProductSourceFields.d.ts +0 -131
- package/product/src/models/ProductSourceFields.js +0 -77
- package/product/src/models/ProductSourceFieldsBarcodes.d.ts +0 -46
- package/product/src/models/ProductSourceFieldsBarcodes.js +0 -48
package/package.json
CHANGED
|
@@ -13,12 +13,10 @@ import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
|
13
13
|
import { Product, ProductCreationOrUpdateParameters } from '../models';
|
|
14
14
|
export interface CreateProductRequest {
|
|
15
15
|
productCreationOrUpdateParameters: ProductCreationOrUpdateParameters;
|
|
16
|
-
xWithSync?: boolean;
|
|
17
16
|
}
|
|
18
17
|
export interface UpdateProductRequest {
|
|
19
18
|
productId: number;
|
|
20
19
|
productCreationOrUpdateParameters: ProductCreationOrUpdateParameters;
|
|
21
|
-
xWithSync?: boolean;
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
24
22
|
* no description
|
|
@@ -91,9 +91,6 @@ var ManageProductApi = /** @class */ (function (_super) {
|
|
|
91
91
|
queryParameters = {};
|
|
92
92
|
headerParameters = {};
|
|
93
93
|
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
-
if (requestParameters.xWithSync !== undefined && requestParameters.xWithSync !== null) {
|
|
95
|
-
headerParameters['X-With-Sync'] = String(requestParameters.xWithSync);
|
|
96
|
-
}
|
|
97
94
|
if (this.configuration && this.configuration.apiKey) {
|
|
98
95
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
99
96
|
}
|
|
@@ -174,9 +171,6 @@ var ManageProductApi = /** @class */ (function (_super) {
|
|
|
174
171
|
queryParameters = {};
|
|
175
172
|
headerParameters = {};
|
|
176
173
|
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
177
|
-
if (requestParameters.xWithSync !== undefined && requestParameters.xWithSync !== null) {
|
|
178
|
-
headerParameters['X-With-Sync'] = String(requestParameters.xWithSync);
|
|
179
|
-
}
|
|
180
174
|
if (this.configuration && this.configuration.apiKey) {
|
|
181
175
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
182
176
|
}
|
|
@@ -185,9 +185,6 @@ var SearchProductApi = /** @class */ (function (_super) {
|
|
|
185
185
|
if (requestParameters.sWaitingSaleOfferCountGte !== undefined) {
|
|
186
186
|
queryParameters['sWaitingSaleOfferCount[gte]'] = requestParameters.sWaitingSaleOfferCountGte;
|
|
187
187
|
}
|
|
188
|
-
if (requestParameters.srcLcdpCatalogIdEq) {
|
|
189
|
-
queryParameters['srcLcdpCatalogId[eq]'] = requestParameters.srcLcdpCatalogIdEq;
|
|
190
|
-
}
|
|
191
188
|
if (requestParameters.tagCo) {
|
|
192
189
|
queryParameters['tag[co]'] = requestParameters.tagCo;
|
|
193
190
|
}
|
|
@@ -11,24 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
13
|
import { ProductSecondaryType, ProductType } from '../models';
|
|
14
|
-
export interface GetProductSecondaryTypeRequest {
|
|
15
|
-
secondaryTypeId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface GetProductTypeRequest {
|
|
18
|
-
typeId: string;
|
|
19
|
-
}
|
|
20
14
|
/**
|
|
21
15
|
* no description
|
|
22
16
|
*/
|
|
23
17
|
export declare class SearchProductMetadataApi extends BaseAPI {
|
|
24
|
-
/**
|
|
25
|
-
* Get product secondary type
|
|
26
|
-
*/
|
|
27
|
-
getProductSecondaryTypeRaw(requestParameters: GetProductSecondaryTypeRequest): Promise<ApiResponse<ProductSecondaryType | BlobWithMeta>>;
|
|
28
|
-
/**
|
|
29
|
-
* Get product secondary type
|
|
30
|
-
*/
|
|
31
|
-
getProductSecondaryType(requestParameters: GetProductSecondaryTypeRequest): Promise<ProductSecondaryType | BlobWithMeta>;
|
|
32
18
|
/**
|
|
33
19
|
* Get product secondary types
|
|
34
20
|
*/
|
|
@@ -37,14 +23,6 @@ export declare class SearchProductMetadataApi extends BaseAPI {
|
|
|
37
23
|
* Get product secondary types
|
|
38
24
|
*/
|
|
39
25
|
getProductSecondaryTypes(): Promise<Array<ProductSecondaryType> | BlobWithMeta>;
|
|
40
|
-
/**
|
|
41
|
-
* Get product type
|
|
42
|
-
*/
|
|
43
|
-
getProductTypeRaw(requestParameters: GetProductTypeRequest): Promise<ApiResponse<ProductType | BlobWithMeta>>;
|
|
44
|
-
/**
|
|
45
|
-
* Get product type
|
|
46
|
-
*/
|
|
47
|
-
getProductType(requestParameters: GetProductTypeRequest): Promise<ProductType | BlobWithMeta>;
|
|
48
26
|
/**
|
|
49
27
|
* Get product types
|
|
50
28
|
*/
|
|
@@ -75,85 +75,12 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function SearchProductMetadataApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Get product secondary type
|
|
80
|
-
*/
|
|
81
|
-
SearchProductMetadataApi.prototype.getProductSecondaryTypeRaw = function (requestParameters) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters.secondaryTypeId === null || requestParameters.secondaryTypeId === undefined) {
|
|
88
|
-
throw new runtime_1.RequiredError('secondaryTypeId', 'Required parameter requestParameters.secondaryTypeId was null or undefined when calling getProductSecondaryType.');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
93
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
94
|
-
}
|
|
95
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
96
|
-
token = this.configuration.accessToken;
|
|
97
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
98
|
-
if (tokenString) {
|
|
99
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
_a.label = 1;
|
|
103
|
-
case 1:
|
|
104
|
-
_a.trys.push([1, 3, , 4]);
|
|
105
|
-
return [4 /*yield*/, this.request({
|
|
106
|
-
path: "/products/secondary-types/{secondaryTypeId}".replace("{".concat("secondaryTypeId", "}"), encodeURIComponent(String(requestParameters.secondaryTypeId))),
|
|
107
|
-
method: 'GET',
|
|
108
|
-
headers: headerParameters,
|
|
109
|
-
query: queryParameters,
|
|
110
|
-
})];
|
|
111
|
-
case 2:
|
|
112
|
-
response = _a.sent();
|
|
113
|
-
contentType = response.headers.get("content-type");
|
|
114
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
115
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductSecondaryTypeFromJSON)(jsonValue); })];
|
|
116
|
-
}
|
|
117
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
118
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
// TODO : Better handling of others application types
|
|
122
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
123
|
-
}
|
|
124
|
-
return [3 /*break*/, 4];
|
|
125
|
-
case 3:
|
|
126
|
-
response_1 = _a.sent();
|
|
127
|
-
console.debug(response_1);
|
|
128
|
-
throw response_1;
|
|
129
|
-
case 4: return [2 /*return*/];
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* Get product secondary type
|
|
136
|
-
*/
|
|
137
|
-
SearchProductMetadataApi.prototype.getProductSecondaryType = function (requestParameters) {
|
|
138
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
139
|
-
var response;
|
|
140
|
-
return __generator(this, function (_a) {
|
|
141
|
-
switch (_a.label) {
|
|
142
|
-
case 0: return [4 /*yield*/, this.getProductSecondaryTypeRaw(requestParameters)];
|
|
143
|
-
case 1:
|
|
144
|
-
response = _a.sent();
|
|
145
|
-
return [4 /*yield*/, response.value()];
|
|
146
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
78
|
/**
|
|
152
79
|
* Get product secondary types
|
|
153
80
|
*/
|
|
154
81
|
SearchProductMetadataApi.prototype.getProductSecondaryTypesRaw = function () {
|
|
155
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
156
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType,
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
|
|
157
84
|
return __generator(this, function (_a) {
|
|
158
85
|
switch (_a.label) {
|
|
159
86
|
case 0:
|
|
@@ -193,9 +120,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
193
120
|
}
|
|
194
121
|
return [3 /*break*/, 4];
|
|
195
122
|
case 3:
|
|
196
|
-
|
|
197
|
-
console.debug(
|
|
198
|
-
throw
|
|
123
|
+
response_1 = _a.sent();
|
|
124
|
+
console.debug(response_1);
|
|
125
|
+
throw response_1;
|
|
199
126
|
case 4: return [2 /*return*/];
|
|
200
127
|
}
|
|
201
128
|
});
|
|
@@ -218,85 +145,12 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
218
145
|
});
|
|
219
146
|
});
|
|
220
147
|
};
|
|
221
|
-
/**
|
|
222
|
-
* Get product type
|
|
223
|
-
*/
|
|
224
|
-
SearchProductMetadataApi.prototype.getProductTypeRaw = function (requestParameters) {
|
|
225
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
226
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
|
|
227
|
-
return __generator(this, function (_a) {
|
|
228
|
-
switch (_a.label) {
|
|
229
|
-
case 0:
|
|
230
|
-
if (requestParameters.typeId === null || requestParameters.typeId === undefined) {
|
|
231
|
-
throw new runtime_1.RequiredError('typeId', 'Required parameter requestParameters.typeId was null or undefined when calling getProductType.');
|
|
232
|
-
}
|
|
233
|
-
queryParameters = {};
|
|
234
|
-
headerParameters = {};
|
|
235
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
236
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
237
|
-
}
|
|
238
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
239
|
-
token = this.configuration.accessToken;
|
|
240
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
241
|
-
if (tokenString) {
|
|
242
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
_a.label = 1;
|
|
246
|
-
case 1:
|
|
247
|
-
_a.trys.push([1, 3, , 4]);
|
|
248
|
-
return [4 /*yield*/, this.request({
|
|
249
|
-
path: "/products/types/{typeId}".replace("{".concat("typeId", "}"), encodeURIComponent(String(requestParameters.typeId))),
|
|
250
|
-
method: 'GET',
|
|
251
|
-
headers: headerParameters,
|
|
252
|
-
query: queryParameters,
|
|
253
|
-
})];
|
|
254
|
-
case 2:
|
|
255
|
-
response = _a.sent();
|
|
256
|
-
contentType = response.headers.get("content-type");
|
|
257
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
258
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProductTypeFromJSON)(jsonValue); })];
|
|
259
|
-
}
|
|
260
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
261
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
// TODO : Better handling of others application types
|
|
265
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
266
|
-
}
|
|
267
|
-
return [3 /*break*/, 4];
|
|
268
|
-
case 3:
|
|
269
|
-
response_3 = _a.sent();
|
|
270
|
-
console.debug(response_3);
|
|
271
|
-
throw response_3;
|
|
272
|
-
case 4: return [2 /*return*/];
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* Get product type
|
|
279
|
-
*/
|
|
280
|
-
SearchProductMetadataApi.prototype.getProductType = function (requestParameters) {
|
|
281
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
282
|
-
var response;
|
|
283
|
-
return __generator(this, function (_a) {
|
|
284
|
-
switch (_a.label) {
|
|
285
|
-
case 0: return [4 /*yield*/, this.getProductTypeRaw(requestParameters)];
|
|
286
|
-
case 1:
|
|
287
|
-
response = _a.sent();
|
|
288
|
-
return [4 /*yield*/, response.value()];
|
|
289
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
});
|
|
293
|
-
};
|
|
294
148
|
/**
|
|
295
149
|
* Get product types
|
|
296
150
|
*/
|
|
297
151
|
SearchProductMetadataApi.prototype.getProductTypesRaw = function () {
|
|
298
152
|
return __awaiter(this, void 0, void 0, function () {
|
|
299
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType,
|
|
153
|
+
var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
|
|
300
154
|
return __generator(this, function (_a) {
|
|
301
155
|
switch (_a.label) {
|
|
302
156
|
case 0:
|
|
@@ -336,9 +190,9 @@ var SearchProductMetadataApi = /** @class */ (function (_super) {
|
|
|
336
190
|
}
|
|
337
191
|
return [3 /*break*/, 4];
|
|
338
192
|
case 3:
|
|
339
|
-
|
|
340
|
-
console.debug(
|
|
341
|
-
throw
|
|
193
|
+
response_2 = _a.sent();
|
|
194
|
+
console.debug(response_2);
|
|
195
|
+
throw response_2;
|
|
342
196
|
case 4: return [2 /*return*/];
|
|
343
197
|
}
|
|
344
198
|
});
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { DataProvider } from './DataProvider';
|
|
13
12
|
import { ImageVersions } from './ImageVersions';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
@@ -35,12 +34,6 @@ export interface Image {
|
|
|
35
34
|
* @memberof Image
|
|
36
35
|
*/
|
|
37
36
|
versions?: ImageVersions;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {DataProvider}
|
|
41
|
-
* @memberof Image
|
|
42
|
-
*/
|
|
43
|
-
source?: DataProvider;
|
|
44
37
|
}
|
|
45
38
|
export declare function ImageFromJSON(json: any): Image;
|
|
46
39
|
export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
-
var DataProvider_1 = require("./DataProvider");
|
|
19
18
|
var ImageVersions_1 = require("./ImageVersions");
|
|
20
19
|
function ImageFromJSON(json) {
|
|
21
20
|
return ImageFromJSONTyped(json, false);
|
|
@@ -29,7 +28,6 @@ function ImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
28
|
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
30
29
|
'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
|
|
31
30
|
'versions': !(0, runtime_1.exists)(json, 'versions') ? undefined : (0, ImageVersions_1.ImageVersionsFromJSON)(json['versions']),
|
|
32
|
-
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : (0, DataProvider_1.DataProviderFromJSON)(json['source']),
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
33
|
exports.ImageFromJSONTyped = ImageFromJSONTyped;
|
|
@@ -44,7 +42,6 @@ function ImageToJSON(value) {
|
|
|
44
42
|
'id': value.id,
|
|
45
43
|
'active': value.active,
|
|
46
44
|
'versions': (0, ImageVersions_1.ImageVersionsToJSON)(value.versions),
|
|
47
|
-
'source': (0, DataProvider_1.DataProviderToJSON)(value.source),
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
exports.ImageToJSON = ImageToJSON;
|
|
@@ -13,10 +13,9 @@ import { Barcodes } from './Barcodes';
|
|
|
13
13
|
import { HttpLink } from './HttpLink';
|
|
14
14
|
import { LaboratoryLink } from './LaboratoryLink';
|
|
15
15
|
import { ProductDispensationPlace } from './ProductDispensationPlace';
|
|
16
|
-
import { ProductJournal } from './ProductJournal';
|
|
17
16
|
import { ProductMarketStatus } from './ProductMarketStatus';
|
|
17
|
+
import { ProductProvider } from './ProductProvider';
|
|
18
18
|
import { ProductSecondaryType } from './ProductSecondaryType';
|
|
19
|
-
import { ProductSource } from './ProductSource';
|
|
20
19
|
import { ProductStatus } from './ProductStatus';
|
|
21
20
|
import { ProductStorageType } from './ProductStorageType';
|
|
22
21
|
import { ProductType } from './ProductType';
|
|
@@ -33,163 +32,157 @@ export interface Product {
|
|
|
33
32
|
* @type {number}
|
|
34
33
|
* @memberof Product
|
|
35
34
|
*/
|
|
36
|
-
id
|
|
35
|
+
id?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if automatic external synchronization is enabled
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof Product
|
|
40
|
+
*/
|
|
41
|
+
isExternalSyncEnabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<ProductProvider>}
|
|
45
|
+
* @memberof Product
|
|
46
|
+
*/
|
|
47
|
+
providers?: Array<ProductProvider>;
|
|
37
48
|
/**
|
|
38
49
|
*
|
|
39
50
|
* @type {Barcodes}
|
|
40
51
|
* @memberof Product
|
|
41
52
|
*/
|
|
42
|
-
barcodes
|
|
53
|
+
barcodes?: Barcodes;
|
|
43
54
|
/**
|
|
44
55
|
*
|
|
45
56
|
* @type {string}
|
|
46
57
|
* @memberof Product
|
|
47
58
|
*/
|
|
48
|
-
name
|
|
59
|
+
name?: string;
|
|
49
60
|
/**
|
|
50
61
|
*
|
|
51
62
|
* @type {string}
|
|
52
63
|
* @memberof Product
|
|
53
64
|
*/
|
|
54
|
-
shortName
|
|
65
|
+
shortName?: string | null;
|
|
55
66
|
/**
|
|
56
67
|
*
|
|
57
68
|
* @type {string}
|
|
58
69
|
* @memberof Product
|
|
59
70
|
*/
|
|
60
|
-
dci
|
|
71
|
+
dci?: string | null;
|
|
61
72
|
/**
|
|
62
73
|
* Weight of a single unit in grams
|
|
63
74
|
* @type {number}
|
|
64
75
|
* @memberof Product
|
|
65
76
|
*/
|
|
66
|
-
unitWeight
|
|
77
|
+
unitWeight?: number | null;
|
|
67
78
|
/**
|
|
68
79
|
* Public price of the product
|
|
69
80
|
* @type {number}
|
|
70
81
|
* @memberof Product
|
|
71
82
|
*/
|
|
72
|
-
unitPrice
|
|
73
|
-
/**
|
|
74
|
-
* Date on which the unit price take effect
|
|
75
|
-
* @type {Date}
|
|
76
|
-
* @memberof Product
|
|
77
|
-
*/
|
|
78
|
-
unitPriceEffectiveDate: Date | null;
|
|
83
|
+
unitPrice?: number | null;
|
|
79
84
|
/**
|
|
80
85
|
*
|
|
81
86
|
* @type {ProductType}
|
|
82
87
|
* @memberof Product
|
|
83
88
|
*/
|
|
84
|
-
type
|
|
89
|
+
type?: ProductType | null;
|
|
85
90
|
/**
|
|
86
91
|
*
|
|
87
92
|
* @type {ProductSecondaryType}
|
|
88
93
|
* @memberof Product
|
|
89
94
|
*/
|
|
90
|
-
secondaryType
|
|
95
|
+
secondaryType?: ProductSecondaryType | null;
|
|
91
96
|
/**
|
|
92
97
|
*
|
|
93
98
|
* @type {LaboratoryLink}
|
|
94
99
|
* @memberof Product
|
|
95
100
|
*/
|
|
96
|
-
laboratory
|
|
101
|
+
laboratory?: LaboratoryLink | null;
|
|
97
102
|
/**
|
|
98
103
|
*
|
|
99
104
|
* @type {Vat}
|
|
100
105
|
* @memberof Product
|
|
101
106
|
*/
|
|
102
|
-
vat
|
|
107
|
+
vat?: Vat | null;
|
|
103
108
|
/**
|
|
104
109
|
*
|
|
105
110
|
* @type {boolean}
|
|
106
111
|
* @memberof Product
|
|
107
112
|
*/
|
|
108
|
-
narcoticPrescription
|
|
113
|
+
narcoticPrescription?: boolean | null;
|
|
109
114
|
/**
|
|
110
115
|
*
|
|
111
116
|
* @type {ProductStorageType}
|
|
112
117
|
* @memberof Product
|
|
113
118
|
*/
|
|
114
|
-
storageType
|
|
119
|
+
storageType?: ProductStorageType | null;
|
|
115
120
|
/**
|
|
116
121
|
*
|
|
117
122
|
* @type {ProductStatus}
|
|
118
123
|
* @memberof Product
|
|
119
124
|
*/
|
|
120
|
-
status
|
|
125
|
+
status?: ProductStatus | null;
|
|
121
126
|
/**
|
|
122
127
|
*
|
|
123
128
|
* @type {ProductMarketStatus}
|
|
124
129
|
* @memberof Product
|
|
125
130
|
*/
|
|
126
|
-
marketStatus
|
|
131
|
+
marketStatus?: ProductMarketStatus | null;
|
|
127
132
|
/**
|
|
128
133
|
*
|
|
129
134
|
* @type {ProductDispensationPlace}
|
|
130
135
|
* @memberof Product
|
|
131
136
|
*/
|
|
132
|
-
dispensationPlace
|
|
137
|
+
dispensationPlace?: ProductDispensationPlace | null;
|
|
133
138
|
/**
|
|
134
139
|
*
|
|
135
140
|
* @type {boolean}
|
|
136
141
|
* @memberof Product
|
|
137
142
|
*/
|
|
138
|
-
isOtc
|
|
143
|
+
isOtc?: boolean;
|
|
139
144
|
/**
|
|
140
145
|
*
|
|
141
146
|
* @type {boolean}
|
|
142
147
|
* @memberof Product
|
|
143
148
|
*/
|
|
144
|
-
isDrugInSport
|
|
149
|
+
isDrugInSport?: boolean | null;
|
|
145
150
|
/**
|
|
146
151
|
*
|
|
147
152
|
* @type {HttpLink}
|
|
148
153
|
* @memberof Product
|
|
149
154
|
*/
|
|
150
|
-
images
|
|
155
|
+
images?: HttpLink;
|
|
151
156
|
/**
|
|
152
157
|
* Creation date of this product
|
|
153
158
|
* @type {Date}
|
|
154
159
|
* @memberof Product
|
|
155
160
|
*/
|
|
156
|
-
createdAt
|
|
161
|
+
createdAt?: Date;
|
|
157
162
|
/**
|
|
158
163
|
*
|
|
159
164
|
* @type {Statistics}
|
|
160
165
|
* @memberof Product
|
|
161
166
|
*/
|
|
162
|
-
statistics
|
|
167
|
+
statistics?: Statistics;
|
|
163
168
|
/**
|
|
164
169
|
* If True, can only be sold by LABORATORY. If False, it can be sold by anyone.
|
|
165
170
|
* @type {boolean}
|
|
166
171
|
* @memberof Product
|
|
167
172
|
*/
|
|
168
|
-
restricted
|
|
173
|
+
restricted?: boolean;
|
|
169
174
|
/**
|
|
170
175
|
*
|
|
171
176
|
* @type {HttpLink}
|
|
172
177
|
* @memberof Product
|
|
173
178
|
*/
|
|
174
|
-
proscriptions
|
|
179
|
+
proscriptions?: HttpLink;
|
|
175
180
|
/**
|
|
176
181
|
* Associated tags for this product
|
|
177
182
|
* @type {Array<string>}
|
|
178
183
|
* @memberof Product
|
|
179
184
|
*/
|
|
180
|
-
tags
|
|
181
|
-
/**
|
|
182
|
-
*
|
|
183
|
-
* @type {ProductSource}
|
|
184
|
-
* @memberof Product
|
|
185
|
-
*/
|
|
186
|
-
source: ProductSource;
|
|
187
|
-
/**
|
|
188
|
-
*
|
|
189
|
-
* @type {ProductJournal}
|
|
190
|
-
* @memberof Product
|
|
191
|
-
*/
|
|
192
|
-
journal: ProductJournal;
|
|
185
|
+
tags?: Array<string>;
|
|
193
186
|
}
|
|
194
187
|
export declare function ProductFromJSON(json: any): Product;
|
|
195
188
|
export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
|