@lcdp/api-react-rest-client 3.1.2 → 3.1.3-LDS-5369-api-modifications-routes-et-sch.21861896537

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 (81) hide show
  1. package/order/src/apis/ManageForeorderApi.d.ts +31 -0
  2. package/order/src/apis/{ManageMetaOrderApi.js → ManageForeorderApi.js} +18 -91
  3. package/order/src/apis/ManageOrderApi.d.ts +8 -8
  4. package/order/src/apis/ManageOrderApi.js +9 -10
  5. package/order/src/apis/index.d.ts +1 -1
  6. package/order/src/apis/index.js +1 -1
  7. package/order/src/models/{AnyMetaOrderWarning.d.ts → AnyForeorderWarning.d.ts} +5 -5
  8. package/order/src/models/{AnyMetaOrderWarning.js → AnyForeorderWarning.js} +10 -10
  9. package/order/src/models/Foreorder.d.ts +241 -0
  10. package/order/src/models/Foreorder.js +180 -0
  11. package/order/src/models/ForeorderCreationParameters.d.ts +45 -0
  12. package/order/src/models/ForeorderCreationParameters.js +58 -0
  13. package/order/src/models/ForeorderCreationResponse.d.ts +39 -0
  14. package/order/src/models/ForeorderCreationResponse.js +53 -0
  15. package/order/src/models/ForeorderWarning.d.ts +31 -0
  16. package/order/src/models/{MetaOrderWarning.js → ForeorderWarning.js} +11 -11
  17. package/order/src/models/Order.d.ts +9 -7
  18. package/order/src/models/Order.js +6 -4
  19. package/order/src/models/OrderCreationParameters.d.ts +46 -0
  20. package/order/src/models/OrderCreationParameters.js +59 -0
  21. package/order/src/models/index.d.ts +6 -7
  22. package/order/src/models/index.js +6 -7
  23. package/package.json +1 -1
  24. package/shopping-cart/src/apis/ManageCartApi.d.ts +30 -28
  25. package/shopping-cart/src/apis/ManageCartApi.js +43 -167
  26. package/shopping-cart/src/apis/ManageCartLineApi.d.ts +82 -0
  27. package/shopping-cart/src/apis/{ManageCartSubCartApi.js → ManageCartLineApi.js} +86 -157
  28. package/shopping-cart/src/apis/index.d.ts +1 -2
  29. package/shopping-cart/src/apis/index.js +1 -2
  30. package/shopping-cart/src/models/Cart.d.ts +6 -6
  31. package/shopping-cart/src/models/Cart.js +10 -4
  32. package/shopping-cart/src/models/CartCreationParameters.d.ts +44 -0
  33. package/shopping-cart/src/models/CartCreationParameters.js +56 -0
  34. package/shopping-cart/src/models/CartCreationResponse.d.ts +39 -0
  35. package/shopping-cart/src/models/CartCreationResponse.js +49 -0
  36. package/shopping-cart/src/models/{CartSubCartLine.d.ts → CartLine.d.ts} +13 -13
  37. package/shopping-cart/src/models/{CartSubCartLine.js → CartLine.js} +11 -11
  38. package/shopping-cart/src/models/CartLineResponse.d.ts +39 -0
  39. package/shopping-cart/src/models/CartLineResponse.js +49 -0
  40. package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +37 -0
  41. package/shopping-cart/src/models/CartLineUpdateParameters.js +49 -0
  42. package/shopping-cart/src/models/CartLinesResponse.d.ts +39 -0
  43. package/shopping-cart/src/models/CartLinesResponse.js +49 -0
  44. package/shopping-cart/src/models/CartRecord.d.ts +70 -0
  45. package/shopping-cart/src/models/CartRecord.js +74 -0
  46. package/shopping-cart/src/models/{CartSubCartTransport.d.ts → CartRecordTransport.d.ts} +12 -12
  47. package/shopping-cart/src/models/{CartSubCartTransport.js → CartRecordTransport.js} +11 -11
  48. package/shopping-cart/src/models/CartSummary.d.ts +31 -0
  49. package/shopping-cart/src/models/CartSummary.js +47 -0
  50. package/shopping-cart/src/models/CartWarning.d.ts +68 -0
  51. package/shopping-cart/src/models/CartWarning.js +69 -0
  52. package/shopping-cart/src/models/OwnerLink.d.ts +43 -0
  53. package/shopping-cart/src/models/{SellerLink.js → OwnerLink.js} +13 -14
  54. package/shopping-cart/src/models/PaginatedCarts.d.ts +46 -0
  55. package/shopping-cart/src/models/PaginatedCarts.js +58 -0
  56. package/shopping-cart/src/models/PagingMetadata.d.ts +49 -0
  57. package/shopping-cart/src/models/PagingMetadata.js +55 -0
  58. package/shopping-cart/src/models/index.d.ts +13 -6
  59. package/shopping-cart/src/models/index.js +13 -6
  60. package/order/src/apis/ManageMetaOrderApi.d.ts +0 -45
  61. package/order/src/models/MetaOrder.d.ts +0 -64
  62. package/order/src/models/MetaOrder.js +0 -70
  63. package/order/src/models/MetaOrderCreationParameters.d.ts +0 -38
  64. package/order/src/models/MetaOrderCreationParameters.js +0 -52
  65. package/order/src/models/MetaOrderCreationSubCartParameters.d.ts +0 -31
  66. package/order/src/models/MetaOrderCreationSubCartParameters.js +0 -47
  67. package/order/src/models/MetaOrderPrices.d.ts +0 -79
  68. package/order/src/models/MetaOrderPrices.js +0 -79
  69. package/order/src/models/MetaOrderWarning.d.ts +0 -31
  70. package/order/src/models/MetaOrderWithWarnings.d.ts +0 -39
  71. package/order/src/models/MetaOrderWithWarnings.js +0 -49
  72. package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +0 -107
  73. package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +0 -151
  74. package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +0 -879
  75. package/shopping-cart/src/models/CartSubCart.d.ts +0 -76
  76. package/shopping-cart/src/models/CartSubCart.js +0 -78
  77. package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +0 -37
  78. package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +0 -49
  79. package/shopping-cart/src/models/SellerLink.d.ts +0 -50
  80. package/shopping-cart/src/models/UserRole.d.ts +0 -29
  81. package/shopping-cart/src/models/UserRole.js +0 -52
@@ -1,76 +0,0 @@
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 type { CartSubCartTransport } from './CartSubCartTransport';
13
- import type { HttpLink } from './HttpLink';
14
- import type { SellerLink } from './SellerLink';
15
- /**
16
- *
17
- * @export
18
- * @interface CartSubCart
19
- */
20
- export interface CartSubCart {
21
- /**
22
- *
23
- * @type {number}
24
- * @memberof CartSubCart
25
- */
26
- id: number;
27
- /**
28
- * Last update date of this sub cart
29
- * @type {Date}
30
- * @memberof CartSubCart
31
- */
32
- updatedAt: Date;
33
- /**
34
- *
35
- * @type {CartSubCartTransport}
36
- * @memberof CartSubCart
37
- */
38
- transport: CartSubCartTransport;
39
- /**
40
- *
41
- * @type {SellerLink}
42
- * @memberof CartSubCart
43
- */
44
- seller: SellerLink;
45
- /**
46
- *
47
- * @type {number}
48
- * @memberof CartSubCart
49
- */
50
- lineCount: number;
51
- /**
52
- *
53
- * @type {HttpLink}
54
- * @memberof CartSubCart
55
- */
56
- lines: HttpLink;
57
- /**
58
- * Total buyer commission for this sub cart
59
- * @type {number}
60
- * @memberof CartSubCart
61
- */
62
- totalBuyerCommissionExcludingTaxes: number;
63
- /**
64
- * Total price of the cart excluding taxes
65
- * @type {number}
66
- * @memberof CartSubCart
67
- */
68
- totalExcludingTaxes: number;
69
- }
70
- /**
71
- * Check if a given object implements the CartSubCart interface.
72
- */
73
- export declare function instanceOfCartSubCart(value: object): value is CartSubCart;
74
- export declare function CartSubCartFromJSON(json: any): CartSubCart;
75
- export declare function CartSubCartFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSubCart;
76
- export declare function CartSubCartToJSON(value?: CartSubCart | null): any;
@@ -1,78 +0,0 @@
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.CartSubCartToJSON = exports.CartSubCartFromJSONTyped = exports.CartSubCartFromJSON = exports.instanceOfCartSubCart = void 0;
17
- var CartSubCartTransport_1 = require("./CartSubCartTransport");
18
- var HttpLink_1 = require("./HttpLink");
19
- var SellerLink_1 = require("./SellerLink");
20
- /**
21
- * Check if a given object implements the CartSubCart interface.
22
- */
23
- function instanceOfCartSubCart(value) {
24
- if (!('id' in value) || value['id'] === undefined)
25
- return false;
26
- if (!('updatedAt' in value) || value['updatedAt'] === undefined)
27
- return false;
28
- if (!('transport' in value) || value['transport'] === undefined)
29
- return false;
30
- if (!('seller' in value) || value['seller'] === undefined)
31
- return false;
32
- if (!('lineCount' in value) || value['lineCount'] === undefined)
33
- return false;
34
- if (!('lines' in value) || value['lines'] === undefined)
35
- return false;
36
- if (!('totalBuyerCommissionExcludingTaxes' in value) || value['totalBuyerCommissionExcludingTaxes'] === undefined)
37
- return false;
38
- if (!('totalExcludingTaxes' in value) || value['totalExcludingTaxes'] === undefined)
39
- return false;
40
- return true;
41
- }
42
- exports.instanceOfCartSubCart = instanceOfCartSubCart;
43
- function CartSubCartFromJSON(json) {
44
- return CartSubCartFromJSONTyped(json, false);
45
- }
46
- exports.CartSubCartFromJSON = CartSubCartFromJSON;
47
- function CartSubCartFromJSONTyped(json, ignoreDiscriminator) {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
- 'id': json['id'],
53
- 'updatedAt': (json['updatedAt'] === null || json['updatedAt'] === undefined) ? json['updatedAt'] : new Date(json['updatedAt']),
54
- 'transport': (json['transport'] === null || json['transport'] === undefined) ? json['transport'] : (0, CartSubCartTransport_1.CartSubCartTransportFromJSON)(json['transport']),
55
- 'seller': (json['seller'] === null || json['seller'] === undefined) ? json['seller'] : (0, SellerLink_1.SellerLinkFromJSON)(json['seller']),
56
- 'lineCount': json['lineCount'],
57
- 'lines': (json['lines'] === null || json['lines'] === undefined) ? json['lines'] : (0, HttpLink_1.HttpLinkFromJSON)(json['lines']),
58
- 'totalBuyerCommissionExcludingTaxes': json['totalBuyerCommissionExcludingTaxes'],
59
- 'totalExcludingTaxes': json['totalExcludingTaxes'],
60
- };
61
- }
62
- exports.CartSubCartFromJSONTyped = CartSubCartFromJSONTyped;
63
- function CartSubCartToJSON(value) {
64
- if (value == null) {
65
- return value;
66
- }
67
- return {
68
- 'id': value['id'],
69
- 'updatedAt': (value['updatedAt'] === null || value['updatedAt'] === undefined) ? value['updatedAt'] : (value['updatedAt']).toISOString(),
70
- 'transport': (0, CartSubCartTransport_1.CartSubCartTransportToJSON)(value['transport']),
71
- 'seller': (0, SellerLink_1.SellerLinkToJSON)(value['seller']),
72
- 'lineCount': value['lineCount'],
73
- 'lines': (0, HttpLink_1.HttpLinkToJSON)(value['lines']),
74
- 'totalBuyerCommissionExcludingTaxes': value['totalBuyerCommissionExcludingTaxes'],
75
- 'totalExcludingTaxes': value['totalExcludingTaxes'],
76
- };
77
- }
78
- exports.CartSubCartToJSON = CartSubCartToJSON;
@@ -1,37 +0,0 @@
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 CartSubCartLineUpdateParameters
16
- */
17
- export interface CartSubCartLineUpdateParameters {
18
- /**
19
- * Identifier of the distributed range to change in cart line
20
- * @type {number}
21
- * @memberof CartSubCartLineUpdateParameters
22
- */
23
- distributedRangeId?: number;
24
- /**
25
- * Quantity to change in cart line
26
- * @type {number}
27
- * @memberof CartSubCartLineUpdateParameters
28
- */
29
- quantity: number;
30
- }
31
- /**
32
- * Check if a given object implements the CartSubCartLineUpdateParameters interface.
33
- */
34
- export declare function instanceOfCartSubCartLineUpdateParameters(value: object): value is CartSubCartLineUpdateParameters;
35
- export declare function CartSubCartLineUpdateParametersFromJSON(json: any): CartSubCartLineUpdateParameters;
36
- export declare function CartSubCartLineUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSubCartLineUpdateParameters;
37
- export declare function CartSubCartLineUpdateParametersToJSON(value?: CartSubCartLineUpdateParameters | null): any;
@@ -1,49 +0,0 @@
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.CartSubCartLineUpdateParametersToJSON = exports.CartSubCartLineUpdateParametersFromJSONTyped = exports.CartSubCartLineUpdateParametersFromJSON = exports.instanceOfCartSubCartLineUpdateParameters = void 0;
17
- /**
18
- * Check if a given object implements the CartSubCartLineUpdateParameters interface.
19
- */
20
- function instanceOfCartSubCartLineUpdateParameters(value) {
21
- if (!('quantity' in value) || value['quantity'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfCartSubCartLineUpdateParameters = instanceOfCartSubCartLineUpdateParameters;
26
- function CartSubCartLineUpdateParametersFromJSON(json) {
27
- return CartSubCartLineUpdateParametersFromJSONTyped(json, false);
28
- }
29
- exports.CartSubCartLineUpdateParametersFromJSON = CartSubCartLineUpdateParametersFromJSON;
30
- function CartSubCartLineUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'distributedRangeId': json['distributedRangeId'],
36
- 'quantity': json['quantity'],
37
- };
38
- }
39
- exports.CartSubCartLineUpdateParametersFromJSONTyped = CartSubCartLineUpdateParametersFromJSONTyped;
40
- function CartSubCartLineUpdateParametersToJSON(value) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'distributedRangeId': value['distributedRangeId'],
46
- 'quantity': value['quantity'],
47
- };
48
- }
49
- exports.CartSubCartLineUpdateParametersToJSON = CartSubCartLineUpdateParametersToJSON;
@@ -1,50 +0,0 @@
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 type { UserRole } from './UserRole';
13
- /**
14
- *
15
- * @export
16
- * @interface SellerLink
17
- */
18
- export interface SellerLink {
19
- /**
20
- * Any URL that is using http or https protocol
21
- * @type {string}
22
- * @memberof SellerLink
23
- */
24
- href: string;
25
- /**
26
- * Unique identifier of the seller
27
- * @type {number}
28
- * @memberof SellerLink
29
- */
30
- id?: number;
31
- /**
32
- * User nickname
33
- * @type {string}
34
- * @memberof SellerLink
35
- */
36
- nickname?: string;
37
- /**
38
- *
39
- * @type {UserRole}
40
- * @memberof SellerLink
41
- */
42
- role?: UserRole;
43
- }
44
- /**
45
- * Check if a given object implements the SellerLink interface.
46
- */
47
- export declare function instanceOfSellerLink(value: object): value is SellerLink;
48
- export declare function SellerLinkFromJSON(json: any): SellerLink;
49
- export declare function SellerLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerLink;
50
- export declare function SellerLinkToJSON(value?: SellerLink | null): any;
@@ -1,29 +0,0 @@
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
- * Role associated to the user
14
- * @export
15
- */
16
- export declare const UserRole: {
17
- readonly SUBSCRIPTION_IN_PROGRESS: "SUBSCRIPTION_IN_PROGRESS";
18
- readonly WAITING: "WAITING";
19
- readonly SELLER_BUYER: "SELLER_BUYER";
20
- readonly ARCHIVED: "ARCHIVED";
21
- readonly BLOCKED: "BLOCKED";
22
- readonly ADMINISTRATOR: "ADMINISTRATOR";
23
- readonly LABORATORY: "LABORATORY";
24
- };
25
- export declare type UserRole = typeof UserRole[keyof typeof UserRole];
26
- export declare function instanceOfUserRole(value: any): boolean;
27
- export declare function UserRoleFromJSON(json: any): UserRole;
28
- export declare function UserRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRole;
29
- export declare function UserRoleToJSON(value?: UserRole | null): any;
@@ -1,52 +0,0 @@
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.UserRoleToJSON = exports.UserRoleFromJSONTyped = exports.UserRoleFromJSON = exports.instanceOfUserRole = exports.UserRole = void 0;
17
- /**
18
- * Role associated to the user
19
- * @export
20
- */
21
- exports.UserRole = {
22
- SUBSCRIPTION_IN_PROGRESS: 'SUBSCRIPTION_IN_PROGRESS',
23
- WAITING: 'WAITING',
24
- SELLER_BUYER: 'SELLER_BUYER',
25
- ARCHIVED: 'ARCHIVED',
26
- BLOCKED: 'BLOCKED',
27
- ADMINISTRATOR: 'ADMINISTRATOR',
28
- LABORATORY: 'LABORATORY'
29
- };
30
- function instanceOfUserRole(value) {
31
- for (var key in exports.UserRole) {
32
- if (Object.prototype.hasOwnProperty.call(exports.UserRole, key)) {
33
- if (exports.UserRole[key] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
- exports.instanceOfUserRole = instanceOfUserRole;
41
- function UserRoleFromJSON(json) {
42
- return UserRoleFromJSONTyped(json, false);
43
- }
44
- exports.UserRoleFromJSON = UserRoleFromJSON;
45
- function UserRoleFromJSONTyped(json, ignoreDiscriminator) {
46
- return json;
47
- }
48
- exports.UserRoleFromJSONTyped = UserRoleFromJSONTyped;
49
- function UserRoleToJSON(value) {
50
- return value;
51
- }
52
- exports.UserRoleToJSON = UserRoleToJSON;