@lcdp/api-react-rest-client 2.1.4-develop.5077396774 → 2.1.4-develop.5077941181

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 (87) hide show
  1. package/auth/src/models/RestError.d.ts +3 -3
  2. package/auth/src/models/RestError.js +1 -1
  3. package/configuration/src/models/RestError.d.ts +3 -3
  4. package/configuration/src/models/RestError.js +1 -1
  5. package/content/src/models/RestError.d.ts +3 -3
  6. package/content/src/models/RestError.js +1 -1
  7. package/favorite/src/models/RestError.d.ts +3 -3
  8. package/favorite/src/models/RestError.js +1 -1
  9. package/inventory/src/models/RestError.d.ts +3 -3
  10. package/inventory/src/models/RestError.js +1 -1
  11. package/invoice/src/models/RestError.d.ts +3 -3
  12. package/invoice/src/models/RestError.js +1 -1
  13. package/laboratory-store/src/models/RestError.d.ts +3 -3
  14. package/laboratory-store/src/models/RestError.js +1 -1
  15. package/lexicon/src/models/RestError.d.ts +3 -3
  16. package/lexicon/src/models/RestError.js +1 -1
  17. package/litigation/src/models/RestError.d.ts +3 -3
  18. package/litigation/src/models/RestError.js +1 -1
  19. package/magic-cart/src/models/ProductLink.d.ts +7 -0
  20. package/magic-cart/src/models/ProductLink.js +3 -2
  21. package/magic-cart/src/models/ProductLinkAllOf.d.ts +7 -0
  22. package/magic-cart/src/models/ProductLinkAllOf.js +3 -0
  23. package/magic-cart/src/models/ProductStorageType.d.ts +25 -0
  24. package/magic-cart/src/models/ProductStorageType.js +40 -0
  25. package/magic-cart/src/models/index.d.ts +1 -0
  26. package/magic-cart/src/models/index.js +1 -0
  27. package/mangopay-hook/src/models/RestError.d.ts +3 -3
  28. package/mangopay-hook/src/models/RestError.js +1 -1
  29. package/notification/src/models/RestError.d.ts +3 -3
  30. package/notification/src/models/RestError.js +1 -1
  31. package/order/src/models/Order.d.ts +20 -0
  32. package/order/src/models/Order.js +8 -0
  33. package/order/src/models/OrderJournal.d.ts +27 -0
  34. package/order/src/models/OrderJournal.js +42 -0
  35. package/order/src/models/OrderStorageType.d.ts +25 -0
  36. package/order/src/models/OrderStorageType.js +40 -0
  37. package/order/src/models/ProductLink.d.ts +7 -0
  38. package/order/src/models/ProductLink.js +3 -2
  39. package/order/src/models/ProductLinkAllOf.d.ts +7 -0
  40. package/order/src/models/ProductLinkAllOf.js +3 -0
  41. package/order/src/models/ProductStorageType.d.ts +25 -0
  42. package/order/src/models/ProductStorageType.js +40 -0
  43. package/order/src/models/RestError.d.ts +3 -3
  44. package/order/src/models/RestError.js +1 -1
  45. package/order/src/models/index.d.ts +3 -0
  46. package/order/src/models/index.js +3 -0
  47. package/package.json +1 -1
  48. package/product/src/models/Product.d.ts +3 -2
  49. package/product/src/models/Product.js +3 -2
  50. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +3 -2
  51. package/product/src/models/ProductCreationOrUpdateParameters.js +3 -2
  52. package/product/src/models/ProductStorageType.d.ts +25 -0
  53. package/product/src/models/ProductStorageType.js +40 -0
  54. package/product/src/models/RestError.d.ts +3 -3
  55. package/product/src/models/RestError.js +1 -1
  56. package/product/src/models/index.d.ts +1 -0
  57. package/product/src/models/index.js +1 -0
  58. package/pub/src/models/RestError.d.ts +3 -3
  59. package/pub/src/models/RestError.js +1 -1
  60. package/rfx/src/models/RestError.d.ts +3 -3
  61. package/rfx/src/models/RestError.js +1 -1
  62. package/sale-offer/src/models/RestError.d.ts +3 -3
  63. package/sale-offer/src/models/RestError.js +1 -1
  64. package/servant/src/models/RestError.d.ts +3 -3
  65. package/servant/src/models/RestError.js +1 -1
  66. package/shipment/src/models/RestError.d.ts +3 -3
  67. package/shipment/src/models/RestError.js +1 -1
  68. package/shopping-cart/src/models/ProductLink.d.ts +11 -4
  69. package/shopping-cart/src/models/ProductLink.js +3 -3
  70. package/shopping-cart/src/models/ProductLinkAllOf.d.ts +11 -4
  71. package/shopping-cart/src/models/ProductLinkAllOf.js +7 -5
  72. package/shopping-cart/src/models/ProductStorageType.d.ts +25 -0
  73. package/shopping-cart/src/models/ProductStorageType.js +40 -0
  74. package/shopping-cart/src/models/RestError.d.ts +3 -3
  75. package/shopping-cart/src/models/RestError.js +1 -1
  76. package/shopping-cart/src/models/index.d.ts +1 -0
  77. package/shopping-cart/src/models/index.js +1 -0
  78. package/statistic/src/models/RestError.d.ts +3 -3
  79. package/statistic/src/models/RestError.js +1 -1
  80. package/subscription/src/models/RestError.d.ts +3 -3
  81. package/subscription/src/models/RestError.js +1 -1
  82. package/ubo/src/models/RestError.d.ts +3 -3
  83. package/ubo/src/models/RestError.js +1 -1
  84. package/user/src/models/RestError.d.ts +3 -3
  85. package/user/src/models/RestError.js +1 -1
  86. package/wish/src/models/RestError.d.ts +3 -3
  87. package/wish/src/models/RestError.js +1 -1
