-
Notifications
You must be signed in to change notification settings - Fork 2
/
offer.model.ts
48 lines (47 loc) · 1.24 KB
/
offer.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// All properties sorted alphabetically.
export type Offer = {
categoryID: number;
categoryName?: string;
categorySlug?: string;
chapterName?: string;
chapterSlug?: string;
moreInfo?: string;
offerAddress?: string;
offerDescription: string;
offerDoYouNeedToKnow?: string;
offerEmails: string[];
offerIcon: string;
offerID: number;
offerLinks: string[];
offerName?: string;
offerNumbers: string[];
offerOpeningHoursWeekdays?: string;
offerOpeningHoursWeekends?: string;
offerVisible: boolean;
slug?: string;
subCategoryID: number;
subCategoryName?: string;
subCategorySlug?: string;
};
// These labels should be used anywhere in the sheets' column-header, prefixed with a `#`
// For example: "Phone-number(s) (1 digits-only number per line) #PHONENUMBERS"
// All properties sorted alphabetically.
export enum OfferCol {
address = 'ADDRESS',
category = 'CATEGORY',
chapter = 'CHAPTER',
description = 'DESCRIPTION',
emails = 'EMAILS',
icon = 'ICON',
id = 'ID',
moreInfo = 'MOREINFO',
name = 'NAME',
needToKnow = 'NEEDTOKNOW',
openWeek = 'OPENWEEK',
openWeekend = 'OPENWEEKEND',
phoneNumbers = 'PHONENUMBERS',
slug = 'SLUG',
subCategory = 'SUBCATEGORY',
visible = 'VISIBLE',
webUrls = 'WEBURLS',
}