@lcdp/api-react-rest-client 2.1.4-test-order-by.4883611692 → 2.1.4

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 (95) hide show
  1. package/package.json +1 -1
  2. package/sale-offer/index.d.ts +1 -0
  3. package/sale-offer/index.js +17 -0
  4. package/sale-offer/src/apis/ManageSaleOfferApi.d.ts +74 -0
  5. package/sale-offer/src/apis/ManageSaleOfferApi.js +371 -0
  6. package/sale-offer/src/apis/ManageSaleOfferStatusApi.d.ts +32 -0
  7. package/sale-offer/src/apis/ManageSaleOfferStatusApi.js +160 -0
  8. package/sale-offer/src/apis/SearchSaleOfferApi.d.ts +105 -0
  9. package/sale-offer/src/apis/SearchSaleOfferApi.js +333 -0
  10. package/sale-offer/src/apis/index.d.ts +3 -0
  11. package/sale-offer/src/apis/index.js +19 -0
  12. package/sale-offer/src/index.d.ts +3 -0
  13. package/sale-offer/src/index.js +19 -0
  14. package/sale-offer/src/models/AnyDistributionMode.d.ts +28 -0
  15. package/sale-offer/src/models/AnyDistributionMode.js +69 -0
  16. package/sale-offer/src/models/AnyIdentifiedDistributionMode.d.ts +28 -0
  17. package/sale-offer/src/models/AnyIdentifiedDistributionMode.js +69 -0
  18. package/sale-offer/src/models/Barcodes.d.ts +45 -0
  19. package/sale-offer/src/models/Barcodes.js +48 -0
  20. package/sale-offer/src/models/DistributionMode.d.ts +39 -0
  21. package/sale-offer/src/models/DistributionMode.js +45 -0
  22. package/sale-offer/src/models/DistributionRange.d.ts +39 -0
  23. package/sale-offer/src/models/DistributionRange.js +45 -0
  24. package/sale-offer/src/models/HttpLink.d.ts +27 -0
  25. package/sale-offer/src/models/HttpLink.js +41 -0
  26. package/sale-offer/src/models/IdentifiedDistributionRange.d.ts +34 -0
  27. package/sale-offer/src/models/IdentifiedDistributionRange.js +49 -0
  28. package/sale-offer/src/models/IdentifiedDistributionRangeAllOf.d.ts +33 -0
  29. package/sale-offer/src/models/IdentifiedDistributionRangeAllOf.js +43 -0
  30. package/sale-offer/src/models/IdentifiedRangeDistributionMode.d.ts +29 -0
  31. package/sale-offer/src/models/IdentifiedRangeDistributionMode.js +50 -0
  32. package/sale-offer/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +28 -0
  33. package/sale-offer/src/models/IdentifiedRangeDistributionModeAllOf.js +42 -0
  34. package/sale-offer/src/models/ImageVersions.d.ts +57 -0
  35. package/sale-offer/src/models/ImageVersions.js +52 -0
  36. package/sale-offer/src/models/Images.d.ts +40 -0
  37. package/sale-offer/src/models/Images.js +47 -0
  38. package/sale-offer/src/models/OwnerLink.d.ts +41 -0
  39. package/sale-offer/src/models/OwnerLink.js +51 -0
  40. package/sale-offer/src/models/OwnerLinkAllOf.d.ts +40 -0
  41. package/sale-offer/src/models/OwnerLinkAllOf.js +47 -0
  42. package/sale-offer/src/models/OwnerLinkAllOfCompany.d.ts +27 -0
  43. package/sale-offer/src/models/OwnerLinkAllOfCompany.js +42 -0
  44. package/sale-offer/src/models/PaginatedObject.d.ts +28 -0
  45. package/sale-offer/src/models/PaginatedObject.js +42 -0
  46. package/sale-offer/src/models/PaginatedSaleOffers.d.ts +29 -0
  47. package/sale-offer/src/models/PaginatedSaleOffers.js +50 -0
  48. package/sale-offer/src/models/PaginatedSaleOffersAllOf.d.ts +28 -0
  49. package/sale-offer/src/models/PaginatedSaleOffersAllOf.js +42 -0
  50. package/sale-offer/src/models/PagingMetadata.d.ts +45 -0
  51. package/sale-offer/src/models/PagingMetadata.js +47 -0
  52. package/sale-offer/src/models/ProductImageLink.d.ts +35 -0
  53. package/sale-offer/src/models/ProductImageLink.js +51 -0
  54. package/sale-offer/src/models/ProductImageLinkAllOf.d.ts +34 -0
  55. package/sale-offer/src/models/ProductImageLinkAllOf.js +45 -0
  56. package/sale-offer/src/models/ProductLink.d.ts +41 -0
  57. package/sale-offer/src/models/ProductLink.js +51 -0
  58. package/sale-offer/src/models/ProductLinkAllOf.d.ts +40 -0
  59. package/sale-offer/src/models/ProductLinkAllOf.js +47 -0
  60. package/sale-offer/src/models/QuotationDistributionMode.d.ts +28 -0
  61. package/sale-offer/src/models/QuotationDistributionMode.js +49 -0
  62. package/sale-offer/src/models/QuotationDistributionModeAllOf.d.ts +27 -0
  63. package/sale-offer/src/models/QuotationDistributionModeAllOf.js +41 -0
  64. package/sale-offer/src/models/RangeDistributionMode.d.ts +29 -0
  65. package/sale-offer/src/models/RangeDistributionMode.js +50 -0
  66. package/sale-offer/src/models/RangeDistributionModeAllOf.d.ts +28 -0
  67. package/sale-offer/src/models/RangeDistributionModeAllOf.js +42 -0
  68. package/sale-offer/src/models/RestError.d.ts +85 -0
  69. package/sale-offer/src/models/RestError.js +97 -0
  70. package/sale-offer/src/models/SaleOffer.d.ts +125 -0
  71. package/sale-offer/src/models/SaleOffer.js +80 -0
  72. package/sale-offer/src/models/SaleOfferCreationImagesParameters.d.ts +39 -0
  73. package/sale-offer/src/models/SaleOfferCreationImagesParameters.js +46 -0
  74. package/sale-offer/src/models/SaleOfferCreationParameters.d.ts +72 -0
  75. package/sale-offer/src/models/SaleOfferCreationParameters.js +59 -0
  76. package/sale-offer/src/models/SaleOfferJournal.d.ts +27 -0
  77. package/sale-offer/src/models/SaleOfferJournal.js +42 -0
  78. package/sale-offer/src/models/SaleOfferNewVersionParameters.d.ts +54 -0
  79. package/sale-offer/src/models/SaleOfferNewVersionParameters.js +53 -0
  80. package/sale-offer/src/models/SaleOfferStatisticLink.d.ts +34 -0
  81. package/sale-offer/src/models/SaleOfferStatisticLink.js +50 -0
  82. package/sale-offer/src/models/SaleOfferStatisticLinkAllOf.d.ts +33 -0
  83. package/sale-offer/src/models/SaleOfferStatisticLinkAllOf.js +44 -0
  84. package/sale-offer/src/models/SaleOfferStatus.d.ts +28 -0
  85. package/sale-offer/src/models/SaleOfferStatus.js +43 -0
  86. package/sale-offer/src/models/Stock.d.ts +39 -0
  87. package/sale-offer/src/models/Stock.js +46 -0
  88. package/sale-offer/src/models/UnitaryDistributionMode.d.ts +34 -0
  89. package/sale-offer/src/models/UnitaryDistributionMode.js +49 -0
  90. package/sale-offer/src/models/UnitaryDistributionModeAllOf.d.ts +33 -0
  91. package/sale-offer/src/models/UnitaryDistributionModeAllOf.js +43 -0
  92. package/sale-offer/src/models/index.d.ts +39 -0
  93. package/sale-offer/src/models/index.js +55 -0
  94. package/sale-offer/src/runtime.d.ts +149 -0
  95. package/sale-offer/src/runtime.js +480 -0