@@ -0,0 +1,25 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum ProductStorageType {
18
+ FREE = "FREE",
19
+ FRIDGE = "FRIDGE",
20
+ FREEZER = "FREEZER",
21
+ FRESH = "FRESH"
22
+ }
23
+ export declare function ProductStorageTypeFromJSON(json: any): ProductStorageType;
24
+ export declare function ProductStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStorageType;
25
+ export declare function ProductStorageTypeToJSON(value?: ProductStorageType | null): any;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProductStorageTypeToJSON = exports.ProductStorageTypeFromJSONTyped = exports.ProductStorageTypeFromJSON = exports.ProductStorageType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var ProductStorageType;
23
+ (function (ProductStorageType) {
24
+ ProductStorageType["FREE"] = "FREE";
25
+ ProductStorageType["FRIDGE"] = "FRIDGE";
26
+ ProductStorageType["FREEZER"] = "FREEZER";
27
+ ProductStorageType["FRESH"] = "FRESH";
28
+ })(ProductStorageType = exports.ProductStorageType || (exports.ProductStorageType = {}));
29
+ function ProductStorageTypeFromJSON(json) {
30
+ return ProductStorageTypeFromJSONTyped(json, false);
31
+ }
32
+ exports.ProductStorageTypeFromJSON = ProductStorageTypeFromJSON;
33
+ function ProductStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ exports.ProductStorageTypeFromJSONTyped = ProductStorageTypeFromJSONTyped;
37
+ function ProductStorageTypeToJSON(value) {
38
+ return value;
39
+ }
40
+ exports.ProductStorageTypeToJSON = ProductStorageTypeToJSON;
@@ -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` - FREE * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - FREE * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
72
72
  MESSAGE007 = "Wrong Address according CHRONOPOST",
73
73
  MESSAGE008 = "Invalid Mangopay Mandate",
74
74
  MESSAGE009 = "Invalid Status",
75
- MESSAGE010 = "FREE",
75
+ MESSAGE010 = "Image dimension exceeded",
76
76
  MESSAGE011 = "Empty User Address",
77
77
  MESSAGE012 = "Empty User Legal Name",
78
78
  MESSAGE013 = "Invalid quantities",
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
84
84
  RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
85
  RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
86
  RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
- RestErrorMessageEnum["MESSAGE010"] = "FREE";
87
+ RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
88
88
  RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
89
  RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
90
  RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
@@ -20,6 +20,7 @@ export * from './ProductProscriptionCreationParameters';
20
20
  export * from './ProductProvider';
21
21
  export * from './ProductSecondaryType';
22
22
  export * from './ProductStatus';
23
+ export * from './ProductStorageType';
23
24
  export * from './ProductType';
24
25
  export * from './RestError';
25
26
  export * from './Statistics';
@@ -36,6 +36,7 @@ __exportStar(require("./ProductProscriptionCreationParameters"), exports);
36
36
  __exportStar(require("./ProductProvider"), exports);
37
37
  __exportStar(require("./ProductSecondaryType"), exports);
38
38
  __exportStar(require("./ProductStatus"), exports);
39
+ __exportStar(require("./ProductStorageType"), exports);
39
40
  __exportStar(require("./ProductType"), exports);
40
41
  __exportStar(require("./RestError"), exports);
41
42
  __exportStar(require("./Statistics"), exports);
@@ -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` - FREE * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - FREE * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
72
72
  MESSAGE007 = "Wrong Address according CHRONOPOST",
