@lcdp/api-react-rest-client 2.6.2-develop.8356314138 → 2.6.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.
- package/order/src/models/OrderJournal.d.ts +0 -24
- package/order/src/models/OrderJournal.js +0 -8
- package/package.json +1 -1
- package/sale-offer/src/models/SaleOffer.d.ts +17 -17
- package/sale-offer/src/models/SaleOffer.js +19 -18
- package/statistic/src/apis/index.d.ts +0 -1
- package/statistic/src/apis/index.js +0 -1
- package/statistic/src/models/index.d.ts +0 -3
- package/statistic/src/models/index.js +0 -3
- package/user/src/models/User.d.ts +8 -21
- package/user/src/models/User.js +8 -13
- package/user/src/models/index.d.ts +0 -2
- package/user/src/models/index.js +0 -2
- package/statistic/src/apis/SearchUserStatisticsApi.d.ts +0 -42
- package/statistic/src/apis/SearchUserStatisticsApi.js +0 -248
- package/statistic/src/models/PaginatedUserStatistics.d.ts +0 -29
- package/statistic/src/models/PaginatedUserStatistics.js +0 -50
- package/statistic/src/models/PaginatedUserStatisticsAllOf.d.ts +0 -28
- package/statistic/src/models/PaginatedUserStatisticsAllOf.js +0 -42
- package/statistic/src/models/UserStatistic.d.ts +0 -70
- package/statistic/src/models/UserStatistic.js +0 -57
- package/third-party/index.d.ts +0 -1
- package/third-party/index.js +0 -17
- package/third-party/src/apis/ManageThirdPartyLinkApi.d.ts +0 -29
- package/third-party/src/apis/ManageThirdPartyLinkApi.js +0 -163
- package/third-party/src/apis/index.d.ts +0 -1
- package/third-party/src/apis/index.js +0 -17
- package/third-party/src/index.d.ts +0 -3
- package/third-party/src/index.js +0 -19
- package/third-party/src/models/RestError.d.ts +0 -87
- package/third-party/src/models/RestError.js +0 -99
- package/third-party/src/models/ThirdPartyLink.d.ts +0 -27
- package/third-party/src/models/ThirdPartyLink.js +0 -42
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +0 -33
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +0 -43
- package/third-party/src/models/index.d.ts +0 -3
- package/third-party/src/models/index.js +0 -19
- package/third-party/src/runtime.d.ts +0 -149
- package/third-party/src/runtime.js +0 -480
- package/user/src/models/UserStatisticLink.d.ts +0 -58
- package/user/src/models/UserStatisticLink.js +0 -50
- package/user/src/models/UserStatisticLinkAllOf.d.ts +0 -57
- package/user/src/models/UserStatisticLinkAllOf.js +0 -52
|
@@ -40,30 +40,6 @@ export interface OrderJournal {
|
|
|
40
40
|
* @memberof OrderJournal
|
|
41
41
|
*/
|
|
42
42
|
freeCarriageThresholdReachedDate: Date | null;
|
|
43
|
-
/**
|
|
44
|
-
* Date when the order have been officially created by the buyer and so received by the seller
|
|
45
|
-
* @type {Date}
|
|
46
|
-
* @memberof OrderJournal
|
|
47
|
-
*/
|
|
48
|
-
purchasedAt?: Date;
|
|
49
|
-
/**
|
|
50
|
-
* Date when the order have been delivered to the buyer. Important Note : If the transport is not delegated to LCDP, we can not provide this field value.
|
|
51
|
-
* @type {Date}
|
|
52
|
-
* @memberof OrderJournal
|
|
53
|
-
*/
|
|
54
|
-
deliveredAt?: Date;
|
|
55
|
-
/**
|
|
56
|
-
* Date when the seller announced that he is in capability to fulfill the items in order according to their quantities and expiration date.
|
|
57
|
-
* @type {Date}
|
|
58
|
-
* @memberof OrderJournal
|
|
59
|
-
*/
|
|
60
|
-
committedAt?: Date;
|
|
61
|
-
/**
|
|
62
|
-
* Date when the seller modified the order by lowering some quantities due to stock / expiration dates.
|
|
63
|
-
* @type {Date}
|
|
64
|
-
* @memberof OrderJournal
|
|
65
|
-
*/
|
|
66
|
-
counterProposalAt?: Date;
|
|
67
43
|
}
|
|
68
44
|
export declare function OrderJournalFromJSON(json: any): OrderJournal;
|
|
69
45
|
export declare function OrderJournalFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderJournal;
|
|
@@ -29,10 +29,6 @@ function OrderJournalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'statusUpdatedBy': json['statusUpdatedBy'],
|
|
30
30
|
'statusUpdatedAt': (new Date(json['statusUpdatedAt'])),
|
|
31
31
|
'freeCarriageThresholdReachedDate': (json['freeCarriageThresholdReachedDate'] === null ? null : new Date(json['freeCarriageThresholdReachedDate'])),
|
|
32
|
-
'purchasedAt': !(0, runtime_1.exists)(json, 'purchasedAt') ? undefined : (new Date(json['purchasedAt'])),
|
|
33
|
-
'deliveredAt': !(0, runtime_1.exists)(json, 'deliveredAt') ? undefined : (new Date(json['deliveredAt'])),
|
|
34
|
-
'committedAt': !(0, runtime_1.exists)(json, 'committedAt') ? undefined : (new Date(json['committedAt'])),
|
|
35
|
-
'counterProposalAt': !(0, runtime_1.exists)(json, 'counterProposalAt') ? undefined : (new Date(json['counterProposalAt'])),
|
|
36
32
|
};
|
|
37
33
|
}
|
|
38
34
|
exports.OrderJournalFromJSONTyped = OrderJournalFromJSONTyped;
|
|
@@ -48,10 +44,6 @@ function OrderJournalToJSON(value) {
|
|
|
48
44
|
'statusUpdatedBy': value.statusUpdatedBy,
|
|
49
45
|
'statusUpdatedAt': (value.statusUpdatedAt.toISOString()),
|
|
50
46
|
'freeCarriageThresholdReachedDate': (value.freeCarriageThresholdReachedDate === null ? null : value.freeCarriageThresholdReachedDate.toISOString()),
|
|
51
|
-
'purchasedAt': value.purchasedAt === undefined ? undefined : (value.purchasedAt.toISOString()),
|
|
52
|
-
'deliveredAt': value.deliveredAt === undefined ? undefined : (value.deliveredAt.toISOString()),
|
|
53
|
-
'committedAt': value.committedAt === undefined ? undefined : (value.committedAt.toISOString()),
|
|
54
|
-
'counterProposalAt': value.counterProposalAt === undefined ? undefined : (value.counterProposalAt.toISOString()),
|
|
55
47
|
};
|
|
56
48
|
}
|
|
57
49
|
exports.OrderJournalToJSON = OrderJournalToJSON;
|
package/package.json
CHANGED
|
@@ -28,97 +28,97 @@ export interface SaleOffer {
|
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof SaleOffer
|
|
30
30
|
*/
|
|
31
|
-
reference
|
|
31
|
+
reference?: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {SaleOfferStatus}
|
|
35
35
|
* @memberof SaleOffer
|
|
36
36
|
*/
|
|
37
|
-
status
|
|
37
|
+
status?: SaleOfferStatus;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {ProductLink}
|
|
41
41
|
* @memberof SaleOffer
|
|
42
42
|
*/
|
|
43
|
-
product
|
|
43
|
+
product?: ProductLink;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {Stock}
|
|
47
47
|
* @memberof SaleOffer
|
|
48
48
|
*/
|
|
49
|
-
stock
|
|
49
|
+
stock?: Stock;
|
|
50
50
|
/**
|
|
51
51
|
* Description of the sale offer
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof SaleOffer
|
|
54
54
|
*/
|
|
55
|
-
description
|
|
55
|
+
description?: string | null;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {AnyIdentifiedDistributionMode}
|
|
59
59
|
* @memberof SaleOffer
|
|
60
60
|
*/
|
|
61
|
-
distributionMode
|
|
61
|
+
distributionMode?: AnyIdentifiedDistributionMode;
|
|
62
62
|
/**
|
|
63
63
|
* The minimal unit price for this sale offer.
|
|
64
64
|
* @type {number}
|
|
65
65
|
* @memberof SaleOffer
|
|
66
66
|
*/
|
|
67
|
-
minimalUnitPrice
|
|
67
|
+
minimalUnitPrice?: number;
|
|
68
68
|
/**
|
|
69
|
-
* Best Rebate for this sale offer
|
|
69
|
+
* Best Rebate for this sale offer
|
|
70
70
|
* @type {number}
|
|
71
71
|
* @memberof SaleOffer
|
|
72
72
|
*/
|
|
73
|
-
bestRebate
|
|
73
|
+
bestRebate?: number;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {OwnerLink}
|
|
77
77
|
* @memberof SaleOffer
|
|
78
78
|
*/
|
|
79
|
-
owner
|
|
79
|
+
owner?: OwnerLink;
|
|
80
80
|
/**
|
|
81
81
|
* Last update date time (RFC 3339, section 5.6)
|
|
82
82
|
* @type {Date}
|
|
83
83
|
* @memberof SaleOffer
|
|
84
84
|
*/
|
|
85
|
-
updateDate
|
|
85
|
+
updateDate?: Date;
|
|
86
86
|
/**
|
|
87
87
|
* Creation date of this Content
|
|
88
88
|
* @type {Date}
|
|
89
89
|
* @memberof SaleOffer
|
|
90
90
|
*/
|
|
91
|
-
createdAt
|
|
91
|
+
createdAt?: Date;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {Images}
|
|
95
95
|
* @memberof SaleOffer
|
|
96
96
|
*/
|
|
97
|
-
images
|
|
97
|
+
images?: Images;
|
|
98
98
|
/**
|
|
99
99
|
* Rank of this ad. Only useful for laboratories ad yet
|
|
100
100
|
* @type {number}
|
|
101
101
|
* @memberof SaleOffer
|
|
102
102
|
*/
|
|
103
|
-
rank
|
|
103
|
+
rank?: number | null;
|
|
104
104
|
/**
|
|
105
105
|
* Labels of the sale offer
|
|
106
106
|
* @type {Array<string>}
|
|
107
107
|
* @memberof SaleOffer
|
|
108
108
|
*/
|
|
109
|
-
tags
|
|
109
|
+
tags?: Array<string>;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {SaleOfferJournal}
|
|
113
113
|
* @memberof SaleOffer
|
|
114
114
|
*/
|
|
115
|
-
journal
|
|
115
|
+
journal?: SaleOfferJournal;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {SaleOfferStatisticLink}
|
|
119
119
|
* @memberof SaleOffer
|
|
120
120
|
*/
|
|
121
|
-
statistic
|
|
121
|
+
statistic?: SaleOfferStatisticLink;
|
|
122
122
|
}
|
|
123
123
|
export declare function SaleOfferFromJSON(json: any): SaleOffer;
|
|
124
124
|
export declare function SaleOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOffer;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SaleOfferToJSON = exports.SaleOfferFromJSONTyped = exports.SaleOfferFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
var AnyIdentifiedDistributionMode_1 = require("./AnyIdentifiedDistributionMode");
|
|
18
19
|
var Images_1 = require("./Images");
|
|
19
20
|
var OwnerLink_1 = require("./OwnerLink");
|
|
@@ -31,22 +32,22 @@ function SaleOfferFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
32
|
return json;
|
|
32
33
|
}
|
|
33
34
|
return {
|
|
34
|
-
'reference': json['reference'],
|
|
35
|
-
'status': (0, SaleOfferStatus_1.SaleOfferStatusFromJSON)(json['status']),
|
|
36
|
-
'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
37
|
-
'stock': (0, Stock_1.StockFromJSON)(json['stock']),
|
|
38
|
-
'description': json['description'],
|
|
39
|
-
'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
|
|
40
|
-
'minimalUnitPrice': json['minimalUnitPrice'],
|
|
41
|
-
'bestRebate': json['bestRebate'],
|
|
42
|
-
'owner': (0, OwnerLink_1.OwnerLinkFromJSON)(json['owner']),
|
|
43
|
-
'updateDate': (new Date(json['updateDate'])),
|
|
44
|
-
'createdAt': (new Date(json['createdAt'])),
|
|
45
|
-
'images': (0, Images_1.ImagesFromJSON)(json['images']),
|
|
46
|
-
'rank': json['rank'],
|
|
47
|
-
'tags': json['tags'],
|
|
48
|
-
'journal': (0, SaleOfferJournal_1.SaleOfferJournalFromJSON)(json['journal']),
|
|
49
|
-
'statistic': (0, SaleOfferStatisticLink_1.SaleOfferStatisticLinkFromJSON)(json['statistic']),
|
|
35
|
+
'reference': !(0, runtime_1.exists)(json, 'reference') ? undefined : json['reference'],
|
|
36
|
+
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, SaleOfferStatus_1.SaleOfferStatusFromJSON)(json['status']),
|
|
37
|
+
'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
38
|
+
'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
|
|
39
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? json['description'] : json['description'],
|
|
40
|
+
'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? undefined : (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
|
|
41
|
+
'minimalUnitPrice': !(0, runtime_1.exists)(json, 'minimalUnitPrice') ? undefined : json['minimalUnitPrice'],
|
|
42
|
+
'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'],
|
|
43
|
+
'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : (0, OwnerLink_1.OwnerLinkFromJSON)(json['owner']),
|
|
44
|
+
'updateDate': !(0, runtime_1.exists)(json, 'updateDate') ? undefined : (new Date(json['updateDate'])),
|
|
45
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
46
|
+
'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (0, Images_1.ImagesFromJSON)(json['images']),
|
|
47
|
+
'rank': !(0, runtime_1.exists)(json, 'rank') ? json['rank'] : json['rank'],
|
|
48
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
49
|
+
'journal': !(0, runtime_1.exists)(json, 'journal') ? undefined : (0, SaleOfferJournal_1.SaleOfferJournalFromJSON)(json['journal']),
|
|
50
|
+
'statistic': !(0, runtime_1.exists)(json, 'statistic') ? undefined : (0, SaleOfferStatisticLink_1.SaleOfferStatisticLinkFromJSON)(json['statistic']),
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
exports.SaleOfferFromJSONTyped = SaleOfferFromJSONTyped;
|
|
@@ -67,8 +68,8 @@ function SaleOfferToJSON(value) {
|
|
|
67
68
|
'minimalUnitPrice': value.minimalUnitPrice,
|
|
68
69
|
'bestRebate': value.bestRebate,
|
|
69
70
|
'owner': (0, OwnerLink_1.OwnerLinkToJSON)(value.owner),
|
|
70
|
-
'updateDate': (value.updateDate.toISOString()),
|
|
71
|
-
'createdAt': (value.createdAt.toISOString()),
|
|
71
|
+
'updateDate': value.updateDate === undefined ? undefined : (value.updateDate.toISOString()),
|
|
72
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
72
73
|
'images': (0, Images_1.ImagesToJSON)(value.images),
|
|
73
74
|
'rank': value.rank,
|
|
74
75
|
'tags': value.tags,
|
|
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./SearchSaleOfferStatisticsApi"), exports);
|
|
18
|
-
__exportStar(require("./SearchUserStatisticsApi"), exports);
|
|
@@ -2,11 +2,8 @@ export * from './HttpLink';
|
|
|
2
2
|
export * from './PaginatedObject';
|
|
3
3
|
export * from './PaginatedSaleOfferStatistics';
|
|
4
4
|
export * from './PaginatedSaleOfferStatisticsAllOf';
|
|
5
|
-
export * from './PaginatedUserStatistics';
|
|
6
|
-
export * from './PaginatedUserStatisticsAllOf';
|
|
7
5
|
export * from './PagingMetadata';
|
|
8
6
|
export * from './RestError';
|
|
9
7
|
export * from './SaleOfferStatistic';
|
|
10
8
|
export * from './UserLink';
|
|
11
9
|
export * from './UserLinkAllOf';
|
|
12
|
-
export * from './UserStatistic';
|
|
@@ -18,11 +18,8 @@ __exportStar(require("./HttpLink"), exports);
|
|
|
18
18
|
__exportStar(require("./PaginatedObject"), exports);
|
|
19
19
|
__exportStar(require("./PaginatedSaleOfferStatistics"), exports);
|
|
20
20
|
__exportStar(require("./PaginatedSaleOfferStatisticsAllOf"), exports);
|
|
21
|
-
__exportStar(require("./PaginatedUserStatistics"), exports);
|
|
22
|
-
__exportStar(require("./PaginatedUserStatisticsAllOf"), exports);
|
|
23
21
|
__exportStar(require("./PagingMetadata"), exports);
|
|
24
22
|
__exportStar(require("./RestError"), exports);
|
|
25
23
|
__exportStar(require("./SaleOfferStatistic"), exports);
|
|
26
24
|
__exportStar(require("./UserLink"), exports);
|
|
27
25
|
__exportStar(require("./UserLinkAllOf"), exports);
|
|
28
|
-
__exportStar(require("./UserStatistic"), exports);
|
|
@@ -19,7 +19,6 @@ import { UserDelegatedServices } from './UserDelegatedServices';
|
|
|
19
19
|
import { UserJournal } from './UserJournal';
|
|
20
20
|
import { UserMangopayTarget } from './UserMangopayTarget';
|
|
21
21
|
import { UserRole } from './UserRole';
|
|
22
|
-
import { UserStatisticLink } from './UserStatisticLink';
|
|
23
22
|
import { UserThreads } from './UserThreads';
|
|
24
23
|
import { UserWallets } from './UserWallets';
|
|
25
24
|
/**
|
|
@@ -33,7 +32,7 @@ export interface User {
|
|
|
33
32
|
* @type {number}
|
|
34
33
|
* @memberof User
|
|
35
34
|
*/
|
|
36
|
-
id
|
|
35
|
+
id?: number;
|
|
37
36
|
/**
|
|
38
37
|
*
|
|
39
38
|
* @type {UserMangopayTarget}
|
|
@@ -45,7 +44,7 @@ export interface User {
|
|
|
45
44
|
* @type {UserRole}
|
|
46
45
|
* @memberof User
|
|
47
46
|
*/
|
|
48
|
-
role
|
|
47
|
+
role?: UserRole;
|
|
49
48
|
/**
|
|
50
49
|
* True if the user have unpaid invoice
|
|
51
50
|
* @type {boolean}
|
|
@@ -57,13 +56,13 @@ export interface User {
|
|
|
57
56
|
* @type {boolean}
|
|
58
57
|
* @memberof User
|
|
59
58
|
*/
|
|
60
|
-
holidayModeEnabled
|
|
59
|
+
holidayModeEnabled?: boolean;
|
|
61
60
|
/**
|
|
62
61
|
* User nickname
|
|
63
62
|
* @type {string}
|
|
64
63
|
* @memberof User
|
|
65
64
|
*/
|
|
66
|
-
nickname
|
|
65
|
+
nickname?: string;
|
|
67
66
|
/**
|
|
68
67
|
*
|
|
69
68
|
* @type {boolean}
|
|
@@ -171,7 +170,7 @@ export interface User {
|
|
|
171
170
|
* @type {HttpLink}
|
|
172
171
|
* @memberof User
|
|
173
172
|
*/
|
|
174
|
-
socialNetworks
|
|
173
|
+
socialNetworks?: HttpLink;
|
|
175
174
|
/**
|
|
176
175
|
*
|
|
177
176
|
* @type {string}
|
|
@@ -195,7 +194,7 @@ export interface User {
|
|
|
195
194
|
* @type {UserDelegatedServices}
|
|
196
195
|
* @memberof User
|
|
197
196
|
*/
|
|
198
|
-
delegatedServices
|
|
197
|
+
delegatedServices?: UserDelegatedServices;
|
|
199
198
|
/**
|
|
200
199
|
*
|
|
201
200
|
* @type {HttpLink}
|
|
@@ -207,13 +206,13 @@ export interface User {
|
|
|
207
206
|
* @type {HttpLink}
|
|
208
207
|
* @memberof User
|
|
209
208
|
*/
|
|
210
|
-
transport
|
|
209
|
+
transport?: HttpLink;
|
|
211
210
|
/**
|
|
212
211
|
* Payment delay in days
|
|
213
212
|
* @type {number}
|
|
214
213
|
* @memberof User
|
|
215
214
|
*/
|
|
216
|
-
paymentDelay
|
|
215
|
+
paymentDelay?: number | null;
|
|
217
216
|
/**
|
|
218
217
|
*
|
|
219
218
|
* @type {HttpLink}
|
|
@@ -292,18 +291,6 @@ export interface User {
|
|
|
292
291
|
* @memberof User
|
|
293
292
|
*/
|
|
294
293
|
journal?: UserJournal;
|
|
295
|
-
/**
|
|
296
|
-
*
|
|
297
|
-
* @type {Array<string>}
|
|
298
|
-
* @memberof User
|
|
299
|
-
*/
|
|
300
|
-
badges?: Array<string>;
|
|
301
|
-
/**
|
|
302
|
-
*
|
|
303
|
-
* @type {UserStatisticLink}
|
|
304
|
-
* @memberof User
|
|
305
|
-
*/
|
|
306
|
-
statistic: UserStatisticLink;
|
|
307
294
|
}
|
|
308
295
|
export declare function UserFromJSON(json: any): User;
|
|
309
296
|
export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User;
|
package/user/src/models/User.js
CHANGED
|
@@ -25,7 +25,6 @@ var UserDelegatedServices_1 = require("./UserDelegatedServices");
|
|
|
25
25
|
var UserJournal_1 = require("./UserJournal");
|
|
26
26
|
var UserMangopayTarget_1 = require("./UserMangopayTarget");
|
|
27
27
|
var UserRole_1 = require("./UserRole");
|
|
28
|
-
var UserStatisticLink_1 = require("./UserStatisticLink");
|
|
29
28
|
var UserThreads_1 = require("./UserThreads");
|
|
30
29
|
var UserWallets_1 = require("./UserWallets");
|
|
31
30
|
function UserFromJSON(json) {
|
|
@@ -37,12 +36,12 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
36
|
return json;
|
|
38
37
|
}
|
|
39
38
|
return {
|
|
40
|
-
'id': json['id'],
|
|
39
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
41
40
|
'mangopayTarget': !(0, runtime_1.exists)(json, 'mangopayTarget') ? undefined : (0, UserMangopayTarget_1.UserMangopayTargetFromJSON)(json['mangopayTarget']),
|
|
42
|
-
'role': (0, UserRole_1.UserRoleFromJSON)(json['role']),
|
|
41
|
+
'role': !(0, runtime_1.exists)(json, 'role') ? undefined : (0, UserRole_1.UserRoleFromJSON)(json['role']),
|
|
43
42
|
'haveUnpaid': !(0, runtime_1.exists)(json, 'haveUnpaid') ? undefined : json['haveUnpaid'],
|
|
44
|
-
'holidayModeEnabled': json['holidayModeEnabled'],
|
|
45
|
-
'nickname': json['nickname'],
|
|
43
|
+
'holidayModeEnabled': !(0, runtime_1.exists)(json, 'holidayModeEnabled') ? undefined : json['holidayModeEnabled'],
|
|
44
|
+
'nickname': !(0, runtime_1.exists)(json, 'nickname') ? undefined : json['nickname'],
|
|
46
45
|
'soletrader': !(0, runtime_1.exists)(json, 'soletrader') ? undefined : json['soletrader'],
|
|
47
46
|
'gender': !(0, runtime_1.exists)(json, 'gender') ? json['gender'] : (0, Gender_1.GenderFromJSON)(json['gender']),
|
|
48
47
|
'firstname': !(0, runtime_1.exists)(json, 'firstname') ? undefined : json['firstname'],
|
|
@@ -60,14 +59,14 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
59
|
'kycLevel': !(0, runtime_1.exists)(json, 'kycLevel') ? undefined : (0, KycLevel_1.KycLevelFromJSON)(json['kycLevel']),
|
|
61
60
|
'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
|
|
62
61
|
'company': !(0, runtime_1.exists)(json, 'company') ? undefined : (0, UserCompany_1.UserCompanyFromJSON)(json['company']),
|
|
63
|
-
'socialNetworks': (0, HttpLink_1.HttpLinkFromJSON)(json['socialNetworks']),
|
|
62
|
+
'socialNetworks': !(0, runtime_1.exists)(json, 'socialNetworks') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['socialNetworks']),
|
|
64
63
|
'accountantEmail': !(0, runtime_1.exists)(json, 'accountantEmail') ? json['accountantEmail'] : json['accountantEmail'],
|
|
65
64
|
'additionalEmails': !(0, runtime_1.exists)(json, 'additionalEmails') ? undefined : json['additionalEmails'],
|
|
66
65
|
'documents': !(0, runtime_1.exists)(json, 'documents') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['documents']),
|
|
67
|
-
'delegatedServices': (0, UserDelegatedServices_1.UserDelegatedServicesFromJSON)(json['delegatedServices']),
|
|
66
|
+
'delegatedServices': !(0, runtime_1.exists)(json, 'delegatedServices') ? undefined : (0, UserDelegatedServices_1.UserDelegatedServicesFromJSON)(json['delegatedServices']),
|
|
68
67
|
'forbiddenSellers': !(0, runtime_1.exists)(json, 'forbiddenSellers') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['forbiddenSellers']),
|
|
69
|
-
'transport': (0, HttpLink_1.HttpLinkFromJSON)(json['transport']),
|
|
70
|
-
'paymentDelay': json['paymentDelay'],
|
|
68
|
+
'transport': !(0, runtime_1.exists)(json, 'transport') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['transport']),
|
|
69
|
+
'paymentDelay': !(0, runtime_1.exists)(json, 'paymentDelay') ? json['paymentDelay'] : json['paymentDelay'],
|
|
71
70
|
'favoriteLaboratoryStores': !(0, runtime_1.exists)(json, 'favoriteLaboratoryStores') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['favoriteLaboratoryStores']),
|
|
72
71
|
'pickupEnabled': !(0, runtime_1.exists)(json, 'pickupEnabled') ? undefined : json['pickupEnabled'],
|
|
73
72
|
'threads': !(0, runtime_1.exists)(json, 'threads') ? undefined : (0, UserThreads_1.UserThreadsFromJSON)(json['threads']),
|
|
@@ -81,8 +80,6 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
80
|
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
82
81
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
83
82
|
'journal': !(0, runtime_1.exists)(json, 'journal') ? undefined : (0, UserJournal_1.UserJournalFromJSON)(json['journal']),
|
|
84
|
-
'badges': !(0, runtime_1.exists)(json, 'badges') ? undefined : json['badges'],
|
|
85
|
-
'statistic': (0, UserStatisticLink_1.UserStatisticLinkFromJSON)(json['statistic']),
|
|
86
83
|
};
|
|
87
84
|
}
|
|
88
85
|
exports.UserFromJSONTyped = UserFromJSONTyped;
|
|
@@ -138,8 +135,6 @@ function UserToJSON(value) {
|
|
|
138
135
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
139
136
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
140
137
|
'journal': (0, UserJournal_1.UserJournalToJSON)(value.journal),
|
|
141
|
-
'badges': value.badges,
|
|
142
|
-
'statistic': (0, UserStatisticLink_1.UserStatisticLinkToJSON)(value.statistic),
|
|
143
138
|
};
|
|
144
139
|
}
|
|
145
140
|
exports.UserToJSON = UserToJSON;
|
|
@@ -51,8 +51,6 @@ export * from './UserRuleAttributeEnum';
|
|
|
51
51
|
export * from './UserRuleComparatorEnum';
|
|
52
52
|
export * from './UserRuleCreationParameters';
|
|
53
53
|
export * from './UserSocialNetwork';
|
|
54
|
-
export * from './UserStatisticLink';
|
|
55
|
-
export * from './UserStatisticLinkAllOf';
|
|
56
54
|
export * from './UserThreads';
|
|
57
55
|
export * from './UserUpdateParameters';
|
|
58
56
|
export * from './UserWalletLink';
|
package/user/src/models/index.js
CHANGED
|
@@ -67,8 +67,6 @@ __exportStar(require("./UserRuleAttributeEnum"), exports);
|
|
|
67
67
|
__exportStar(require("./UserRuleComparatorEnum"), exports);
|
|
68
68
|
__exportStar(require("./UserRuleCreationParameters"), exports);
|
|
69
69
|
__exportStar(require("./UserSocialNetwork"), exports);
|
|
70
|
-
__exportStar(require("./UserStatisticLink"), exports);
|
|
71
|
-
__exportStar(require("./UserStatisticLinkAllOf"), exports);
|
|
72
70
|
__exportStar(require("./UserThreads"), exports);
|
|
73
71
|
__exportStar(require("./UserUpdateParameters"), exports);
|
|
74
72
|
__exportStar(require("./UserWalletLink"), exports);
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-pharmaide-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 { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
-
import { PaginatedUserStatistics, UserStatistic } from '../models';
|
|
14
|
-
export interface GetUserStatisticRequest {
|
|
15
|
-
userStatisticId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface GetUserStatisticsRequest {
|
|
18
|
-
userIdEq?: Array<number>;
|
|
19
|
-
p?: number;
|
|
20
|
-
pp?: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* no description
|
|
24
|
-
*/
|
|
25
|
-
export declare class SearchUserStatisticsApi extends BaseAPI {
|
|
26
|
-
/**
|
|
27
|
-
* Get a user statistic
|
|
28
|
-
*/
|
|
29
|
-
getUserStatisticRaw(requestParameters: GetUserStatisticRequest): Promise<ApiResponse<UserStatistic | BlobWithMeta>>;
|
|
30
|
-
/**
|
|
31
|
-
* Get a user statistic
|
|
32
|
-
*/
|
|
33
|
-
getUserStatistic(requestParameters: GetUserStatisticRequest): Promise<UserStatistic | BlobWithMeta>;
|
|
34
|
-
/**
|
|
35
|
-
* Search users statistics
|
|
36
|
-
*/
|
|
37
|
-
getUserStatisticsRaw(requestParameters: GetUserStatisticsRequest): Promise<ApiResponse<PaginatedUserStatistics | BlobWithMeta>>;
|
|
38
|
-
/**
|
|
39
|
-
* Search users statistics
|
|
40
|
-
*/
|
|
41
|
-
getUserStatistics(requestParameters: GetUserStatisticsRequest): Promise<PaginatedUserStatistics | BlobWithMeta>;
|
|
42
|
-
}
|