@lcdp/api-react-rest-client 0.0.2-LDS-2482-Move-JSON-codegen-of-API-somewhere-else.0 → 0.0.2-develop.0

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 (173) hide show
  1. package/auth/src/models/RestError.d.ts +4 -6
  2. package/auth/src/models/RestError.js +0 -2
  3. package/configuration/src/apis/ManageVariableApi.d.ts +53 -1
  4. package/configuration/src/apis/ManageVariableApi.js +54 -1
  5. package/configuration/src/apis/SearchVariableApi.d.ts +53 -1
  6. package/configuration/src/apis/SearchVariableApi.js +54 -1
  7. package/configuration/src/models/RestError.d.ts +4 -6
  8. package/configuration/src/models/RestError.js +0 -2
  9. package/content/src/models/RestError.d.ts +4 -6
  10. package/content/src/models/RestError.js +0 -2
  11. package/favorite/src/models/RestError.d.ts +4 -6
  12. package/favorite/src/models/RestError.js +0 -2
  13. package/inventory/src/models/RestError.d.ts +4 -6
  14. package/inventory/src/models/RestError.js +0 -2
  15. package/invoice/src/models/InvoiceType.d.ts +0 -1
  16. package/invoice/src/models/InvoiceType.js +0 -1
  17. package/invoice/src/models/RestError.d.ts +4 -6
  18. package/invoice/src/models/RestError.js +0 -2
  19. package/laboratory-store/src/models/ImageVersions.d.ts +6 -6
  20. package/laboratory-store/src/models/ImageVersions.js +1 -1
  21. package/laboratory-store/src/models/RestError.d.ts +4 -6
  22. package/laboratory-store/src/models/RestError.js +0 -2
  23. package/lexicon/src/models/RestError.d.ts +4 -6
  24. package/lexicon/src/models/RestError.js +0 -2
  25. package/litigation/src/models/RestError.d.ts +4 -6
  26. package/litigation/src/models/RestError.js +0 -2
  27. package/magic-cart/src/apis/ManageMagicCartApi.d.ts +29 -0
  28. package/magic-cart/src/apis/{ManageExpressOrderApi.js → ManageMagicCartApi.js} +17 -16
  29. package/magic-cart/src/apis/index.d.ts +1 -1
  30. package/magic-cart/src/apis/index.js +1 -1
  31. package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +25 -0
  32. package/magic-cart/src/models/AnyMagicCartCreationParameters.js +64 -0
  33. package/magic-cart/src/models/MagicCart.d.ts +28 -0
  34. package/magic-cart/src/models/MagicCart.js +43 -0
  35. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +29 -0
  36. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +50 -0
  37. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +28 -0
  38. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +42 -0
  39. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +29 -0
  40. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +50 -0
  41. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +28 -0
  42. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +42 -0
  43. package/magic-cart/src/models/MagicNeed.d.ts +39 -0
  44. package/magic-cart/src/models/{ExpressOrderNeed.js → MagicNeed.js} +10 -8
  45. package/magic-cart/src/models/MagicProductBus.d.ts +33 -0
  46. package/magic-cart/src/models/{HttpLink.js → MagicProductBus.js} +12 -10
  47. package/magic-cart/src/models/MagicProposal.d.ts +39 -0
  48. package/magic-cart/src/models/{DistributionRange.js → MagicProposal.js} +12 -12
  49. package/magic-cart/src/models/index.d.ts +9 -24
  50. package/magic-cart/src/models/index.js +9 -24
  51. package/mangopay-hook/src/apis/MangopayHookApi.d.ts +13 -0
  52. package/mangopay-hook/src/apis/MangopayHookApi.js +63 -1
  53. package/mangopay-hook/src/models/RestError.d.ts +4 -6
  54. package/mangopay-hook/src/models/RestError.js +0 -2
  55. package/notification/src/models/NotificationTypeId.d.ts +0 -1
  56. package/notification/src/models/NotificationTypeId.js +0 -1
  57. package/notification/src/models/RestError.d.ts +4 -6
  58. package/notification/src/models/RestError.js +0 -2
  59. package/order/src/models/OrderItemPrices.d.ts +1 -7
  60. package/order/src/models/OrderItemPrices.js +0 -2
  61. package/order/src/models/OrderPrices.d.ts +1 -1
  62. package/order/src/models/ProductLink.d.ts +7 -0
  63. package/order/src/models/ProductLink.js +3 -2
  64. package/order/src/models/ProductLinkAllOf.d.ts +7 -0
  65. package/order/src/models/ProductLinkAllOf.js +3 -0
  66. package/order/src/models/RestError.d.ts +4 -6
  67. package/order/src/models/RestError.js +0 -2
  68. package/order/src/models/Vat.d.ts +39 -0
  69. package/order/src/models/Vat.js +46 -0
  70. package/order/src/models/index.d.ts +1 -0
  71. package/order/src/models/index.js +1 -0
  72. package/package.json +1 -1
  73. package/product/src/apis/SearchProductApi.d.ts +0 -1
  74. package/product/src/apis/SearchProductApi.js +0 -3
  75. package/product/src/models/ImageVersions.d.ts +6 -6
  76. package/product/src/models/ImageVersions.js +1 -1
  77. package/product/src/models/RestError.d.ts +4 -6
  78. package/product/src/models/RestError.js +0 -2
  79. package/pub/src/models/Image.d.ts +3 -3
  80. package/pub/src/models/Image.js +4 -3
  81. package/pub/src/models/ImageVersions.d.ts +6 -6
  82. package/pub/src/models/ImageVersions.js +1 -1
  83. package/pub/src/models/Pub.d.ts +7 -7
  84. package/pub/src/models/Pub.js +9 -9
  85. package/pub/src/models/PubLocationEnum.d.ts +1 -3
  86. package/pub/src/models/PubLocationEnum.js +0 -2
  87. package/pub/src/models/RestError.d.ts +4 -6
  88. package/pub/src/models/RestError.js +0 -2
  89. package/recommendation/src/apis/index.d.ts +0 -1
  90. package/recommendation/src/apis/index.js +0 -1
  91. package/recommendation/src/models/index.d.ts +0 -3
  92. package/recommendation/src/models/index.js +0 -3
  93. package/rfx/src/models/RestError.d.ts +4 -6
  94. package/rfx/src/models/RestError.js +0 -2
  95. package/sale-offer/src/models/ImageVersions.d.ts +6 -6
  96. package/sale-offer/src/models/ImageVersions.js +1 -1
  97. package/sale-offer/src/models/RestError.d.ts +4 -6
  98. package/sale-offer/src/models/RestError.js +0 -2
  99. package/servant/src/models/RestError.d.ts +4 -6
  100. package/servant/src/models/RestError.js +0 -2
  101. package/shipment/src/models/RestError.d.ts +4 -6
  102. package/shipment/src/models/RestError.js +0 -2
  103. package/shopping-cart/src/models/CartSubCartLine.d.ts +6 -0
  104. package/shopping-cart/src/models/CartSubCartLine.js +2 -0
  105. package/shopping-cart/src/models/RestError.d.ts +4 -6
  106. package/shopping-cart/src/models/RestError.js +0 -2
  107. package/statistic/src/models/RestError.d.ts +4 -6
  108. package/statistic/src/models/RestError.js +0 -2
  109. package/subscription/src/models/RestError.d.ts +4 -6
  110. package/subscription/src/models/RestError.js +0 -2
  111. package/ubo/src/models/RestError.d.ts +4 -6
  112. package/ubo/src/models/RestError.js +0 -2
  113. package/user/src/models/NotificationTypeId.d.ts +0 -1
  114. package/user/src/models/NotificationTypeId.js +0 -1
  115. package/user/src/models/RestError.d.ts +4 -6
  116. package/user/src/models/RestError.js +0 -2
  117. package/user/src/models/UserDelegatedServices.d.ts +1 -1
  118. package/wish/src/models/RestError.d.ts +4 -6
  119. package/wish/src/models/RestError.js +0 -2
  120. package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +0 -31
  121. package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +0 -28
  122. package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +0 -69
  123. package/magic-cart/src/models/Barcodes.d.ts +0 -45
  124. package/magic-cart/src/models/Barcodes.js +0 -48
  125. package/magic-cart/src/models/DistributionMode.d.ts +0 -27
  126. package/magic-cart/src/models/DistributionMode.js +0 -41
  127. package/magic-cart/src/models/DistributionRange.d.ts +0 -39
  128. package/magic-cart/src/models/ExpressOrder.d.ts +0 -28
  129. package/magic-cart/src/models/ExpressOrder.js +0 -43
  130. package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +0 -34
  131. package/magic-cart/src/models/ExpressOrderCreationParameters.js +0 -45
  132. package/magic-cart/src/models/ExpressOrderNeed.d.ts +0 -33
  133. package/magic-cart/src/models/HttpLink.d.ts +0 -27
  134. package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +0 -34
  135. package/magic-cart/src/models/IdentifiedDistributionRange.js +0 -49
  136. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +0 -33
  137. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +0 -43
  138. package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +0 -29
  139. package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +0 -50
  140. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +0 -28
  141. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +0 -42
  142. package/magic-cart/src/models/ProductLink.d.ts +0 -41
  143. package/magic-cart/src/models/ProductLink.js +0 -50
  144. package/magic-cart/src/models/ProductLinkAllOf.d.ts +0 -40
  145. package/magic-cart/src/models/ProductLinkAllOf.js +0 -46
  146. package/magic-cart/src/models/QuotationDistributionMode.d.ts +0 -22
  147. package/magic-cart/src/models/QuotationDistributionMode.js +0 -28
  148. package/magic-cart/src/models/SaleOfferLink.d.ts +0 -54
  149. package/magic-cart/src/models/SaleOfferLink.js +0 -52
  150. package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +0 -53
  151. package/magic-cart/src/models/SaleOfferLinkAllOf.js +0 -52
  152. package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -47
  153. package/magic-cart/src/models/SaleOfferProposal.js +0 -49
  154. package/magic-cart/src/models/SellerProposal.d.ts +0 -41
  155. package/magic-cart/src/models/SellerProposal.js +0 -47
  156. package/magic-cart/src/models/Stock.d.ts +0 -39
  157. package/magic-cart/src/models/Stock.js +0 -46
  158. package/magic-cart/src/models/UnitaryDistributionMode.d.ts +0 -34
  159. package/magic-cart/src/models/UnitaryDistributionMode.js +0 -49
  160. package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +0 -33
  161. package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +0 -43
  162. package/magic-cart/src/models/UserLink.d.ts +0 -34
  163. package/magic-cart/src/models/UserLink.js +0 -49
  164. package/magic-cart/src/models/UserLinkAllOf.d.ts +0 -33
  165. package/magic-cart/src/models/UserLinkAllOf.js +0 -43
  166. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.d.ts +0 -45
  167. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +0 -182
  168. package/recommendation/src/models/FavoriteProductRecommendation.d.ts +0 -53
  169. package/recommendation/src/models/FavoriteProductRecommendation.js +0 -52
  170. package/recommendation/src/models/PaginatedFavoriteProductRecommendations.d.ts +0 -29
  171. package/recommendation/src/models/PaginatedFavoriteProductRecommendations.js +0 -50
  172. package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.d.ts +0 -28
  173. package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.js +0 -42
