@lcdp/api-react-rest-client 2.11.5-LDS-4510-ajouter-grace-period-sur-user.15106924709 → 2.11.5-develop.14709582461

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 (102) hide show
  1. package/auth/src/models/RestError.d.ts +2 -4
  2. package/auth/src/models/RestError.js +2 -4
  3. package/catalog/src/models/RestError.d.ts +2 -4
  4. package/catalog/src/models/RestError.js +2 -4
  5. package/configuration/src/models/RestError.d.ts +2 -4
  6. package/configuration/src/models/RestError.js +2 -4
  7. package/content/src/models/RestError.d.ts +2 -4
  8. package/content/src/models/RestError.js +2 -4
  9. package/favorite/src/models/RestError.d.ts +2 -4
  10. package/favorite/src/models/RestError.js +2 -4
  11. package/inventory/src/apis/ManageInventoryApi.d.ts +28 -1
  12. package/inventory/src/apis/ManageInventoryApi.js +165 -8
  13. package/inventory/src/apis/index.d.ts +0 -1
  14. package/inventory/src/apis/index.js +0 -1
  15. package/inventory/src/models/ActiveProductUpdateParameters.d.ts +32 -0
  16. package/inventory/src/models/ActiveProductUpdateParameters.js +46 -0
  17. package/inventory/src/models/RestError.d.ts +2 -4
  18. package/inventory/src/models/RestError.js +2 -4
  19. package/inventory/src/models/SynchronizationMode.d.ts +3 -3
  20. package/inventory/src/models/SynchronizationMode.js +3 -3
  21. package/inventory/src/models/index.d.ts +1 -7
  22. package/inventory/src/models/index.js +1 -7
  23. package/invoice/src/models/RestError.d.ts +2 -4
  24. package/invoice/src/models/RestError.js +2 -4
  25. package/laboratory-store/src/models/RestError.d.ts +2 -4
  26. package/laboratory-store/src/models/RestError.js +2 -4
  27. package/lexicon/src/models/RestError.d.ts +2 -4
  28. package/lexicon/src/models/RestError.js +2 -4
  29. package/litigation/src/models/RestError.d.ts +2 -4
  30. package/litigation/src/models/RestError.js +2 -4
  31. package/mangopay-hook/src/models/RestError.d.ts +2 -4
  32. package/mangopay-hook/src/models/RestError.js +2 -4
  33. package/notification/src/models/NotificationTypeId.d.ts +0 -1
  34. package/notification/src/models/NotificationTypeId.js +1 -2
  35. package/notification/src/models/RestError.d.ts +2 -4
  36. package/notification/src/models/RestError.js +2 -4
  37. package/order/src/models/RestError.d.ts +2 -4
  38. package/order/src/models/RestError.js +2 -4
  39. package/package.json +1 -1
  40. package/product/src/models/RestError.d.ts +2 -4
  41. package/product/src/models/RestError.js +2 -4
  42. package/pub/src/models/RestError.d.ts +2 -4
  43. package/pub/src/models/RestError.js +2 -4
  44. package/rfx/src/models/RestError.d.ts +2 -4
  45. package/rfx/src/models/RestError.js +2 -4
  46. package/sale-offer/src/models/RestError.d.ts +2 -4
  47. package/sale-offer/src/models/RestError.js +2 -4
  48. package/servant/src/models/RestError.d.ts +2 -4
  49. package/servant/src/models/RestError.js +2 -4
  50. package/shipment/src/models/RestError.d.ts +2 -4
  51. package/shipment/src/models/RestError.js +2 -4
  52. package/shopping-cart/src/models/ProductLink.d.ts +1 -1
  53. package/shopping-cart/src/models/RestError.d.ts +2 -4
  54. package/shopping-cart/src/models/RestError.js +2 -4
  55. package/smuggler/src/models/RestError.d.ts +2 -4
  56. package/smuggler/src/models/RestError.js +2 -4
  57. package/statistic/src/models/RestError.d.ts +2 -4
  58. package/statistic/src/models/RestError.js +2 -4
  59. package/subscription/src/models/RestError.d.ts +2 -4
  60. package/subscription/src/models/RestError.js +2 -4
  61. package/third-party/src/models/RestError.d.ts +2 -4
  62. package/third-party/src/models/RestError.js +2 -4
  63. package/ubo/src/models/RestError.d.ts +2 -4
  64. package/ubo/src/models/RestError.js +2 -4
  65. package/ubo/src/models/Ubo.d.ts +2 -3
  66. package/ubo/src/models/Ubo.js +2 -3
  67. package/ubo/src/models/index.d.ts +0 -1
  68. package/ubo/src/models/index.js +0 -1
  69. package/user/src/apis/ManageUserApi.d.ts +0 -2
  70. package/user/src/apis/ManageUserApi.js +0 -6
  71. package/user/src/models/NotificationTypeId.d.ts +0 -1
  72. package/user/src/models/NotificationTypeId.js +1 -2
  73. package/user/src/models/RestError.d.ts +2 -4
  74. package/user/src/models/RestError.js +2 -4
  75. package/user/src/models/User.d.ts +0 -7
  76. package/user/src/models/User.js +0 -3
  77. package/user/src/models/UserJournal.d.ts +0 -8
  78. package/user/src/models/UserJournal.js +0 -2
  79. package/user/src/models/index.d.ts +0 -1
  80. package/user/src/models/index.js +0 -1
  81. package/wish/src/models/RestError.d.ts +2 -4
  82. package/wish/src/models/RestError.js +2 -4
  83. package/inventory/src/apis/ManageInventorySynchronizationApi.d.ts +0 -93
  84. package/inventory/src/apis/ManageInventorySynchronizationApi.js +0 -515
  85. package/inventory/src/models/AnyBuffer.d.ts +0 -26
  86. package/inventory/src/models/AnyBuffer.js +0 -50
  87. package/inventory/src/models/Buffer.d.ts +0 -33
  88. package/inventory/src/models/Buffer.js +0 -47
  89. package/inventory/src/models/FixedBuffer.d.ts +0 -37
  90. package/inventory/src/models/FixedBuffer.js +0 -49
  91. package/inventory/src/models/IdentifiedSynchronization.d.ts +0 -52
  92. package/inventory/src/models/IdentifiedSynchronization.js +0 -62
  93. package/inventory/src/models/SalesForecastBuffer.d.ts +0 -37
  94. package/inventory/src/models/SalesForecastBuffer.js +0 -49
  95. package/inventory/src/models/Synchronization.d.ts +0 -48
  96. package/inventory/src/models/Synchronization.js +0 -58
  97. package/inventory/src/models/SynchronizationProposal.d.ts +0 -56
  98. package/inventory/src/models/SynchronizationProposal.js +0 -63
  99. package/ubo/src/models/Birthplace.d.ts +0 -38
  100. package/ubo/src/models/Birthplace.js +0 -52
  101. package/user/src/models/ScaEnrollmentStatus.d.ts +0 -31
  102. package/user/src/models/ScaEnrollmentStatus.js +0 -54
