@lcdp/api-react-rest-client 2.7.1-LDS-3815-smuggler-implementation-api-fac.10487546295 → 2.7.1-LDS-3824-api-modification-factory.yml.10491245877

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.
Files changed (63) hide show
  1. package/factory/src/apis/ManageAssemblyApi.d.ts +3 -5
  2. package/factory/src/apis/ManageAssemblyApi.js +10 -51
  3. package/factory/src/apis/SearchAssemblyApi.d.ts +9 -9
  4. package/factory/src/apis/index.d.ts +0 -3
  5. package/factory/src/apis/index.js +0 -3
  6. package/factory/src/models/AnyFactory.d.ts +28 -0
  7. package/factory/src/models/AnyFactory.js +69 -0
  8. package/factory/src/models/Assembly.d.ts +11 -17
  9. package/factory/src/models/Assembly.js +6 -8
  10. package/factory/src/models/AssemblyCreationParameters.d.ts +5 -10
  11. package/factory/src/models/AssemblyCreationParameters.js +3 -4
  12. package/factory/src/models/AssemblyStatus.d.ts +7 -6
  13. package/factory/src/models/AssemblyStatus.js +7 -6
  14. package/factory/src/models/FactoryType.d.ts +27 -0
  15. package/factory/src/models/FactoryType.js +41 -0
  16. package/factory/src/models/OfferPlanificationFactory.d.ts +142 -0
  17. package/factory/src/models/OfferPlanificationFactory.js +50 -0
  18. package/factory/src/models/OfferPlanificationFactoryAllOf.d.ts +141 -0
  19. package/factory/src/models/OfferPlanificationFactoryAllOf.js +80 -0
  20. package/factory/src/models/ProductUpsertFactory.d.ts +76 -0
  21. package/factory/src/models/ProductUpsertFactory.js +50 -0
  22. package/factory/src/models/ProductUpsertFactoryAllOf.d.ts +75 -0
  23. package/factory/src/models/ProductUpsertFactoryAllOf.js +58 -0
  24. package/factory/src/models/SaleOfferUpsertFactory.d.ts +130 -0
  25. package/factory/src/models/SaleOfferUpsertFactory.js +50 -0
  26. package/factory/src/models/SaleOfferUpsertFactoryAllOf.d.ts +129 -0
  27. package/factory/src/models/SaleOfferUpsertFactoryAllOf.js +76 -0
  28. package/factory/src/models/StatusEnum.d.ts +29 -0
  29. package/factory/src/models/StatusEnum.js +44 -0
  30. package/factory/src/models/index.d.ts +9 -6
  31. package/factory/src/models/index.js +9 -6
  32. package/package.json +1 -1
  33. package/smuggler/index.d.ts +1 -0
  34. package/smuggler/index.js +17 -0
  35. package/smuggler/src/apis/ManageSmugglersApi.d.ts +25 -0
  36. package/{factory/src/apis/ManageAssemblyOperationApi.js → smuggler/src/apis/ManageSmugglersApi.js} +27 -67
  37. package/smuggler/src/apis/index.d.ts +1 -0
  38. package/smuggler/src/apis/index.js +17 -0
  39. package/smuggler/src/index.d.ts +3 -0
  40. package/smuggler/src/index.js +19 -0
  41. package/smuggler/src/models/RestError.d.ts +89 -0
  42. package/smuggler/src/models/RestError.js +101 -0
  43. package/smuggler/src/models/index.d.ts +1 -0
  44. package/smuggler/src/models/index.js +17 -0
  45. package/smuggler/src/runtime.d.ts +149 -0
  46. package/smuggler/src/runtime.js +480 -0
  47. package/factory/src/apis/ManageAssemblyOperationApi.d.ts +0 -30
  48. package/factory/src/apis/SearchAssemblyLineApi.d.ts +0 -37
  49. package/factory/src/apis/SearchAssemblyLineApi.js +0 -239
  50. package/factory/src/apis/SearchAssemblyOperationApi.d.ts +0 -41
  51. package/factory/src/apis/SearchAssemblyOperationApi.js +0 -245
  52. package/factory/src/models/AssemblyLine.d.ts +0 -39
  53. package/factory/src/models/AssemblyLine.js +0 -46
  54. package/factory/src/models/AssemblyLineLink.d.ts +0 -28
  55. package/factory/src/models/AssemblyLineLink.js +0 -50
  56. package/factory/src/models/AssemblyLineLinkAllOf.d.ts +0 -27
  57. package/factory/src/models/AssemblyLineLinkAllOf.js +0 -42
  58. package/factory/src/models/AssemblyOperation.d.ts +0 -41
  59. package/factory/src/models/AssemblyOperation.js +0 -48
  60. package/factory/src/models/AssemblyOperationStatus.d.ts +0 -25
  61. package/factory/src/models/AssemblyOperationStatus.js +0 -40
  62. package/factory/src/models/AssemblyOperationType.d.ts +0 -25
  63. package/factory/src/models/AssemblyOperationType.js +0 -40