@@ -65,7 +65,6 @@ var RestErrorCodeEnum;
65
65
  RestErrorCodeEnum["CODE015"] = "CODE015";
66
66
  RestErrorCodeEnum["CODE016"] = "CODE016";
67
67
  RestErrorCodeEnum["CODE017"] = "CODE017";
68
- RestErrorCodeEnum["CODE018"] = "CODE018";
69
68
  })(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
70
69
  /**
71
70
  * @export
@@ -91,5 +90,4 @@ var RestErrorMessageEnum;
91
90
  RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
92
91
  RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
93
92
  RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
94
- RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
95
93
  })(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
@@ -35,7 +35,6 @@ export declare enum NotificationTypeId {
35
35
  DAILYMAIL = "DAILY_MAIL",
36
36
  DOCUMENTEXPIRE = "DOCUMENT_EXPIRE",
37
37
  GLOBALCOMMISSIONINVOICE = "GLOBAL_COMMISSION_INVOICE",
38
- GLOBALCOMMISSIONCREDITNOTEINVOICE = "GLOBAL_COMMISSION_CREDIT_NOTE_INVOICE",
39
38
  MONTHLYEMAILFORACCOUNTANT = "MONTHLY_EMAIL_FOR_ACCOUNTANT",
40
39
  ORDERACCEPTATIONDELAY = "ORDER_ACCEPTATION_DELAY",
41
40
  ORDERACCEPTED = "ORDER_ACCEPTED",
@@ -41,7 +41,6 @@ var NotificationTypeId;
41
41
  NotificationTypeId["DAILYMAIL"] = "DAILY_MAIL";
42
42
  NotificationTypeId["DOCUMENTEXPIRE"] = "DOCUMENT_EXPIRE";
43
43
  NotificationTypeId["GLOBALCOMMISSIONINVOICE"] = "GLOBAL_COMMISSION_INVOICE";
44
- NotificationTypeId["GLOBALCOMMISSIONCREDITNOTEINVOICE"] = "GLOBAL_COMMISSION_CREDIT_NOTE_INVOICE";
45
44
  NotificationTypeId["MONTHLYEMAILFORACCOUNTANT"] = "MONTHLY_EMAIL_FOR_ACCOUNTANT";
46
45
  NotificationTypeId["ORDERACCEPTATIONDELAY"] = "ORDER_ACCEPTATION_DELAY";
47
46
  NotificationTypeId["ORDERACCEPTED"] = "ORDER_ACCEPTED";
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface RestError {
18
18
  /**
19
- * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
19
+ * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
20
20
  * @type {string}
21
21
  * @memberof RestError
22
22
  */
23
23
  code: RestErrorCodeEnum;
24
24
  /**
25
- * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
25
+ * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -53,8 +53,7 @@ export declare enum RestErrorCodeEnum {
53
53
  CODE014 = "CODE014",
54
54
  CODE015 = "CODE015",
55
55
  CODE016 = "CODE016",
56
- CODE017 = "CODE017",
57
- CODE018 = "CODE018"
56
+ CODE017 = "CODE017"
58
57
  }
59
58
  /**
60
59
  * @export
@@ -78,6 +77,5 @@ export declare enum RestErrorMessageEnum {
78
77
  MESSAGE014 = "Invalid Meta-Order",
79
78
  MESSAGE015 = "Can not release quantity greater than claimed",
80
79
  MESSAGE016 = "Can not release a negative quantity of items",
81
- MESSAGE017 = "Batch is forbidden for sale",
82
- MESSAGE018 = "Trial already used"
80
+ MESSAGE017 = "Batch is forbidden for sale"
83
81
  }
@@ -65,7 +65,6 @@ var RestErrorCodeEnum;
65
65
  RestErrorCodeEnum["CODE015"] = "CODE015";
66
66
  RestErrorCodeEnum["CODE016"] = "CODE016";
67
67
  RestErrorCodeEnum["CODE017"] = "CODE017";
68
- RestErrorCodeEnum["CODE018"] = "CODE018";
69
68
  })(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
70
69
  /**
71
70
  * @export
@@ -91,5 +90,4 @@ var RestErrorMessageEnum;
91
90
  RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
92
91
  RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
93
92
  RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
94
- RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
95
93
  })(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
@@ -28,7 +28,7 @@ export interface OrderItemPrices {
28
28
  */
29
29
  totalExcludingTaxes?: number;
30
30
  /**
31
- * Total taxes (V.A.T, ...) amount for this meta-order
31
+ * Total V.A.T amount for this meta-order
32
32
  * @type {number}
33
33
  * @memberof OrderItemPrices
34
34
  */
@@ -39,12 +39,6 @@ export interface OrderItemPrices {
39
39
  * @memberof OrderItemPrices
40
40
  */
41
41
  totalIncludingTaxes?: number;
42
- /**
43
- * Vat rate for this meta-order
44
- * @type {number}
45
- * @memberof OrderItemPrices
46
- */
47
- vatRate?: number;
48
42
  }
49
43
  export declare function OrderItemPricesFromJSON(json: any): OrderItemPrices;
50
44
  export declare function OrderItemPricesFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemPrices;
@@ -28,7 +28,6 @@ function OrderItemPricesFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'totalExcludingTaxes': !(0, runtime_1.exists)(json, 'totalExcludingTaxes') ? undefined : json['totalExcludingTaxes'],
29
29
  'totalTaxes': !(0, runtime_1.exists)(json, 'totalTaxes') ? undefined : json['totalTaxes'],
30
30
  'totalIncludingTaxes': !(0, runtime_1.exists)(json, 'totalIncludingTaxes') ? undefined : json['totalIncludingTaxes'],
31
- 'vatRate': !(0, runtime_1.exists)(json, 'vatRate') ? undefined : json['vatRate'],
32
31
  };
