@uniteverses/shared 1.0.51 → 1.0.53
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APPLICANT_STATUS = exports.CONTACT_PHONE = exports.COMMENT_MAX_INDENT_PX = exports.COMMENT_INDENT_PX = exports.COMMENT_MAX_REPLY_DEPTH = exports.TOPIC_NESTING_DEPTH = exports.FOOD_GROUP_NESTING_DEPTH = exports.POSTS_PAGE_SIZE = void 0;
|
|
3
|
+
exports.APPLICANT_STATUS = exports.CONTACT_PHONE = exports.COMMENT_MAX_INDENT_PX = exports.COMMENT_INDENT_PX = exports.COMMENT_MAX_REPLY_DEPTH = exports.TOPIC_NESTING_DEPTH = exports.FOOD_GROUP_NESTING_DEPTH = exports.DEALS_PAGE_SIZE = exports.POSTS_PAGE_SIZE = void 0;
|
|
4
4
|
// Pagination
|
|
5
5
|
exports.POSTS_PAGE_SIZE = 20;
|
|
6
|
+
exports.DEALS_PAGE_SIZE = 20;
|
|
6
7
|
// Food group recursive query depth
|
|
7
8
|
exports.FOOD_GROUP_NESTING_DEPTH = 3;
|
|
8
9
|
// Topic nesting depth
|
|
@@ -183,6 +183,56 @@ export interface Post {
|
|
|
183
183
|
comments: number;
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
+
export interface DealTranslation {
|
|
187
|
+
id: string;
|
|
188
|
+
dealId: string;
|
|
189
|
+
languageId: string;
|
|
190
|
+
title: string;
|
|
191
|
+
body: string | null;
|
|
192
|
+
createdAt: string | Date;
|
|
193
|
+
language: Language;
|
|
194
|
+
}
|
|
195
|
+
export interface Deal {
|
|
196
|
+
id: string;
|
|
197
|
+
organizationId: string;
|
|
198
|
+
imageStoragePath?: string | null;
|
|
199
|
+
imageUrl?: string | null;
|
|
200
|
+
previousPrice: string | null;
|
|
201
|
+
currentPrice: string | null;
|
|
202
|
+
percentOff: number | null;
|
|
203
|
+
flatOff: string | null;
|
|
204
|
+
bogoBuy: number | null;
|
|
205
|
+
bogoGet: number | null;
|
|
206
|
+
startsAt: string | Date | null;
|
|
207
|
+
endsAt: string | Date | null;
|
|
208
|
+
createdAt: string | Date;
|
|
209
|
+
deletedAt: string | Date | null;
|
|
210
|
+
organization?: Organization | null;
|
|
211
|
+
translations?: DealTranslation[];
|
|
212
|
+
}
|
|
213
|
+
export interface CreateDealInput {
|
|
214
|
+
organizationId: string;
|
|
215
|
+
imageStoragePath?: string | null;
|
|
216
|
+
previousPrice?: string | null;
|
|
217
|
+
currentPrice?: string | null;
|
|
218
|
+
percentOff?: number | null;
|
|
219
|
+
flatOff?: string | null;
|
|
220
|
+
bogoBuy?: number | null;
|
|
221
|
+
bogoGet?: number | null;
|
|
222
|
+
startsAt?: string | null;
|
|
223
|
+
endsAt?: string | null;
|
|
224
|
+
}
|
|
225
|
+
export interface UpdateDealInput {
|
|
226
|
+
imageStoragePath?: string | null;
|
|
227
|
+
previousPrice?: string | null;
|
|
228
|
+
currentPrice?: string | null;
|
|
229
|
+
percentOff?: number | null;
|
|
230
|
+
flatOff?: string | null;
|
|
231
|
+
bogoBuy?: number | null;
|
|
232
|
+
bogoGet?: number | null;
|
|
233
|
+
startsAt?: string | null;
|
|
234
|
+
endsAt?: string | null;
|
|
235
|
+
}
|
|
186
236
|
export interface CreateCommentInput {
|
|
187
237
|
body: string;
|
|
188
238
|
parentCommentId?: string;
|