@lcdp/api-react-rest-client 3.5.3-LDS-5772-api-ajouter-pharmaidegeneratedc.27015201959 → 3.5.3-LDS-5772-api-ajouter-pharmaidegeneratedc.27015495861

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 (51) hide show
  1. package/magic-cart/src/models/ExpressOrderNeed.d.ts +2 -2
  2. package/magic-cart/src/models/ExpressOrderNeed.js +2 -2
  3. package/package.json +1 -1
  4. package/recommendation/src/models/ProductRecommendationType.d.ts +2 -0
  5. package/recommendation/src/models/ProductRecommendationType.js +3 -1
  6. package/shopping-cart/src/apis/SearchCartApi.d.ts +3 -0
  7. package/shopping-cart/src/apis/SearchCartApi.js +6 -1
  8. package/storage/index.d.ts +1 -0
  9. package/storage/index.js +17 -0
  10. package/storage/src/apis/SearchStorageApi.d.ts +32 -0
  11. package/storage/src/apis/SearchStorageApi.js +169 -0
  12. package/storage/src/apis/index.d.ts +1 -0
  13. package/storage/src/apis/index.js +19 -0
  14. package/storage/src/index.d.ts +3 -0
  15. package/storage/src/index.js +21 -0
  16. package/storage/src/models/HttpLink.d.ts +31 -0
  17. package/storage/src/models/HttpLink.js +47 -0
  18. package/storage/src/models/OwnerLink.d.ts +37 -0
  19. package/storage/src/models/OwnerLink.js +49 -0
  20. package/storage/src/models/PaginatedObject.d.ts +32 -0
  21. package/storage/src/models/PaginatedObject.js +48 -0
  22. package/storage/src/models/PaginatedStocks.d.ts +39 -0
  23. package/storage/src/models/PaginatedStocks.js +53 -0
  24. package/storage/src/models/PagingMetadata.d.ts +49 -0
  25. package/storage/src/models/PagingMetadata.js +55 -0
  26. package/storage/src/models/ProductLink.d.ts +37 -0
  27. package/storage/src/models/ProductLink.js +49 -0
  28. package/storage/src/models/Stock.d.ts +93 -0
  29. package/storage/src/models/Stock.js +67 -0
  30. package/storage/src/models/index.d.ts +7 -0
  31. package/storage/src/models/index.js +25 -0
  32. package/storage/src/runtime.d.ts +190 -0
  33. package/storage/src/runtime.js +594 -0
  34. package/supply/index.d.ts +1 -0
  35. package/supply/index.js +17 -0
  36. package/supply/src/apis/ManageSupplyApi.d.ts +29 -0
  37. package/supply/src/apis/ManageSupplyApi.js +161 -0
  38. package/supply/src/apis/index.d.ts +1 -0
  39. package/supply/src/apis/index.js +19 -0
  40. package/supply/src/index.d.ts +3 -0
  41. package/supply/src/index.js +21 -0
  42. package/supply/src/models/ExpressOrderNeed.d.ts +49 -0
  43. package/supply/src/models/ExpressOrderNeed.js +55 -0
  44. package/supply/src/models/SupplyNeedsCreationParameters.d.ts +31 -0
  45. package/supply/src/models/SupplyNeedsCreationParameters.js +47 -0
  46. package/supply/src/models/index.d.ts +2 -0
  47. package/supply/src/models/index.js +20 -0
  48. package/supply/src/runtime.d.ts +190 -0
  49. package/supply/src/runtime.js +594 -0
  50. package/user/src/models/UserJournal.d.ts +1 -1
  51. package/user/src/models/UserJournalUpdateParameters.d.ts +1 -1