73
73
  MESSAGE008 = "Invalid Mangopay Mandate",
74
74
  MESSAGE009 = "Invalid Status",
75
- MESSAGE010 = "FREE",
75
+ MESSAGE010 = "Image dimension exceeded",
76
76
  MESSAGE011 = "Empty User Address",
77
77
  MESSAGE012 = "Empty User Legal Name",
78
78
  MESSAGE013 = "Invalid quantities",
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
84
84
  RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
85
  RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
86
  RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
- RestErrorMessageEnum["MESSAGE010"] = "FREE";
87
+ RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
88
88
  RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
89
  RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
90
  RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
@@ -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` - FREE * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - FREE * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
72
72
  MESSAGE007 = "Wrong Address according CHRONOPOST",
73
73
  MESSAGE008 = "Invalid Mangopay Mandate",
74
74
  MESSAGE009 = "Invalid Status",
75
- MESSAGE010 = "FREE",
75
+ MESSAGE010 = "Image dimension exceeded",
76
76
  MESSAGE011 = "Empty User Address",
77
77
  MESSAGE012 = "Empty User Legal Name",
78
78
  MESSAGE013 = "Invalid quantities",
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
84
84
  RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
85
  RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
86
  RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
- RestErrorMessageEnum["MESSAGE010"] = "FREE";
87
+ RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
88
88
  RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
89
  RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
90
  RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
@@ -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` - FREE * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - FREE * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
72
72
  MESSAGE007 = "Wrong Address according CHRONOPOST",
73
73
  MESSAGE008 = "Invalid Mangopay Mandate",
74
74
  MESSAGE009 = "Invalid Status",
75
- MESSAGE010 = "FREE",
75
+ MESSAGE010 = "Image dimension exceeded",
76
76
  MESSAGE011 = "Empty User Address",
77
77
  MESSAGE012 = "Empty User Legal Name",
78
78
  MESSAGE013 = "Invalid quantities",
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
84
84
  RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
85
  RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
86
  RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
- RestErrorMessageEnum["MESSAGE010"] = "FREE";
87
+ RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
88
88
  RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
89
  RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
90
  RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
@@ -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` - FREE * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - FREE * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
72
72
  MESSAGE007 = "Wrong Address according CHRONOPOST",
73
73
  MESSAGE008 = "Invalid Mangopay Mandate",
74
74
  MESSAGE009 = "Invalid Status",
75
- MESSAGE010 = "FREE",
75
+ MESSAGE010 = "Image dimension exceeded",
76
76
  MESSAGE011 = "Empty User Address",
77
77
  MESSAGE012 = "Empty User Legal Name",
78
78
  MESSAGE013 = "Invalid quantities",
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
84
84
  RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
85
  RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
86
  RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
- RestErrorMessageEnum["MESSAGE010"] = "FREE";
87
+ RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
88
88
  RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
89
  RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
90
  RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
@@ -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` - FREE * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - FREE * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
72
72
  MESSAGE007 = "Wrong Address according CHRONOPOST",
73
73
  MESSAGE008 = "Invalid Mangopay Mandate",
74
74
  MESSAGE009 = "Invalid Status",
75
- MESSAGE010 = "FREE",
75
+ MESSAGE010 = "Image dimension exceeded",
76
76
  MESSAGE011 = "Empty User Address",
77
77
  MESSAGE012 = "Empty User Legal Name",
78
78
  MESSAGE013 = "Invalid quantities",
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
84
84
  RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
85
  RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
86
  RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
- RestErrorMessageEnum["MESSAGE010"] = "FREE";
87
+ RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
88
88
  RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
89
  RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
