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

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,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 { QuotationDistributionMode } from './QuotationDistributionMode';
13
+ import { RangeDistributionMode } from './RangeDistributionMode';
14
+ import { UnitaryDistributionMode } from './UnitaryDistributionMode';
15
+ /**
16
+ * @type AnyDistributionMode
17
+ * @export
18
+ */
19
+ export declare type AnyDistributionMode = {
20
+ type: 'RANGE';
21
+ } & RangeDistributionMode | {
22
+ type: 'QUOTATION';
23
+ } & QuotationDistributionMode | {
24
+ type: 'UNITARY';
25
+ } & UnitaryDistributionMode;
26
+ export declare function AnyDistributionModeFromJSON(json: any): AnyDistributionMode;
27
+ export declare function AnyDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyDistributionMode;
28
+ export declare function AnyDistributionModeToJSON(value?: AnyDistributionMode | null): any;
@@ -0,0 +1,69 @@
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.AnyDistributionModeToJSON = exports.AnyDistributionModeFromJSONTyped = exports.AnyDistributionModeFromJSON = void 0;
28
+ var QuotationDistributionMode_1 = require("./QuotationDistributionMode");
29
+ var RangeDistributionMode_1 = require("./RangeDistributionMode");
30
+ var UnitaryDistributionMode_1 = require("./UnitaryDistributionMode");
31
+ function AnyDistributionModeFromJSON(json) {
32
+ return AnyDistributionModeFromJSONTyped(json, false);
33
+ }
34
+ exports.AnyDistributionModeFromJSON = AnyDistributionModeFromJSON;
35
+ function AnyDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ switch (json['type']) {
40
+ case 'RANGE':
41
+ return __assign(__assign({}, (0, RangeDistributionMode_1.RangeDistributionModeFromJSONTyped)(json, true)), { type: 'RANGE' });
42
+ case 'QUOTATION':
43
+ return __assign(__assign({}, (0, QuotationDistributionMode_1.QuotationDistributionModeFromJSONTyped)(json, true)), { type: 'QUOTATION' });
44
+ case 'UNITARY':
45
+ return __assign(__assign({}, (0, UnitaryDistributionMode_1.UnitaryDistributionModeFromJSONTyped)(json, true)), { type: 'UNITARY' });
46
+ default:
47
+ throw new Error("No variant of AnyDistributionMode exists with 'type=".concat(json['type'], "'"));
48
+ }
49
+ }
50
+ exports.AnyDistributionModeFromJSONTyped = AnyDistributionModeFromJSONTyped;
51
+ function AnyDistributionModeToJSON(value) {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ switch (value['type']) {
59
+ case 'RANGE':
60
+ return (0, RangeDistributionMode_1.RangeDistributionModeToJSON)(value);
61
+ case 'QUOTATION':
62
+ return (0, QuotationDistributionMode_1.QuotationDistributionModeToJSON)(value);
63
+ case 'UNITARY':
64
+ return (0, UnitaryDistributionMode_1.UnitaryDistributionModeToJSON)(value);
65
+ default:
66
+ throw new Error("No variant of AnyDistributionMode exists with 'type=".concat(value['type'], "'"));
67
+ }
68
+ }
69
+ exports.AnyDistributionModeToJSON = AnyDistributionModeToJSON;
@@ -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 { IdentifiedRangeDistributionMode } from './IdentifiedRangeDistributionMode';
13
+ import { QuotationDistributionMode } from './QuotationDistributionMode';
14
+ import { UnitaryDistributionMode } from './UnitaryDistributionMode';
15
+ /**
16
+ * @type AnyIdentifiedDistributionMode
17
+ * @export
18
+ */
19
+ export declare type AnyIdentifiedDistributionMode = {
20
+ type: 'RANGE';
21
+ } & IdentifiedRangeDistributionMode | {
22
+ type: 'QUOTATION';
23
+ } & QuotationDistributionMode | {
24
+ type: 'UNITARY';
25
+ } & UnitaryDistributionMode;
26
+ export declare function AnyIdentifiedDistributionModeFromJSON(json: any): AnyIdentifiedDistributionMode;
27
+ export declare function AnyIdentifiedDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyIdentifiedDistributionMode;
28
+ export declare function AnyIdentifiedDistributionModeToJSON(value?: AnyIdentifiedDistributionMode | null): any;
@@ -0,0 +1,69 @@
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.AnyIdentifiedDistributionModeToJSON = exports.AnyIdentifiedDistributionModeFromJSONTyped = exports.AnyIdentifiedDistributionModeFromJSON = void 0;
28
+ var IdentifiedRangeDistributionMode_1 = require("./IdentifiedRangeDistributionMode");
29
+ var QuotationDistributionMode_1 = require("./QuotationDistributionMode");
30
+ var UnitaryDistributionMode_1 = require("./UnitaryDistributionMode");
31
+ function AnyIdentifiedDistributionModeFromJSON(json) {
32
+ return AnyIdentifiedDistributionModeFromJSONTyped(json, false);
33
+ }
34
+ exports.AnyIdentifiedDistributionModeFromJSON = AnyIdentifiedDistributionModeFromJSON;
35
+ function AnyIdentifiedDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ switch (json['type']) {
40
+ case 'RANGE':
41
+ return __assign(__assign({}, (0, IdentifiedRangeDistributionMode_1.IdentifiedRangeDistributionModeFromJSONTyped)(json, true)), { type: 'RANGE' });
42
+ case 'QUOTATION':
43
+ return __assign(__assign({}, (0, QuotationDistributionMode_1.QuotationDistributionModeFromJSONTyped)(json, true)), { type: 'QUOTATION' });
44
+ case 'UNITARY':
45
+ return __assign(__assign({}, (0, UnitaryDistributionMode_1.UnitaryDistributionModeFromJSONTyped)(json, true)), { type: 'UNITARY' });
46
+ default:
47
+ throw new Error("No variant of AnyIdentifiedDistributionMode exists with 'type=".concat(json['type'], "'"));
48
+ }
49
+ }
50
+ exports.AnyIdentifiedDistributionModeFromJSONTyped = AnyIdentifiedDistributionModeFromJSONTyped;
51
+ function AnyIdentifiedDistributionModeToJSON(value) {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ switch (value['type']) {
59
+ case 'RANGE':
60
+ return (0, IdentifiedRangeDistributionMode_1.IdentifiedRangeDistributionModeToJSON)(value);
61
+ case 'QUOTATION':
62
+ return (0, QuotationDistributionMode_1.QuotationDistributionModeToJSON)(value);
63
+ case 'UNITARY':
64
+ return (0, UnitaryDistributionMode_1.UnitaryDistributionModeToJSON)(value);
65
+ default:
66
+ throw new Error("No variant of AnyIdentifiedDistributionMode exists with 'type=".concat(value['type'], "'"));
67
+ }
68
+ }
69
+ exports.AnyIdentifiedDistributionModeToJSON = AnyIdentifiedDistributionModeToJSON;
@@ -0,0 +1,45 @@
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 Barcodes
16
+ */
17
+ export interface Barcodes {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Barcodes
22
+ */
23
+ cip?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Barcodes
28
+ */
29
+ cip13?: string | null;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof Barcodes
34
+ */
35
+ eans?: Array<string> | null;
36
+ /**
37
+ * The principal is the referent barcode (for display, invoices, ...)
38
+ * @type {string}
39
+ * @memberof Barcodes
40
+ */
41
+ principal?: string;
42
+ }
43
+ export declare function BarcodesFromJSON(json: any): Barcodes;
44
+ export declare function BarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Barcodes;
45
+ export declare function BarcodesToJSON(value?: Barcodes | null): any;
@@ -0,0 +1,48 @@
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.BarcodesToJSON = exports.BarcodesFromJSONTyped = exports.BarcodesFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function BarcodesFromJSON(json) {
19
+ return BarcodesFromJSONTyped(json, false);
20
+ }
21
+ exports.BarcodesFromJSON = BarcodesFromJSON;
22
+ function BarcodesFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'cip': !(0, runtime_1.exists)(json, 'cip') ? json['cip'] : json['cip'],
28
+ 'cip13': !(0, runtime_1.exists)(json, 'cip13') ? json['cip13'] : json['cip13'],
29
+ 'eans': !(0, runtime_1.exists)(json, 'eans') ? json['eans'] : json['eans'],
30
+ 'principal': !(0, runtime_1.exists)(json, 'principal') ? undefined : json['principal'],
31
+ };
32
+ }
33
+ exports.BarcodesFromJSONTyped = BarcodesFromJSONTyped;
34
+ function BarcodesToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'cip': value.cip,
43
+ 'cip13': value.cip13,
44
+ 'eans': value.eans,
45
+ 'principal': value.principal,
46
+ };
47
+ }
48
+ exports.BarcodesToJSON = BarcodesToJSON;
@@ -0,0 +1,39 @@
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 DistributionMode
16
+ */
17
+ export interface DistributionMode {
18
+ /**
19
+ * Type of distribution for this ad
20
+ * @type {string}
21
+ * @memberof DistributionMode
22
+ */
23
+ type: string;
24
+ /**
25
+ * Minimum buyable quantity for each order
26
+ * @type {number}
27
+ * @memberof DistributionMode
28
+ */
29
+ minimalQuantity: number;
30
+ /**
31
+ * Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by Stock.remainingQuantity)
32
+ * @type {number}
33
+ * @memberof DistributionMode
34
+ */
35
+ maximalQuantity: number | null;
36
+ }
37
+ export declare function DistributionModeFromJSON(json: any): DistributionMode;
38
+ export declare function DistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DistributionMode;
39
+ export declare function DistributionModeToJSON(value?: DistributionMode | null): any;
@@ -0,0 +1,45 @@
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.DistributionModeToJSON = exports.DistributionModeFromJSONTyped = exports.DistributionModeFromJSON = void 0;
17
+ function DistributionModeFromJSON(json) {
18
+ return DistributionModeFromJSONTyped(json, false);
19
+ }
20
+ exports.DistributionModeFromJSON = DistributionModeFromJSON;
21
+ function DistributionModeFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'type': json['type'],
27
+ 'minimalQuantity': json['minimalQuantity'],
28
+ 'maximalQuantity': json['maximalQuantity'],
29
+ };
30
+ }
31
+ exports.DistributionModeFromJSONTyped = DistributionModeFromJSONTyped;
32
+ function DistributionModeToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'type': value.type,
41
+ 'minimalQuantity': value.minimalQuantity,
42
+ 'maximalQuantity': value.maximalQuantity,
43
+ };
44
+ }
45
+ exports.DistributionModeToJSON = DistributionModeToJSON;
@@ -0,0 +1,39 @@
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 DistributionRange
16
+ */
17
+ export interface DistributionRange {
18
+ /**
19
+ * Number of item per batch
20
+ * @type {number}
21
+ * @memberof DistributionRange
22
+ */
23
+ quantity: number;
24
+ /**
25
+ * The unit price as a decimal.
26
+ * @type {number}
27
+ * @memberof DistributionRange
28
+ */
29
+ unitPrice: number;
30
+ /**
31
+ * Number of free units per batch
32
+ * @type {number}
33
+ * @memberof DistributionRange
34
+ */
35
+ freeUnits: number;
36
+ }
37
+ export declare function DistributionRangeFromJSON(json: any): DistributionRange;
38
+ export declare function DistributionRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DistributionRange;
39
+ export declare function DistributionRangeToJSON(value?: DistributionRange | null): any;
@@ -0,0 +1,45 @@
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.DistributionRangeToJSON = exports.DistributionRangeFromJSONTyped = exports.DistributionRangeFromJSON = void 0;
17
+ function DistributionRangeFromJSON(json) {
18
+ return DistributionRangeFromJSONTyped(json, false);
19
+ }
20
+ exports.DistributionRangeFromJSON = DistributionRangeFromJSON;
21
+ function DistributionRangeFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'quantity': json['quantity'],
27
+ 'unitPrice': json['unitPrice'],
28
+ 'freeUnits': json['freeUnits'],
29
+ };
30
+ }
31
+ exports.DistributionRangeFromJSONTyped = DistributionRangeFromJSONTyped;
32
+ function DistributionRangeToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'quantity': value.quantity,
41
+ 'unitPrice': value.unitPrice,
42
+ 'freeUnits': value.freeUnits,
43
+ };
44
+ }
45
+ exports.DistributionRangeToJSON = DistributionRangeToJSON;
@@ -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
+ * A base type of objects representing links to resources.
14
+ * @export
15
+ * @interface HttpLink
16
+ */
17
+ export interface HttpLink {
18
+ /**
19
+ * Any URL that is using http or https protocol
20
+ * @type {string}
21
+ * @memberof HttpLink
22
+ */
23
+ href: string;
24
+ }
25
+ export declare function HttpLinkFromJSON(json: any): HttpLink;
26
+ export declare function HttpLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpLink;
27
+ export declare function HttpLinkToJSON(value?: HttpLink | 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.HttpLinkToJSON = exports.HttpLinkFromJSONTyped = exports.HttpLinkFromJSON = void 0;
17
+ function HttpLinkFromJSON(json) {
18
+ return HttpLinkFromJSONTyped(json, false);
19
+ }
20
+ exports.HttpLinkFromJSON = HttpLinkFromJSON;
21
+ function HttpLinkFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'href': json['href'],
27
+ };
28
+ }
29
+ exports.HttpLinkFromJSONTyped = HttpLinkFromJSONTyped;
30
+ function HttpLinkToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'href': value.href,
39
+ };
40
+ }
41
+ exports.HttpLinkToJSON = HttpLinkToJSON;
@@ -0,0 +1,34 @@
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 IdentifiedDistributionRange
17
+ */
18
+ export interface IdentifiedDistributionRange extends DistributionRange {
19
+ /**
20
+ * Range id.
21
+ * @type {number}
22
+ * @memberof IdentifiedDistributionRange
23
+ */
24
+ id: number;
25
+ /**
26
+ * Rebate for this distribution range
27
+ * @type {number}
28
+ * @memberof IdentifiedDistributionRange
29
+ */
30
+ rebate: number;
31
+ }
32
+ export declare function IdentifiedDistributionRangeFromJSON(json: any): IdentifiedDistributionRange;
33
+ export declare function IdentifiedDistributionRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentifiedDistributionRange;
34
+ export declare function IdentifiedDistributionRangeToJSON(value?: IdentifiedDistributionRange | null): any;
@@ -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.IdentifiedDistributionRangeToJSON = exports.IdentifiedDistributionRangeFromJSONTyped = exports.IdentifiedDistributionRangeFromJSON = void 0;
28
+ var DistributionRange_1 = require("./DistributionRange");
29
+ function IdentifiedDistributionRangeFromJSON(json) {
30
+ return IdentifiedDistributionRangeFromJSONTyped(json, false);
31
+ }
32
+ exports.IdentifiedDistributionRangeFromJSON = IdentifiedDistributionRangeFromJSON;
33
+ function IdentifiedDistributionRangeFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return __assign(__assign({}, (0, DistributionRange_1.DistributionRangeFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'], 'rebate': json['rebate'] });
38
+ }
39
+ exports.IdentifiedDistributionRangeFromJSONTyped = IdentifiedDistributionRangeFromJSONTyped;
40
+ function IdentifiedDistributionRangeToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return __assign(__assign({}, (0, DistributionRange_1.DistributionRangeToJSON)(value)), { 'id': value.id, 'rebate': value.rebate });
48
+ }
49
+ exports.IdentifiedDistributionRangeToJSON = IdentifiedDistributionRangeToJSON;
@@ -0,0 +1,33 @@
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 IdentifiedDistributionRangeAllOf
16
+ */
17
+ export interface IdentifiedDistributionRangeAllOf {
18
+ /**
19
+ * Range id.
20
+ * @type {number}
21
+ * @memberof IdentifiedDistributionRangeAllOf
22
+ */
23
+ id: number;
24
+ /**
25
+ * Rebate for this distribution range
26
+ * @type {number}
27
+ * @memberof IdentifiedDistributionRangeAllOf
28
+ */
29
+ rebate: number;
30
+ }
31
+ export declare function IdentifiedDistributionRangeAllOfFromJSON(json: any): IdentifiedDistributionRangeAllOf;
32
+ export declare function IdentifiedDistributionRangeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentifiedDistributionRangeAllOf;
33
+ export declare function IdentifiedDistributionRangeAllOfToJSON(value?: IdentifiedDistributionRangeAllOf | null): any;