@@ -16,14 +16,14 @@
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` - 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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status
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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
20
20
  *
21
21
  * @type {string}
22
22
  * @memberof RestError
23
23
  */
24
24
  code: RestErrorCodeEnum;
25
25
  /**
26
- * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status
26
+ * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof RestError
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
57
57
  readonly CODE020: "CODE020";
58
58
  readonly CODE021: "CODE021";
59
59
  readonly CODE022: "CODE022";
60
- readonly CODE023: "CODE023";
61
60
  };
62
61
  export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
63
62
  /**
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
87
86
  readonly MESSAGE020: "ETag do not match";
88
87
  readonly MESSAGE021: "Missing informations for Offisante subscription";
89
88
  readonly MESSAGE022: "Disabled feature";
90
- readonly MESSAGE023: "Invalid Sca Enrollment status";
91
89
  };
92
90
  export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
93
91
  /**
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
40
40
  CODE019: 'CODE019',
41
41
  CODE020: 'CODE020',
42
42
  CODE021: 'CODE021',
43
- CODE022: 'CODE022',
44
- CODE023: 'CODE023'
43
+ CODE022: 'CODE022'
45
44
  };
46
45
  /**
47
46
  * @export
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
69
68
  MESSAGE019: 'Unable to generate session from disposableToken for admin users',
70
69
  MESSAGE020: 'ETag do not match',
71
70
  MESSAGE021: 'Missing informations for Offisante subscription',
72
- MESSAGE022: 'Disabled feature',
73
- MESSAGE023: 'Invalid Sca Enrollment status'
71
+ MESSAGE022: 'Disabled feature'
74
72
  };
75
73
  /**
76
74
  * Check if a given object implements the RestError interface.
@@ -16,14 +16,14 @@
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` - 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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status
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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
20
20
  *
