@exclusive-website/types 1.2.5 → 1.2.7
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/dist/types.d.ts +63 -0
- package/package.json +1 -1
- package/src/types.ts +72 -0
package/dist/types.d.ts
CHANGED
|
@@ -47,6 +47,22 @@ export interface ModelDTO {
|
|
|
47
47
|
schedule: ScheduleDTO;
|
|
48
48
|
}
|
|
49
49
|
export type CardDTO = Pick<ModelDTO, "id" | "media" | "identity" | "location" | "physical" | "listing">;
|
|
50
|
+
export interface ModelListingDTO {
|
|
51
|
+
id: string;
|
|
52
|
+
listingId: string;
|
|
53
|
+
nickname: string;
|
|
54
|
+
city: string;
|
|
55
|
+
image: string[];
|
|
56
|
+
activityStatus: "active" | "inactive";
|
|
57
|
+
approved: boolean;
|
|
58
|
+
expirationTime: number;
|
|
59
|
+
listingExpired: boolean;
|
|
60
|
+
toppedDuration: number;
|
|
61
|
+
toppedExpired: boolean;
|
|
62
|
+
views: number;
|
|
63
|
+
creationDate: string;
|
|
64
|
+
inModelDashboard: boolean;
|
|
65
|
+
}
|
|
50
66
|
export type ActivityStatus = "active" | "inactive";
|
|
51
67
|
export interface ModelListingDTO {
|
|
52
68
|
id: string;
|
|
@@ -128,3 +144,50 @@ export interface ToppedPricingDTO {
|
|
|
128
144
|
chargingOptions: ChargingOption[];
|
|
129
145
|
};
|
|
130
146
|
}
|
|
147
|
+
export interface PaymentOptionDTO {
|
|
148
|
+
id: string;
|
|
149
|
+
title: string;
|
|
150
|
+
description: string;
|
|
151
|
+
images?: {
|
|
152
|
+
url: string;
|
|
153
|
+
alt: string;
|
|
154
|
+
width: number;
|
|
155
|
+
height: number;
|
|
156
|
+
}[];
|
|
157
|
+
}
|
|
158
|
+
export interface ChargingOption {
|
|
159
|
+
cost: number;
|
|
160
|
+
currency: SupportedCurrency;
|
|
161
|
+
duration: string;
|
|
162
|
+
id?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface FreeOfChargeOption {
|
|
165
|
+
amount: string;
|
|
166
|
+
}
|
|
167
|
+
export interface InfoPoint {
|
|
168
|
+
point: string;
|
|
169
|
+
}
|
|
170
|
+
export interface ListingPricingDTO {
|
|
171
|
+
id: string;
|
|
172
|
+
title: string;
|
|
173
|
+
description: string;
|
|
174
|
+
chargingOptions: ChargingOption[];
|
|
175
|
+
infoPoints: InfoPoint[];
|
|
176
|
+
}
|
|
177
|
+
export interface ToppedPricingDTO {
|
|
178
|
+
id: string;
|
|
179
|
+
title: string;
|
|
180
|
+
description: string;
|
|
181
|
+
displayFreeOfChargeOption: boolean;
|
|
182
|
+
freeOfChargeOption?: FreeOfChargeOption;
|
|
183
|
+
generalTopped: {
|
|
184
|
+
title: string;
|
|
185
|
+
description: string;
|
|
186
|
+
chargingOptions: ChargingOption[];
|
|
187
|
+
};
|
|
188
|
+
countyTopped: {
|
|
189
|
+
title: string;
|
|
190
|
+
description: string;
|
|
191
|
+
chargingOptions: ChargingOption[];
|
|
192
|
+
};
|
|
193
|
+
}
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -53,6 +53,23 @@ export type CardDTO = Pick<
|
|
|
53
53
|
"id" | "media" | "identity" | "location" | "physical" | "listing"
|
|
54
54
|
>;
|
|
55
55
|
|
|
56
|
+
export interface ModelListingDTO {
|
|
57
|
+
id: string;
|
|
58
|
+
listingId: string;
|
|
59
|
+
nickname: string;
|
|
60
|
+
city: string;
|
|
61
|
+
image: string[];
|
|
62
|
+
activityStatus: "active" | "inactive";
|
|
63
|
+
approved: boolean;
|
|
64
|
+
expirationTime: number;
|
|
65
|
+
listingExpired: boolean;
|
|
66
|
+
toppedDuration: number;
|
|
67
|
+
toppedExpired: boolean;
|
|
68
|
+
views: number;
|
|
69
|
+
creationDate: string;
|
|
70
|
+
inModelDashboard: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
56
73
|
export type ActivityStatus = "active" | "inactive";
|
|
57
74
|
|
|
58
75
|
export interface ModelListingDTO {
|
|
@@ -132,6 +149,61 @@ export interface ListingPricingDTO {
|
|
|
132
149
|
infoPoints: InfoPoint[];
|
|
133
150
|
}
|
|
134
151
|
|
|
152
|
+
export interface ToppedPricingDTO {
|
|
153
|
+
id: string;
|
|
154
|
+
title: string;
|
|
155
|
+
description: string;
|
|
156
|
+
displayFreeOfChargeOption: boolean;
|
|
157
|
+
freeOfChargeOption?: FreeOfChargeOption;
|
|
158
|
+
generalTopped: {
|
|
159
|
+
title: string;
|
|
160
|
+
description: string;
|
|
161
|
+
chargingOptions: ChargingOption[];
|
|
162
|
+
}
|
|
163
|
+
countyTopped: {
|
|
164
|
+
title: string;
|
|
165
|
+
description: string;
|
|
166
|
+
chargingOptions: ChargingOption[];
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
//PAYMENT
|
|
171
|
+
export interface PaymentOptionDTO {
|
|
172
|
+
id: string;
|
|
173
|
+
title: string;
|
|
174
|
+
description: string;
|
|
175
|
+
images?:
|
|
176
|
+
{
|
|
177
|
+
url: string,
|
|
178
|
+
alt: string,
|
|
179
|
+
width: number,
|
|
180
|
+
height: number,
|
|
181
|
+
}[],
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface ChargingOption {
|
|
185
|
+
cost: number;
|
|
186
|
+
currency: SupportedCurrency;
|
|
187
|
+
duration: string;
|
|
188
|
+
id?: string; //id for radio
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface FreeOfChargeOption {
|
|
192
|
+
amount: string; // "bez"
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface InfoPoint {
|
|
196
|
+
point: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface ListingPricingDTO {
|
|
200
|
+
id: string;
|
|
201
|
+
title: string;
|
|
202
|
+
description: string;
|
|
203
|
+
chargingOptions: ChargingOption[];
|
|
204
|
+
infoPoints: InfoPoint[];
|
|
205
|
+
}
|
|
206
|
+
|
|
135
207
|
export interface ToppedPricingDTO {
|
|
136
208
|
id: string;
|
|
137
209
|
title: string;
|