@lcdp/api-react-rest-client 2.7.1-LDS-3815-fastapi-abr-bis.10898739002 → 2.7.1-LDS-3821-smuggler-conversion-code-metier.10944723520
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/auth/src/apis/ManageApiKeyApi.d.ts +2 -2
- package/auth/src/apis/ManageApiKeyApi.js +2 -2
- package/auth/src/apis/SearchApiKeyApi.d.ts +1 -1
- package/auth/src/apis/SearchApiKeyApi.js +2 -2
- package/auth/src/models/ApiKey.d.ts +9 -3
- package/auth/src/models/ApiKey.js +4 -2
- package/auth/src/models/ApiKeyCreationParameters.d.ts +9 -3
- package/auth/src/models/ApiKeyCreationParameters.js +5 -2
- package/factory/src/apis/ManageAssemblyApi.d.ts +3 -5
- package/factory/src/apis/ManageAssemblyApi.js +10 -51
- package/factory/src/apis/SearchAssemblyApi.d.ts +9 -9
- package/factory/src/apis/index.d.ts +0 -3
- package/factory/src/apis/index.js +0 -3
- package/factory/src/models/AnyDistributionMode.d.ts +28 -0
- package/factory/src/models/AnyDistributionMode.js +69 -0
- package/factory/src/models/AnyFactory.d.ts +28 -0
- package/factory/src/models/AnyFactory.js +69 -0
- package/factory/src/models/Assembly.d.ts +18 -17
- package/factory/src/models/Assembly.js +9 -8
- package/factory/src/models/AssemblyCreationParameters.d.ts +5 -10
- package/factory/src/models/AssemblyCreationParameters.js +3 -4
- package/factory/src/models/AssemblyJournal.d.ts +33 -0
- package/factory/src/models/AssemblyJournal.js +44 -0
- package/factory/src/models/AssemblyStatus.d.ts +7 -6
- package/factory/src/models/AssemblyStatus.js +7 -6
- package/factory/src/models/DistributionMode.d.ts +39 -0
- package/factory/src/models/DistributionMode.js +45 -0
- package/factory/src/models/DistributionRange.d.ts +39 -0
- package/factory/src/models/DistributionRange.js +45 -0
- package/factory/src/models/FactoryType.d.ts +27 -0
- package/factory/src/models/FactoryType.js +41 -0
- package/factory/src/models/OfferPlanificationFactory.d.ts +35 -0
- package/factory/src/models/OfferPlanificationFactory.js +51 -0
- package/factory/src/models/OfferPlanificationFactoryAllOf.d.ts +34 -0
- package/factory/src/models/OfferPlanificationFactoryAllOf.js +45 -0
- package/factory/src/models/OfferPlanificationFactoryAllOfRecords.d.ts +67 -0
- package/factory/src/models/OfferPlanificationFactoryAllOfRecords.js +58 -0
- package/factory/src/models/Product.d.ts +82 -0
- package/factory/src/models/Product.js +61 -0
- package/factory/src/models/ProductStatus.d.ts +25 -0
- package/factory/src/models/ProductStatus.js +40 -0
- package/factory/src/models/ProductUpsertFactory.d.ts +29 -0
- package/factory/src/models/ProductUpsertFactory.js +51 -0
- package/factory/src/models/ProductUpsertFactoryAllOf.d.ts +28 -0
- package/factory/src/models/ProductUpsertFactoryAllOf.js +43 -0
- package/factory/src/models/ProductUpsertFactoryAllOfRecords.d.ts +28 -0
- package/factory/src/models/ProductUpsertFactoryAllOfRecords.js +43 -0
- package/factory/src/models/QuotationDistributionMode.d.ts +28 -0
- package/factory/src/models/{AssemblyLineLink.js → QuotationDistributionMode.js} +11 -12
- package/factory/src/models/QuotationDistributionModeAllOf.d.ts +27 -0
- package/factory/src/models/QuotationDistributionModeAllOf.js +41 -0
- package/factory/src/models/RangeDistributionMode.d.ts +29 -0
- package/factory/src/models/RangeDistributionMode.js +50 -0
- package/factory/src/models/RangeDistributionModeAllOf.d.ts +28 -0
- package/factory/src/models/RangeDistributionModeAllOf.js +42 -0
- package/factory/src/models/SaleOfferStatus.d.ts +28 -0
- package/factory/src/models/SaleOfferStatus.js +43 -0
- package/factory/src/models/SaleOfferUpsertFactory.d.ts +35 -0
- package/factory/src/models/SaleOfferUpsertFactory.js +51 -0
- package/factory/src/models/SaleOfferUpsertFactoryAllOf.d.ts +34 -0
- package/factory/src/models/SaleOfferUpsertFactoryAllOf.js +45 -0
- package/factory/src/models/SaleOfferUpsertFactoryAllOfRecords.d.ts +61 -0
- package/factory/src/models/SaleOfferUpsertFactoryAllOfRecords.js +56 -0
- package/factory/src/models/StatusEnum.d.ts +29 -0
- package/factory/src/models/StatusEnum.js +44 -0
- package/factory/src/models/Stock.d.ts +39 -0
- package/factory/src/models/Stock.js +46 -0
- package/factory/src/models/UnitaryDistributionMode.d.ts +34 -0
- package/factory/src/models/UnitaryDistributionMode.js +49 -0
- package/factory/src/models/UnitaryDistributionModeAllOf.d.ts +33 -0
- package/factory/src/models/UnitaryDistributionModeAllOf.js +43 -0
- package/factory/src/models/index.d.ts +26 -6
- package/factory/src/models/index.js +26 -6
- package/package.json +1 -1
- package/smuggler/index.d.ts +1 -0
- package/smuggler/index.js +17 -0
- package/smuggler/src/apis/ManageSmugglersApi.d.ts +25 -0
- package/{factory/src/apis/ManageAssemblyOperationApi.js → smuggler/src/apis/ManageSmugglersApi.js} +27 -67
- package/smuggler/src/apis/index.d.ts +1 -0
- package/smuggler/src/apis/index.js +17 -0
- package/smuggler/src/index.d.ts +3 -0
- package/smuggler/src/index.js +19 -0
- package/smuggler/src/models/RestError.d.ts +89 -0
- package/smuggler/src/models/RestError.js +101 -0
- package/smuggler/src/models/index.d.ts +1 -0
- package/smuggler/src/models/index.js +17 -0
- package/smuggler/src/runtime.d.ts +149 -0
- package/smuggler/src/runtime.js +480 -0
- package/factory/src/apis/ManageAssemblyOperationApi.d.ts +0 -30
- package/factory/src/apis/SearchAssemblyLineApi.d.ts +0 -37
- package/factory/src/apis/SearchAssemblyLineApi.js +0 -239
- package/factory/src/apis/SearchAssemblyOperationApi.d.ts +0 -41
- package/factory/src/apis/SearchAssemblyOperationApi.js +0 -245
- package/factory/src/models/AssemblyLine.d.ts +0 -39
- package/factory/src/models/AssemblyLine.js +0 -46
- package/factory/src/models/AssemblyLineLink.d.ts +0 -28
- package/factory/src/models/AssemblyLineLinkAllOf.d.ts +0 -27
- package/factory/src/models/AssemblyLineLinkAllOf.js +0 -42
- package/factory/src/models/AssemblyOperation.d.ts +0 -41
- package/factory/src/models/AssemblyOperation.js +0 -48
- package/factory/src/models/AssemblyOperationStatus.d.ts +0 -25
- package/factory/src/models/AssemblyOperationStatus.js +0 -40
- package/factory/src/models/AssemblyOperationType.d.ts +0 -25
- package/factory/src/models/AssemblyOperationType.js +0 -40
|
@@ -32,11 +32,11 @@ export declare class ManageApiKeyApi extends BaseAPI {
|
|
|
32
32
|
*/
|
|
33
33
|
createAlgoliaApiKey(): Promise<string | BlobWithMeta>;
|
|
34
34
|
/**
|
|
35
|
-
* Create API key Restrictions : - You must set yourself as owner of the API key (except role \'ADMINISTRATOR\')
|
|
35
|
+
* Create API key Restrictions : - You must set yourself as owner of the API key (except role \'ADMINISTRATOR\')
|
|
36
36
|
*/
|
|
37
37
|
createApiKeyRaw(requestParameters: CreateApiKeyRequest): Promise<ApiResponse<RevealedApiKey | BlobWithMeta>>;
|
|
38
38
|
/**
|
|
39
|
-
* Create API key Restrictions : - You must set yourself as owner of the API key (except role \'ADMINISTRATOR\')
|
|
39
|
+
* Create API key Restrictions : - You must set yourself as owner of the API key (except role \'ADMINISTRATOR\')
|
|
40
40
|
*/
|
|
41
41
|
createApiKey(requestParameters: CreateApiKeyRequest): Promise<RevealedApiKey | BlobWithMeta>;
|
|
42
42
|
/**
|
|
@@ -156,7 +156,7 @@ var ManageApiKeyApi = /** @class */ (function (_super) {
|
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
158
|
/**
|
|
159
|
-
* Create API key Restrictions : - You must set yourself as owner of the API key (except role \'ADMINISTRATOR\')
|
|
159
|
+
* Create API key Restrictions : - You must set yourself as owner of the API key (except role \'ADMINISTRATOR\')
|
|
160
160
|
*/
|
|
161
161
|
ManageApiKeyApi.prototype.createApiKeyRaw = function (requestParameters) {
|
|
162
162
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -222,7 +222,7 @@ var ManageApiKeyApi = /** @class */ (function (_super) {
|
|
|
222
222
|
});
|
|
223
223
|
};
|
|
224
224
|
/**
|
|
225
|
-
* Create API key Restrictions : - You must set yourself as owner of the API key (except role \'ADMINISTRATOR\')
|
|
225
|
+
* Create API key Restrictions : - You must set yourself as owner of the API key (except role \'ADMINISTRATOR\')
|
|
226
226
|
*/
|
|
227
227
|
ManageApiKeyApi.prototype.createApiKey = function (requestParameters) {
|
|
228
228
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -175,8 +175,8 @@ var SearchApiKeyApi = /** @class */ (function (_super) {
|
|
|
175
175
|
if (requestParameters.oNeq) {
|
|
176
176
|
queryParameters['o[neq]'] = requestParameters.oNeq;
|
|
177
177
|
}
|
|
178
|
-
if (requestParameters.
|
|
179
|
-
queryParameters['
|
|
178
|
+
if (requestParameters.tagsCo) {
|
|
179
|
+
queryParameters['tags[co]'] = requestParameters.tagsCo;
|
|
180
180
|
}
|
|
181
181
|
if (requestParameters.cdateGte !== undefined) {
|
|
182
182
|
queryParameters['cdate[gte]'] = requestParameters.cdateGte.toISOString();
|
|
@@ -35,11 +35,11 @@ export interface ApiKey {
|
|
|
35
35
|
*/
|
|
36
36
|
owner?: UserLink;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<string>}
|
|
40
40
|
* @memberof ApiKey
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
tags?: Array<string>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {Date}
|
|
@@ -52,6 +52,12 @@ export interface ApiKey {
|
|
|
52
52
|
* @memberof ApiKey
|
|
53
53
|
*/
|
|
54
54
|
lastUsedAt?: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof ApiKey
|
|
59
|
+
*/
|
|
60
|
+
expirationDate?: Date;
|
|
55
61
|
/**
|
|
56
62
|
* Hidden value of the API key
|
|
57
63
|
* @type {string}
|
|
@@ -28,9 +28,10 @@ function ApiKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
29
29
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
30
30
|
'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['owner']),
|
|
31
|
-
'
|
|
31
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
32
32
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
33
33
|
'lastUsedAt': !(0, runtime_1.exists)(json, 'lastUsedAt') ? undefined : (new Date(json['lastUsedAt'])),
|
|
34
|
+
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : (new Date(json['expirationDate'])),
|
|
34
35
|
'hiddenValue': !(0, runtime_1.exists)(json, 'hiddenValue') ? undefined : json['hiddenValue'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
@@ -46,9 +47,10 @@ function ApiKeyToJSON(value) {
|
|
|
46
47
|
'id': value.id,
|
|
47
48
|
'name': value.name,
|
|
48
49
|
'owner': (0, UserLink_1.UserLinkToJSON)(value.owner),
|
|
49
|
-
'
|
|
50
|
+
'tags': value.tags,
|
|
50
51
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
51
52
|
'lastUsedAt': value.lastUsedAt === undefined ? undefined : (value.lastUsedAt.toISOString()),
|
|
53
|
+
'expirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate.toISOString()),
|
|
52
54
|
'hiddenValue': value.hiddenValue,
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -28,11 +28,17 @@ export interface ApiKeyCreationParameters {
|
|
|
28
28
|
*/
|
|
29
29
|
ownerId: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
31
|
+
* Tags to add to the API key
|
|
32
|
+
* @type {Array<string>}
|
|
33
33
|
* @memberof ApiKeyCreationParameters
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
tags?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Expiration date of the API key
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ApiKeyCreationParameters
|
|
40
|
+
*/
|
|
41
|
+
expirationDate?: Date;
|
|
36
42
|
}
|
|
37
43
|
export declare function ApiKeyCreationParametersFromJSON(json: any): ApiKeyCreationParameters;
|
|
38
44
|
export declare function ApiKeyCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyCreationParameters;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ApiKeyCreationParametersToJSON = exports.ApiKeyCreationParametersFromJSONTyped = exports.ApiKeyCreationParametersFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
function ApiKeyCreationParametersFromJSON(json) {
|
|
18
19
|
return ApiKeyCreationParametersFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -25,7 +26,8 @@ function ApiKeyCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
26
|
return {
|
|
26
27
|
'name': json['name'],
|
|
27
28
|
'ownerId': json['ownerId'],
|
|
28
|
-
'
|
|
29
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
30
|
+
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : (new Date(json['expirationDate'])),
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
exports.ApiKeyCreationParametersFromJSONTyped = ApiKeyCreationParametersFromJSONTyped;
|
|
@@ -39,7 +41,8 @@ function ApiKeyCreationParametersToJSON(value) {
|
|
|
39
41
|
return {
|
|
40
42
|
'name': value.name,
|
|
41
43
|
'ownerId': value.ownerId,
|
|
42
|
-
'
|
|
44
|
+
'tags': value.tags,
|
|
45
|
+
'expirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate.toISOString()),
|
|
43
46
|
};
|
|
44
47
|
}
|
|
45
48
|
exports.ApiKeyCreationParametersToJSON = ApiKeyCreationParametersToJSON;
|
|
@@ -10,14 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
-
import { Assembly } from '../models';
|
|
13
|
+
import { Assembly, AssemblyCreationParameters } from '../models';
|
|
14
14
|
export interface CreateAssemblyRequest {
|
|
15
|
-
|
|
16
|
-
assemblyLineId: string;
|
|
17
|
-
ownerId: number;
|
|
15
|
+
assemblyCreationParameters: AssemblyCreationParameters;
|
|
18
16
|
}
|
|
19
17
|
export interface DeleteAssemblyRequest {
|
|
20
|
-
assemblyId:
|
|
18
|
+
assemblyId: string;
|
|
21
19
|
}
|
|
22
20
|
/**
|
|
23
21
|
* no description
|
|
@@ -80,21 +80,16 @@ var ManageAssemblyApi = /** @class */ (function (_super) {
|
|
|
80
80
|
*/
|
|
81
81
|
ManageAssemblyApi.prototype.createAssemblyRaw = function (requestParameters) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, token, tokenString, _a,
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_1;
|
|
84
84
|
return __generator(this, function (_b) {
|
|
85
85
|
switch (_b.label) {
|
|
86
86
|
case 0:
|
|
87
|
-
if (requestParameters.
|
|
88
|
-
throw new runtime_1.RequiredError('
|
|
89
|
-
}
|
|
90
|
-
if (requestParameters.assemblyLineId === null || requestParameters.assemblyLineId === undefined) {
|
|
91
|
-
throw new runtime_1.RequiredError('assemblyLineId', 'Required parameter requestParameters.assemblyLineId was null or undefined when calling createAssembly.');
|
|
92
|
-
}
|
|
93
|
-
if (requestParameters.ownerId === null || requestParameters.ownerId === undefined) {
|
|
94
|
-
throw new runtime_1.RequiredError('ownerId', 'Required parameter requestParameters.ownerId was null or undefined when calling createAssembly.');
|
|
87
|
+
if (requestParameters.assemblyCreationParameters === null || requestParameters.assemblyCreationParameters === undefined) {
|
|
88
|
+
throw new runtime_1.RequiredError('assemblyCreationParameters', 'Required parameter requestParameters.assemblyCreationParameters was null or undefined when calling createAssembly.');
|
|
95
89
|
}
|
|
96
90
|
queryParameters = {};
|
|
97
91
|
headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
98
93
|
if (this.configuration && this.configuration.apiKey) {
|
|
99
94
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
100
95
|
}
|
|
@@ -115,51 +110,15 @@ var ManageAssemblyApi = /** @class */ (function (_super) {
|
|
|
115
110
|
}
|
|
116
111
|
_b.label = 4;
|
|
117
112
|
case 4:
|
|
118
|
-
|
|
119
|
-
{ contentType: 'multipart/form-data' },
|
|
120
|
-
];
|
|
121
|
-
useForm = false;
|
|
122
|
-
if (useForm) {
|
|
123
|
-
formParams = new FormData();
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
formParams = new URLSearchParams();
|
|
127
|
-
}
|
|
128
|
-
if (requestParameters.input !== undefined) {
|
|
129
|
-
if (useForm && (0, runtime_1.instanceOfBlobWithMeta)(requestParameters.input)) {
|
|
130
|
-
formParams.append('input', requestParameters.input.blob, requestParameters.input.filename);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
formParams.append('input', requestParameters.input);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
if (requestParameters.assemblyLineId !== undefined) {
|
|
137
|
-
if (useForm && (0, runtime_1.instanceOfBlobWithMeta)(requestParameters.assemblyLineId)) {
|
|
138
|
-
formParams.append('assemblyLineId', requestParameters.assemblyLineId.blob, requestParameters.assemblyLineId.filename);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
formParams.append('assemblyLineId', requestParameters.assemblyLineId);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
if (requestParameters.ownerId !== undefined) {
|
|
145
|
-
if (useForm && (0, runtime_1.instanceOfBlobWithMeta)(requestParameters.ownerId)) {
|
|
146
|
-
formParams.append('ownerId', requestParameters.ownerId.blob, requestParameters.ownerId.filename);
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
formParams.append('ownerId', requestParameters.ownerId);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
_b.label = 5;
|
|
153
|
-
case 5:
|
|
154
|
-
_b.trys.push([5, 7, , 8]);
|
|
113
|
+
_b.trys.push([4, 6, , 7]);
|
|
155
114
|
return [4 /*yield*/, this.request({
|
|
156
115
|
path: "/assemblies",
|
|
157
116
|
method: 'POST',
|
|
158
117
|
headers: headerParameters,
|
|
159
118
|
query: queryParameters,
|
|
160
|
-
body:
|
|
119
|
+
body: (0, models_1.AssemblyCreationParametersToJSON)(requestParameters.assemblyCreationParameters),
|
|
161
120
|
})];
|
|
162
|
-
case
|
|
121
|
+
case 5:
|
|
163
122
|
response = _b.sent();
|
|
164
123
|
contentType = response.headers.get("content-type");
|
|
165
124
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
@@ -172,12 +131,12 @@ var ManageAssemblyApi = /** @class */ (function (_super) {
|
|
|
172
131
|
// TODO : Better handling of others application types
|
|
173
132
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
174
133
|
}
|
|
175
|
-
return [3 /*break*/,
|
|
176
|
-
case
|
|
134
|
+
return [3 /*break*/, 7];
|
|
135
|
+
case 6:
|
|
177
136
|
response_1 = _b.sent();
|
|
178
137
|
console.debug(response_1);
|
|
179
138
|
throw response_1;
|
|
180
|
-
case
|
|
139
|
+
case 7: return [2 /*return*/];
|
|
181
140
|
}
|
|
182
141
|
});
|
|
183
142
|
});
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
13
|
import { Assembly, AssemblyStatus, PaginatedAssemblies } from '../models';
|
|
14
14
|
export interface GetAssembliesRequest {
|
|
15
|
-
alidEq?: Array<
|
|
16
|
-
alidNeq?: Array<
|
|
15
|
+
alidEq?: Array<string>;
|
|
16
|
+
alidNeq?: Array<string>;
|
|
17
17
|
oEq?: Array<number>;
|
|
18
18
|
oNeq?: Array<number>;
|
|
19
19
|
stEq?: Array<AssemblyStatus>;
|
|
@@ -27,13 +27,13 @@ export interface GetAssembliesRequest {
|
|
|
27
27
|
pp?: number;
|
|
28
28
|
}
|
|
29
29
|
export interface GetAssemblyRequest {
|
|
30
|
-
assemblyId:
|
|
30
|
+
assemblyId: string;
|
|
31
31
|
}
|
|
32
32
|
export interface GetAssemblyInputRequest {
|
|
33
|
-
assemblyId:
|
|
33
|
+
assemblyId: string;
|
|
34
34
|
}
|
|
35
35
|
export interface GetAssemblyOutputRequest {
|
|
36
|
-
assemblyId:
|
|
36
|
+
assemblyId: string;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* no description
|
|
@@ -58,19 +58,19 @@ export declare class SearchAssemblyApi extends BaseAPI {
|
|
|
58
58
|
/**
|
|
59
59
|
* Download a assembly input Restrictions : - You must be owner of the assembly (except role \'ADMINISTRATOR\')
|
|
60
60
|
*/
|
|
61
|
-
getAssemblyInputRaw(requestParameters: GetAssemblyInputRequest): Promise<ApiResponse<BlobWithMeta>>;
|
|
61
|
+
getAssemblyInputRaw(requestParameters: GetAssemblyInputRequest): Promise<ApiResponse<string | BlobWithMeta>>;
|
|
62
62
|
/**
|
|
63
63
|
* Download a assembly input Restrictions : - You must be owner of the assembly (except role \'ADMINISTRATOR\')
|
|
64
64
|
*/
|
|
65
|
-
getAssemblyInput(requestParameters: GetAssemblyInputRequest): Promise<BlobWithMeta>;
|
|
65
|
+
getAssemblyInput(requestParameters: GetAssemblyInputRequest): Promise<string | BlobWithMeta>;
|
|
66
66
|
/**
|
|
67
67
|
* Download a assembly output Restrictions : - You must be owner of the assembly (except role \'ADMINISTRATOR\')
|
|
68
68
|
*/
|
|
69
|
-
getAssemblyOutputRaw(requestParameters: GetAssemblyOutputRequest): Promise<ApiResponse<BlobWithMeta>>;
|
|
69
|
+
getAssemblyOutputRaw(requestParameters: GetAssemblyOutputRequest): Promise<ApiResponse<string | BlobWithMeta>>;
|
|
70
70
|
/**
|
|
71
71
|
* Download a assembly output Restrictions : - You must be owner of the assembly (except role \'ADMINISTRATOR\')
|
|
72
72
|
*/
|
|
73
|
-
getAssemblyOutput(requestParameters: GetAssemblyOutputRequest): Promise<BlobWithMeta>;
|
|
73
|
+
getAssemblyOutput(requestParameters: GetAssemblyOutputRequest): Promise<string | BlobWithMeta>;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @export
|
|
@@ -15,7 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ManageAssemblyApi"), exports);
|
|
18
|
-
__exportStar(require("./ManageAssemblyOperationApi"), exports);
|
|
19
18
|
__exportStar(require("./SearchAssemblyApi"), exports);
|
|
20
|
-
__exportStar(require("./SearchAssemblyLineApi"), exports);
|
|
21
|
-
__exportStar(require("./SearchAssemblyOperationApi"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-factory-service
|
|
3
|
+
* This is the REST API of LCDP factory
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { QuotationDistributionMode } from './QuotationDistributionMode';
|
|
13
|
+
import { RangeDistributionMode } from './RangeDistributionMode';
|
|
14
|
+
import { UnitaryDistributionMode } from './UnitaryDistributionMode';
|
|
15
|
+
/**
|
|
16
|
+
* @type AnyDistributionMode
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare type AnyDistributionMode = {
|
|
20
|
+
type: 'RANGE';
|
|
21
|
+
} & RangeDistributionMode | {
|
|
22
|
+
type: 'QUOTATION';
|
|
23
|
+
} & QuotationDistributionMode | {
|
|
24
|
+
type: 'UNITARY';
|
|
25
|
+
} & UnitaryDistributionMode;
|
|
26
|
+
export declare function AnyDistributionModeFromJSON(json: any): AnyDistributionMode;
|
|
27
|
+
export declare function AnyDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyDistributionMode;
|
|
28
|
+
export declare function AnyDistributionModeToJSON(value?: AnyDistributionMode | null): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-factory-service
|
|
6
|
+
* This is the REST API of LCDP factory
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.AnyDistributionModeToJSON = exports.AnyDistributionModeFromJSONTyped = exports.AnyDistributionModeFromJSON = void 0;
|
|
28
|
+
var QuotationDistributionMode_1 = require("./QuotationDistributionMode");
|
|
29
|
+
var RangeDistributionMode_1 = require("./RangeDistributionMode");
|
|
30
|
+
var UnitaryDistributionMode_1 = require("./UnitaryDistributionMode");
|
|
31
|
+
function AnyDistributionModeFromJSON(json) {
|
|
32
|
+
return AnyDistributionModeFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.AnyDistributionModeFromJSON = AnyDistributionModeFromJSON;
|
|
35
|
+
function AnyDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
switch (json['type']) {
|
|
40
|
+
case 'RANGE':
|
|
41
|
+
return __assign(__assign({}, (0, RangeDistributionMode_1.RangeDistributionModeFromJSONTyped)(json, true)), { type: 'RANGE' });
|
|
42
|
+
case 'QUOTATION':
|
|
43
|
+
return __assign(__assign({}, (0, QuotationDistributionMode_1.QuotationDistributionModeFromJSONTyped)(json, true)), { type: 'QUOTATION' });
|
|
44
|
+
case 'UNITARY':
|
|
45
|
+
return __assign(__assign({}, (0, UnitaryDistributionMode_1.UnitaryDistributionModeFromJSONTyped)(json, true)), { type: 'UNITARY' });
|
|
46
|
+
default:
|
|
47
|
+
throw new Error("No variant of AnyDistributionMode exists with 'type=".concat(json['type'], "'"));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.AnyDistributionModeFromJSONTyped = AnyDistributionModeFromJSONTyped;
|
|
51
|
+
function AnyDistributionModeToJSON(value) {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
switch (value['type']) {
|
|
59
|
+
case 'RANGE':
|
|
60
|
+
return (0, RangeDistributionMode_1.RangeDistributionModeToJSON)(value);
|
|
61
|
+
case 'QUOTATION':
|
|
62
|
+
return (0, QuotationDistributionMode_1.QuotationDistributionModeToJSON)(value);
|
|
63
|
+
case 'UNITARY':
|
|
64
|
+
return (0, UnitaryDistributionMode_1.UnitaryDistributionModeToJSON)(value);
|
|
65
|
+
default:
|
|
66
|
+
throw new Error("No variant of AnyDistributionMode exists with 'type=".concat(value['type'], "'"));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.AnyDistributionModeToJSON = AnyDistributionModeToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-factory-service
|
|
3
|
+
* This is the REST API of LCDP factory
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { OfferPlanificationFactory } from './OfferPlanificationFactory';
|
|
13
|
+
import { ProductUpsertFactory } from './ProductUpsertFactory';
|
|
14
|
+
import { SaleOfferUpsertFactory } from './SaleOfferUpsertFactory';
|
|
15
|
+
/**
|
|
16
|
+
* @type AnyFactory
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare type AnyFactory = {
|
|
20
|
+
type: 'PRODUCT_UPSERT';
|
|
21
|
+
} & ProductUpsertFactory | {
|
|
22
|
+
type: 'SALE_OFFER_UPSERT';
|
|
23
|
+
} & SaleOfferUpsertFactory | {
|
|
24
|
+
type: 'OFFER_PLANIFICATION';
|
|
25
|
+
} & OfferPlanificationFactory;
|
|
26
|
+
export declare function AnyFactoryFromJSON(json: any): AnyFactory;
|
|
27
|
+
export declare function AnyFactoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyFactory;
|
|
28
|
+
export declare function AnyFactoryToJSON(value?: AnyFactory | null): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-factory-service
|
|
6
|
+
* This is the REST API of LCDP factory
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.AnyFactoryToJSON = exports.AnyFactoryFromJSONTyped = exports.AnyFactoryFromJSON = void 0;
|
|
28
|
+
var OfferPlanificationFactory_1 = require("./OfferPlanificationFactory");
|
|
29
|
+
var ProductUpsertFactory_1 = require("./ProductUpsertFactory");
|
|
30
|
+
var SaleOfferUpsertFactory_1 = require("./SaleOfferUpsertFactory");
|
|
31
|
+
function AnyFactoryFromJSON(json) {
|
|
32
|
+
return AnyFactoryFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.AnyFactoryFromJSON = AnyFactoryFromJSON;
|
|
35
|
+
function AnyFactoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
switch (json['type']) {
|
|
40
|
+
case 'PRODUCT_UPSERT':
|
|
41
|
+
return __assign(__assign({}, (0, ProductUpsertFactory_1.ProductUpsertFactoryFromJSONTyped)(json, true)), { type: 'PRODUCT_UPSERT' });
|
|
42
|
+
case 'SALE_OFFER_UPSERT':
|
|
43
|
+
return __assign(__assign({}, (0, SaleOfferUpsertFactory_1.SaleOfferUpsertFactoryFromJSONTyped)(json, true)), { type: 'SALE_OFFER_UPSERT' });
|
|
44
|
+
case 'OFFER_PLANIFICATION':
|
|
45
|
+
return __assign(__assign({}, (0, OfferPlanificationFactory_1.OfferPlanificationFactoryFromJSONTyped)(json, true)), { type: 'OFFER_PLANIFICATION' });
|
|
46
|
+
default:
|
|
47
|
+
throw new Error("No variant of AnyFactory exists with 'type=".concat(json['type'], "'"));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.AnyFactoryFromJSONTyped = AnyFactoryFromJSONTyped;
|
|
51
|
+
function AnyFactoryToJSON(value) {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
switch (value['type']) {
|
|
59
|
+
case 'PRODUCT_UPSERT':
|
|
60
|
+
return (0, ProductUpsertFactory_1.ProductUpsertFactoryToJSON)(value);
|
|
61
|
+
case 'SALE_OFFER_UPSERT':
|
|
62
|
+
return (0, SaleOfferUpsertFactory_1.SaleOfferUpsertFactoryToJSON)(value);
|
|
63
|
+
case 'OFFER_PLANIFICATION':
|
|
64
|
+
return (0, OfferPlanificationFactory_1.OfferPlanificationFactoryToJSON)(value);
|
|
65
|
+
default:
|
|
66
|
+
throw new Error("No variant of AnyFactory exists with 'type=".concat(value['type'], "'"));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.AnyFactoryToJSON = AnyFactoryToJSON;
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { AssemblyJournal } from './AssemblyJournal';
|
|
13
|
+
import { FactoryType } from './FactoryType';
|
|
14
14
|
import { HttpLink } from './HttpLink';
|
|
15
|
+
import { StatusEnum } from './StatusEnum';
|
|
15
16
|
import { UserLink } from './UserLink';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -20,29 +21,29 @@ import { UserLink } from './UserLink';
|
|
|
20
21
|
*/
|
|
21
22
|
export interface Assembly {
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {
|
|
24
|
+
* UUID of the assembly
|
|
25
|
+
* @type {string}
|
|
25
26
|
* @memberof Assembly
|
|
26
27
|
*/
|
|
27
|
-
id?:
|
|
28
|
+
id?: string;
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
|
-
* @type {
|
|
31
|
+
* @type {StatusEnum}
|
|
31
32
|
* @memberof Assembly
|
|
32
33
|
*/
|
|
33
|
-
|
|
34
|
+
status?: StatusEnum;
|
|
34
35
|
/**
|
|
35
36
|
*
|
|
36
|
-
* @type {
|
|
37
|
+
* @type {FactoryType}
|
|
37
38
|
* @memberof Assembly
|
|
38
39
|
*/
|
|
39
|
-
|
|
40
|
+
factoryType?: FactoryType;
|
|
40
41
|
/**
|
|
41
42
|
*
|
|
42
|
-
* @type {
|
|
43
|
+
* @type {UserLink}
|
|
43
44
|
* @memberof Assembly
|
|
44
45
|
*/
|
|
45
|
-
|
|
46
|
+
owner?: UserLink;
|
|
46
47
|
/**
|
|
47
48
|
* Number of steps
|
|
48
49
|
* @type {number}
|
|
@@ -73,12 +74,6 @@ export interface Assembly {
|
|
|
73
74
|
* @memberof Assembly
|
|
74
75
|
*/
|
|
75
76
|
input?: HttpLink;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {HttpLink}
|
|
79
|
-
* @memberof Assembly
|
|
80
|
-
*/
|
|
81
|
-
operations?: HttpLink;
|
|
82
77
|
/**
|
|
83
78
|
* Update date of this assembly
|
|
84
79
|
* @type {Date}
|
|
@@ -91,6 +86,12 @@ export interface Assembly {
|
|
|
91
86
|
* @memberof Assembly
|
|
92
87
|
*/
|
|
93
88
|
createdAt?: Date;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {AssemblyJournal}
|
|
92
|
+
* @memberof Assembly
|
|
93
|
+
*/
|
|
94
|
+
journal?: AssemblyJournal;
|
|
94
95
|
}
|
|
95
96
|
export declare function AssemblyFromJSON(json: any): Assembly;
|
|
96
97
|
export declare function AssemblyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Assembly;
|