@lcdp/api-react-rest-client 2.5.14-develop.8064013522 → 2.5.14

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 (39) hide show
  1. package/configuration/src/apis/ManageVariableApi.d.ts +1 -28
  2. package/configuration/src/apis/ManageVariableApi.js +4 -160
  3. package/configuration/src/models/Variable.d.ts +2 -2
  4. package/configuration/src/models/Variable.js +3 -2
  5. package/configuration/src/models/Vat.d.ts +3 -3
  6. package/configuration/src/models/Vat.js +4 -3
  7. package/order/src/apis/SearchOrderApi.d.ts +1 -1
  8. package/order/src/apis/SearchOrderApi.js +2 -2
  9. package/order/src/apis/index.d.ts +0 -2
  10. package/order/src/apis/index.js +0 -2
  11. package/order/src/models/OrderJournal.d.ts +1 -1
  12. package/order/src/models/OrderJournal.js +2 -2
  13. package/order/src/models/index.d.ts +0 -6
  14. package/order/src/models/index.js +0 -6
  15. package/package.json +1 -1
  16. package/product/src/apis/SearchProductApi.d.ts +1 -1
  17. package/product/src/apis/SearchProductApi.js +2 -2
  18. package/product/src/models/Vat.d.ts +3 -3
  19. package/product/src/models/Vat.js +4 -3
  20. package/pub/src/apis/SearchPubApi.d.ts +1 -1
  21. package/pub/src/apis/SearchPubApi.js +2 -2
  22. package/user/src/apis/SearchUserApi.d.ts +1 -1
  23. package/user/src/apis/SearchUserApi.js +2 -2
  24. package/order/src/apis/ManageFreeCarriageCouponApi.d.ts +0 -42
  25. package/order/src/apis/ManageFreeCarriageCouponApi.js +0 -233
  26. package/order/src/apis/SearchFreeCarriageCouponApi.d.ts +0 -49
  27. package/order/src/apis/SearchFreeCarriageCouponApi.js +0 -202
  28. package/order/src/models/FreeCarriageCoupon.d.ts +0 -82
  29. package/order/src/models/FreeCarriageCoupon.js +0 -61
  30. package/order/src/models/FreeCarriageCouponCreationParameters.d.ts +0 -57
  31. package/order/src/models/FreeCarriageCouponCreationParameters.js +0 -52
  32. package/order/src/models/FreeCarriageCouponOwnerLink.d.ts +0 -28
  33. package/order/src/models/FreeCarriageCouponOwnerLink.js +0 -49
  34. package/order/src/models/FreeCarriageCouponOwnerLinkAllOf.d.ts +0 -27
  35. package/order/src/models/FreeCarriageCouponOwnerLinkAllOf.js +0 -41
  36. package/order/src/models/PaginatedFreeCarriageCoupons.d.ts +0 -29
  37. package/order/src/models/PaginatedFreeCarriageCoupons.js +0 -50
  38. package/order/src/models/PaginatedFreeCarriageCouponsAllOf.d.ts +0 -28
  39. package/order/src/models/PaginatedFreeCarriageCouponsAllOf.js +0 -42