33
32
  }
34
33
  exports.OrderItemPricesFromJSONTyped = OrderItemPricesFromJSONTyped;
@@ -44,7 +43,6 @@ function OrderItemPricesToJSON(value) {
44
43
  'totalExcludingTaxes': value.totalExcludingTaxes,
45
44
  'totalTaxes': value.totalTaxes,
46
45
  'totalIncludingTaxes': value.totalIncludingTaxes,
47
- 'vatRate': value.vatRate,
48
46
  };
49
47
  }
50
48
  exports.OrderItemPricesToJSON = OrderItemPricesToJSON;
@@ -22,7 +22,7 @@ export interface OrderPrices {
22
22
  */
23
23
  totalItemsExcludingTaxes?: number;
24
24
  /**
25
- * Total items taxes (V.A.T, ...) amount for this order
25
+ * Total items V.A.T amount for this order
26
26
  * @type {number}
27
27
  * @memberof OrderPrices
28
28
  */
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { Barcodes } from './Barcodes';
13
13
  import { HttpLink } from './HttpLink';
14
+ import { Vat } from './Vat';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -35,6 +36,12 @@ export interface ProductLink extends HttpLink {
35
36
  * @memberof ProductLink
36
37
  */
37
38
  name?: string;
39
+ /**
40
+ *
41
+ * @type {Vat}
42
+ * @memberof ProductLink
43
+ */
44
+ vat?: Vat | null;
38
45
  }
39
46
  export declare function ProductLinkFromJSON(json: any): ProductLink;
40
47
  export declare function ProductLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLink;
@@ -28,6 +28,7 @@ exports.ProductLinkToJSON = exports.ProductLinkFromJSONTyped = exports.ProductLi
28
28
  var runtime_1 = require("../runtime");
29
29
  var Barcodes_1 = require("./Barcodes");
30
30
  var HttpLink_1 = require("./HttpLink");
31
+ var Vat_1 = require("./Vat");
31
32
  function ProductLinkFromJSON(json) {
32
33
  return ProductLinkFromJSONTyped(json, false);
33
34
  }
@@ -36,7 +37,7 @@ function ProductLinkFromJSONTyped(json, ignoreDiscriminator) {
36
37
  if ((json === undefined) || (json === null)) {
37
38
  return json;
38
39
  }
39
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
40
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'], 'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, Vat_1.VatFromJSON)(json['vat']) });
40
41
  }