@@ -0,0 +1,49 @@
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
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.QuotationDistributionModeToJSON = exports.QuotationDistributionModeFromJSONTyped = exports.QuotationDistributionModeFromJSON = void 0;
28
+ var DistributionMode_1 = require("./DistributionMode");
29
+ function QuotationDistributionModeFromJSON(json) {
30
+ return QuotationDistributionModeFromJSONTyped(json, false);
31
+ }
32
+ exports.QuotationDistributionModeFromJSON = QuotationDistributionModeFromJSON;
33
+ function QuotationDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'soldBy': json['soldBy'] });
38
+ }
39
+ exports.QuotationDistributionModeFromJSONTyped = QuotationDistributionModeFromJSONTyped;
40
+ function QuotationDistributionModeToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'soldBy': value.soldBy });
48
+ }
49
+ exports.QuotationDistributionModeToJSON = QuotationDistributionModeToJSON;
@@ -0,0 +1,27 @@
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
+ * @interface QuotationDistributionModeAllOf
16
+ */
17
+ export interface QuotationDistributionModeAllOf {
18
+ /**
19
+ * Sold by this step value
20
+ * @type {number}
21
+ * @memberof QuotationDistributionModeAllOf
22
+ */
23
+ soldBy: number;
24
+ }
25
+ export declare function QuotationDistributionModeAllOfFromJSON(json: any): QuotationDistributionModeAllOf;
26
+ export declare function QuotationDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionModeAllOf;
27
+ export declare function QuotationDistributionModeAllOfToJSON(value?: QuotationDistributionModeAllOf | null): any;
@@ -0,0 +1,41 @@
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.QuotationDistributionModeAllOfToJSON = exports.QuotationDistributionModeAllOfFromJSONTyped = exports.QuotationDistributionModeAllOfFromJSON = void 0;
17
+ function QuotationDistributionModeAllOfFromJSON(json) {
18
+ return QuotationDistributionModeAllOfFromJSONTyped(json, false);
19
+ }
20
+ exports.QuotationDistributionModeAllOfFromJSON = QuotationDistributionModeAllOfFromJSON;
21
+ function QuotationDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'soldBy': json['soldBy'],
27
+ };
28
+ }
29
+ exports.QuotationDistributionModeAllOfFromJSONTyped = QuotationDistributionModeAllOfFromJSONTyped;
30
+ function QuotationDistributionModeAllOfToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'soldBy': value.soldBy,
39
+ };
40
+ }
41
+ exports.QuotationDistributionModeAllOfToJSON = QuotationDistributionModeAllOfToJSON;
@@ -0,0 +1,29 @@
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
+ import { DistributionMode } from './DistributionMode';
13
+ import { DistributionRange } from './DistributionRange';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface RangeDistributionMode
18
+ */
19
+ export interface RangeDistributionMode extends DistributionMode {
20
+ /**
21
+ * Available range to buy product.
22
+ * @type {Array<DistributionRange>}
23
+ * @memberof RangeDistributionMode
24
+ */
25
+ ranges: Array<DistributionRange>;
26
+ }
27
+ export declare function RangeDistributionModeFromJSON(json: any): RangeDistributionMode;
28
+ export declare function RangeDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RangeDistributionMode;
29
+ export declare function RangeDistributionModeToJSON(value?: RangeDistributionMode | null): any;
@@ -0,0 +1,50 @@
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
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.RangeDistributionModeToJSON = exports.RangeDistributionModeFromJSONTyped = exports.RangeDistributionModeFromJSON = void 0;
28
+ var DistributionMode_1 = require("./DistributionMode");
29
+ var DistributionRange_1 = require("./DistributionRange");
30
+ function RangeDistributionModeFromJSON(json) {
31
+ return RangeDistributionModeFromJSONTyped(json, false);
32
+ }
33
+ exports.RangeDistributionModeFromJSON = RangeDistributionModeFromJSON;
34
+ function RangeDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'ranges': (json['ranges'].map(DistributionRange_1.DistributionRangeFromJSON)) });
39
+ }
40
+ exports.RangeDistributionModeFromJSONTyped = RangeDistributionModeFromJSONTyped;
41
+ function RangeDistributionModeToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'ranges': (value.ranges.map(DistributionRange_1.DistributionRangeToJSON)) });
49
+ }
50
+ exports.RangeDistributionModeToJSON = RangeDistributionModeToJSON;
@@ -0,0 +1,28 @@
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
+ import { DistributionRange } from './DistributionRange';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RangeDistributionModeAllOf
17
+ */
18
+ export interface RangeDistributionModeAllOf {
19
+ /**
20
+ * Available range to buy product.
21
+ * @type {Array<DistributionRange>}
22
+ * @memberof RangeDistributionModeAllOf
23
+ */
24
+ ranges: Array<DistributionRange>;
25
+ }
26
+ export declare function RangeDistributionModeAllOfFromJSON(json: any): RangeDistributionModeAllOf;
27
+ export declare function RangeDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): RangeDistributionModeAllOf;
28
+ export declare function RangeDistributionModeAllOfToJSON(value?: RangeDistributionModeAllOf | null): any;
@@ -0,0 +1,42 @@
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.RangeDistributionModeAllOfToJSON = exports.RangeDistributionModeAllOfFromJSONTyped = exports.RangeDistributionModeAllOfFromJSON = void 0;
17
+ var DistributionRange_1 = require("./DistributionRange");
18
+ function RangeDistributionModeAllOfFromJSON(json) {
19
+ return RangeDistributionModeAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.RangeDistributionModeAllOfFromJSON = RangeDistributionModeAllOfFromJSON;
22
+ function RangeDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'ranges': (json['ranges'].map(DistributionRange_1.DistributionRangeFromJSON)),
28
+ };
29
+ }
30
+ exports.RangeDistributionModeAllOfFromJSONTyped = RangeDistributionModeAllOfFromJSONTyped;
31
+ function RangeDistributionModeAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'ranges': (value.ranges.map(DistributionRange_1.DistributionRangeToJSON)),
40
+ };
41
+ }
42
+ exports.RangeDistributionModeAllOfToJSON = RangeDistributionModeAllOfToJSON;
@@ -0,0 +1,85 @@
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
+ * @interface RestError
16
+ */
17
+ export interface RestError {
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
20
+ * @type {string}
21
+ * @memberof RestError
22
+ */
23
+ code: RestErrorCodeEnum;
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
26
+ * @type {string}
27
+ * @memberof RestError
28
+ */
29
+ message: RestErrorMessageEnum;
30
+ }
31
+ export declare function RestErrorFromJSON(json: any): RestError;
32
+ export declare function RestErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestError;
33
+ export declare function RestErrorToJSON(value?: RestError | null): any;
34
+ /**
35
+ * @export
36
+ * @enum {string}
37
+ */
38
+ export declare enum RestErrorCodeEnum {
39
+ CODE000 = "CODE000",
40
+ CODE001 = "CODE001",
41
+ CODE002 = "CODE002",
42
+ CODE003 = "CODE003",
43
+ CODE004 = "CODE004",
44
+ CODE005 = "CODE005",
45
+ CODE006 = "CODE006",
46
+ CODE007 = "CODE007",
47
+ CODE008 = "CODE008",
48
+ CODE009 = "CODE009",
49
+ CODE010 = "CODE010",
50
+ CODE011 = "CODE011",
51
+ CODE012 = "CODE012",
52
+ CODE013 = "CODE013",
53
+ CODE014 = "CODE014",
54
+ CODE015 = "CODE015",
55
+ CODE016 = "CODE016",
56
+ CODE017 = "CODE017",
57
+ CODE018 = "CODE018",
58
+ CODE019 = "CODE019"
59
+ }
60
+ /**
61
+ * @export
62
+ * @enum {string}
63
+ */
64
+ export declare enum RestErrorMessageEnum {
65
+ MESSAGE000 = "Using outdated resource",
66
+ MESSAGE001 = "Login failed",
67
+ MESSAGE002 = "Cannot renew token",
68
+ MESSAGE003 = "Invalid User CGV",
69
+ MESSAGE004 = "Resource already exists",
70
+ MESSAGE005 = "User account is disabled",
71
+ MESSAGE006 = "Invalid schedule",
72
+ MESSAGE007 = "Wrong Address according CHRONOPOST",
73
+ MESSAGE008 = "Invalid Mangopay Mandate",
74
+ MESSAGE009 = "Invalid Status",
75
+ MESSAGE010 = "FREE",
76
+ MESSAGE011 = "Empty User Address",
77
+ MESSAGE012 = "Empty User Legal Name",
78
+ MESSAGE013 = "Invalid quantities",
79
+ MESSAGE014 = "Invalid Meta-Order",
80
+ MESSAGE015 = "Can not release quantity greater than claimed",
81
+ MESSAGE016 = "Can not release a negative quantity of items",
82
+ MESSAGE017 = "Batch is forbidden for sale",
83
+ MESSAGE018 = "Trial already used",
84
+ MESSAGE019 = "Unable to generate session from disposableToken for admin users"
85
+ }
@@ -0,0 +1,97 @@
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.RestErrorMessageEnum = exports.RestErrorCodeEnum = exports.RestErrorToJSON = exports.RestErrorFromJSONTyped = exports.RestErrorFromJSON = void 0;
17
+ function RestErrorFromJSON(json) {
18
+ return RestErrorFromJSONTyped(json, false);
19
+ }
20
+ exports.RestErrorFromJSON = RestErrorFromJSON;
21
+ function RestErrorFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'code': json['code'],
27
+ 'message': json['message'],
28
+ };
29
+ }
30
+ exports.RestErrorFromJSONTyped = RestErrorFromJSONTyped;
31
+ function RestErrorToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'code': value.code,
40
+ 'message': value.message,
41
+ };
42
+ }
43
+ exports.RestErrorToJSON = RestErrorToJSON;
44
+ /**
45
+ * @export
46
+ * @enum {string}
47
+ */
48
+ var RestErrorCodeEnum;
49
+ (function (RestErrorCodeEnum) {
50
+ RestErrorCodeEnum["CODE000"] = "CODE000";
51
+ RestErrorCodeEnum["CODE001"] = "CODE001";
52
+ RestErrorCodeEnum["CODE002"] = "CODE002";
53
+ RestErrorCodeEnum["CODE003"] = "CODE003";
54
+ RestErrorCodeEnum["CODE004"] = "CODE004";
55
+ RestErrorCodeEnum["CODE005"] = "CODE005";
56
+ RestErrorCodeEnum["CODE006"] = "CODE006";
57
+ RestErrorCodeEnum["CODE007"] = "CODE007";
58
+ RestErrorCodeEnum["CODE008"] = "CODE008";
59
+ RestErrorCodeEnum["CODE009"] = "CODE009";
60
+ RestErrorCodeEnum["CODE010"] = "CODE010";
61
+ RestErrorCodeEnum["CODE011"] = "CODE011";
62
+ RestErrorCodeEnum["CODE012"] = "CODE012";
63
+ RestErrorCodeEnum["CODE013"] = "CODE013";
64
+ RestErrorCodeEnum["CODE014"] = "CODE014";
65
+ RestErrorCodeEnum["CODE015"] = "CODE015";
66
+ RestErrorCodeEnum["CODE016"] = "CODE016";
67
+ RestErrorCodeEnum["CODE017"] = "CODE017";
68
+ RestErrorCodeEnum["CODE018"] = "CODE018";
69
+ RestErrorCodeEnum["CODE019"] = "CODE019";
70
+ })(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
71
+ /**
72
+ * @export
73
+ * @enum {string}
74
+ */
75
+ var RestErrorMessageEnum;
76
+ (function (RestErrorMessageEnum) {
77
+ RestErrorMessageEnum["MESSAGE000"] = "Using outdated resource";
78
+ RestErrorMessageEnum["MESSAGE001"] = "Login failed";
79
+ RestErrorMessageEnum["MESSAGE002"] = "Cannot renew token";
80
+ RestErrorMessageEnum["MESSAGE003"] = "Invalid User CGV";
81
+ RestErrorMessageEnum["MESSAGE004"] = "Resource already exists";
82
+ RestErrorMessageEnum["MESSAGE005"] = "User account is disabled";
83
+ RestErrorMessageEnum["MESSAGE006"] = "Invalid schedule";
84
+ RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
+ RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
+ RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
+ RestErrorMessageEnum["MESSAGE010"] = "FREE";
88
+ RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
+ RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
+ RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
91
+ RestErrorMessageEnum["MESSAGE014"] = "Invalid Meta-Order";
92
+ RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
93
+ RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
94
+ RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
95
+ RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
96
+ RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
97
+ })(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
@@ -0,0 +1,125 @@
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
+ import { AnyIdentifiedDistributionMode } from './AnyIdentifiedDistributionMode';
13
+ import { Images } from './Images';
14
+ import { OwnerLink } from './OwnerLink';
15
+ import { ProductLink } from './ProductLink';
16
+ import { SaleOfferJournal } from './SaleOfferJournal';
17
+ import { SaleOfferStatisticLink } from './SaleOfferStatisticLink';
18
+ import { SaleOfferStatus } from './SaleOfferStatus';
19
+ import { Stock } from './Stock';
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface SaleOffer
24
+ */
25
+ export interface SaleOffer {
26
+ /**
27
+ * Unique identifier for this sale offer
28
+ * @type {string}
29
+ * @memberof SaleOffer
30
+ */
31
+ reference?: string;
32
+ /**
33
+ *
34
+ * @type {SaleOfferStatus}
35
+ * @memberof SaleOffer
36
+ */
37
+ status?: SaleOfferStatus;
38
+ /**
39
+ *
40
+ * @type {ProductLink}
41
+ * @memberof SaleOffer
42
+ */
43
+ product?: ProductLink;
44
+ /**
45
+ *
46
+ * @type {Stock}
47
+ * @memberof SaleOffer
48
+ */
49
+ stock?: Stock;
50
+ /**
51
+ * Description of the sale offer
52
+ * @type {string}
53
+ * @memberof SaleOffer
54
+ */
55
+ description?: string | null;
56
+ /**
57
+ *
58
+ * @type {AnyIdentifiedDistributionMode}
59
+ * @memberof SaleOffer
60
+ */
61
+ distributionMode?: AnyIdentifiedDistributionMode | null;
62
+ /**
63
+ * The minimal unit price for this sale offer.
64
+ * @type {number}
65
+ * @memberof SaleOffer
66
+ */
67
+ minimalUnitPrice?: number;
68
+ /**
69
+ * Best Rebate for this sale offer
70
+ * @type {number}
71
+ * @memberof SaleOffer
72
+ */
73
+ bestRebate?: number;
74
+ /**
75
+ *
76
+ * @type {OwnerLink}
77
+ * @memberof SaleOffer
78
+ */
79
+ owner?: OwnerLink;
80
+ /**
81
+ * Last update date time (RFC 3339, section 5.6)
82
+ * @type {Date}
83
+ * @memberof SaleOffer
84
+ */
85
+ updateDate?: Date;
86
+ /**
87
+ * Creation date of this Content
88
+ * @type {Date}
89
+ * @memberof SaleOffer
90
+ */
91
+ createdAt?: Date;
92
+ /**
93
+ *
94
+ * @type {Images}
95
+ * @memberof SaleOffer
96
+ */
97
+ images?: Images;
98
+ /**
99
+ * Rank of this ad. Only useful for laboratories ad yet
100
+ * @type {number}
101
+ * @memberof SaleOffer
102
+ */
103
+ rank?: number | null;
104
+ /**
105
+ * Labels of the sale offer
106
+ * @type {Array<string>}
107
+ * @memberof SaleOffer
108
+ */
109
+ tags?: Array<string>;
110
+ /**
111
+ *
112
+ * @type {SaleOfferJournal}
113
+ * @memberof SaleOffer
114
+ */
115
+ journal?: SaleOfferJournal;
116
+ /**
117
+ *
118
+ * @type {SaleOfferStatisticLink}
119
+ * @memberof SaleOffer
120
+ */
121
+ statistic?: SaleOfferStatisticLink;
122
+ }
123
+ export declare function SaleOfferFromJSON(json: any): SaleOffer;
124
+ export declare function SaleOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOffer;
125
+ export declare function SaleOfferToJSON(value?: SaleOffer | null): any;
@@ -0,0 +1,80 @@
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.SaleOfferToJSON = exports.SaleOfferFromJSONTyped = exports.SaleOfferFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var AnyIdentifiedDistributionMode_1 = require("./AnyIdentifiedDistributionMode");
19
+ var Images_1 = require("./Images");
20
+ var OwnerLink_1 = require("./OwnerLink");
21
+ var ProductLink_1 = require("./ProductLink");
22
+ var SaleOfferJournal_1 = require("./SaleOfferJournal");
23
+ var SaleOfferStatisticLink_1 = require("./SaleOfferStatisticLink");
24
+ var SaleOfferStatus_1 = require("./SaleOfferStatus");
25
+ var Stock_1 = require("./Stock");
26
+ function SaleOfferFromJSON(json) {
27
+ return SaleOfferFromJSONTyped(json, false);
28
+ }
29
+ exports.SaleOfferFromJSON = SaleOfferFromJSON;
30
+ function SaleOfferFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'reference': !(0, runtime_1.exists)(json, 'reference') ? undefined : json['reference'],
36
+ 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, SaleOfferStatus_1.SaleOfferStatusFromJSON)(json['status']),
37
+ 'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
38
+ 'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
39
+ 'description': !(0, runtime_1.exists)(json, 'description') ? json['description'] : json['description'],
40
+ 'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? json['distributionMode'] : (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
41
+ 'minimalUnitPrice': !(0, runtime_1.exists)(json, 'minimalUnitPrice') ? undefined : json['minimalUnitPrice'],
42
+ 'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'],
43
+ 'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : (0, OwnerLink_1.OwnerLinkFromJSON)(json['owner']),
44
+ 'updateDate': !(0, runtime_1.exists)(json, 'updateDate') ? undefined : (new Date(json['updateDate'])),
45
+ 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
46
+ 'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (0, Images_1.ImagesFromJSON)(json['images']),
47
+ 'rank': !(0, runtime_1.exists)(json, 'rank') ? json['rank'] : json['rank'],
48
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
49
+ 'journal': !(0, runtime_1.exists)(json, 'journal') ? undefined : (0, SaleOfferJournal_1.SaleOfferJournalFromJSON)(json['journal']),
50
+ 'statistic': !(0, runtime_1.exists)(json, 'statistic') ? undefined : (0, SaleOfferStatisticLink_1.SaleOfferStatisticLinkFromJSON)(json['statistic']),
51
+ };
52
+ }
53
+ exports.SaleOfferFromJSONTyped = SaleOfferFromJSONTyped;
54
+ function SaleOfferToJSON(value) {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+ 'reference': value.reference,
63
+ 'status': (0, SaleOfferStatus_1.SaleOfferStatusToJSON)(value.status),
64
+ 'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
65
+ 'stock': (0, Stock_1.StockToJSON)(value.stock),
66
+ 'description': value.description,
67
+ 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode),
68
+ 'minimalUnitPrice': value.minimalUnitPrice,
69
+ 'bestRebate': value.bestRebate,
70
+ 'owner': (0, OwnerLink_1.OwnerLinkToJSON)(value.owner),
71
+ 'updateDate': value.updateDate === undefined ? undefined : (value.updateDate.toISOString()),
72
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
73
+ 'images': (0, Images_1.ImagesToJSON)(value.images),
74
+ 'rank': value.rank,
75
+ 'tags': value.tags,
76
+ 'journal': (0, SaleOfferJournal_1.SaleOfferJournalToJSON)(value.journal),
77
+ 'statistic': (0, SaleOfferStatisticLink_1.SaleOfferStatisticLinkToJSON)(value.statistic),
78
+ };
79
+ }
80
+ exports.SaleOfferToJSON = SaleOfferToJSON;