@@ -9,14 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { Variable } from '../models';
14
- export interface CreateVariableRequest {
15
- body: Variable;
16
- }
17
- export interface DeleteVariableRequest {
18
- variableId: string;
19
- }
12
+ import { BaseAPI, ApiResponse } from '../runtime';
20
13
  export interface SetVariableValueRequest {
21
14
  variableId: string;
22
15
  body: string;
@@ -25,26 +18,6 @@ export interface SetVariableValueRequest {
25
18
  * no description
26
19
  */
27
20
  export declare class ManageVariableApi extends BaseAPI {
28
- /**
29
- * Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created.
30
- * Create new variable
31
- */
32
- createVariableRaw(requestParameters: CreateVariableRequest): Promise<ApiResponse<Variable | BlobWithMeta>>;
33
- /**
34
- * Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created.
35
- * Create new variable
36
- */
37
- createVariable(requestParameters: CreateVariableRequest): Promise<Variable | BlobWithMeta>;
38
- /**
39
- * Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted.
40
- * Delete existing variable
41
- */
42
- deleteVariableRaw(requestParameters: DeleteVariableRequest): Promise<ApiResponse<void>>;
43
- /**
44
- * Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted.
45
- * Delete existing variable
46
- */
47
- deleteVariable(requestParameters: DeleteVariableRequest): Promise<void>;
48
21
  /**
49
22
  * Update variable value
50
23
  */
@@ -66,7 +66,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
67
  exports.ManageVariableApi = void 0;
68
68
  var runtime_1 = require("../runtime");
69
- var models_1 = require("../models");
70
69
  /**
71
70
  * no description
72
71
  */
@@ -75,167 +74,12 @@ var ManageVariableApi = /** @class */ (function (_super) {
75
74
  function ManageVariableApi() {
76
75
  return _super !== null && _super.apply(this, arguments) || this;
77
76
  }
78
- /**
79
- * Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created.
80
- * Create new variable
81
- */
82
- ManageVariableApi.prototype.createVariableRaw = function (requestParameters) {
83
- return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_1;
85
- return __generator(this, function (_b) {
86
- switch (_b.label) {
87
- case 0:
88
- if (requestParameters.body === null || requestParameters.body === undefined) {
89
- throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling createVariable.');
90
- }
91
- queryParameters = {};
92
- headerParameters = {};
93
- headerParameters['Content-Type'] = 'application/json';
94
- if (this.configuration && this.configuration.apiKey) {
95
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
96
- }
97
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
98
- token = this.configuration.accessToken;
99
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
100
- return [4 /*yield*/, token("bearerAuth", [])];
101
- case 1:
102
- _a = _b.sent();
103
- return [3 /*break*/, 3];
104
- case 2:
105
- _a = token;
106
- _b.label = 3;
107
- case 3:
108
- tokenString = _a;
109
- if (tokenString) {
110
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
111
- }
112
- _b.label = 4;
113
- case 4:
114
- _b.trys.push([4, 6, , 7]);
115
- return [4 /*yield*/, this.request({
116
- path: "/variables",
117
- method: 'POST',
118
- headers: headerParameters,
119
- query: queryParameters,
120
- body: requestParameters.body,
121
- })];
122
- case 5:
123
- response = _b.sent();
124
- contentType = response.headers.get("content-type");
125
- if (contentType && contentType.indexOf("application/json") !== -1) {
126
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.VariableFromJSON)(jsonValue); })];
127
- }
128
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
129
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
130
- }
131
- else {
132
- // TODO : Better handling of others application types
133
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
134
- }
135
- return [3 /*break*/, 7];
136
- case 6:
137
- response_1 = _b.sent();
138
- console.debug(response_1);
139
- throw response_1;
140
- case 7: return [2 /*return*/];
141
- }
142
- });
143
- });
144
- };
145
- /**
146
- * Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be created.
147
- * Create new variable
148
- */
149
- ManageVariableApi.prototype.createVariable = function (requestParameters) {
150
- return __awaiter(this, void 0, void 0, function () {
151
- var response;
152
- return __generator(this, function (_a) {
153
- switch (_a.label) {
154
- case 0: return [4 /*yield*/, this.createVariableRaw(requestParameters)];
155
- case 1:
156
- response = _a.sent();
157
- return [4 /*yield*/, response.value()];
158
- case 2: return [2 /*return*/, _a.sent()];
159
- }
160
- });
161
- });
162
- };
163
- /**
164
- * Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted.
165
- * Delete existing variable
166
- */
167
- ManageVariableApi.prototype.deleteVariableRaw = function (requestParameters) {
168
- return __awaiter(this, void 0, void 0, function () {
169
- var queryParameters, headerParameters, token, tokenString, _a, response, response_2;
170
- return __generator(this, function (_b) {
171
- switch (_b.label) {
172
- case 0:
173
- if (requestParameters.variableId === null || requestParameters.variableId === undefined) {
174
- throw new runtime_1.RequiredError('variableId', 'Required parameter requestParameters.variableId was null or undefined when calling deleteVariable.');
175
- }
176
- queryParameters = {};
177
- headerParameters = {};
178
- if (this.configuration && this.configuration.apiKey) {
179
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
180
- }
181
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
182
- token = this.configuration.accessToken;
183
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
184
- return [4 /*yield*/, token("bearerAuth", [])];
185
- case 1:
186
- _a = _b.sent();
187
- return [3 /*break*/, 3];
188
- case 2:
189
- _a = token;
190
- _b.label = 3;
191
- case 3:
192
- tokenString = _a;
193
- if (tokenString) {
194
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
195
- }
196
- _b.label = 4;
197
- case 4:
198
- _b.trys.push([4, 6, , 7]);
199
- return [4 /*yield*/, this.request({
200
- path: "/variables/{variableId}".replace("{".concat("variableId", "}"), encodeURIComponent(String(requestParameters.variableId))),
201
- method: 'DELETE',
202
- headers: headerParameters,
203
- query: queryParameters,
204
- })];
205
- case 5:
206
- response = _b.sent();
207
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
208
- case 6:
209
- response_2 = _b.sent();
210
- console.debug(response_2);
211
- throw response_2;
212
- case 7: return [2 /*return*/];
213
- }
214
- });
215
- });
216
- };
217
- /**
218
- * Important Note : - Only variabledId prefixed by \'free.carriage.threshold.*\' and \'free.carriage.monthly.*\' can be deleted.
219
- * Delete existing variable
220
- */
221
- ManageVariableApi.prototype.deleteVariable = function (requestParameters) {
222
- return __awaiter(this, void 0, void 0, function () {
223
- return __generator(this, function (_a) {
224
- switch (_a.label) {
225
- case 0: return [4 /*yield*/, this.deleteVariableRaw(requestParameters)];
226
- case 1:
227
- _a.sent();
228
- return [2 /*return*/];
229
- }
230
- });
231
- });
232
- };
233
77
  /**
234
78
  * Update variable value
235
79
  */