@@ -28,11 +28,11 @@ export interface ExpressOrderNeed {
28
28
  */
29
29
  quantity: number;
30
30
  /**
31
- * minimalDiscount can be negative cause discount can be negative
31
+ * Maximum unit price acceptable for the product
32
32
  * @type {number}
33
33
  * @memberof ExpressOrderNeed
34
34
  */
35
- minimalDiscount?: number | null;
35
+ maximalUnitPrice?: number | null;
36
36
  /**
37
37
  * The lapsing date must be reached after this date. (see ISO-8601 https://tc39.es/proposal-temporal/docs/duration.html)
38
38
  * @type {string}
@@ -36,7 +36,7 @@ function ExpressOrderNeedFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return {
37
37
  'productId': json['productId'],
38
38
  'quantity': json['quantity'],
39
- 'minimalDiscount': json['minimalDiscount'],
39
+ 'maximalUnitPrice': json['maximalUnitPrice'],
40
40
  'minimalLapsingDuration': json['minimalLapsingDuration'],
41
41
  };
42
42
  }
@@ -48,7 +48,7 @@ function ExpressOrderNeedToJSON(value) {
48
48
  return {
49
49
  'productId': value['productId'],
50
50
  'quantity': value['quantity'],
51
- 'minimalDiscount': value['minimalDiscount'],
51
+ 'maximalUnitPrice': value['maximalUnitPrice'],
52
52
  'minimalLapsingDuration': value['minimalLapsingDuration'],
53
53
  };
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "3.5.3-LDS-5772-api-ajouter-pharmaidegeneratedc.27015201959",
3
+ "version": "3.5.3-LDS-5772-api-ajouter-pharmaidegeneratedc.27015495861",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -14,6 +14,7 @@
14
14
  * - BUYING_SIMILARITY : Based on similarity with other user purchases
15
15
  * - SELLING_SIMILARITY : Based on similarity with other user sales
16
16
  * - BUYING_UNDERSTOCK : Based on the needs of products to be bought by a user
17
+ * - BUYING_OPPORTUNITY : Based on the buying opportunity of products for a user
17
18
  *
18
19
  * @export
19
20
  */
@@ -22,6 +23,7 @@ export declare const ProductRecommendationType: {
22
23
  readonly SELLING_SIMILARITY: "SELLING_SIMILARITY";
23
24
  readonly BUYING_SIMILARITY: "BUYING_SIMILARITY";
24
25
  readonly BUYING_UNDERSTOCK: "BUYING_UNDERSTOCK";
26
+ readonly BUYING_OPPORTUNITY: "BUYING_OPPORTUNITY";
25
27
  };
26
28
  export declare type ProductRecommendationType = typeof ProductRecommendationType[keyof typeof ProductRecommendationType];
27
29
  export declare function instanceOfProductRecommendationType(value: any): boolean;
@@ -19,6 +19,7 @@ exports.ProductRecommendationTypeToJSON = exports.ProductRecommendationTypeFromJ
19
19
  * - BUYING_SIMILARITY : Based on similarity with other user purchases
20
20
  * - SELLING_SIMILARITY : Based on similarity with other user sales
21
21
  * - BUYING_UNDERSTOCK : Based on the needs of products to be bought by a user
22
+ * - BUYING_OPPORTUNITY : Based on the buying opportunity of products for a user
22
23
  *
23
24
  * @export
24
25
  */
@@ -26,7 +27,8 @@ exports.ProductRecommendationType = {
26
27
  BUYING_HISTORY: 'BUYING_HISTORY',
27
28
  SELLING_SIMILARITY: 'SELLING_SIMILARITY',
28
29
  BUYING_SIMILARITY: 'BUYING_SIMILARITY',
29
- BUYING_UNDERSTOCK: 'BUYING_UNDERSTOCK'
30
+ BUYING_UNDERSTOCK: 'BUYING_UNDERSTOCK',
31
+ BUYING_OPPORTUNITY: 'BUYING_OPPORTUNITY'
30
32
  };
31
33
  function instanceOfProductRecommendationType(value) {
32
34
  for (var key in exports.ProductRecommendationType) {
@@ -19,6 +19,7 @@ export interface GetCartsRequest {
19
19
  oEq?: Array<number>;
20
20
  sEq?: Array<number>;
21
21
  channelEq?: Array<string>;
22
+ channelSw?: string;
22
23
  orderBy?: GetCartsOrderByEnum;
23
24
  p?: number;
24
25
  pp?: number;
@@ -56,5 +57,7 @@ export declare const GetCartsOrderByEnum: {
56
57
  readonly UPDATED_AT_DESC: "UPDATED_AT:desc";
57
58
  readonly TOTAL_EXCLUDING_TAXES_ASC: "TOTAL_EXCLUDING_TAXES:asc";
58
59
  readonly TOTAL_EXCLUDING_TAXES_DESC: "TOTAL_EXCLUDING_TAXES:desc";
60
+ readonly CREATED_AT_ASC: "CREATED_AT:asc";
61
+ readonly CREATED_AT_DESC: "CREATED_AT:desc";
59
62
  };
60
63
  export declare type GetCartsOrderByEnum = typeof GetCartsOrderByEnum[keyof typeof GetCartsOrderByEnum];
@@ -179,6 +179,9 @@ var SearchCartApi = /** @class */ (function (_super) {
179
179
  if (requestParameters['channelEq'] != null) {
180
180
  queryParameters['channel[eq]'] = requestParameters['channelEq'];
181
181
  }
182
+ if (requestParameters['channelSw'] != null) {
183
+ queryParameters['channel[sw]'] = requestParameters['channelSw'];
184
+ }
182
185
  if (requestParameters['orderBy'] != null) {
183
186
  queryParameters['orderBy'] = requestParameters['orderBy'];
184
187
  }
@@ -266,5 +269,7 @@ exports.GetCartsOrderByEnum = {
266
269
  UPDATED_AT_ASC: 'UPDATED_AT:asc',
267
270
  UPDATED_AT_DESC: 'UPDATED_AT:desc',
268
271
  TOTAL_EXCLUDING_TAXES_ASC: 'TOTAL_EXCLUDING_TAXES:asc',
269
- TOTAL_EXCLUDING_TAXES_DESC: 'TOTAL_EXCLUDING_TAXES:desc'
272
+ TOTAL_EXCLUDING_TAXES_DESC: 'TOTAL_EXCLUDING_TAXES:desc',
273
+ CREATED_AT_ASC: 'CREATED_AT:asc',
274
+ CREATED_AT_DESC: 'CREATED_AT:desc'
270
275
  };
@@ -0,0 +1 @@
1
+ export * from './src';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src"), exports);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * lcdp-data-intelligence
3
+ * This is the REST API of LCDP stock storage
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 * as runtime from '../runtime';
13
+ import type { PaginatedStocks } from '../models/index';
14
+ export interface GetStocksRequest {
15
+ pEq?: Array<number>;
16
+ oEq?: Array<number>;
17
+ p?: number;
18
+ pp?: number;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class SearchStorageApi extends runtime.BaseAPI {
24
+ /**
25
+ * Get all stocks
26
+ */
27
+ getStocksRaw(requestParameters: GetStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedStocks | runtime.BlobWithMeta>>;
28
+ /**
29
+ * Get all stocks
30
+ */
31
+ getStocks(requestParameters?: GetStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedStocks | runtime.BlobWithMeta>;
32
+ }
@@ -0,0 +1,169 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-data-intelligence
6
+ * This is the REST API of LCDP stock storage
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 __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (_) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.SearchStorageApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var SearchStorageApi = /** @class */ (function (_super) {
74
+ __extends(SearchStorageApi, _super);
75
+ function SearchStorageApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Get all stocks
80
+ */
81
+ SearchStorageApi.prototype.getStocksRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_1;
84
+ return __generator(this, function (_c) {
85
+ switch (_c.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ if (requestParameters['pEq'] != null) {
89
+ queryParameters['p[eq]'] = requestParameters['pEq'];
90
+ }
91
+ if (requestParameters['oEq'] != null) {
92
+ queryParameters['o[eq]'] = requestParameters['oEq'];
93
+ }
94
+ if (requestParameters['p'] != null) {
95
+ queryParameters['p'] = requestParameters['p'];
96
+ }
97
+ if (requestParameters['pp'] != null) {
98
+ queryParameters['pp'] = requestParameters['pp'];
99
+ }
100
+ headerParameters = {};
101
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
102
+ _a = headerParameters;
103
+ _b = "x-api-key";
104
+ return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
105
+ case 1:
106
+ _a[_b] = _c.sent(); // apiKeyAuth authentication
107
+ _c.label = 2;
108
+ case 2:
109
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
110
+ token = this.configuration.accessToken;
111
+ return [4 /*yield*/, token("bearerAuth", [])];
112
+ case 3:
113
+ tokenString = _c.sent();
114
+ if (tokenString) {
115
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
116
+ }
117
+ _c.label = 4;
118
+ case 4:
119
+ _c.trys.push([4, 6, , 7]);
120
+ return [4 /*yield*/, this.request({
121
+ path: "/stocks",
122
+ method: 'GET',
123
+ headers: headerParameters,
124
+ query: queryParameters,
125
+ }, initOverrides)];
126
+ case 5:
127
+ response = _c.sent();
128
+ contentType = response.headers.get("content-type");
129
+ if (contentType && contentType.indexOf("application/json") !== -1) {
130
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedStocksFromJSON)(jsonValue); })];
131
+ }
132
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
133
+ return [2 /*return*/, new runtime.TextApiResponse(response)];
134
+ }
135
+ else {
136
+ // TODO : Better handling of others application types
137
+ return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
138
+ }
139
+ return [3 /*break*/, 7];
140
+ case 6:
141
+ response_1 = _c.sent();
142
+ console.debug(response_1);
143
+ throw response_1;
144
+ case 7: return [2 /*return*/];
145
+ }
146
+ });
147
+ });
148
+ };
149
+ /**
150
+ * Get all stocks
151
+ */
152
+ SearchStorageApi.prototype.getStocks = function (requestParameters, initOverrides) {
153
+ if (requestParameters === void 0) { requestParameters = {}; }
154
+ return __awaiter(this, void 0, void 0, function () {
155
+ var response;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0: return [4 /*yield*/, this.getStocksRaw(requestParameters, initOverrides)];
159
+ case 1:
160
+ response = _a.sent();
161
+ return [4 /*yield*/, response.value()];
162
+ case 2: return [2 /*return*/, _a.sent()];
163
+ }
164
+ });
165
+ });
166
+ };
167
+ return SearchStorageApi;
168
+ }(runtime.BaseAPI));
169
+ exports.SearchStorageApi = SearchStorageApi;
@@ -0,0 +1 @@
1
+ export * from './SearchStorageApi';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./SearchStorageApi"), exports);
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./apis/index"), exports);
21
+ __exportStar(require("./models/index"), exports);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * lcdp-data-intelligence
3
+ * This is the REST API of LCDP stock storage
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
+ * A base type of objects representing links to resources.
14
+ * @export
15
+ * @interface HttpLink
16
+ */
17
+ export interface HttpLink {
18
+ /**
19
+ * Any URL that is using http or https protocol
20
+ * @type {string}
21
+ * @memberof HttpLink
22
+ */
23
+ href: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the HttpLink interface.
27
+ */
28
+ export declare function instanceOfHttpLink(value: object): value is HttpLink;
29
+ export declare function HttpLinkFromJSON(json: any): HttpLink;
30
+ export declare function HttpLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpLink;
31
+ export declare function HttpLinkToJSON(value?: HttpLink | null): any;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-data-intelligence
6
+ * This is the REST API of LCDP stock storage
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.HttpLinkToJSON = exports.HttpLinkFromJSONTyped = exports.HttpLinkFromJSON = exports.instanceOfHttpLink = void 0;
17
+ /**
18
+ * Check if a given object implements the HttpLink interface.
19
+ */
20
+ function instanceOfHttpLink(value) {
21
+ if (!('href' in value) || value['href'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ exports.instanceOfHttpLink = instanceOfHttpLink;
26
+ function HttpLinkFromJSON(json) {
27
+ return HttpLinkFromJSONTyped(json, false);
28
+ }
29
+ exports.HttpLinkFromJSON = HttpLinkFromJSON;
30
+ function HttpLinkFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'href': json['href'],
36
+ };
37
+ }
38
+ exports.HttpLinkFromJSONTyped = HttpLinkFromJSONTyped;
39
+ function HttpLinkToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'href': value['href'],
45
+ };
46
+ }
47
+ exports.HttpLinkToJSON = HttpLinkToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * lcdp-data-intelligence
3
+ * This is the REST API of LCDP stock storage
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 OwnerLink
16
+ */
17
+ export interface OwnerLink {
18
+ /**
19
+ * Any URL that is using http or https protocol
20
+ * @type {string}
21
+ * @memberof OwnerLink
22
+ */
23
+ href: string;
24
+ /**
25
+ * Identifier of the owner
26
+ * @type {number}
27
+ * @memberof OwnerLink
28
+ */
29
+ id?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OwnerLink interface.
33
+ */
34
+ export declare function instanceOfOwnerLink(value: object): value is OwnerLink;
35
+ export declare function OwnerLinkFromJSON(json: any): OwnerLink;
36
+ export declare function OwnerLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): OwnerLink;
37
+ export declare function OwnerLinkToJSON(value?: OwnerLink | null): any;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-data-intelligence
6
+ * This is the REST API of LCDP stock storage
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.OwnerLinkToJSON = exports.OwnerLinkFromJSONTyped = exports.OwnerLinkFromJSON = exports.instanceOfOwnerLink = void 0;
17
+ /**
18
+ * Check if a given object implements the OwnerLink interface.
19
+ */
20
+ function instanceOfOwnerLink(value) {
21
+ if (!('href' in value) || value['href'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ exports.instanceOfOwnerLink = instanceOfOwnerLink;
26
+ function OwnerLinkFromJSON(json) {
27
+ return OwnerLinkFromJSONTyped(json, false);
28
+ }
29
+ exports.OwnerLinkFromJSON = OwnerLinkFromJSON;
30
+ function OwnerLinkFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'href': json['href'],
36
+ 'id': json['id'],
37
+ };
38
+ }
39
+ exports.OwnerLinkFromJSONTyped = OwnerLinkFromJSONTyped;
40
+ function OwnerLinkToJSON(value) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'href': value['href'],
46
+ 'id': value['id'],
47
+ };
48
+ }
49
+ exports.OwnerLinkToJSON = OwnerLinkToJSON;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * lcdp-data-intelligence
3
+ * This is the REST API of LCDP stock storage
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 type { PagingMetadata } from './PagingMetadata';
13
+ /**
14
+ * An object which is not complete (only a specific page is available)
15
+ * @export
16
+ * @interface PaginatedObject
17
+ */
18
+ export interface PaginatedObject {
19
+ /**
20
+ *
21
+ * @type {PagingMetadata}
22
+ * @memberof PaginatedObject
23
+ */
24
+ metadata: PagingMetadata;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PaginatedObject interface.
28
+ */
29
+ export declare function instanceOfPaginatedObject(value: object): value is PaginatedObject;
30
+ export declare function PaginatedObjectFromJSON(json: any): PaginatedObject;
31
+ export declare function PaginatedObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedObject;
32
+ export declare function PaginatedObjectToJSON(value?: PaginatedObject | null): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-data-intelligence
6
+ * This is the REST API of LCDP stock storage
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.PaginatedObjectToJSON = exports.PaginatedObjectFromJSONTyped = exports.PaginatedObjectFromJSON = exports.instanceOfPaginatedObject = void 0;
17
+ var PagingMetadata_1 = require("./PagingMetadata");
18
+ /**
19
+ * Check if a given object implements the PaginatedObject interface.
20
+ */
21
+ function instanceOfPaginatedObject(value) {
22
+ if (!('metadata' in value) || value['metadata'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ exports.instanceOfPaginatedObject = instanceOfPaginatedObject;
27
+ function PaginatedObjectFromJSON(json) {
28
+ return PaginatedObjectFromJSONTyped(json, false);
29
+ }
30
+ exports.PaginatedObjectFromJSON = PaginatedObjectFromJSON;
31
+ function PaginatedObjectFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
37
+ };
38
+ }
39
+ exports.PaginatedObjectFromJSONTyped = PaginatedObjectFromJSONTyped;
40
+ function PaginatedObjectToJSON(value) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
46
+ };
47
+ }
48
+ exports.PaginatedObjectToJSON = PaginatedObjectToJSON;