21
21
  * @type {string}
22
22
  * @memberof RestError
23
23
  */
24
24
  code: RestErrorCodeEnum;
25
25
  /**
26
- * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status
26
+ * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof RestError
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
57
57
  readonly CODE020: "CODE020";
58
58
  readonly CODE021: "CODE021";
59
59
  readonly CODE022: "CODE022";
60
- readonly CODE023: "CODE023";
61
60
  };
62
61
  export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
63
62
  /**
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
87
86
  readonly MESSAGE020: "ETag do not match";
88
87
  readonly MESSAGE021: "Missing informations for Offisante subscription";
89
88
  readonly MESSAGE022: "Disabled feature";
90
- readonly MESSAGE023: "Invalid Sca Enrollment status";
91
89
  };
92
90
  export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
93
91
  /**
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
40
40
  CODE019: 'CODE019',
41
41
  CODE020: 'CODE020',
42
42
  CODE021: 'CODE021',
43
- CODE022: 'CODE022',
44
- CODE023: 'CODE023'
43
+ CODE022: 'CODE022'
45
44
  };
46
45
  /**
47
46
  * @export
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
69
68
  MESSAGE019: 'Unable to generate session from disposableToken for admin users',
70
69
  MESSAGE020: 'ETag do not match',
71
70
  MESSAGE021: 'Missing informations for Offisante subscription',
72
- MESSAGE022: 'Disabled feature',
73
- MESSAGE023: 'Invalid Sca Enrollment status'
71
+ MESSAGE022: 'Disabled feature'
74
72
  };
75
73
  /**
76
74
  * Check if a given object implements the RestError interface.
@@ -16,14 +16,14 @@
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` - 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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status
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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
20
20
  *
21
21
  * @type {string}
22
22
  * @memberof RestError
23
23
  */
24
24
  code: RestErrorCodeEnum;
25
25
  /**
26
- * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status
26
+ * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof RestError
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
57
57
  readonly CODE020: "CODE020";
58
58
  readonly CODE021: "CODE021";
59
59
  readonly CODE022: "CODE022";
60
- readonly CODE023: "CODE023";
61
60
  };
62
61
  export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
63
62
  /**
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
87
86
  readonly MESSAGE020: "ETag do not match";
88
87
  readonly MESSAGE021: "Missing informations for Offisante subscription";
89
88
  readonly MESSAGE022: "Disabled feature";
90
- readonly MESSAGE023: "Invalid Sca Enrollment status";
91
89
  };
92
90
  export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
93
91
  /**
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
40
40
  CODE019: 'CODE019',
41
41
  CODE020: 'CODE020',
42
42
  CODE021: 'CODE021',
43
- CODE022: 'CODE022',
44
- CODE023: 'CODE023'
43
+ CODE022: 'CODE022'
45
44
  };
46
45
  /**
47
46
  * @export
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
69
68
  MESSAGE019: 'Unable to generate session from disposableToken for admin users',
70
69
  MESSAGE020: 'ETag do not match',
71
70
  MESSAGE021: 'Missing informations for Offisante subscription',
72
- MESSAGE022: 'Disabled feature',
73
- MESSAGE023: 'Invalid Sca Enrollment status'
71
+ MESSAGE022: 'Disabled feature'
74
72
  };
75
73
  /**
76
74
  * Check if a given object implements the RestError interface.
@@ -16,14 +16,14 @@
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` - 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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status
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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
20
20
  *
21
21
  * @type {string}
22
22
  * @memberof RestError
23
23
  */
