@lcdp/api-react-rest-client 3.0.7-develop.20714047289 → 3.0.7-develop.20928056382
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.
- package/package.json +1 -1
- package/sale-offer/src/models/SaleOfferJournal.d.ts +6 -0
- package/sale-offer/src/models/SaleOfferJournal.js +4 -0
- package/sale-offer/src/models/SaleOfferStatusReason.d.ts +2 -0
- package/sale-offer/src/models/SaleOfferStatusReason.js +2 -0
- package/sale-offer-log/src/models/SaleOfferLog.d.ts +13 -0
- package/sale-offer-log/src/models/SaleOfferLog.js +9 -0
- package/sale-offer-log/src/models/SaleOfferStatusReason.d.ts +30 -0
- package/sale-offer-log/src/models/SaleOfferStatusReason.js +53 -0
- package/sale-offer-log/src/models/index.d.ts +1 -0
- package/sale-offer-log/src/models/index.js +1 -0
package/package.json
CHANGED
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface SaleOfferJournal
|
|
16
16
|
*/
|
|
17
17
|
export interface SaleOfferJournal {
|
|
18
|
+
/**
|
|
19
|
+
* Id of the user that modified status
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SaleOfferJournal
|
|
22
|
+
*/
|
|
23
|
+
statusUpdatedBy: number | null;
|
|
18
24
|
/**
|
|
19
25
|
* Date of the updated status (RFC 3339, section 5.6)
|
|
20
26
|
* @type {Date}
|
|
@@ -18,6 +18,8 @@ exports.SaleOfferJournalToJSON = exports.SaleOfferJournalFromJSONTyped = exports
|
|
|
18
18
|
* Check if a given object implements the SaleOfferJournal interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfSaleOfferJournal(value) {
|
|
21
|
+
if (!('statusUpdatedBy' in value) || value['statusUpdatedBy'] === undefined)
|
|
22
|
+
return false;
|
|
21
23
|
if (!('statusUpdatedAt' in value) || value['statusUpdatedAt'] === undefined)
|
|
22
24
|
return false;
|
|
23
25
|
return true;
|
|
@@ -32,6 +34,7 @@ function SaleOfferJournalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
37
|
+
'statusUpdatedBy': json['statusUpdatedBy'],
|
|
35
38
|
'statusUpdatedAt': (json['statusUpdatedAt'] === null || json['statusUpdatedAt'] === undefined) ? json['statusUpdatedAt'] : new Date(json['statusUpdatedAt']),
|
|
36
39
|
};
|
|
37
40
|
}
|
|
@@ -41,6 +44,7 @@ function SaleOfferJournalToJSON(value) {
|
|
|
41
44
|
return value;
|
|
42
45
|
}
|
|
43
46
|
return {
|
|
47
|
+
'statusUpdatedBy': value['statusUpdatedBy'],
|
|
44
48
|
'statusUpdatedAt': (value['statusUpdatedAt'] === null || value['statusUpdatedAt'] === undefined) ? value['statusUpdatedAt'] : (value['statusUpdatedAt']).toISOString(),
|
|
45
49
|
};
|
|
46
50
|
}
|
|
@@ -19,6 +19,8 @@ export declare const SaleOfferStatusReason: {
|
|
|
19
19
|
readonly PRODUCT_PROSCRIPTION: "PRODUCT_PROSCRIPTION";
|
|
20
20
|
readonly OWNER_SELLING_CAPABILITY: "OWNER_SELLING_CAPABILITY";
|
|
21
21
|
readonly PRODUCT_STATUS: "PRODUCT_STATUS";
|
|
22
|
+
readonly ORDER_COUNTERPROPOSAL: "ORDER_COUNTERPROPOSAL";
|
|
23
|
+
readonly ORDER_CANCELLED: "ORDER_CANCELLED";
|
|
22
24
|
readonly OTHER: "OTHER";
|
|
23
25
|
};
|
|
24
26
|
export declare type SaleOfferStatusReason = typeof SaleOfferStatusReason[keyof typeof SaleOfferStatusReason];
|
|
@@ -24,6 +24,8 @@ exports.SaleOfferStatusReason = {
|
|
|
24
24
|
PRODUCT_PROSCRIPTION: 'PRODUCT_PROSCRIPTION',
|
|
25
25
|
OWNER_SELLING_CAPABILITY: 'OWNER_SELLING_CAPABILITY',
|
|
26
26
|
PRODUCT_STATUS: 'PRODUCT_STATUS',
|
|
27
|
+
ORDER_COUNTERPROPOSAL: 'ORDER_COUNTERPROPOSAL',
|
|
28
|
+
ORDER_CANCELLED: 'ORDER_CANCELLED',
|
|
27
29
|
OTHER: 'OTHER'
|
|
28
30
|
};
|
|
29
31
|
function instanceOfSaleOfferStatusReason(value) {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SaleOfferStatusReason } from './SaleOfferStatusReason';
|
|
12
13
|
import type { SaleOfferLink } from './SaleOfferLink';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -34,6 +35,18 @@ export interface SaleOfferLog {
|
|
|
34
35
|
* @memberof SaleOfferLog
|
|
35
36
|
*/
|
|
36
37
|
createdAt: Date;
|
|
38
|
+
/**
|
|
39
|
+
* Id of the user that updated status
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof SaleOfferLog
|
|
42
|
+
*/
|
|
43
|
+
updatedBy: number | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {SaleOfferStatusReason}
|
|
47
|
+
* @memberof SaleOfferLog
|
|
48
|
+
*/
|
|
49
|
+
reason: SaleOfferStatusReason;
|
|
37
50
|
/**
|
|
38
51
|
*
|
|
39
52
|
* @type {string}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SaleOfferLogToJSON = exports.SaleOfferLogFromJSONTyped = exports.SaleOfferLogFromJSON = exports.instanceOfSaleOfferLog = void 0;
|
|
17
|
+
var SaleOfferStatusReason_1 = require("./SaleOfferStatusReason");
|
|
17
18
|
var SaleOfferLink_1 = require("./SaleOfferLink");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the SaleOfferLog interface.
|
|
@@ -25,6 +26,10 @@ function instanceOfSaleOfferLog(value) {
|
|
|
25
26
|
return false;
|
|
26
27
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('updatedBy' in value) || value['updatedBy'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
32
|
+
return false;
|
|
28
33
|
if (!('type' in value) || value['type'] === undefined)
|
|
29
34
|
return false;
|
|
30
35
|
if (!('saleOffer' in value) || value['saleOffer'] === undefined)
|
|
@@ -44,6 +49,8 @@ function SaleOfferLogFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
49
|
'id': json['id'],
|
|
45
50
|
'content': json['content'],
|
|
46
51
|
'createdAt': (json['createdAt'] === null || json['createdAt'] === undefined) ? json['createdAt'] : new Date(json['createdAt']),
|
|
52
|
+
'updatedBy': json['updatedBy'],
|
|
53
|
+
'reason': (json['reason'] === null || json['reason'] === undefined) ? json['reason'] : (0, SaleOfferStatusReason_1.SaleOfferStatusReasonFromJSON)(json['reason']),
|
|
47
54
|
'type': json['type'],
|
|
48
55
|
'saleOffer': (json['saleOffer'] === null || json['saleOffer'] === undefined) ? json['saleOffer'] : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
|
|
49
56
|
};
|
|
@@ -57,6 +64,8 @@ function SaleOfferLogToJSON(value) {
|
|
|
57
64
|
'id': value['id'],
|
|
58
65
|
'content': value['content'],
|
|
59
66
|
'createdAt': (value['createdAt'] === null || value['createdAt'] === undefined) ? value['createdAt'] : (value['createdAt']).toISOString(),
|
|
67
|
+
'updatedBy': value['updatedBy'],
|
|
68
|
+
'reason': (0, SaleOfferStatusReason_1.SaleOfferStatusReasonToJSON)(value['reason']),
|
|
60
69
|
'type': value['type'],
|
|
61
70
|
'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value['saleOffer']),
|
|
62
71
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP sale offer logs
|
|
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
|
+
* Reason of the status change or current status.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SaleOfferStatusReason: {
|
|
17
|
+
readonly OUTDATED: "OUTDATED";
|
|
18
|
+
readonly SOLD_OUT: "SOLD_OUT";
|
|
19
|
+
readonly PRODUCT_PROSCRIPTION: "PRODUCT_PROSCRIPTION";
|
|
20
|
+
readonly OWNER_SELLING_CAPABILITY: "OWNER_SELLING_CAPABILITY";
|
|
21
|
+
readonly PRODUCT_STATUS: "PRODUCT_STATUS";
|
|
22
|
+
readonly ORDER_COUNTERPROPOSAL: "ORDER_COUNTERPROPOSAL";
|
|
23
|
+
readonly ORDER_CANCELLED: "ORDER_CANCELLED";
|
|
24
|
+
readonly OTHER: "OTHER";
|
|
25
|
+
};
|
|
26
|
+
export declare type SaleOfferStatusReason = typeof SaleOfferStatusReason[keyof typeof SaleOfferStatusReason];
|
|
27
|
+
export declare function instanceOfSaleOfferStatusReason(value: any): boolean;
|
|
28
|
+
export declare function SaleOfferStatusReasonFromJSON(json: any): SaleOfferStatusReason;
|
|
29
|
+
export declare function SaleOfferStatusReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferStatusReason;
|
|
30
|
+
export declare function SaleOfferStatusReasonToJSON(value?: SaleOfferStatusReason | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP sale offer logs
|
|
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.SaleOfferStatusReasonToJSON = exports.SaleOfferStatusReasonFromJSONTyped = exports.SaleOfferStatusReasonFromJSON = exports.instanceOfSaleOfferStatusReason = exports.SaleOfferStatusReason = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Reason of the status change or current status.
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.SaleOfferStatusReason = {
|
|
22
|
+
OUTDATED: 'OUTDATED',
|
|
23
|
+
SOLD_OUT: 'SOLD_OUT',
|
|
24
|
+
PRODUCT_PROSCRIPTION: 'PRODUCT_PROSCRIPTION',
|
|
25
|
+
OWNER_SELLING_CAPABILITY: 'OWNER_SELLING_CAPABILITY',
|
|
26
|
+
PRODUCT_STATUS: 'PRODUCT_STATUS',
|
|
27
|
+
ORDER_COUNTERPROPOSAL: 'ORDER_COUNTERPROPOSAL',
|
|
28
|
+
ORDER_CANCELLED: 'ORDER_CANCELLED',
|
|
29
|
+
OTHER: 'OTHER'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfSaleOfferStatusReason(value) {
|
|
32
|
+
for (var key in exports.SaleOfferStatusReason) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.SaleOfferStatusReason, key)) {
|
|
34
|
+
if (exports.SaleOfferStatusReason[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
exports.instanceOfSaleOfferStatusReason = instanceOfSaleOfferStatusReason;
|
|
42
|
+
function SaleOfferStatusReasonFromJSON(json) {
|
|
43
|
+
return SaleOfferStatusReasonFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
exports.SaleOfferStatusReasonFromJSON = SaleOfferStatusReasonFromJSON;
|
|
46
|
+
function SaleOfferStatusReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
exports.SaleOfferStatusReasonFromJSONTyped = SaleOfferStatusReasonFromJSONTyped;
|
|
50
|
+
function SaleOfferStatusReasonToJSON(value) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
exports.SaleOfferStatusReasonToJSON = SaleOfferStatusReasonToJSON;
|
|
@@ -24,3 +24,4 @@ __exportStar(require("./PaginatedSaleOfferLogs"), exports);
|
|
|
24
24
|
__exportStar(require("./PagingMetadata"), exports);
|
|
25
25
|
__exportStar(require("./SaleOfferLink"), exports);
|
|
26
26
|
__exportStar(require("./SaleOfferLog"), exports);
|
|
27
|
+
__exportStar(require("./SaleOfferStatusReason"), exports);
|