236
80
  ManageVariableApi.prototype.setVariableValueRaw = function (requestParameters) {
237
81
  return __awaiter(this, void 0, void 0, function () {
238
- var queryParameters, headerParameters, token, tokenString, _a, response, response_3;
82
+ var queryParameters, headerParameters, token, tokenString, _a, response, response_1;
239
83
  return __generator(this, function (_b) {
240
84
  switch (_b.label) {
241
85
  case 0:
@@ -280,9 +124,9 @@ var ManageVariableApi = /** @class */ (function (_super) {
280
124
  response = _b.sent();
281
125
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
282
126
  case 6:
283
- response_3 = _b.sent();
284
- console.debug(response_3);
285
- throw response_3;
127
+ response_1 = _b.sent();
128
+ console.debug(response_1);
129
+ throw response_1;
286
130
  case 7: return [2 /*return*/];
287
131
  }
288
132
  });
@@ -20,13 +20,13 @@ export interface Variable {
20
20
  * @type {string}
21
21
  * @memberof Variable
22
22
  */
23
- id: string;
23
+ id?: string;
24
24
  /**
25
25
  * variable value
26
26
  * @type {string}
27
27
  * @memberof Variable
28
28
  */
29
- value: string;
29
+ value?: string;
30
30
  }
31
31
  export declare function VariableFromJSON(json: any): Variable;
32
32
  export declare function VariableFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variable;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.VariableToJSON = exports.VariableFromJSONTyped = exports.VariableFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  function VariableFromJSON(json) {
18
19
  return VariableFromJSONTyped(json, false);
19
20
  }
@@ -23,8 +24,8 @@ function VariableFromJSONTyped(json, ignoreDiscriminator) {
23
24
  return json;
24
25
  }
25
26
  return {
26
- 'id': json['id'],
27
- 'value': json['value'],
27
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
28
+ 'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
28
29
  };
29
30
  }
30
31
  exports.VariableFromJSONTyped = VariableFromJSONTyped;
@@ -20,19 +20,19 @@ export interface Vat {
20
20
  * @type {string}
21
21
  * @memberof Vat
22
22
  */
23
- id: string;
23
+ id?: string;
24
24
  /**
25
25
  * Vat name
26
26
  * @type {string}
27
27
  * @memberof Vat
28
28
  */
29
- name: string;
29
+ name?: string;
30
30
  /**
31
31
  * Vat value
32
32
  * @type {number}
33
33
  * @memberof Vat
34
34
  */
35
- value: number;
35
+ value?: number;
36
36
  }
37
37
  export declare function VatFromJSON(json: any): Vat;
38
38
  export declare function VatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vat;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.VatToJSON = exports.VatFromJSONTyped = exports.VatFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  function VatFromJSON(json) {
18
19
  return VatFromJSONTyped(json, false);
19
20
  }
@@ -23,9 +24,9 @@ function VatFromJSONTyped(json, ignoreDiscriminator) {
23
24
  return json;
24
25
  }
25
26
  return {
26
- 'id': json['id'],
27
- 'name': json['name'],
28
- 'value': json['value'],
27
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
28
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
+ 'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
29
30
  };
30
31
  }
31
32
  exports.VatFromJSONTyped = VatFromJSONTyped;
@@ -37,7 +37,7 @@ export interface GetOrdersRequest {
37
37
  dcEq?: boolean;
38
38
  refLi?: string;
39
39
  pausedEq?: boolean;
40
- tagsCo?: Array<string>;
40
+ tagCo?: Array<string>;
41
41
  orderBy?: GetOrdersOrderByEnum;
42
42
  p?: number;
43
43
  pp?: number;
@@ -380,8 +380,8 @@ var SearchOrderApi = /** @class */ (function (_super) {
380
380
  if (requestParameters.pausedEq !== undefined) {
381
381
  queryParameters['paused[eq]'] = requestParameters.pausedEq;
382
382
  }
383
- if (requestParameters.tagsCo) {
384
- queryParameters['tags[co]'] = requestParameters.tagsCo;
383
+ if (requestParameters.tagCo) {
384
+ queryParameters['tag[co]'] = requestParameters.tagCo;
385
385
  }
386
386
  if (requestParameters.orderBy !== undefined) {
387
387
  queryParameters['orderBy'] = requestParameters.orderBy;
@@ -1,7 +1,5 @@
1
- export * from './ManageFreeCarriageCouponApi';
2
1
  export * from './ManageMetaOrderApi';
3
2
  export * from './ManageOrderApi';
4
3
  export * from './ManageOrderItemApi';
5
- export * from './SearchFreeCarriageCouponApi';
6
4
  export * from './SearchOrderApi';
7
5
  export * from './SearchOrderItemApi';
@@ -14,10 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ManageFreeCarriageCouponApi"), exports);
18
17
  __exportStar(require("./ManageMetaOrderApi"), exports);
19
18
  __exportStar(require("./ManageOrderApi"), exports);
20
19
  __exportStar(require("./ManageOrderItemApi"), exports);
21
- __exportStar(require("./SearchFreeCarriageCouponApi"), exports);
22
20
  __exportStar(require("./SearchOrderApi"), exports);
23
21
  __exportStar(require("./SearchOrderItemApi"), exports);
@@ -39,7 +39,7 @@ export interface OrderJournal {
39
39
  * @type {Date}
40
40
  * @memberof OrderJournal
41
41
  */
42
- freeCarriageThresholdReachedDate: Date | null;
42
+ freeShippingReachedDate: Date | null;
43
43
  }
44
44
  export declare function OrderJournalFromJSON(json: any): OrderJournal;
45
45
  export declare function OrderJournalFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderJournal;
@@ -28,7 +28,7 @@ function OrderJournalFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'pricesOnCreation': !(0, runtime_1.exists)(json, 'pricesOnCreation') ? undefined : (0, OrderPrices_1.OrderPricesFromJSON)(json['pricesOnCreation']),
29
29
  'statusUpdatedBy': json['statusUpdatedBy'],
30
30
  'statusUpdatedAt': (new Date(json['statusUpdatedAt'])),
31
- 'freeCarriageThresholdReachedDate': (json['freeCarriageThresholdReachedDate'] === null ? null : new Date(json['freeCarriageThresholdReachedDate'])),
31
+ 'freeShippingReachedDate': (json['freeShippingReachedDate'] === null ? null : new Date(json['freeShippingReachedDate'])),
32
32
  };
33
33
  }
34
34
  exports.OrderJournalFromJSONTyped = OrderJournalFromJSONTyped;
@@ -43,7 +43,7 @@ function OrderJournalToJSON(value) {
43
43
  'pricesOnCreation': (0, OrderPrices_1.OrderPricesToJSON)(value.pricesOnCreation),
44
44
  'statusUpdatedBy': value.statusUpdatedBy,
45
45
  'statusUpdatedAt': (value.statusUpdatedAt.toISOString()),
46
- 'freeCarriageThresholdReachedDate': (value.freeCarriageThresholdReachedDate === null ? null : value.freeCarriageThresholdReachedDate.toISOString()),
46
+ 'freeShippingReachedDate': (value.freeShippingReachedDate === null ? null : value.freeShippingReachedDate.toISOString()),
47
47
  };
48
48
  }
49
49
  exports.OrderJournalToJSON = OrderJournalToJSON;
@@ -3,10 +3,6 @@ export * from './Anomalies';
3
3
  export * from './AnomaliesUpdateParameters';
4
4
  export * from './AnyMetaOrderWarning';
5
5
  export * from './Barcodes';
6
- export * from './FreeCarriageCoupon';
7
- export * from './FreeCarriageCouponCreationParameters';
8
- export * from './FreeCarriageCouponOwnerLink';
9
- export * from './FreeCarriageCouponOwnerLinkAllOf';
10
6
  export * from './HttpLink';
11
7
  export * from './MetaOrder';
12
8
  export * from './MetaOrderCreationParameters';
@@ -35,8 +31,6 @@ export * from './OrderType';
35
31
  export * from './OrderUpdateParameters';
36
32
  export * from './OrderWarning';
37
33
  export * from './OrderWarningAllOf';
38
- export * from './PaginatedFreeCarriageCoupons';
39
- export * from './PaginatedFreeCarriageCouponsAllOf';
40
34
  export * from './PaginatedObject';
41
35
  export * from './PaginatedOrders';
42
36
  export * from './PaginatedOrdersAllOf';
@@ -19,10 +19,6 @@ __exportStar(require("./Anomalies"), exports);
19
19
  __exportStar(require("./AnomaliesUpdateParameters"), exports);
20
20
  __exportStar(require("./AnyMetaOrderWarning"), exports);
21
21
  __exportStar(require("./Barcodes"), exports);
22
- __exportStar(require("./FreeCarriageCoupon"), exports);
23
- __exportStar(require("./FreeCarriageCouponCreationParameters"), exports);
24
- __exportStar(require("./FreeCarriageCouponOwnerLink"), exports);
25
- __exportStar(require("./FreeCarriageCouponOwnerLinkAllOf"), exports);
26
22
  __exportStar(require("./HttpLink"), exports);
27
23
  __exportStar(require("./MetaOrder"), exports);
28
24
  __exportStar(require("./MetaOrderCreationParameters"), exports);
@@ -51,8 +47,6 @@ __exportStar(require("./OrderType"), exports);
51
47
  __exportStar(require("./OrderUpdateParameters"), exports);
52
48
  __exportStar(require("./OrderWarning"), exports);
53
49
  __exportStar(require("./OrderWarningAllOf"), exports);
54
- __exportStar(require("./PaginatedFreeCarriageCoupons"), exports);
55
- __exportStar(require("./PaginatedFreeCarriageCouponsAllOf"), exports);
56
50
  __exportStar(require("./PaginatedObject"), exports);
57
51
  __exportStar(require("./PaginatedOrders"), exports);
58
52
  __exportStar(require("./PaginatedOrdersAllOf"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.5.14-develop.8064013522",
3
+ "version": "2.5.14",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -25,7 +25,7 @@ export interface GetProductsRequest {
25
25
  nameIeq?: string;
26
26
  sWaitingSaleOfferCountGte?: number;
27
27
  srcLcdpCatalogIdEq?: Array<number>;
28
- tagsCo?: Array<string>;
28
+ tagCo?: Array<string>;
29
29
  orderBy?: GetProductsOrderByEnum;
30
30
  p?: number;
31
31
  pp?: number;
@@ -196,8 +196,8 @@ var SearchProductApi = /** @class */ (function (_super) {
196
196
  if (requestParameters.srcLcdpCatalogIdEq) {
197
197
  queryParameters['srcLcdpCatalogId[eq]'] = requestParameters.srcLcdpCatalogIdEq;
198
198
  }
199
- if (requestParameters.tagsCo) {
200
- queryParameters['tags[co]'] = requestParameters.tagsCo;
199
+ if (requestParameters.tagCo) {
200
+ queryParameters['tag[co]'] = requestParameters.tagCo;
201
201
  }
202
202
  if (requestParameters.orderBy !== undefined) {
203
203
  queryParameters['orderBy'] = requestParameters.orderBy;
@@ -20,19 +20,19 @@ export interface Vat {
20
20
  * @type {string}
21
21
  * @memberof Vat
22
22
  */
23
- id: string;
23
+ id?: string;
24
24
  /**
25
25
  * Vat name
26
26
  * @type {string}
27
27
  * @memberof Vat
28
28
  */
29
- name: string;
29
+ name?: string;
30
30
  /**
31
31
  * Vat value
32
32
  * @type {number}
33
33
  * @memberof Vat
34
34
  */
35
- value: number;
35
+ value?: number;
36
36
  }
37
37
  export declare function VatFromJSON(json: any): Vat;
38
38
  export declare function VatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vat;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.VatToJSON = exports.VatFromJSONTyped = exports.VatFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  function VatFromJSON(json) {
18
19
  return VatFromJSONTyped(json, false);
19
20
  }
@@ -23,9 +24,9 @@ function VatFromJSONTyped(json, ignoreDiscriminator) {
23
24
  return json;
24
25
  }
25
26
  return {
26
- 'id': json['id'],
27
- 'name': json['name'],
28
- 'value': json['value'],
27
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
28
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
+ 'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
29
30
  };
30
31
  }
31
32
  exports.VatFromJSONTyped = VatFromJSONTyped;
@@ -28,7 +28,7 @@ export interface GetPubsRequest {
28
28
  scheduleActivationDateLte?: Date;
29
29
  timecardActivationDateGte?: Date;
30
30
  timecardActivationDateLte?: Date;
31
- tagsCo?: Array<string>;
31
+ tagCo?: Array<string>;
32
32
  orderBy?: GetPubsOrderByEnum;
33
33
  p?: number;
34
34
  pp?: number;
@@ -277,8 +277,8 @@ var SearchPubApi = /** @class */ (function (_super) {
277
277
  if (requestParameters.timecardActivationDateLte !== undefined) {
278
278
  queryParameters['timecardActivationDate[lte]'] = requestParameters.timecardActivationDateLte.toISOString();
279
279
  }
280
- if (requestParameters.tagsCo) {
281
- queryParameters['tags[co]'] = requestParameters.tagsCo;
280
+ if (requestParameters.tagCo) {
281
+ queryParameters['tag[co]'] = requestParameters.tagCo;
282
282
  }
283
283
  if (requestParameters.orderBy !== undefined) {
284
284
  queryParameters['orderBy'] = requestParameters.orderBy;
@@ -30,7 +30,7 @@ export interface GetUsersRequest {
30
30
  roleEq?: Array<UserRole>;
31
31
  roleNeq?: Array<UserRole>;
32
32
  gCo?: number;
33
- tagsCo?: Array<string>;
33
+ tagCo?: Array<string>;
34
34
  hmeEq?: boolean;
35
35
  kyclEq?: KycLevel;
36
36
  orderBy?: GetUsersOrderByEnum;
@@ -516,8 +516,8 @@ var SearchUserApi = /** @class */ (function (_super) {
516
516
  if (requestParameters.gCo !== undefined) {
517
517
  queryParameters['g[co]'] = requestParameters.gCo;
518
518
  }
519
- if (requestParameters.tagsCo) {
520
- queryParameters['tags[co]'] = requestParameters.tagsCo;
519
+ if (requestParameters.tagCo) {
520
+ queryParameters['tag[co]'] = requestParameters.tagCo;
521
521
  }
522
522
  if (requestParameters.hmeEq !== undefined) {
523
523
  queryParameters['hme[eq]'] = requestParameters.hmeEq;
@@ -1,42 +0,0 @@
1
- /**
2
- * lcdp-monolith-service
3
- * This is the REST API of LCDP orders
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 { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { FreeCarriageCoupon, FreeCarriageCouponCreationParameters } from '../models';
14
- export interface CreateFreeCarriageCouponsRequest {
15
- freeCarriageCouponCreationParameters: Array<FreeCarriageCouponCreationParameters>;
16
- }
17
- export interface DeleteFreeCarriageCouponRequest {
18
- freeCarriageCouponId: number;
19
- }
20
- /**
21
- * no description
22
- */
23
- export declare class ManageFreeCarriageCouponApi extends BaseAPI {
24
- /**
25
- * This endpoint allow you to create one or multiple coupons in one API call
26
- * Create free carriage coupons
27
- */
28
- createFreeCarriageCouponsRaw(requestParameters: CreateFreeCarriageCouponsRequest): Promise<ApiResponse<Array<FreeCarriageCoupon> | BlobWithMeta>>;
29
- /**
30
- * This endpoint allow you to create one or multiple coupons in one API call
31
- * Create free carriage coupons
32
- */
33
- createFreeCarriageCoupons(requestParameters: CreateFreeCarriageCouponsRequest): Promise<Array<FreeCarriageCoupon> | BlobWithMeta>;
34
- /**
35
- * Remove a coupon from the system
36
- */
37
- deleteFreeCarriageCouponRaw(requestParameters: DeleteFreeCarriageCouponRequest): Promise<ApiResponse<void>>;
38
- /**
39
- * Remove a coupon from the system
40
- */
41
- deleteFreeCarriageCoupon(requestParameters: DeleteFreeCarriageCouponRequest): Promise<void>;
42
- }