@@ -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
- input: object;
16
- assemblyLineId: string;
17
- ownerId: number;
15
+ assemblyCreationParameters: AssemblyCreationParameters;
18
16
  }
19
17
  export interface DeleteAssemblyRequest {
20
- assemblyId: number;
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, consumes, formParams, useForm, response, contentType, response_1;
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.input === null || requestParameters.input === undefined) {
88
- throw new runtime_1.RequiredError('input', 'Required parameter requestParameters.input was null or undefined when calling createAssembly.');
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
- consumes = [
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: formParams,
119
+ body: (0, models_1.AssemblyCreationParametersToJSON)(requestParameters.assemblyCreationParameters),
161
120
  })];
162
- case 6:
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*/, 8];
176
- case 7:
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 8: return [2 /*return*/];
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<number>;
16
- alidNeq?: Array<number>;
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: number;
30
+ assemblyId: string;
31
31
  }
32
32
  export interface GetAssemblyInputRequest {
33
- assemblyId: number;
33
+ assemblyId: string;
34
34
  }
35
35
  export interface GetAssemblyOutputRequest {
36
- assemblyId: number;
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
@@ -1,5 +1,2 @@
1
1
  export * from './ManageAssemblyApi';
2
- export * from './ManageAssemblyOperationApi';
3
2
  export * from './SearchAssemblyApi';
4
- export * from './SearchAssemblyLineApi';
5
- export * from './SearchAssemblyOperationApi';
@@ -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 { 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,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AssemblyLineLink } from './AssemblyLineLink';
13
- import { AssemblyStatus } from './AssemblyStatus';
12
+ import { FactoryType } from './FactoryType';
14
13
  import { HttpLink } from './HttpLink';
14
+ import { StatusEnum } from './StatusEnum';
15
15
  import { UserLink } from './UserLink';
16
16
  /**
17
17
  *
@@ -20,29 +20,29 @@ import { UserLink } from './UserLink';
20
20
  */
21
21
  export interface Assembly {
22
22
  /**
23
- *
24
- * @type {number}
23
+ * UUID of the assembly
24
+ * @type {string}
25
25
  * @memberof Assembly
26
26
  */
27
- id?: number;
27
+ id?: string;
28
28
  /**
29
29
  *
30
- * @type {AssemblyLineLink}
30
+ * @type {StatusEnum}
31
31
  * @memberof Assembly
32
32
  */
33
- assemblyLine?: AssemblyLineLink;
33
+ status?: StatusEnum;
34
34
  /**
35
35
  *
36
- * @type {UserLink}
36
+ * @type {FactoryType}
37
37
  * @memberof Assembly
38
38
  */
39
- owner?: UserLink;
39
+ factoryType?: FactoryType;
40
40
  /**
41
41
  *
42
- * @type {AssemblyStatus}
42
+ * @type {UserLink}
43
43
  * @memberof Assembly
44
44
  */
45
- status?: AssemblyStatus;
45
+ owner?: UserLink;
46
46
  /**
47
47
  * Number of steps
48
48
  * @type {number}
@@ -73,12 +73,6 @@ export interface Assembly {
73
73
  * @memberof Assembly
74
74
  */
75
75
  input?: HttpLink;
76
- /**
77
- *
78
- * @type {HttpLink}
79
- * @memberof Assembly
80
- */
81
- operations?: HttpLink;
82
76
  /**
83
77
  * Update date of this assembly
84
78
  * @type {Date}
@@ -15,9 +15,9 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AssemblyToJSON = exports.AssemblyFromJSONTyped = exports.AssemblyFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
- var AssemblyLineLink_1 = require("./AssemblyLineLink");
19
- var AssemblyStatus_1 = require("./AssemblyStatus");
18
+ var FactoryType_1 = require("./FactoryType");
20
19
  var HttpLink_1 = require("./HttpLink");
20
+ var StatusEnum_1 = require("./StatusEnum");
21
21
  var UserLink_1 = require("./UserLink");
22
22
  function AssemblyFromJSON(json) {
23
23
  return AssemblyFromJSONTyped(json, false);
@@ -29,15 +29,14 @@ function AssemblyFromJSONTyped(json, ignoreDiscriminator) {
29
29
  }
30
30
  return {
31
31
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
32
- 'assemblyLine': !(0, runtime_1.exists)(json, 'assemblyLine') ? undefined : (0, AssemblyLineLink_1.AssemblyLineLinkFromJSON)(json['assemblyLine']),
32
+ 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, StatusEnum_1.StatusEnumFromJSON)(json['status']),
33
+ 'factoryType': !(0, runtime_1.exists)(json, 'factoryType') ? undefined : (0, FactoryType_1.FactoryTypeFromJSON)(json['factoryType']),
33
34
  'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['owner']),
34
- 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, AssemblyStatus_1.AssemblyStatusFromJSON)(json['status']),
35
35
  'totalSteps': !(0, runtime_1.exists)(json, 'totalSteps') ? undefined : json['totalSteps'],
36
36
  'successfulSteps': !(0, runtime_1.exists)(json, 'successfulSteps') ? undefined : json['successfulSteps'],
37
37
  'failedSteps': !(0, runtime_1.exists)(json, 'failedSteps') ? undefined : json['failedSteps'],
38
38
  'output': !(0, runtime_1.exists)(json, 'output') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['output']),
39
39
  'input': !(0, runtime_1.exists)(json, 'input') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['input']),
40
- 'operations': !(0, runtime_1.exists)(json, 'operations') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['operations']),
41
40
  'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
42
41
  'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
43
42
  };
@@ -52,15 +51,14 @@ function AssemblyToJSON(value) {
52
51
  }
53
52
  return {
54
53
  'id': value.id,
55
- 'assemblyLine': (0, AssemblyLineLink_1.AssemblyLineLinkToJSON)(value.assemblyLine),
54
+ 'status': (0, StatusEnum_1.StatusEnumToJSON)(value.status),
55
+ 'factoryType': (0, FactoryType_1.FactoryTypeToJSON)(value.factoryType),
56
56
  'owner': (0, UserLink_1.UserLinkToJSON)(value.owner),
57
- 'status': (0, AssemblyStatus_1.AssemblyStatusToJSON)(value.status),
58
57
  'totalSteps': value.totalSteps,
59
58
  'successfulSteps': value.successfulSteps,
60
59
  'failedSteps': value.failedSteps,
61
60
  'output': (0, HttpLink_1.HttpLinkToJSON)(value.output),
62
61
  'input': (0, HttpLink_1.HttpLinkToJSON)(value.input),
63
- 'operations': (0, HttpLink_1.HttpLinkToJSON)(value.operations),
64
62
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
65
63
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
66
64
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { AnyFactory } from './AnyFactory';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,22 +18,16 @@
17
18
  export interface AssemblyCreationParameters {
18
19
  /**
19
20
  *
20
- * @type {object}
21
- * @memberof AssemblyCreationParameters
22
- */
23
- input: object;
24
- /**
25
- *
26
- * @type {string}
21
+ * @type {number}
27
22
  * @memberof AssemblyCreationParameters
28
23
  */
29
- assemblyLineId: string;
24
+ ownerId: number;
30
25
  /**
31
26
  *
32
- * @type {number}
27
+ * @type {AnyFactory}
33
28
  * @memberof AssemblyCreationParameters
34
29
  */
35
- ownerId: number;
30
+ factory: AnyFactory;
36
31
  }
37
32
  export declare function AssemblyCreationParametersFromJSON(json: any): AssemblyCreationParameters;
38
33
  export declare function AssemblyCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssemblyCreationParameters;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AssemblyCreationParametersToJSON = exports.AssemblyCreationParametersFromJSONTyped = exports.AssemblyCreationParametersFromJSON = void 0;
17
+ var AnyFactory_1 = require("./AnyFactory");
17
18
  function AssemblyCreationParametersFromJSON(json) {
18
19
  return AssemblyCreationParametersFromJSONTyped(json, false);
19
20
  }
@@ -23,9 +24,8 @@ function AssemblyCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
23
24
  return json;
24
25
  }