24
24
  code: RestErrorCodeEnum;
25
25
  /**
26
- * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status
26
+ * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof RestError
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
57
57
  readonly CODE020: "CODE020";
58
58
  readonly CODE021: "CODE021";
59
59
  readonly CODE022: "CODE022";
60
- readonly CODE023: "CODE023";
61
60
  };
62
61
  export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
63
62
  /**
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
87
86
  readonly MESSAGE020: "ETag do not match";
88
87
  readonly MESSAGE021: "Missing informations for Offisante subscription";
89
88
  readonly MESSAGE022: "Disabled feature";
90
- readonly MESSAGE023: "Invalid Sca Enrollment status";
91
89
  };
92
90
  export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
93
91
  /**
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
40
40
  CODE019: 'CODE019',
41
41
  CODE020: 'CODE020',
42
42
  CODE021: 'CODE021',
43
- CODE022: 'CODE022',
44
- CODE023: 'CODE023'
43
+ CODE022: 'CODE022'
45
44
  };
46
45
  /**
47
46
  * @export
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
69
68
  MESSAGE019: 'Unable to generate session from disposableToken for admin users',
70
69
  MESSAGE020: 'ETag do not match',
71
70
  MESSAGE021: 'Missing informations for Offisante subscription',
72
- MESSAGE022: 'Disabled feature',
73
- MESSAGE023: 'Invalid Sca Enrollment status'
71
+ MESSAGE022: 'Disabled feature'
74
72
  };
75
73
  /**
76
74
  * Check if a given object implements the RestError interface.
@@ -16,14 +16,14 @@
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` - 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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status
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 * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
20
20
  *
21
21
  * @type {string}
22
22
  * @memberof RestError
23
23
  */
24
24
  code: RestErrorCodeEnum;
25
25
  /**
26
- * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status
26
+ * 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 * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof RestError
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
57
57
  readonly CODE020: "CODE020";
58
58
  readonly CODE021: "CODE021";
59
59
  readonly CODE022: "CODE022";
60
- readonly CODE023: "CODE023";
61
60
  };
62
61
  export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
63
62
  /**
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
87
86
  readonly MESSAGE020: "ETag do not match";
88
87
  readonly MESSAGE021: "Missing informations for Offisante subscription";
89
88
  readonly MESSAGE022: "Disabled feature";
90
- readonly MESSAGE023: "Invalid Sca Enrollment status";
91
89
  };
92
90
  export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
93
91
  /**
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
40
40
  CODE019: 'CODE019',
41
41
  CODE020: 'CODE020',
42
42
  CODE021: 'CODE021',
43
- CODE022: 'CODE022',
44
- CODE023: 'CODE023'
43
+ CODE022: 'CODE022'
45
44
  };
46
45
  /**
47
46
  * @export
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
69
68
  MESSAGE019: 'Unable to generate session from disposableToken for admin users',
70
69
  MESSAGE020: 'ETag do not match',
71
70
  MESSAGE021: 'Missing informations for Offisante subscription',
72
- MESSAGE022: 'Disabled feature',
73
- MESSAGE023: 'Invalid Sca Enrollment status'
71
+ MESSAGE022: 'Disabled feature'
74
72
  };
75
73
  /**
76
74
  * Check if a given object implements the RestError interface.
@@ -10,11 +10,22 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { OverstockProductUpdateParameters } from '../models/index';
13
+ import type { ActiveProductUpdateParameters, OverstockProductUpdateParameters, SynchronizationMode } from '../models/index';
14
+ export interface UpdateCurrentInventoryActiveProductsRequest {
15
+ syncModeEq: Array<SynchronizationMode>;
16
+ activeProductUpdateParameters: ActiveProductUpdateParameters;
17
+ pEq?: Array<number>;
18
+ }
14
19
  export interface UpdateCurrentInventoryOverstockProductsRequest {
15
20
  overstockProductUpdateParameters: OverstockProductUpdateParameters;
16
21
  pEq?: number;
17
22
  }
23
+ export interface UpdateInventoryActiveProductsRequest {
24
+ inventoryId: number;
25
+ syncModeEq: Array<SynchronizationMode>;
26
+ activeProductUpdateParameters: ActiveProductUpdateParameters;
27
+ pEq?: Array<number>;
28
+ }
18
29
  export interface UpdateInventoryOverstockProductsRequest {
19
30
  inventoryId: number;
20
31
  overstockProductUpdateParameters: OverstockProductUpdateParameters;
@@ -24,6 +35,14 @@ export interface UpdateInventoryOverstockProductsRequest {
24
35
  *
25
36
  */