41
42
  exports.ProductLinkFromJSONTyped = ProductLinkFromJSONTyped;
42
43
  function ProductLinkToJSON(value) {
@@ -46,6 +47,6 @@ function ProductLinkToJSON(value) {
46
47
  if (value === null) {
47
48
  return null;
48
49
  }
49
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name });
50
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name, 'vat': (0, Vat_1.VatToJSON)(value.vat) });
50
51
  }
51
52
  exports.ProductLinkToJSON = ProductLinkToJSON;
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Barcodes } from './Barcodes';
13
+ import { Vat } from './Vat';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -34,6 +35,12 @@ export interface ProductLinkAllOf {
34
35
  * @memberof ProductLinkAllOf
35
36
  */
36
37
  name?: string;
38
+ /**
39
+ *
40
+ * @type {Vat}
41
+ * @memberof ProductLinkAllOf
42
+ */
43
+ vat?: Vat | null;
37
44
  }
38
45
  export declare function ProductLinkAllOfFromJSON(json: any): ProductLinkAllOf;
39
46
  export declare function ProductLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLinkAllOf;
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var Barcodes_1 = require("./Barcodes");
19
+ var Vat_1 = require("./Vat");
19
20
  function ProductLinkAllOfFromJSON(json) {
20
21
  return ProductLinkAllOfFromJSONTyped(json, false);
21
22
  }
