@lcdp/api-react-rest-client 2.13.6-LDS-4612-gestion-froid-par-labo.16500381220 → 2.13.6-LDS-4612-gestion-froid-par-labo.16516598805

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.13.6-LDS-4612-gestion-froid-par-labo.16500381220",
3
+ "version": "2.13.6-LDS-4612-gestion-froid-par-labo.16516598805",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -0,0 +1,26 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
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 { UserStorageType } from '../models/index';
14
+ /**
15
+ *
16
+ */
17
+ export declare class SearchUserStorageTypeApi extends runtime.BaseAPI {
18
+ /**
19
+ * Get storage types relatives to an user
20
+ */
21
+ getUserStorageTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserStorageType> | runtime.BlobWithMeta>>;
22
+ /**
23
+ * Get storage types relatives to an user
24
+ */
25
+ getUserStorageTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserStorageType> | runtime.BlobWithMeta>;
26
+ }
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
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.SearchUserStorageTypeApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var SearchUserStorageTypeApi = /** @class */ (function (_super) {
74
+ __extends(SearchUserStorageTypeApi, _super);
75
+ function SearchUserStorageTypeApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Get storage types relatives to an user
80
+ */
81
+ SearchUserStorageTypeApi.prototype.getUserStorageTypesRaw = function (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
+ headerParameters = {};
89
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
90
+ _a = headerParameters;
91
+ _b = "x-api-key";
92
+ return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
93
+ case 1:
94
+ _a[_b] = _c.sent(); // apiKeyAuth authentication
95
+ _c.label = 2;
96
+ case 2:
97
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
98
+ token = this.configuration.accessToken;
99
+ return [4 /*yield*/, token("bearerAuth", [])];
100
+ case 3:
101
+ tokenString = _c.sent();
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
104
+ }
105
+ _c.label = 4;
106
+ case 4:
107
+ _c.trys.push([4, 6, , 7]);
108
+ return [4 /*yield*/, this.request({
109
+ path: "/users/storage-types",
110
+ method: 'GET',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ }, initOverrides)];
114
+ case 5:
115
+ response = _c.sent();
116
+ contentType = response.headers.get("content-type");
117
+ if (contentType && contentType.indexOf("application/json") !== -1) {
118
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.UserStorageTypeFromJSON); })];
119
+ }
120
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
121
+ return [2 /*return*/, new runtime.TextApiResponse(response)];
122
+ }
123
+ else {
124
+ // TODO : Better handling of others application types
125
+ return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
126
+ }
127
+ return [3 /*break*/, 7];
128
+ case 6:
129
+ response_1 = _c.sent();
130
+ console.debug(response_1);
131
+ throw response_1;
132
+ case 7: return [2 /*return*/];
133
+ }
134
+ });
135
+ });
136
+ };
137
+ /**
138
+ * Get storage types relatives to an user
139
+ */
140
+ SearchUserStorageTypeApi.prototype.getUserStorageTypes = function (initOverrides) {
141
+ return __awaiter(this, void 0, void 0, function () {
142
+ var response;
143
+ return __generator(this, function (_a) {
144
+ switch (_a.label) {
145
+ case 0: return [4 /*yield*/, this.getUserStorageTypesRaw(initOverrides)];
146
+ case 1:
147
+ response = _a.sent();
148
+ return [4 /*yield*/, response.value()];
149
+ case 2: return [2 /*return*/, _a.sent()];
150
+ }
151
+ });
152
+ });
153
+ };
154
+ return SearchUserStorageTypeApi;
155
+ }(runtime.BaseAPI));
156
+ exports.SearchUserStorageTypeApi = SearchUserStorageTypeApi;
@@ -14,4 +14,5 @@ export * from './SearchUserFeatureApi';
14
14
  export * from './SearchUserRestrictionApi';
15
15
  export * from './SearchUserRuleApi';
16
16
  export * from './SearchUserSocialNetworksApi';
17
+ export * from './SearchUserStorageTypeApi';
17
18
  export * from './SearchUserTransportApi';
@@ -32,4 +32,5 @@ __exportStar(require("./SearchUserFeatureApi"), exports);
32
32
  __exportStar(require("./SearchUserRestrictionApi"), exports);
33
33
  __exportStar(require("./SearchUserRuleApi"), exports);
34
34
  __exportStar(require("./SearchUserSocialNetworksApi"), exports);
35
+ __exportStar(require("./SearchUserStorageTypeApi"), exports);
35
36
  __exportStar(require("./SearchUserTransportApi"), exports);
@@ -0,0 +1,37 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
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 UserStorageType
16
+ */
17
+ export interface UserStorageType {
18
+ /**
19
+ * Id of the storage type (machine name)
20
+ * @type {string}
21
+ * @memberof UserStorageType
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Readable name for display
26
+ * @type {string}
27
+ * @memberof UserStorageType
28
+ */
29
+ name?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserStorageType interface.
33
+ */
34
+ export declare function instanceOfUserStorageType(value: object): value is UserStorageType;
35
+ export declare function UserStorageTypeFromJSON(json: any): UserStorageType;
36
+ export declare function UserStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStorageType;
37
+ export declare function UserStorageTypeToJSON(value?: UserStorageType | null): any;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
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.UserStorageTypeToJSON = exports.UserStorageTypeFromJSONTyped = exports.UserStorageTypeFromJSON = exports.instanceOfUserStorageType = void 0;
17
+ /**
18
+ * Check if a given object implements the UserStorageType interface.
19
+ */
20
+ function instanceOfUserStorageType(value) {
21
+ return true;
22
+ }
23
+ exports.instanceOfUserStorageType = instanceOfUserStorageType;
24
+ function UserStorageTypeFromJSON(json) {
25
+ return UserStorageTypeFromJSONTyped(json, false);
26
+ }
27
+ exports.UserStorageTypeFromJSON = UserStorageTypeFromJSON;
28
+ function UserStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'id': json['id'],
34
+ 'name': json['name'],
35
+ };
36
+ }
37
+ exports.UserStorageTypeFromJSONTyped = UserStorageTypeFromJSONTyped;
38
+ function UserStorageTypeToJSON(value) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'id': value['id'],
44
+ 'name': value['name'],
45
+ };
46
+ }
47
+ exports.UserStorageTypeToJSON = UserStorageTypeToJSON;
@@ -47,6 +47,7 @@ export * from './UserRuleComparatorEnum';
47
47
  export * from './UserRuleCreationParameters';
48
48
  export * from './UserSocialNetwork';
49
49
  export * from './UserStatisticLink';
50
+ export * from './UserStorageType';
50
51
  export * from './UserThreads';
51
52
  export * from './UserUpdateParameters';
52
53
  export * from './UserWalletLink';
@@ -65,6 +65,7 @@ __exportStar(require("./UserRuleComparatorEnum"), exports);
65
65
  __exportStar(require("./UserRuleCreationParameters"), exports);
66
66
  __exportStar(require("./UserSocialNetwork"), exports);
67
67
  __exportStar(require("./UserStatisticLink"), exports);
68
+ __exportStar(require("./UserStorageType"), exports);
68
69
  __exportStar(require("./UserThreads"), exports);
69
70
  __exportStar(require("./UserUpdateParameters"), exports);
70
71
  __exportStar(require("./UserWalletLink"), exports);