25
26
  return {
26
- 'input': json['input'],
27
- 'assemblyLineId': json['assemblyLineId'],
28
27
  'ownerId': json['ownerId'],
28
+ 'factory': (0, AnyFactory_1.AnyFactoryFromJSON)(json['factory']),
29
29
  };
30
30
  }
31
31
  exports.AssemblyCreationParametersFromJSONTyped = AssemblyCreationParametersFromJSONTyped;
@@ -37,9 +37,8 @@ function AssemblyCreationParametersToJSON(value) {
37
37
  return null;
38
38
  }
39
39
  return {
40
- 'input': value.input,
41
- 'assemblyLineId': value.assemblyLineId,
42
40
  'ownerId': value.ownerId,
41
+ 'factory': (0, AnyFactory_1.AnyFactoryToJSON)(value.factory),
43
42
  };
44
43
  }
45
44
  exports.AssemblyCreationParametersToJSON = AssemblyCreationParametersToJSON;
@@ -16,12 +16,13 @@
16
16
  */
17
17
  export declare enum AssemblyStatus {
18
18
  PENDING = "PENDING",
19
- PROCESSINGINPUT = "PROCESSING_INPUT",
20
- PROCESSINGOUTPUT = "PROCESSING_OUTPUT",
21
- INSUFFICIENTCREDENTIALS = "INSUFFICIENT_CREDENTIALS",
22
- FAILED = "FAILED",
23
- SUCCEEDED = "SUCCEEDED",
24
- CANCELED = "CANCELED"
19
+ PREPROCESSING = "PREPROCESSING",
20
+ PROCESSING = "PROCESSING",
21
+ POSTPROCESSING = "POSTPROCESSING",
22
+ PREPROCESSINGFAILED = "PREPROCESSING_FAILED",
23
+ PROCESSINGFAILED = "PROCESSING_FAILED",
24
+ POSTPROCESSINGFAILED = "POSTPROCESSING_FAILED",
25
+ DONE = "DONE"
25
26
  }