26
37
  export declare class ManageInventoryApi extends runtime.BaseAPI {
38
+ /**
39
+ * Allows to enable / disable automatic update on products for current user
40
+ */
41
+ updateCurrentInventoryActiveProductsRaw(requestParameters: UpdateCurrentInventoryActiveProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
42
+ /**
43
+ * Allows to enable / disable automatic update on products for current user
44
+ */
45
+ updateCurrentInventoryActiveProducts(requestParameters: UpdateCurrentInventoryActiveProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
27
46
  /**
28
47
  * Add product to black list
29
48
  */
@@ -32,6 +51,14 @@ export declare class ManageInventoryApi extends runtime.BaseAPI {
32
51
  * Add product to black list
33
52
  */
34
53
  updateCurrentInventoryOverstockProducts(requestParameters: UpdateCurrentInventoryOverstockProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
54
+ /**
55
+ * Allows to enable / disable automatic update on products for an inventory
56
+ */
57
+ updateInventoryActiveProductsRaw(requestParameters: UpdateInventoryActiveProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
58
+ /**
59
+ * Allows to enable / disable automatic update on products for an inventory
60
+ */
61
+ updateInventoryActiveProducts(requestParameters: UpdateInventoryActiveProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
35
62
  /**
36
63
  * Add product to black list
37
64
  */
@@ -75,12 +75,89 @@ var ManageInventoryApi = /** @class */ (function (_super) {
75
75
  function ManageInventoryApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * Allows to enable / disable automatic update on products for current user
80
+ */
81
+ ManageInventoryApi.prototype.updateCurrentInventoryActiveProductsRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
84
+ return __generator(this, function (_c) {
85
+ switch (_c.label) {
86
+ case 0:
87
+ if (requestParameters['syncModeEq'] == null) {
88
+ throw new runtime.RequiredError('syncModeEq', 'Required parameter "syncModeEq" was null or undefined when calling updateCurrentInventoryActiveProducts().');
89
+ }
90
+ if (requestParameters['activeProductUpdateParameters'] == null) {
91
+ throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateCurrentInventoryActiveProducts().');
92
+ }
93
+ queryParameters = {};
94
+ if (requestParameters['pEq'] != null) {
95
+ queryParameters['p[eq]'] = requestParameters['pEq'];
96
+ }
97
+ if (requestParameters['syncModeEq'] != null) {
98
+ queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
99
+ }
100
+ headerParameters = {};
101
+ headerParameters['Content-Type'] = 'application/json';
102
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
103
+ _a = headerParameters;
104
+ _b = "x-api-key";
105
+ return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
106
+ case 1:
107
+ _a[_b] = _c.sent(); // apiKeyAuth authentication
108
+ _c.label = 2;
109
+ case 2:
110
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
111
+ token = this.configuration.accessToken;
112
+ return [4 /*yield*/, token("bearerAuth", [])];
113
+ case 3:
114
+ tokenString = _c.sent();
115
+ if (tokenString) {
116
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
117
+ }
118
+ _c.label = 4;
119
+ case 4:
120
+ _c.trys.push([4, 6, , 7]);
121
+ return [4 /*yield*/, this.request({
122
+ path: "/inventories/me/active-products",
123
+ method: 'PATCH',
124
+ headers: headerParameters,
125
+ query: queryParameters,
126
+ body: (0, index_1.ActiveProductUpdateParametersToJSON)(requestParameters['activeProductUpdateParameters']),
127
+ }, initOverrides)];
128
+ case 5:
129
+ response = _c.sent();
130
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
131
+ case 6:
132
+ response_1 = _c.sent();
133
+ console.debug(response_1);
134
+ throw response_1;
135
+ case 7: return [2 /*return*/];
136
+ }
137
+ });
138
+ });
139
+ };
140
+ /**
141
+ * Allows to enable / disable automatic update on products for current user
142
+ */
143
+ ManageInventoryApi.prototype.updateCurrentInventoryActiveProducts = function (requestParameters, initOverrides) {
144
+ return __awaiter(this, void 0, void 0, function () {
145
+ return __generator(this, function (_a) {
146
+ switch (_a.label) {
147
+ case 0: return [4 /*yield*/, this.updateCurrentInventoryActiveProductsRaw(requestParameters, initOverrides)];
148
+ case 1:
149
+ _a.sent();
150
+ return [2 /*return*/];
151
+ }
152
+ });
153
+ });
154
+ };
78
155
  /**
79
156
  * Add product to black list
80
157
  */
81
158
  ManageInventoryApi.prototype.updateCurrentInventoryOverstockProductsRaw = function (requestParameters, initOverrides) {
82
159
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
160
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_2;
84
161
  return __generator(this, function (_c) {
85
162
  switch (_c.label) {
86
163
  case 0:
@@ -123,9 +200,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
123
200
  response = _c.sent();
124
201
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
125
202
  case 6:
126
- response_1 = _c.sent();
127
- console.debug(response_1);
128
- throw response_1;
203
+ response_2 = _c.sent();
204
+ console.debug(response_2);
205
+ throw response_2;
129
206
  case 7: return [2 /*return*/];
130
207
  }
131
208
  });
@@ -146,12 +223,92 @@ var ManageInventoryApi = /** @class */ (function (_super) {
146
223
  });
147
224
  });
148
225
  };
226
+ /**
227
+ * Allows to enable / disable automatic update on products for an inventory
228
+ */
229
+ ManageInventoryApi.prototype.updateInventoryActiveProductsRaw = function (requestParameters, initOverrides) {
230
+ return __awaiter(this, void 0, void 0, function () {
231
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_3;
232
+ return __generator(this, function (_c) {
233
+ switch (_c.label) {
234
+ case 0:
235
+ if (requestParameters['inventoryId'] == null) {
236
+ throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling updateInventoryActiveProducts().');
237
+ }
238
+ if (requestParameters['syncModeEq'] == null) {
239
+ throw new runtime.RequiredError('syncModeEq', 'Required parameter "syncModeEq" was null or undefined when calling updateInventoryActiveProducts().');
240
+ }
241
+ if (requestParameters['activeProductUpdateParameters'] == null) {
242
+ throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateInventoryActiveProducts().');
243
+ }
244
+ queryParameters = {};
245
+ if (requestParameters['pEq'] != null) {
246
+ queryParameters['p[eq]'] = requestParameters['pEq'];
247
+ }
248
+ if (requestParameters['syncModeEq'] != null) {
249
+ queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
250
+ }
251
+ headerParameters = {};
252
+ headerParameters['Content-Type'] = 'application/json';
253
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
254
+ _a = headerParameters;
255
+ _b = "x-api-key";
256
+ return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
257
+ case 1:
258
+ _a[_b] = _c.sent(); // apiKeyAuth authentication
259
+ _c.label = 2;
260
+ case 2:
261
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
262
+ token = this.configuration.accessToken;
263
+ return [4 /*yield*/, token("bearerAuth", [])];
264
+ case 3:
265
+ tokenString = _c.sent();
266
+ if (tokenString) {
267
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
268
+ }
269
+ _c.label = 4;
270
+ case 4:
271
+ _c.trys.push([4, 6, , 7]);
272
+ return [4 /*yield*/, this.request({
273
+ path: "/inventories/{inventoryId}/active-products".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters['inventoryId']))),
274
+ method: 'PATCH',
275
+ headers: headerParameters,
276
+ query: queryParameters,
277
+ body: (0, index_1.ActiveProductUpdateParametersToJSON)(requestParameters['activeProductUpdateParameters']),
278
+ }, initOverrides)];
279
+ case 5:
280
+ response = _c.sent();
281
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
282
+ case 6:
283
+ response_3 = _c.sent();
284
+ console.debug(response_3);
285
+ throw response_3;
286
+ case 7: return [2 /*return*/];
287
+ }
288
+ });
289
+ });
290
+ };
291
+ /**
292
+ * Allows to enable / disable automatic update on products for an inventory
293
+ */
294
+ ManageInventoryApi.prototype.updateInventoryActiveProducts = function (requestParameters, initOverrides) {
295
+ return __awaiter(this, void 0, void 0, function () {
296
+ return __generator(this, function (_a) {
297
+ switch (_a.label) {
298
+ case 0: return [4 /*yield*/, this.updateInventoryActiveProductsRaw(requestParameters, initOverrides)];
299
+ case 1:
300
+ _a.sent();
301
+ return [2 /*return*/];
302
+ }
303
+ });
304
+ });
305
+ };
149
306
  /**
150
307
  * Add product to black list
151
308
  */
152
309
  ManageInventoryApi.prototype.updateInventoryOverstockProductsRaw = function (requestParameters, initOverrides) {
153
310
  return __awaiter(this, void 0, void 0, function () {
154
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_2;
311
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_4;
155
312
  return __generator(this, function (_c) {
156
313
  switch (_c.label) {
157
314
  case 0:
@@ -197,9 +354,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
197
354
  response = _c.sent();
198
355
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
199
356
  case 6:
200
- response_2 = _c.sent();
201
- console.debug(response_2);
202
- throw response_2;
357
+ response_4 = _c.sent();
358
+ console.debug(response_4);
359
+ throw response_4;
203
360
  case 7: return [2 /*return*/];
204
361
  }
205
362
  });
@@ -1,3 +1,2 @@
1
1
  export * from './ManageInventoryApi';
2
- export * from './ManageInventorySynchronizationApi';
3
2
  export * from './SearchInventoryApi';
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./ManageInventoryApi"), exports);
20
- __exportStar(require("./ManageInventorySynchronizationApi"), exports);
21
20
  __exportStar(require("./SearchInventoryApi"), exports);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * lcdp-pharmaide-service
3
+ * This is the REST API of LCDP products
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SynchronizationMode } from './SynchronizationMode';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ActiveProductUpdateParameters
17
+ */
18
+ export interface ActiveProductUpdateParameters {
19
+ /**
20
+ *
21
+ * @type {SynchronizationMode}
22
+ * @memberof ActiveProductUpdateParameters
23
+ */
24
+ synchronizationMode?: SynchronizationMode;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ActiveProductUpdateParameters interface.
28
+ */
29
+ export declare function instanceOfActiveProductUpdateParameters(value: object): value is ActiveProductUpdateParameters;
30
+ export declare function ActiveProductUpdateParametersFromJSON(json: any): ActiveProductUpdateParameters;
31
+ export declare function ActiveProductUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveProductUpdateParameters;
32
+ export declare function ActiveProductUpdateParametersToJSON(value?: ActiveProductUpdateParameters | null): any;