@uniteverses/shared 1.0.51 → 1.0.52

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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [