@lcdp/api-react-rest-client 0.0.2-develop.0 → 0.0.2-develop.2

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 (88) hide show
  1. package/configuration/src/apis/ManageVariableApi.d.ts +1 -53
  2. package/configuration/src/apis/ManageVariableApi.js +1 -54
  3. package/configuration/src/apis/SearchVariableApi.d.ts +1 -53
  4. package/configuration/src/apis/SearchVariableApi.js +1 -54
  5. package/laboratory-store/src/models/ImageVersions.d.ts +5 -5
  6. package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +31 -0
  7. package/magic-cart/src/apis/{ManageMagicCartApi.js → ManageExpressOrderApi.js} +16 -17
  8. package/magic-cart/src/apis/index.d.ts +1 -1
  9. package/magic-cart/src/apis/index.js +1 -1
  10. package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +28 -0
  11. package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +69 -0
  12. package/magic-cart/src/models/Barcodes.d.ts +45 -0
  13. package/magic-cart/src/models/Barcodes.js +48 -0
  14. package/magic-cart/src/models/DistributionMode.d.ts +27 -0
  15. package/magic-cart/src/models/{MagicProductBus.js → DistributionMode.js} +10 -12
  16. package/magic-cart/src/models/DistributionRange.d.ts +39 -0
  17. package/magic-cart/src/models/{MagicProposal.js → DistributionRange.js} +12 -12
  18. package/magic-cart/src/models/ExpressOrder.d.ts +28 -0
  19. package/magic-cart/src/models/ExpressOrder.js +43 -0
  20. package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +34 -0
  21. package/magic-cart/src/models/ExpressOrderCreationParameters.js +45 -0
  22. package/magic-cart/src/models/ExpressOrderNeed.d.ts +33 -0
  23. package/magic-cart/src/models/{MagicNeed.js → ExpressOrderNeed.js} +8 -10
  24. package/magic-cart/src/models/HttpLink.d.ts +27 -0
  25. package/magic-cart/src/models/HttpLink.js +41 -0
  26. package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +34 -0
  27. package/magic-cart/src/models/IdentifiedDistributionRange.js +49 -0
  28. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +33 -0
  29. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +43 -0
  30. package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +29 -0
  31. package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +50 -0
  32. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +28 -0
  33. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +42 -0
  34. package/magic-cart/src/models/ProductLink.d.ts +41 -0
  35. package/magic-cart/src/models/ProductLink.js +50 -0
  36. package/magic-cart/src/models/ProductLinkAllOf.d.ts +40 -0
  37. package/magic-cart/src/models/ProductLinkAllOf.js +46 -0
  38. package/magic-cart/src/models/QuotationDistributionMode.d.ts +22 -0
  39. package/magic-cart/src/models/QuotationDistributionMode.js +28 -0
  40. package/magic-cart/src/models/SaleOfferLink.d.ts +54 -0
  41. package/magic-cart/src/models/SaleOfferLink.js +52 -0
  42. package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +53 -0
  43. package/magic-cart/src/models/SaleOfferLinkAllOf.js +52 -0
  44. package/magic-cart/src/models/SaleOfferProposal.d.ts +47 -0
  45. package/magic-cart/src/models/SaleOfferProposal.js +49 -0
  46. package/magic-cart/src/models/SellerProposal.d.ts +41 -0
  47. package/magic-cart/src/models/SellerProposal.js +47 -0
  48. package/magic-cart/src/models/Stock.d.ts +39 -0
  49. package/magic-cart/src/models/Stock.js +46 -0
  50. package/magic-cart/src/models/UnitaryDistributionMode.d.ts +34 -0
  51. package/magic-cart/src/models/UnitaryDistributionMode.js +49 -0
  52. package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +33 -0
  53. package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +43 -0
  54. package/magic-cart/src/models/UserLink.d.ts +34 -0
  55. package/magic-cart/src/models/UserLink.js +49 -0
  56. package/magic-cart/src/models/UserLinkAllOf.d.ts +33 -0
  57. package/magic-cart/src/models/UserLinkAllOf.js +43 -0
  58. package/magic-cart/src/models/index.d.ts +24 -9
  59. package/magic-cart/src/models/index.js +24 -9
  60. package/mangopay-hook/src/apis/MangopayHookApi.d.ts +0 -13
  61. package/mangopay-hook/src/apis/MangopayHookApi.js +1 -63
  62. package/package.json +1 -1
  63. package/product/src/apis/SearchProductApi.d.ts +1 -0
  64. package/product/src/apis/SearchProductApi.js +3 -0
  65. package/product/src/models/ImageVersions.d.ts +5 -5
  66. package/pub/src/models/ImageVersions.d.ts +5 -5
  67. package/pub/src/models/PubLocationEnum.d.ts +3 -1
  68. package/pub/src/models/PubLocationEnum.js +2 -0
  69. package/sale-offer/src/models/ImageVersions.d.ts +5 -5
  70. package/shopping-cart/src/models/CartSubCartLine.d.ts +0 -6
  71. package/shopping-cart/src/models/CartSubCartLine.js +0 -2
  72. package/user/src/models/UserDelegatedServices.d.ts +1 -1
  73. package/magic-cart/src/apis/ManageMagicCartApi.d.ts +0 -29
  74. package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +0 -25
  75. package/magic-cart/src/models/AnyMagicCartCreationParameters.js +0 -64
  76. package/magic-cart/src/models/MagicCart.d.ts +0 -28
  77. package/magic-cart/src/models/MagicCart.js +0 -43
  78. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +0 -29
  79. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +0 -50
  80. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +0 -28
  81. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +0 -42
  82. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +0 -29
  83. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +0 -50
  84. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +0 -28
  85. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +0 -42
  86. package/magic-cart/src/models/MagicNeed.d.ts +0 -39
  87. package/magic-cart/src/models/MagicProductBus.d.ts +0 -33
  88. package/magic-cart/src/models/MagicProposal.d.ts +0 -39
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface ImageVersions {
18
18
  /**
19
- * URI to S3 file (width 100px, height computed with original image aspect ratio)
19
+ * URI to S3 file (width 128px, height computed with original image aspect ratio)
20
20
  * @type {string}
21
21
  * @memberof ImageVersions
22
22
  */
23
23
  xsmall?: string;
24
24
  /**
25
- * URI to S3 file (width 350px, height computed with original image aspect ratio)
25
+ * URI to S3 file (width 256px, height computed with original image aspect ratio)
26
26
  * @type {string}
27
27
  * @memberof ImageVersions
28
28
  */
29
29
  small?: string;
30
30
  /**
31
- * URI to S3 file (width 1024px, height computed with original image aspect ratio)
31
+ * URI to S3 file (width 512px, height computed with original image aspect ratio)
32
32
  * @type {string}
33
33
  * @memberof ImageVersions
34
34
  */
35
35
  medium?: string;
36
36
  /**
37
- * URI to S3 file (width 1920px, height computed with original image aspect ratio)
37
+ * URI to S3 file (width 1024px, height computed with original image aspect ratio)
38
38
  * @type {string}
39
39
  * @memberof ImageVersions
40
40
  */
41
41
  large?: string;
42
42
  /**
43
- * URI to S3 file (width 3840px, height computed with original image aspect ratio)
43
+ * URI to S3 file (width 2048px, height computed with original image aspect ratio)
44
44
  * @type {string}
45
45
  * @memberof ImageVersions
46
46
  */
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface ImageVersions {
18
18
  /**
19
- * URI to S3 file (width 100px, height computed with original image aspect ratio)
19
+ * URI to S3 file (width 128px, height computed with original image aspect ratio)
20
20
  * @type {string}
21
21
  * @memberof ImageVersions
22
22
  */
23
23
  xsmall?: string;
24
24
  /**
25
- * URI to S3 file (width 350px, height computed with original image aspect ratio)
25
+ * URI to S3 file (width 256px, height computed with original image aspect ratio)
26
26
  * @type {string}
27
27
  * @memberof ImageVersions
28
28
  */
29
29
  small?: string;
30
30
  /**
31
- * URI to S3 file (width 1024px, height computed with original image aspect ratio)
31
+ * URI to S3 file (width 512px, height computed with original image aspect ratio)
32
32
  * @type {string}
33
33
  * @memberof ImageVersions
34
34
  */
35
35
  medium?: string;
36
36
  /**
37
- * URI to S3 file (width 1920px, height computed with original image aspect ratio)
37
+ * URI to S3 file (width 1024px, height computed with original image aspect ratio)
38
38
  * @type {string}
39
39
  * @memberof ImageVersions
40
40
  */
41
41
  large?: string;
42
42
  /**
43
- * URI to S3 file (width 3840px, height computed with original image aspect ratio)
43
+ * URI to S3 file (width 2048px, height computed with original image aspect ratio)
44
44
  * @type {string}
45
45
  * @memberof ImageVersions
46
46
  */
@@ -15,7 +15,9 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum PubLocationEnum {
18
- DASHBOARD = "DASHBOARD"
18
+ DASHBOARD = "DASHBOARD",
19
+ MAINMENU = "MAINMENU",
20
+ SEARCH = "SEARCH"
19
21
  }
20
22
  export declare function PubLocationEnumFromJSON(json: any): PubLocationEnum;
21
23
  export declare function PubLocationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PubLocationEnum;
@@ -22,6 +22,8 @@ exports.PubLocationEnumToJSON = exports.PubLocationEnumFromJSONTyped = exports.P
22
22
  var PubLocationEnum;
23
23
  (function (PubLocationEnum) {
24
24
  PubLocationEnum["DASHBOARD"] = "DASHBOARD";
25
+ PubLocationEnum["MAINMENU"] = "MAINMENU";
26
+ PubLocationEnum["SEARCH"] = "SEARCH";
25
27
  })(PubLocationEnum = exports.PubLocationEnum || (exports.PubLocationEnum = {}));
26
28
  function PubLocationEnumFromJSON(json) {
27
29
  return PubLocationEnumFromJSONTyped(json, false);
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface ImageVersions {
18
18
  /**
19
- * URI to S3 file (width 100px, height computed with original image aspect ratio)
19
+ * URI to S3 file (width 128px, height computed with original image aspect ratio)
20
20
  * @type {string}
21
21
  * @memberof ImageVersions
22
22
  */
23
23
  xsmall?: string;
24
24
  /**
25
- * URI to S3 file (width 350px, height computed with original image aspect ratio)
25
+ * URI to S3 file (width 256px, height computed with original image aspect ratio)
26
26
  * @type {string}
27
27
  * @memberof ImageVersions
28
28
  */
29
29
  small?: string;
30
30
  /**
31
- * URI to S3 file (width 1024px, height computed with original image aspect ratio)
31
+ * URI to S3 file (width 512px, height computed with original image aspect ratio)
32
32
  * @type {string}
33
33
  * @memberof ImageVersions
34
34
  */
35
35
  medium?: string;
36
36
  /**
37
- * URI to S3 file (width 1920px, height computed with original image aspect ratio)
37
+ * URI to S3 file (width 1024px, height computed with original image aspect ratio)
38
38
  * @type {string}
39
39
  * @memberof ImageVersions
40
40
  */
41
41
  large?: string;
42
42
  /**
43
- * URI to S3 file (width 3840px, height computed with original image aspect ratio)
43
+ * URI to S3 file (width 2048px, height computed with original image aspect ratio)
44
44
  * @type {string}
45
45
  * @memberof ImageVersions
46
46
  */
@@ -41,12 +41,6 @@ export interface CartSubCartLine {
41
41
  * @memberof CartSubCartLine
42
42
  */
43
43
  saleOffer?: SaleOfferLink;
44
- /**
45
- * Indicate if the line can be buy
46
- * @type {boolean}
47
- * @memberof CartSubCartLine
48
- */
49
- buyable?: boolean;
50
44
  /**
51
45
  * Indicate if the line has a good quantity
52
46
  * @type {boolean}
@@ -30,7 +30,6 @@ function CartSubCartLineFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
31
31
  'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
32
32
  'saleOffer': !(0, runtime_1.exists)(json, 'saleOffer') ? undefined : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
33
- 'buyable': !(0, runtime_1.exists)(json, 'buyable') ? undefined : json['buyable'],
34
33
  'goodQuantity': !(0, runtime_1.exists)(json, 'goodQuantity') ? undefined : json['goodQuantity'],
35
34
  'distributionRangeId': !(0, runtime_1.exists)(json, 'distributionRangeId') ? undefined : json['distributionRangeId'],
36
35
  'totalExcludingTaxes': !(0, runtime_1.exists)(json, 'totalExcludingTaxes') ? undefined : json['totalExcludingTaxes'],
@@ -49,7 +48,6 @@ function CartSubCartLineToJSON(value) {
49
48
  'quantity': value.quantity,
50
49
  'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
51
50
  'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value.saleOffer),
52
- 'buyable': value.buyable,
53
51
  'goodQuantity': value.goodQuantity,
54
52
  'distributionRangeId': value.distributionRangeId,
55
53
  'totalExcludingTaxes': value.totalExcludingTaxes,
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Service delegated by the client to lcdp. TRUE : Client use LCDP service FALSE : Client use its own service Only this combinations are accepted: Payment + Billing => payment = true, billing = true, transport = false Transport + Billing => payment = true, billing = true, transport = true Payment => payment = true, billing = false, transport = false Nothing => payment = false, billing = false, transport = false
13
+ * Service delegated by the client to lcdp. TRUE : Client use LCDP service FALSE : Client use its own service Only this combinations are accepted: - Payment + Billing => payment = true, billing = true, transport = false - Transport + Billing => payment = true, billing = true, transport = true - Payment => payment = true, billing = false, transport = false - Nothing => payment = false, billing = false, transport = false
14
14
  * @export
15
15
  * @interface UserDelegatedServices
16
16
  */
@@ -1,29 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
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 { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { AnyMagicCartCreationParameters, MagicCart } from '../models';
14
- export interface CreateMagicCartRequest {
15
- anyMagicCartCreationParameters: AnyMagicCartCreationParameters;
16
- }
17
- /**
18
- * no description
19
- */
20
- export declare class ManageMagicCartApi extends BaseAPI {
21
- /**
22
- * Create magic ad cart
23
- */
24
- createMagicCartRaw(requestParameters: CreateMagicCartRequest): Promise<ApiResponse<MagicCart | BlobWithMeta>>;
25
- /**
26
- * Create magic ad cart
27
- */
28
- createMagicCart(requestParameters: CreateMagicCartRequest): Promise<MagicCart | BlobWithMeta>;
29
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
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 { MagicCartWithInitialCreationParameters } from './MagicCartWithInitialCreationParameters';
13
- import { MagicCartWithNeedCreationParameters } from './MagicCartWithNeedCreationParameters';
14
- /**
15
- * @type AnyMagicCartCreationParameters
16
- * @export
17
- */
18
- export declare type AnyMagicCartCreationParameters = {
19
- wishFrom: 'cart';
20
- } & MagicCartWithInitialCreationParameters | {
21
- wishFrom: 'need';
22
- } & MagicCartWithNeedCreationParameters;
23
- export declare function AnyMagicCartCreationParametersFromJSON(json: any): AnyMagicCartCreationParameters;
24
- export declare function AnyMagicCartCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyMagicCartCreationParameters;
25
- export declare function AnyMagicCartCreationParametersToJSON(value?: AnyMagicCartCreationParameters | null): any;
@@ -1,64 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
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.AnyMagicCartCreationParametersToJSON = exports.AnyMagicCartCreationParametersFromJSONTyped = exports.AnyMagicCartCreationParametersFromJSON = void 0;
28
- var MagicCartWithInitialCreationParameters_1 = require("./MagicCartWithInitialCreationParameters");
29
- var MagicCartWithNeedCreationParameters_1 = require("./MagicCartWithNeedCreationParameters");
30
- function AnyMagicCartCreationParametersFromJSON(json) {
31
- return AnyMagicCartCreationParametersFromJSONTyped(json, false);
32
- }
33
- exports.AnyMagicCartCreationParametersFromJSON = AnyMagicCartCreationParametersFromJSON;
34
- function AnyMagicCartCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
36
- return json;
37
- }
38
- switch (json['wishFrom']) {
39
- case 'cart':
40
- return __assign(__assign({}, (0, MagicCartWithInitialCreationParameters_1.MagicCartWithInitialCreationParametersFromJSONTyped)(json, true)), { wishFrom: 'cart' });
41
- case 'need':
42
- return __assign(__assign({}, (0, MagicCartWithNeedCreationParameters_1.MagicCartWithNeedCreationParametersFromJSONTyped)(json, true)), { wishFrom: 'need' });
43
- default:
44
- throw new Error("No variant of AnyMagicCartCreationParameters exists with 'wishFrom=".concat(json['wishFrom'], "'"));
45
- }
46
- }
47
- exports.AnyMagicCartCreationParametersFromJSONTyped = AnyMagicCartCreationParametersFromJSONTyped;
48
- function AnyMagicCartCreationParametersToJSON(value) {
49
- if (value === undefined) {
50
- return undefined;
51
- }
52
- if (value === null) {
53
- return null;
54
- }
55
- switch (value['wishFrom']) {
56
- case 'cart':
57
- return (0, MagicCartWithInitialCreationParameters_1.MagicCartWithInitialCreationParametersToJSON)(value);
58
- case 'need':
59
- return (0, MagicCartWithNeedCreationParameters_1.MagicCartWithNeedCreationParametersToJSON)(value);
60
- default:
61
- throw new Error("No variant of AnyMagicCartCreationParameters exists with 'wishFrom=".concat(value['wishFrom'], "'"));
62
- }
63
- }
64
- exports.AnyMagicCartCreationParametersToJSON = AnyMagicCartCreationParametersToJSON;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
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 { MagicProposal } from './MagicProposal';
13
- /**
14
- * The cart proposal send to the client
15
- * @export
16
- * @interface MagicCart
17
- */
18
- export interface MagicCart {
19
- /**
20
- *
21
- * @type {Array<MagicProposal>}
22
- * @memberof MagicCart
23
- */
24
- magicProposal?: Array<MagicProposal>;
25
- }
26
- export declare function MagicCartFromJSON(json: any): MagicCart;
27
- export declare function MagicCartFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCart;
28
- export declare function MagicCartToJSON(value?: MagicCart | null): any;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
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.MagicCartToJSON = exports.MagicCartFromJSONTyped = exports.MagicCartFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
- var MagicProposal_1 = require("./MagicProposal");
19
- function MagicCartFromJSON(json) {
20
- return MagicCartFromJSONTyped(json, false);
21
- }
22
- exports.MagicCartFromJSON = MagicCartFromJSON;
23
- function MagicCartFromJSONTyped(json, ignoreDiscriminator) {
24
- if ((json === undefined) || (json === null)) {
25
- return json;
26
- }
27
- return {
28
- 'magicProposal': !(0, runtime_1.exists)(json, 'magicProposal') ? undefined : (json['magicProposal'].map(MagicProposal_1.MagicProposalFromJSON)),
29
- };
30
- }
31
- exports.MagicCartFromJSONTyped = MagicCartFromJSONTyped;
32
- function MagicCartToJSON(value) {
33
- if (value === undefined) {
34
- return undefined;
35
- }
36
- if (value === null) {
37
- return null;
38
- }
39
- return {
40
- 'magicProposal': value.magicProposal === undefined ? undefined : (value.magicProposal.map(MagicProposal_1.MagicProposalToJSON)),
41
- };
42
- }
43
- exports.MagicCartToJSON = MagicCartToJSON;
@@ -1,29 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
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 { MagicProductBus } from './MagicProductBus';
13
- import { MagicProposal } from './MagicProposal';
14
- /**
15
- *
16
- * @export
17
- * @interface MagicCartWithInitialCreationParameters
18
- */
19
- export interface MagicCartWithInitialCreationParameters extends MagicProductBus {
20
- /**
21
- * Shopping cart created by the client
22
- * @type {Array<MagicProposal>}
23
- * @memberof MagicCartWithInitialCreationParameters
24
- */
25
- cart: Array<MagicProposal>;
26
- }
27
- export declare function MagicCartWithInitialCreationParametersFromJSON(json: any): MagicCartWithInitialCreationParameters;
28
- export declare function MagicCartWithInitialCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithInitialCreationParameters;
29
- export declare function MagicCartWithInitialCreationParametersToJSON(value?: MagicCartWithInitialCreationParameters | null): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
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.MagicCartWithInitialCreationParametersToJSON = exports.MagicCartWithInitialCreationParametersFromJSONTyped = exports.MagicCartWithInitialCreationParametersFromJSON = void 0;
28
- var MagicProductBus_1 = require("./MagicProductBus");
29
- var MagicProposal_1 = require("./MagicProposal");
30
- function MagicCartWithInitialCreationParametersFromJSON(json) {
31
- return MagicCartWithInitialCreationParametersFromJSONTyped(json, false);
32
- }
33
- exports.MagicCartWithInitialCreationParametersFromJSON = MagicCartWithInitialCreationParametersFromJSON;
34
- function MagicCartWithInitialCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
36
- return json;
37
- }
38
- return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusFromJSONTyped)(json, ignoreDiscriminator)), { 'cart': (json['cart'].map(MagicProposal_1.MagicProposalFromJSON)) });
39
- }
40
- exports.MagicCartWithInitialCreationParametersFromJSONTyped = MagicCartWithInitialCreationParametersFromJSONTyped;
41
- function MagicCartWithInitialCreationParametersToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusToJSON)(value)), { 'cart': (value.cart.map(MagicProposal_1.MagicProposalToJSON)) });
49
- }
50
- exports.MagicCartWithInitialCreationParametersToJSON = MagicCartWithInitialCreationParametersToJSON;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
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 { MagicProposal } from './MagicProposal';
13
- /**
14
- *
15
- * @export
16
- * @interface MagicCartWithInitialCreationParametersAllOf
17
- */
18
- export interface MagicCartWithInitialCreationParametersAllOf {
19
- /**
20
- * Shopping cart created by the client
21
- * @type {Array<MagicProposal>}
22
- * @memberof MagicCartWithInitialCreationParametersAllOf
23
- */
24
- cart: Array<MagicProposal>;
25
- }
26
- export declare function MagicCartWithInitialCreationParametersAllOfFromJSON(json: any): MagicCartWithInitialCreationParametersAllOf;
27
- export declare function MagicCartWithInitialCreationParametersAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithInitialCreationParametersAllOf;
28
- export declare function MagicCartWithInitialCreationParametersAllOfToJSON(value?: MagicCartWithInitialCreationParametersAllOf | null): any;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
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.MagicCartWithInitialCreationParametersAllOfToJSON = exports.MagicCartWithInitialCreationParametersAllOfFromJSONTyped = exports.MagicCartWithInitialCreationParametersAllOfFromJSON = void 0;
17
- var MagicProposal_1 = require("./MagicProposal");
18
- function MagicCartWithInitialCreationParametersAllOfFromJSON(json) {
19
- return MagicCartWithInitialCreationParametersAllOfFromJSONTyped(json, false);
20
- }
21
- exports.MagicCartWithInitialCreationParametersAllOfFromJSON = MagicCartWithInitialCreationParametersAllOfFromJSON;
22
- function MagicCartWithInitialCreationParametersAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- return {
27
- 'cart': (json['cart'].map(MagicProposal_1.MagicProposalFromJSON)),
28
- };
29
- }
30
- exports.MagicCartWithInitialCreationParametersAllOfFromJSONTyped = MagicCartWithInitialCreationParametersAllOfFromJSONTyped;
31
- function MagicCartWithInitialCreationParametersAllOfToJSON(value) {
32
- if (value === undefined) {
33
- return undefined;
34
- }
35
- if (value === null) {
36
- return null;
37
- }
38
- return {
39
- 'cart': (value.cart.map(MagicProposal_1.MagicProposalToJSON)),
40
- };
41
- }
42
- exports.MagicCartWithInitialCreationParametersAllOfToJSON = MagicCartWithInitialCreationParametersAllOfToJSON;
@@ -1,29 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
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 { MagicNeed } from './MagicNeed';
13
- import { MagicProductBus } from './MagicProductBus';
14
- /**
15
- *
16
- * @export
17
- * @interface MagicCartWithNeedCreationParameters
18
- */
19
- export interface MagicCartWithNeedCreationParameters extends MagicProductBus {
20
- /**
21
- * Products needed by the client
22
- * @type {Array<MagicNeed>}
23
- * @memberof MagicCartWithNeedCreationParameters
24
- */
25
- needs: Array<MagicNeed>;
26
- }
27
- export declare function MagicCartWithNeedCreationParametersFromJSON(json: any): MagicCartWithNeedCreationParameters;
28
- export declare function MagicCartWithNeedCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithNeedCreationParameters;
29
- export declare function MagicCartWithNeedCreationParametersToJSON(value?: MagicCartWithNeedCreationParameters | null): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
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.MagicCartWithNeedCreationParametersToJSON = exports.MagicCartWithNeedCreationParametersFromJSONTyped = exports.MagicCartWithNeedCreationParametersFromJSON = void 0;
28
- var MagicNeed_1 = require("./MagicNeed");
29
- var MagicProductBus_1 = require("./MagicProductBus");
30
- function MagicCartWithNeedCreationParametersFromJSON(json) {
31
- return MagicCartWithNeedCreationParametersFromJSONTyped(json, false);
32
- }
33
- exports.MagicCartWithNeedCreationParametersFromJSON = MagicCartWithNeedCreationParametersFromJSON;
34
- function MagicCartWithNeedCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
36
- return json;
37
- }
38
- return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusFromJSONTyped)(json, ignoreDiscriminator)), { 'needs': (json['needs'].map(MagicNeed_1.MagicNeedFromJSON)) });
39
- }
40
- exports.MagicCartWithNeedCreationParametersFromJSONTyped = MagicCartWithNeedCreationParametersFromJSONTyped;
41
- function MagicCartWithNeedCreationParametersToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusToJSON)(value)), { 'needs': (value.needs.map(MagicNeed_1.MagicNeedToJSON)) });
49
- }
50
- exports.MagicCartWithNeedCreationParametersToJSON = MagicCartWithNeedCreationParametersToJSON;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
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 { MagicNeed } from './MagicNeed';
13
- /**
14
- *
15
- * @export
16
- * @interface MagicCartWithNeedCreationParametersAllOf
17
- */
18
- export interface MagicCartWithNeedCreationParametersAllOf {
19
- /**
20
- * Products needed by the client
21
- * @type {Array<MagicNeed>}
22
- * @memberof MagicCartWithNeedCreationParametersAllOf
23
- */
24
- needs: Array<MagicNeed>;
25
- }
26
- export declare function MagicCartWithNeedCreationParametersAllOfFromJSON(json: any): MagicCartWithNeedCreationParametersAllOf;
27
- export declare function MagicCartWithNeedCreationParametersAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithNeedCreationParametersAllOf;
28
- export declare function MagicCartWithNeedCreationParametersAllOfToJSON(value?: MagicCartWithNeedCreationParametersAllOf | null): any;