90
  RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { Barcodes } from './Barcodes';
13
13
  import { HttpLink } from './HttpLink';
14
+ import { ProductStorageType } from './ProductStorageType';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -22,25 +23,31 @@ export interface ProductLink extends HttpLink {
22
23
  * @type {number}
23
24
  * @memberof ProductLink
24
25
  */
25
- id?: number;
26
+ id: number;
26
27
  /**
27
28
  *
28
29
  * @type {Barcodes}
29
30
  * @memberof ProductLink
30
31
  */
31
- barcodes?: Barcodes;
32
+ barcodes: Barcodes;
32
33
  /**
33
34
  * Name of the product
34
35
  * @type {string}
35
36
  * @memberof ProductLink
36
37
  */
37
- name?: string;
38
+ name: string;
38
39
  /**
39
40
  * Shorted name of the product
40
41
  * @type {string}
41
42
  * @memberof ProductLink
42
43
  */
43
- shortName?: string;
44
+ shortName: string;
45
+ /**
46
+ *
47
+ * @type {ProductStorageType}
48
+ * @memberof ProductLink
49
+ */
50
+ storageType: ProductStorageType | null;
44
51
  }
45
52
  export declare function ProductLinkFromJSON(json: any): ProductLink;
46
53
  export declare function ProductLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLink;
@@ -25,9 +25,9 @@ var __assign = (this && this.__assign) || function () {
25
25
  };
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.ProductLinkToJSON = exports.ProductLinkFromJSONTyped = exports.ProductLinkFromJSON = void 0;
28
- var runtime_1 = require("../runtime");
29
28
  var Barcodes_1 = require("./Barcodes");
30
29
  var HttpLink_1 = require("./HttpLink");
30
+ var ProductStorageType_1 = require("./ProductStorageType");
31
31
  function ProductLinkFromJSON(json) {
32
32
  return ProductLinkFromJSONTyped(json, false);
33
33
  }
@@ -36,7 +36,7 @@ function ProductLinkFromJSONTyped(json, ignoreDiscriminator) {
36
36
  if ((json === undefined) || (json === null)) {
37
37
  return json;
38
38
  }
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'], 'shortName': !(0, runtime_1.exists)(json, 'shortName') ? undefined : json['shortName'] });
39
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'], 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': json['name'], 'shortName': json['shortName'], 'storageType': (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']) });
40
40
  }
41
41
  exports.ProductLinkFromJSONTyped = ProductLinkFromJSONTyped;
42
42
  function ProductLinkToJSON(value) {
@@ -46,6 +46,6 @@ function ProductLinkToJSON(value) {
46
46
  if (value === null) {
47
47
  return null;
48
48
  }
49
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name, 'shortName': value.shortName });
49
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name, 'shortName': value.shortName, 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType) });
50
50
  }
51
51
  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 { ProductStorageType } from './ProductStorageType';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -21,25 +22,31 @@ export interface ProductLinkAllOf {
21
22
  * @type {number}
22
23
  * @memberof ProductLinkAllOf
23
24
  */
24
- id?: number;
25
+ id: number;
25
26
  /**
26
27
  *
27
28
  * @type {Barcodes}
28
29
  * @memberof ProductLinkAllOf
29
30
  */
30
- barcodes?: Barcodes;
31
+ barcodes: Barcodes;
31
32
  /**
32
33
  * Name of the product
33
34
  * @type {string}
34
35
  * @memberof ProductLinkAllOf
35
36
  */
36
- name?: string;
37
+ name: string;
37
38
  /**
38
39
  * Shorted name of the product
39
40
  * @type {string}
40
41
  * @memberof ProductLinkAllOf
41
42
  */
42
- shortName?: string;
43
+ shortName: string;
44
+ /**
45
+ *
46
+ * @type {ProductStorageType}
47
+ * @memberof ProductLinkAllOf
48
+ */
49
+ storageType: ProductStorageType | null;
43
50
  }
44
51
  export declare function ProductLinkAllOfFromJSON(json: any): ProductLinkAllOf;
45
52
  export declare function ProductLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLinkAllOf;
@@ -14,8 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var Barcodes_1 = require("./Barcodes");
18
+ var ProductStorageType_1 = require("./ProductStorageType");
19
19
  function ProductLinkAllOfFromJSON(json) {
20
20
  return ProductLinkAllOfFromJSONTyped(json, false);
21
21
  }