@@ -28,6 +29,7 @@ function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
29
30
  'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
30
31
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
32
+ 'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, Vat_1.VatFromJSON)(json['vat']),
31
33
  };
32
34
  }
33
35
  exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
@@ -42,6 +44,7 @@ function ProductLinkAllOfToJSON(value) {
42
44
  'id': value.id,
43
45
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
44
46
  'name': value.name,
47
+ 'vat': (0, Vat_1.VatToJSON)(value.vat),
45
48
  };
46
49
  }
47
50
  exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface RestError {
18
18
  /**
19
- * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
19
+ * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
20
20
  * @type {string}
21
21
  * @memberof RestError
22
22
  */
23
23
  code: RestErrorCodeEnum;
24
24
  /**
25
- * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
25
+ * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -53,8 +53,7 @@ export declare enum RestErrorCodeEnum {
53
53
  CODE014 = "CODE014",
54
54
  CODE015 = "CODE015",
55
55
  CODE016 = "CODE016",
56
- CODE017 = "CODE017",
57
- CODE018 = "CODE018"
56
+ CODE017 = "CODE017"
58
57
  }
59
58
  /**
60
59
  * @export
@@ -78,6 +77,5 @@ export declare enum RestErrorMessageEnum {
78
77
  MESSAGE014 = "Invalid Meta-Order",
79
78
  MESSAGE015 = "Can not release quantity greater than claimed",
80
79
  MESSAGE016 = "Can not release a negative quantity of items",
81
- MESSAGE017 = "Batch is forbidden for sale",
82
- MESSAGE018 = "Trial already used"
80
+ MESSAGE017 = "Batch is forbidden for sale"
83
81
  }
@@ -65,7 +65,6 @@ var RestErrorCodeEnum;
65
65
  RestErrorCodeEnum["CODE015"] = "CODE015";
66
66
  RestErrorCodeEnum["CODE016"] = "CODE016";
67
67
  RestErrorCodeEnum["CODE017"] = "CODE017";
68
- RestErrorCodeEnum["CODE018"] = "CODE018";
69
68
  })(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
70
69
  /**
71
70
  * @export
@@ -91,5 +90,4 @@ var RestErrorMessageEnum;
91
90
  RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
92
91
  RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
93
92
  RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
94
- RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
95
93
  })(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
@@ -0,0 +1,39 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface Vat
16
+ */
17
+ export interface Vat {
18
+ /**
19
+ * Vat Id
20
+ * @type {string}
21
+ * @memberof Vat
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Vat name
26
+ * @type {string}
27
+ * @memberof Vat
28
+ */
29
+ name?: string;
30
+ /**
31
+ * Vat value
32
+ * @type {number}
33
+ * @memberof Vat
34
+ */
35
+ value?: number;
36
+ }
37
+ export declare function VatFromJSON(json: any): Vat;
38
+ export declare function VatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vat;
39
+ export declare function VatToJSON(value?: Vat | null): any;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP orders
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.VatToJSON = exports.VatFromJSONTyped = exports.VatFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function VatFromJSON(json) {
19
+ return VatFromJSONTyped(json, false);
20
+ }
21
+ exports.VatFromJSON = VatFromJSON;
22
+ function VatFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
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'],
30
+ };
31
+ }
32
+ exports.VatFromJSONTyped = VatFromJSONTyped;
33
+ function VatToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'id': value.id,
42
+ 'name': value.name,
43
+ 'value': value.value,
44
+ };
45
+ }
46
+ exports.VatToJSON = VatToJSON;
@@ -41,3 +41,4 @@ export * from './UpdateOrderStatusParameters';
41
41
  export * from './UserLink';