26
27
  export declare function AssemblyStatusFromJSON(json: any): AssemblyStatus;
27
28
  export declare function AssemblyStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssemblyStatus;
@@ -22,12 +22,13 @@ exports.AssemblyStatusToJSON = exports.AssemblyStatusFromJSONTyped = exports.Ass
22
22
  var AssemblyStatus;
23
23
  (function (AssemblyStatus) {
24
24
  AssemblyStatus["PENDING"] = "PENDING";
25
- AssemblyStatus["PROCESSINGINPUT"] = "PROCESSING_INPUT";
26
- AssemblyStatus["PROCESSINGOUTPUT"] = "PROCESSING_OUTPUT";
27
- AssemblyStatus["INSUFFICIENTCREDENTIALS"] = "INSUFFICIENT_CREDENTIALS";
28
- AssemblyStatus["FAILED"] = "FAILED";
29
- AssemblyStatus["SUCCEEDED"] = "SUCCEEDED";
30
- AssemblyStatus["CANCELED"] = "CANCELED";
25
+ AssemblyStatus["PREPROCESSING"] = "PREPROCESSING";
26
+ AssemblyStatus["PROCESSING"] = "PROCESSING";
27
+ AssemblyStatus["POSTPROCESSING"] = "POSTPROCESSING";
28
+ AssemblyStatus["PREPROCESSINGFAILED"] = "PREPROCESSING_FAILED";
29
+ AssemblyStatus["PROCESSINGFAILED"] = "PROCESSING_FAILED";
30
+ AssemblyStatus["POSTPROCESSINGFAILED"] = "POSTPROCESSING_FAILED";
31
+ AssemblyStatus["DONE"] = "DONE";
31
32
  })(AssemblyStatus = exports.AssemblyStatus || (exports.AssemblyStatus = {}));
32
33
  function AssemblyStatusFromJSON(json) {
33
34
  return AssemblyStatusFromJSONTyped(json, false);
@@ -0,0 +1,27 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface FactoryType
16
+ */
17
+ export interface FactoryType {
18
+ /**
19
+ * Type of the factory/algorithm to use for this assembly
20
+ * @type {string}
21
+ * @memberof FactoryType
22
+ */
23
+ type: string;
24
+ }
25
+ export declare function FactoryTypeFromJSON(json: any): FactoryType;
26
+ export declare function FactoryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FactoryType;
27
+ export declare function FactoryTypeToJSON(value?: FactoryType | null): any;
@@ -0,0 +1,41 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FactoryTypeToJSON = exports.FactoryTypeFromJSONTyped = exports.FactoryTypeFromJSON = void 0;
17
+ function FactoryTypeFromJSON(json) {
18
+ return FactoryTypeFromJSONTyped(json, false);
19
+ }
20
+ exports.FactoryTypeFromJSON = FactoryTypeFromJSON;
21
+ function FactoryTypeFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'type': json['type'],
27
+ };
28
+ }
29
+ exports.FactoryTypeFromJSONTyped = FactoryTypeFromJSONTyped;
30
+ function FactoryTypeToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'type': value.type,
39
+ };
40
+ }
41
+ exports.FactoryTypeToJSON = FactoryTypeToJSON;