@lcdp/api-react-rest-client 2.13.3-LDS-4475-mangopay-sca.15269504748 → 2.13.3-LDS-4475-mangopay-sca.15342116849

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.
@@ -31,12 +31,14 @@ export interface UpdateCurrentInventorySynchronizationsRequest {
31
31
  synchronization: Synchronization;
32
32
  idEq?: Array<number>;
33
33
  modeEq?: Array<SynchronizationMode>;
34
+ modeNeq?: Array<SynchronizationMode>;
34
35
  }
35
36
  export interface UpdateInventorySynchronizationsRequest {
36
37
  inventoryId: number;
37
38
  synchronization: Synchronization;
38
39
  idEq?: Array<number>;
39
40
  modeEq?: Array<SynchronizationMode>;
41
+ modeNeq?: Array<SynchronizationMode>;
40
42
  }
41
43
  /**
42
44
  *
@@ -378,6 +378,9 @@ var ManageInventorySynchronizationApi = /** @class */ (function (_super) {
378
378
  if (requestParameters['modeEq'] != null) {
379
379
  queryParameters['mode[eq]'] = requestParameters['modeEq'];
380
380
  }
381
+ if (requestParameters['modeNeq'] != null) {
382
+ queryParameters['mode[neq]'] = requestParameters['modeNeq'];
383
+ }
381
384
  headerParameters = {};
382
385
  headerParameters['Content-Type'] = 'application/json';
383
386
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
@@ -455,6 +458,9 @@ var ManageInventorySynchronizationApi = /** @class */ (function (_super) {
455
458
  if (requestParameters['modeEq'] != null) {
456
459
  queryParameters['mode[eq]'] = requestParameters['modeEq'];
457
460
  }
461
+ if (requestParameters['modeNeq'] != null) {
462
+ queryParameters['mode[neq]'] = requestParameters['modeNeq'];
463
+ }
458
464
  headerParameters = {};
459
465
  headerParameters['Content-Type'] = 'application/json';
460
466
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
@@ -0,0 +1,49 @@
1
+ /**
2
+ * lcdp-pharmaide-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 { PaginatedIdentifiedSynchronization, SynchronizationMode } from '../models/index';
14
+ export interface GetCurrentInventorySynchronizationsRequest {
15
+ idEq?: Array<number>;
16
+ modeEq?: Array<SynchronizationMode>;
17
+ modeNeq?: Array<SynchronizationMode>;
18
+ p?: number;
19
+ pp?: number;
20
+ }
21
+ export interface GetInventorySynchronizationsRequest {
22
+ inventoryId: number;
23
+ idEq?: Array<number>;
24
+ modeEq?: Array<SynchronizationMode>;
25
+ modeNeq?: Array<SynchronizationMode>;
26
+ p?: number;
27
+ pp?: number;
28
+ }
29
+ /**
30
+ *
31
+ */
32
+ export declare class SearchInventorySynchronizationApi extends runtime.BaseAPI {
33
+ /**
34
+ * Get synchronizations of the current user
35
+ */
36
+ getCurrentInventorySynchronizationsRaw(requestParameters: GetCurrentInventorySynchronizationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIdentifiedSynchronization | runtime.BlobWithMeta>>;
37
+ /**
38
+ * Get synchronizations of the current user
39
+ */
40
+ getCurrentInventorySynchronizations(requestParameters?: GetCurrentInventorySynchronizationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIdentifiedSynchronization | runtime.BlobWithMeta>;
41
+ /**
42
+ * Get synchronizations of the current user
43
+ */
44
+ getInventorySynchronizationsRaw(requestParameters: GetInventorySynchronizationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIdentifiedSynchronization | runtime.BlobWithMeta>>;
45
+ /**
46
+ * Get synchronizations of the current user
47
+ */
48
+ getInventorySynchronizations(requestParameters: GetInventorySynchronizationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIdentifiedSynchronization | runtime.BlobWithMeta>;
49
+ }
@@ -0,0 +1,266 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-pharmaide-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.SearchInventorySynchronizationApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var SearchInventorySynchronizationApi = /** @class */ (function (_super) {
74
+ __extends(SearchInventorySynchronizationApi, _super);
75
+ function SearchInventorySynchronizationApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Get synchronizations of the current user
80
+ */
81
+ SearchInventorySynchronizationApi.prototype.getCurrentInventorySynchronizationsRaw = 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['idEq'] != null) {
89
+ queryParameters['id[eq]'] = requestParameters['idEq'];
90
+ }
91
+ if (requestParameters['modeEq'] != null) {
92
+ queryParameters['mode[eq]'] = requestParameters['modeEq'];
93
+ }
94
+ if (requestParameters['modeNeq'] != null) {
95
+ queryParameters['mode[neq]'] = requestParameters['modeNeq'];
96
+ }
97
+ if (requestParameters['p'] != null) {
98
+ queryParameters['p'] = requestParameters['p'];
99
+ }
100
+ if (requestParameters['pp'] != null) {
101
+ queryParameters['pp'] = requestParameters['pp'];
102
+ }
103
+ headerParameters = {};
104
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
105
+ _a = headerParameters;
106
+ _b = "x-api-key";
107
+ return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
108
+ case 1:
109
+ _a[_b] = _c.sent(); // apiKeyAuth authentication
110
+ _c.label = 2;
111
+ case 2:
112
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
113
+ token = this.configuration.accessToken;
114
+ return [4 /*yield*/, token("bearerAuth", [])];
115
+ case 3:
116
+ tokenString = _c.sent();
117
+ if (tokenString) {
118
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
119
+ }
120
+ _c.label = 4;
121
+ case 4:
122
+ _c.trys.push([4, 6, , 7]);
123
+ return [4 /*yield*/, this.request({
124
+ path: "/inventories/me/synchronizations",
125
+ method: 'GET',
126
+ headers: headerParameters,
127
+ query: queryParameters,
128
+ }, initOverrides)];
129
+ case 5:
130
+ response = _c.sent();
131
+ contentType = response.headers.get("content-type");
132
+ if (contentType && contentType.indexOf("application/json") !== -1) {
133
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIdentifiedSynchronizationFromJSON)(jsonValue); })];
134
+ }
135
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
136
+ return [2 /*return*/, new runtime.TextApiResponse(response)];
137
+ }
138
+ else {
139
+ // TODO : Better handling of others application types
140
+ return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
141
+ }
142
+ return [3 /*break*/, 7];
143
+ case 6:
144
+ response_1 = _c.sent();
145
+ console.debug(response_1);
146
+ throw response_1;
147
+ case 7: return [2 /*return*/];
148
+ }
149
+ });
150
+ });
151
+ };
152
+ /**
153
+ * Get synchronizations of the current user
154
+ */
155
+ SearchInventorySynchronizationApi.prototype.getCurrentInventorySynchronizations = function (requestParameters, initOverrides) {
156
+ if (requestParameters === void 0) { requestParameters = {}; }
157
+ return __awaiter(this, void 0, void 0, function () {
158
+ var response;
159
+ return __generator(this, function (_a) {
160
+ switch (_a.label) {
161
+ case 0: return [4 /*yield*/, this.getCurrentInventorySynchronizationsRaw(requestParameters, initOverrides)];
162
+ case 1:
163
+ response = _a.sent();
164
+ return [4 /*yield*/, response.value()];
165
+ case 2: return [2 /*return*/, _a.sent()];
166
+ }
167
+ });
168
+ });
169
+ };
170
+ /**
171
+ * Get synchronizations of the current user
172
+ */
173
+ SearchInventorySynchronizationApi.prototype.getInventorySynchronizationsRaw = function (requestParameters, initOverrides) {
174
+ return __awaiter(this, void 0, void 0, function () {
175
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
176
+ return __generator(this, function (_c) {
177
+ switch (_c.label) {
178
+ case 0:
179
+ if (requestParameters['inventoryId'] == null) {
180
+ throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling getInventorySynchronizations().');
181
+ }
182
+ queryParameters = {};
183
+ if (requestParameters['idEq'] != null) {
184
+ queryParameters['id[eq]'] = requestParameters['idEq'];
185
+ }
186
+ if (requestParameters['modeEq'] != null) {
187
+ queryParameters['mode[eq]'] = requestParameters['modeEq'];
188
+ }
189
+ if (requestParameters['modeNeq'] != null) {
190
+ queryParameters['mode[neq]'] = requestParameters['modeNeq'];
191
+ }
192
+ if (requestParameters['p'] != null) {
193
+ queryParameters['p'] = requestParameters['p'];
194
+ }
195
+ if (requestParameters['pp'] != null) {
196
+ queryParameters['pp'] = requestParameters['pp'];
197
+ }
198
+ headerParameters = {};
199
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
200
+ _a = headerParameters;
201
+ _b = "x-api-key";
202
+ return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
203
+ case 1:
204
+ _a[_b] = _c.sent(); // apiKeyAuth authentication
205
+ _c.label = 2;
206
+ case 2:
207
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
208
+ token = this.configuration.accessToken;
209
+ return [4 /*yield*/, token("bearerAuth", [])];
210
+ case 3:
211
+ tokenString = _c.sent();
212
+ if (tokenString) {
213
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
214
+ }
215
+ _c.label = 4;
216
+ case 4:
217
+ _c.trys.push([4, 6, , 7]);
218
+ return [4 /*yield*/, this.request({
219
+ path: "/inventories/{inventoryId}/synchronizations".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters['inventoryId']))),
220
+ method: 'GET',
221
+ headers: headerParameters,
222
+ query: queryParameters,
223
+ }, initOverrides)];
224
+ case 5:
225
+ response = _c.sent();
226
+ contentType = response.headers.get("content-type");
227
+ if (contentType && contentType.indexOf("application/json") !== -1) {
228
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIdentifiedSynchronizationFromJSON)(jsonValue); })];
229
+ }
230
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
231
+ return [2 /*return*/, new runtime.TextApiResponse(response)];
232
+ }
233
+ else {
234
+ // TODO : Better handling of others application types
235
+ return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
236
+ }
237
+ return [3 /*break*/, 7];
238
+ case 6:
239
+ response_2 = _c.sent();
240
+ console.debug(response_2);
241
+ throw response_2;
242
+ case 7: return [2 /*return*/];
243
+ }
244
+ });
245
+ });
246
+ };
247
+ /**
248
+ * Get synchronizations of the current user
249
+ */
250
+ SearchInventorySynchronizationApi.prototype.getInventorySynchronizations = function (requestParameters, initOverrides) {
251
+ return __awaiter(this, void 0, void 0, function () {
252
+ var response;
253
+ return __generator(this, function (_a) {
254
+ switch (_a.label) {
255
+ case 0: return [4 /*yield*/, this.getInventorySynchronizationsRaw(requestParameters, initOverrides)];
256
+ case 1:
257
+ response = _a.sent();
258
+ return [4 /*yield*/, response.value()];
259
+ case 2: return [2 /*return*/, _a.sent()];
260
+ }
261
+ });
262
+ });
263
+ };
264
+ return SearchInventorySynchronizationApi;
265
+ }(runtime.BaseAPI));
266
+ exports.SearchInventorySynchronizationApi = SearchInventorySynchronizationApi;
@@ -1,3 +1,4 @@
1
1
  export * from './ManageInventoryApi';