42
42
  export * from './UserLinkAllOf';
43
43
  export * from './UserLinkAllOfCompany';
44
+ export * from './Vat';
@@ -57,3 +57,4 @@ __exportStar(require("./UpdateOrderStatusParameters"), exports);
57
57
  __exportStar(require("./UserLink"), exports);
58
58
  __exportStar(require("./UserLinkAllOf"), exports);
59
59
  __exportStar(require("./UserLinkAllOfCompany"), exports);
60
+ __exportStar(require("./Vat"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "0.0.2-LDS-2482-Move-JSON-codegen-of-API-somewhere-else.0",
3
+ "version": "0.0.2-develop.0",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -16,7 +16,6 @@ export interface GetProductRequest {
16
16
  }
17
17
  export interface GetProductsRequest {
18
18
  q?: string;
19
- barcodesAnyeq?: Array<string>;
20
19
  idEq?: Array<number>;
21
20
  stEq?: Array<ProductStatus>;
22
21
  ptEq?: string;
@@ -161,9 +161,6 @@ var SearchProductApi = /** @class */ (function (_super) {
161
161
  if (requestParameters.q !== undefined) {
162
162
  queryParameters['q'] = requestParameters.q;
163
163
  }
164
- if (requestParameters.barcodesAnyeq) {
165
- queryParameters['barcodes[anyeq]'] = requestParameters.barcodesAnyeq;
166
- }
167
164
  if (requestParameters.idEq) {
168
165
  queryParameters['id[eq]'] = requestParameters.idEq;
169
166
  }
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface ImageVersions {
18
18
  /**
19
- * URI to S3 file (width 128px, height computed with original image aspect ratio)
19
+ * URI to S3 file (width 100px, height computed with original image aspect ratio)
20
20
  * @type {string}
21
21
  * @memberof ImageVersions
22
22
  */
23
23
  xsmall?: string;
24
24
  /**
25
- * URI to S3 file (width 256px, height computed with original image aspect ratio)
25
+ * URI to S3 file (width 350px, height computed with original image aspect ratio)
26
26
  * @type {string}
27
27
  * @memberof ImageVersions
28
28
  */
29
29
  small?: string;
30
30
  /**
31
- * URI to S3 file (width 512px, height computed with original image aspect ratio)
31
+ * URI to S3 file (width 1024px, height computed with original image aspect ratio)
32
32
  * @type {string}
33
33
  * @memberof ImageVersions
34
34
  */
35
35
  medium?: string;
36
36
  /**
37
- * URI to S3 file (width 1024px, height computed with original image aspect ratio)
37
+ * URI to S3 file (width 1920px, height computed with original image aspect ratio)
38
38
  * @type {string}
39
39
  * @memberof ImageVersions
40
40
  */
41
41
  large?: string;
42
42
  /**
43
- * URI to S3 file (width 2048px, height computed with original image aspect ratio)
43
+ * URI to S3 file (width 3840px, height computed with original image aspect ratio)
44
44
  * @type {string}
45
45
  * @memberof ImageVersions
46
46
  */
@@ -50,7 +50,7 @@ export interface ImageVersions {
50
50
  * @type {string}
51
51
  * @memberof ImageVersions
52
52
  */
53
- original: string;
53
+ original?: string;
54
54
  }
55
55
  export declare function ImageVersionsFromJSON(json: any): ImageVersions;
56
56
  export declare function ImageVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageVersions;
@@ -29,7 +29,7 @@ function ImageVersionsFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
30
30
  'large': !(0, runtime_1.exists)(json, 'large') ? undefined : json['large'],
31
31
  'xlarge': !(0, runtime_1.exists)(json, 'xlarge') ? undefined : json['xlarge'],
32
- 'original': json['original'],
32
+ 'original': !(0, runtime_1.exists)(json, 'original') ? undefined : json['original'],
33
33
  };
34
34
  }
35
35
  exports.ImageVersionsFromJSONTyped = ImageVersionsFromJSONTyped;
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface RestError {
18
18
  /**
19
- * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
19
+ * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
20
20
  * @type {string}
21
21
  * @memberof RestError
22
22
  */
23
23
  code: RestErrorCodeEnum;
24
24
  /**
25
- * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
25
+ * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -53,8 +53,7 @@ export declare enum RestErrorCodeEnum {
53
53
  CODE014 = "CODE014",
54
54
  CODE015 = "CODE015",
55
55
  CODE016 = "CODE016",
56
- CODE017 = "CODE017",
57
- CODE018 = "CODE018"
56
+ CODE017 = "CODE017"
58
57
  }
59
58
  /**
60
59
  * @export
@@ -78,6 +77,5 @@ export declare enum RestErrorMessageEnum {
78
77
  MESSAGE014 = "Invalid Meta-Order",
79
78
  MESSAGE015 = "Can not release quantity greater than claimed",
80
79
  MESSAGE016 = "Can not release a negative quantity of items",
81
- MESSAGE017 = "Batch is forbidden for sale",
82
- MESSAGE018 = "Trial already used"
80
+ MESSAGE017 = "Batch is forbidden for sale"
83
81
  }
@@ -65,7 +65,6 @@ var RestErrorCodeEnum;
65
65
  RestErrorCodeEnum["CODE015"] = "CODE015";
66
66
  RestErrorCodeEnum["CODE016"] = "CODE016";
67
67
  RestErrorCodeEnum["CODE017"] = "CODE017";
68
- RestErrorCodeEnum["CODE018"] = "CODE018";
69
68
  })(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
70
69
  /**
71
70
  * @export
@@ -91,5 +90,4 @@ var RestErrorMessageEnum;
91
90
  RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
92
91
  RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
93
92
  RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
94
- RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
95
93
  })(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
@@ -21,19 +21,19 @@ export interface Image {
21
21
  * @type {number}
22
22
  * @memberof Image
23
23
  */
24
- id: number;
24
+ id?: number;
25
25
  /**
26
26
  * Image is active
27
27
  * @type {boolean}
28
28
  * @memberof Image
29
29
  */
30
- active: boolean;
30
+ active?: boolean;
31
31
  /**
32
32
  *
33
33
  * @type {ImageVersions}
34
34
  * @memberof Image
35
35
  */
36
- versions: ImageVersions;
36
+ versions?: ImageVersions;
37
37
  }
38
38
  export declare function ImageFromJSON(json: any): Image;
39
39
  export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  var ImageVersions_1 = require("./ImageVersions");
18
19
  function ImageFromJSON(json) {
19
20
  return ImageFromJSONTyped(json, false);
@@ -24,9 +25,9 @@ function ImageFromJSONTyped(json, ignoreDiscriminator) {
24
25
  return json;
25
26
  }
26
27
  return {
27
- 'id': json['id'],
28
- 'active': json['active'],
29
- 'versions': (0, ImageVersions_1.ImageVersionsFromJSON)(json['versions']),
28
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
29
+ 'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
30
+ 'versions': !(0, runtime_1.exists)(json, 'versions') ? undefined : (0, ImageVersions_1.ImageVersionsFromJSON)(json['versions']),
30
31
  };
31
32
  }
32
33
  exports.ImageFromJSONTyped = ImageFromJSONTyped;
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface ImageVersions {
18
18
  /**
19
- * URI to S3 file (width 128px, height computed with original image aspect ratio)
19
+ * URI to S3 file (width 100px, height computed with original image aspect ratio)
20
20
  * @type {string}
21
21
  * @memberof ImageVersions
22
22
  */
23
23
  xsmall?: string;
24
24
  /**
25
- * URI to S3 file (width 256px, height computed with original image aspect ratio)
25
+ * URI to S3 file (width 350px, height computed with original image aspect ratio)
26
26
  * @type {string}
27
27
  * @memberof ImageVersions
28
28
  */
29
29
  small?: string;
30
30
  /**
31
- * URI to S3 file (width 512px, height computed with original image aspect ratio)
31
+ * URI to S3 file (width 1024px, height computed with original image aspect ratio)
32
32
  * @type {string}
33
33
  * @memberof ImageVersions
34
34
  */
35
35
  medium?: string;
36
36
  /**
37
- * URI to S3 file (width 1024px, height computed with original image aspect ratio)
37
+ * URI to S3 file (width 1920px, height computed with original image aspect ratio)
38
38
  * @type {string}
39
39
  * @memberof ImageVersions
40
40
  */
41
41
  large?: string;
42
42
  /**
43
- * URI to S3 file (width 2048px, height computed with original image aspect ratio)
43
+ * URI to S3 file (width 3840px, height computed with original image aspect ratio)
44
44
  * @type {string}
45
45
  * @memberof ImageVersions
46
46
  */
@@ -50,7 +50,7 @@ export interface ImageVersions {
50
50
  * @type {string}
51
51
  * @memberof ImageVersions
52
52
  */
53
- original: string;
53
+ original?: string;
54
54
  }
55
55
  export declare function ImageVersionsFromJSON(json: any): ImageVersions;
56
56
  export declare function ImageVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageVersions;
@@ -29,7 +29,7 @@ function ImageVersionsFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
30
30
  'large': !(0, runtime_1.exists)(json, 'large') ? undefined : json['large'],
31
31
  'xlarge': !(0, runtime_1.exists)(json, 'xlarge') ? undefined : json['xlarge'],
32
- 'original': json['original'],
32
+ 'original': !(0, runtime_1.exists)(json, 'original') ? undefined : json['original'],
33
33
  };
34
34
  }
35
35
  exports.ImageVersionsFromJSONTyped = ImageVersionsFromJSONTyped;