@@ -25,10 +25,11 @@ function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
29
- 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
30
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
31
- 'shortName': !(0, runtime_1.exists)(json, 'shortName') ? undefined : json['shortName'],
28
+ 'id': json['id'],
29
+ 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
30
+ 'name': json['name'],
31
+ 'shortName': json['shortName'],
32
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
32
33
  };
33
34
  }
34
35
  exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
@@ -44,6 +45,7 @@ function ProductLinkAllOfToJSON(value) {
44
45
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
45
46
  'name': value.name,
46
47
  'shortName': value.shortName,
48
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
47
49
  };
48
50
  }
49
51
  exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum ProductStorageType {
18
+ FREE = "FREE",
19
+ FRIDGE = "FRIDGE",
20
+ FREEZER = "FREEZER",
21
+ FRESH = "FRESH"
22
+ }
23
+ export declare function ProductStorageTypeFromJSON(json: any): ProductStorageType;
24
+ export declare function ProductStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStorageType;
25
+ export declare function ProductStorageTypeToJSON(value?: ProductStorageType | null): any;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProductStorageTypeToJSON = exports.ProductStorageTypeFromJSONTyped = exports.ProductStorageTypeFromJSON = exports.ProductStorageType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var ProductStorageType;
23
+ (function (ProductStorageType) {
24
+ ProductStorageType["FREE"] = "FREE";
25
+ ProductStorageType["FRIDGE"] = "FRIDGE";
26
+ ProductStorageType["FREEZER"] = "FREEZER";
27
+ ProductStorageType["FRESH"] = "FRESH";
28
+ })(ProductStorageType = exports.ProductStorageType || (exports.ProductStorageType = {}));
29
+ function ProductStorageTypeFromJSON(json) {
30
+ return ProductStorageTypeFromJSONTyped(json, false);
31
+ }
32
+ exports.ProductStorageTypeFromJSON = ProductStorageTypeFromJSON;
33
+ function ProductStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ exports.ProductStorageTypeFromJSONTyped = ProductStorageTypeFromJSONTyped;
37
+ function ProductStorageTypeToJSON(value) {
38
+ return value;
39
+ }
40
+ exports.ProductStorageTypeToJSON = ProductStorageTypeToJSON;
@@ -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` - FREE * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `CODE019` - Unable to generate session from disposableToken for admin users
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` - FREE * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
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` - Image dimension exceeded * `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 * `MESSAGE019` - Unable to generate session from disposableToken for admin users
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
72
72
  MESSAGE007 = "Wrong Address according CHRONOPOST",
73
73
  MESSAGE008 = "Invalid Mangopay Mandate",
74
74
  MESSAGE009 = "Invalid Status",
75
- MESSAGE010 = "FREE",
75
+ MESSAGE010 = "Image dimension exceeded",
76
76
  MESSAGE011 = "Empty User Address",
77
77
  MESSAGE012 = "Empty User Legal Name",
78
78
  MESSAGE013 = "Invalid quantities",
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
84
84
  RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
85
  RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
86
  RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
- RestErrorMessageEnum["MESSAGE010"] = "FREE";
87
+ RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
88
88
  RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
89
  RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
90
  RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
@@ -14,6 +14,7 @@ export * from './IdentifiedRangeDistributionMode';
14
14
  export * from './IdentifiedRangeDistributionModeAllOf';
15
15
  export * from './ProductLink';
16
16
  export * from './ProductLinkAllOf';
17
+ export * from './ProductStorageType';
17
18
  export * from './QuotationDistributionMode';
18
19
  export * from './QuotationDistributionModeAllOf';
19
20
  export * from './RestError';
@@ -30,6 +30,7 @@ __exportStar(require("./IdentifiedRangeDistributionMode"), exports);
30
30
  __exportStar(require("./IdentifiedRangeDistributionModeAllOf"), exports);
31
31
  __exportStar(require("./ProductLink"), exports);
32
32
  __exportStar(require("./ProductLinkAllOf"), exports);
33
+ __exportStar(require("./ProductStorageType"), exports);
33
34
  __exportStar(require("./QuotationDistributionMode"), exports);
34
35
  __exportStar(require("./QuotationDistributionModeAllOf"), exports);
35
36
  __exportStar(require("./RestError"), exports);