2
2
  export * from './ManageInventorySynchronizationApi';
3
3
  export * from './SearchInventoryApi';
4
+ export * from './SearchInventorySynchronizationApi';
@@ -19,3 +19,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./ManageInventoryApi"), exports);
20
20
  __exportStar(require("./ManageInventorySynchronizationApi"), exports);
21
21
  __exportStar(require("./SearchInventoryApi"), exports);
22
+ __exportStar(require("./SearchInventorySynchronizationApi"), exports);
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SynchronizationMode } from './SynchronizationMode';
13
12
  import type { ProductLink } from './ProductLink';
14
13
  /**
15
14
  *
@@ -35,12 +34,6 @@ export interface ActiveProduct {
35
34
  * @memberof ActiveProduct
36
35
  */
37
36
  activeStock?: number;
38
- /**
39
- *
40
- * @type {SynchronizationMode}
41
- * @memberof ActiveProduct
42
- */
43
- synchronizationMode?: SynchronizationMode;
44
37
  /**
45
38
  * Date of last update of the product
46
39
  * @type {Date}
@@ -14,7 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ActiveProductToJSON = exports.ActiveProductFromJSONTyped = exports.ActiveProductFromJSON = exports.instanceOfActiveProduct = void 0;
17
- var SynchronizationMode_1 = require("./SynchronizationMode");
18
17
  var ProductLink_1 = require("./ProductLink");
19
18
  /**
20
19
  * Check if a given object implements the ActiveProduct interface.
@@ -35,7 +34,6 @@ function ActiveProductFromJSONTyped(json, ignoreDiscriminator) {
35
34
  'product': (json['product'] === null || json['product'] === undefined) ? json['product'] : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
36
35
  'totalActiveSaleOffers': json['totalActiveSaleOffers'],
37
36
  'activeStock': json['activeStock'],
38
- 'synchronizationMode': (json['synchronizationMode'] === null || json['synchronizationMode'] === undefined) ? json['synchronizationMode'] : (0, SynchronizationMode_1.SynchronizationModeFromJSON)(json['synchronizationMode']),
39
37
  'updatedAt': (json['updatedAt'] === null || json['updatedAt'] === undefined) ? json['updatedAt'] : new Date(json['updatedAt']),
40
38
  };
41
39
  }
@@ -48,7 +46,6 @@ function ActiveProductToJSON(value) {
48
46
  'product': (0, ProductLink_1.ProductLinkToJSON)(value['product']),
49
47
  'totalActiveSaleOffers': value['totalActiveSaleOffers'],
50
48
  'activeStock': value['activeStock'],
51
- 'synchronizationMode': (0, SynchronizationMode_1.SynchronizationModeToJSON)(value['synchronizationMode']),
52
49
  'updatedAt': (value['updatedAt'] === null || value['updatedAt'] === undefined) ? value['updatedAt'] : (value['updatedAt']).toISOString(),
53
50
  };
54
51
  }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * lcdp-pharmaide-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 type { PagingMetadata } from './PagingMetadata';
13
+ import type { IdentifiedSynchronization } from './IdentifiedSynchronization';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedIdentifiedSynchronization
18
+ */
19
+ export interface PaginatedIdentifiedSynchronization {
20
+ /**
21
+ *
22
+ * @type {PagingMetadata}
23
+ * @memberof PaginatedIdentifiedSynchronization
24
+ */
25
+ metadata: PagingMetadata;
26
+ /**
27
+ *
28
+ * @type {Array<IdentifiedSynchronization>}
29
+ * @memberof PaginatedIdentifiedSynchronization
30
+ */
31
+ records: Array<IdentifiedSynchronization>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedIdentifiedSynchronization interface.
35
+ */
36
+ export declare function instanceOfPaginatedIdentifiedSynchronization(value: object): value is PaginatedIdentifiedSynchronization;
37
+ export declare function PaginatedIdentifiedSynchronizationFromJSON(json: any): PaginatedIdentifiedSynchronization;
38
+ export declare function PaginatedIdentifiedSynchronizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIdentifiedSynchronization;
39
+ export declare function PaginatedIdentifiedSynchronizationToJSON(value?: PaginatedIdentifiedSynchronization | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-pharmaide-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.PaginatedIdentifiedSynchronizationToJSON = exports.PaginatedIdentifiedSynchronizationFromJSONTyped = exports.PaginatedIdentifiedSynchronizationFromJSON = exports.instanceOfPaginatedIdentifiedSynchronization = void 0;
17
+ var PagingMetadata_1 = require("./PagingMetadata");
18
+ var IdentifiedSynchronization_1 = require("./IdentifiedSynchronization");
19
+ /**
20
+ * Check if a given object implements the PaginatedIdentifiedSynchronization interface.
21
+ */
22
+ function instanceOfPaginatedIdentifiedSynchronization(value) {
23
+ if (!('metadata' in value) || value['metadata'] === undefined)
24
+ return false;
25
+ if (!('records' in value) || value['records'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ exports.instanceOfPaginatedIdentifiedSynchronization = instanceOfPaginatedIdentifiedSynchronization;
30
+ function PaginatedIdentifiedSynchronizationFromJSON(json) {
31
+ return PaginatedIdentifiedSynchronizationFromJSONTyped(json, false);
32
+ }
33
+ exports.PaginatedIdentifiedSynchronizationFromJSON = PaginatedIdentifiedSynchronizationFromJSON;
34
+ function PaginatedIdentifiedSynchronizationFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
40
+ 'records': (json['records'] === null || json['records'] === undefined) ? json['records'] : json['records'].map(IdentifiedSynchronization_1.IdentifiedSynchronizationFromJSON),
41
+ };
42
+ }
43
+ exports.PaginatedIdentifiedSynchronizationFromJSONTyped = PaginatedIdentifiedSynchronizationFromJSONTyped;
44
+ function PaginatedIdentifiedSynchronizationToJSON(value) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
50
+ 'records': (value['records'] === null || value['records'] === undefined) ? value['records'] : value['records'].map(IdentifiedSynchronization_1.IdentifiedSynchronizationToJSON),
51
+ };
52
+ }
53
+ exports.PaginatedIdentifiedSynchronizationToJSON = PaginatedIdentifiedSynchronizationToJSON;
@@ -11,6 +11,7 @@ export * from './MisalignedProduct';
11
11
  export * from './OverstockProduct';
12
12
  export * from './OverstockProductUpdateParameters';
13
13
  export * from './PaginatedActiveProducts';
14
+ export * from './PaginatedIdentifiedSynchronization';
14
15
  export * from './PaginatedInventories';
15
16
  export * from './PaginatedMisalignedProducts';
16
17
  export * from './PaginatedObject';
@@ -29,6 +29,7 @@ __exportStar(require("./MisalignedProduct"), exports);
29
29
  __exportStar(require("./OverstockProduct"), exports);
30
30
  __exportStar(require("./OverstockProductUpdateParameters"), exports);
31
31
  __exportStar(require("./PaginatedActiveProducts"), exports);
32
+ __exportStar(require("./PaginatedIdentifiedSynchronization"), exports);
32
33
  __exportStar(require("./PaginatedInventories"), exports);
33
34
  __exportStar(require("./PaginatedMisalignedProducts"), exports);
34
35
  __exportStar(require("./PaginatedObject"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.13.3-LDS-4475-mangopay-sca.15269504748",
3
+ "version": "2.13.3-LDS-4475-mangopay-sca.15342116849",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -45,7 +45,7 @@ export interface Address {
45
45
  * @type {string}
46
46
  * @memberof Address
47
47
  */
48
- region: string;
48
+ region: string | null;
49
49
  /**
50
50
  *
51
51
  * @type {Country}