block-obj-builder
Version:
Block object builder
612 lines (611 loc) • 20.6 kB
TypeScript
export default interface UserObj {
version: number;
lazyUpdateProfile?: boolean;
created?: Date;
firstName?: string;
lastName?: string;
fullName?: string;
gender?: string;
locality?: {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
};
mobileNumber?: string;
homeNumber?: string;
client: string;
lastActive?: Date;
activeChannel?: string;
onBrowserCall?: boolean;
intervention?: {
id: string;
started?: Date;
agent?: string;
channel?: string;
userChannel?: string;
department?: string;
awaitingResponse?: boolean;
};
session: {
status: string;
forms: {
formFieldCallback?: {
formId: string;
args: any;
};
inputFailures?: number;
localityBuilder?: {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
};
quoteType?: {
electricity?: boolean;
gas?: boolean;
};
};
nextInterventionChannel?: string;
nextInterventionDepartmentId?: string;
onReply?: {
blockId: string;
args?: any;
};
onReplyChoice?: Array<{
title?: {
any?: string;
en?: string;
nl?: string;
cy?: string;
it?: string;
};
selectedTitle?: string;
action: {
type: string;
value?: any;
};
profile?: any;
userStatus?: string;
formField?: boolean;
session?: any;
functionArgs?: any;
persistentMenu?: boolean;
selectBlock?: {
id: string;
};
}>;
apiTokens: Array<{
token: string;
created: Date;
ttl: number;
}>;
intentMap?: any;
userSelectedLang?: string;
};
profile: {
common?: {
gdpr?: boolean;
rating?: number;
feedback?: string;
clientDefined: any;
locality?: {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
};
fbAdId?: string;
unsubscribed?: boolean;
email?: string;
averageSentiment?: {
label: string;
score: number;
history: Array<{
eventId: string;
calculatedScore: number;
eventCreated: Date;
}>;
};
formSetFirstName?: boolean;
formSetLastName?: boolean;
dynamicFormFields: any;
};
clients?: {
aa: {
customerType?: string;
learnerType?: string;
locality?: {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
};
transmission?: string;
advertName?: string;
};
bsm: {
customerType?: string;
learnerType?: string;
locality?: {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
};
transmission?: string;
advertName?: string;
};
'monmouth-county-council': {
locality?: {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
};
uprn?: string;
};
'monmouth-voice': {
binDays?: Array<{
title: string;
date?: string;
info?: string;
}>;
};
carmarthenshire: {
fullSummary?: string;
description?: string;
assignedTo?: string;
category?: string;
application?: string;
computerName?: string;
extOrganisation?: string;
extOrganisationList?: string;
isThisIrssueOrReq?: string;
konicaSupportCall?: string;
location?: string;
phoneNumber?: string;
preferredContactMethod?: string;
procurementCategory?: string;
selfServiceCall?: string;
subTeam?: string;
team?: string;
};
'carmarthenshire-hwb': {
ref?: string;
locality?: {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
};
rentSurname?: string;
rentBalance?: string;
};
bridgend: {
house?: string;
postcode?: string;
schoolType?: string;
registerId?: number;
townId?: number;
areaId?: number;
beds?: number;
bandId?: number;
};
rugby: {
council?: string;
uprn?: string;
missedCollection?: string;
};
'prostate-cymru': {
healthCheck?: {
incompleteEmptying?: number;
frequency?: number;
intermittency?: number;
urgency?: number;
weakStream?: number;
straining?: number;
nocturia?: number;
};
};
'visit-newport-beach': {
searchType?: string;
serviceParams: {
type?: string;
concierge?: boolean;
amenities?: string;
limit?: number;
offset?: number;
categories?: string;
startdate?: string;
enddate?: string;
neighborhood?: string;
price?: string;
lat?: number;
lon?: number;
orderby?: string;
order?: string;
};
};
'west-berkshire-voice': {
binDays?: Array<{
title: string;
date?: string;
info?: string;
}>;
};
'pfp-energy': {
customerSector?: string;
authenticated?: boolean;
accountNumber?: string;
oneOffBillPayments: Array<{
billId: number;
amount: number;
billPaidOn: Date;
}>;
pendingOneOffBillPayment?: {
billId?: number;
amount?: number;
};
accountDetails?: {
lastUpdated?: string;
id: number;
type: string;
name: string;
number: string;
currency: string;
fromDt: string;
toDt?: string;
createdDttm: string;
closedDttm?: string;
cancelled?: boolean;
cancelledDttm?: string;
balance?: number;
billingAddress?: {
careOf?: string;
address1?: string;
address2?: string;
address3?: string;
address4?: string;
address5?: string;
postcode?: string;
};
billDelivery?: string;
paymentMethodType?: string;
accountClass?: string;
billingCycle?: string;
parentAccountId?: number;
links: {
self: string;
customer: string;
contacts: string;
bills: string;
credits: string;
paymentPlans: string;
payments: string;
paymentMethods: string;
agreements: string;
paymentSchedulePeriods: string;
'paymentSchedules/suggestedPaymentAmount'?: string;
paymentSchedulesSuggestedPaymentAmount?: string;
tickets: string;
productDetails: string;
propertys: string;
};
};
cancelSwitch: {
confirmation?: boolean;
feedback?: string;
};
meterReadings: Array<{
typeOfMeter?: string;
meterSerialNo?: string;
meterReading?: number;
meterPointId?: number;
confirmed?: boolean;
}>;
meterReadingBuilder: {
typeOfMeter?: string;
meterSerialNo?: string;
meterReading?: number;
meterPointId?: number;
confirmed?: boolean;
};
bizJoining: {
quoteType?: {
electricity?: boolean;
gas?: boolean;
};
usage?: {
gasUsage?: number;
gasConfirmed?: boolean;
electricityUsage?: number;
electricityConfirmed?: boolean;
usageUnknown?: boolean;
};
};
smartMeters: {
installed?: boolean;
question?: string;
};
movingOut: {
movingDate?: Date;
meterReadingReminder?: boolean;
takeUsWithYou?: boolean;
};
directDebit: {
accountName?: string;
accountNumber?: string;
sortCode?: string;
};
movingIn: {
currentSupplier?: boolean;
movingDate?: Date;
homePurchaseType?: string;
proofOfHouse?: string;
};
prepaymentMeterError: {
code?: string;
};
paymentIncrease: {
setDirectDebitBackUp?: boolean;
};
nearOrOverduePayment: {
billAmount?: number;
billDate?: string;
};
billingAddress: {
locality?: {
address?: {
address1?: string;
address2?: string;
district?: string;
city?: string;
region?: string;
postalCode?: string;
postalAreaCode?: string;
country?: string;
};
countryCode?: string;
language?: string;
lat?: number;
lon?: number;
easting?: number;
northing?: number;
radius?: number;
name?: string;
uprn?: string;
isPostcodeUpdated?: boolean;
postcodeConfirmed?: boolean;
setByForm?: boolean;
rejected?: boolean;
};
confirmed?: boolean;
};
viewPayments?: {
recentPayments?: string;
};
tariffChangesStartDate?: string;
creditDetails: {
creditAmount?: number;
balance?: number;
refundDate?: string;
finalBillDate?: string;
};
};
'resolve-demo': {
voiceIt?: {
userId?: string;
numVoiceEnrollments?: number;
};
};
'wbb-banking': {
'Current Account'?: number;
'Savings Account'?: number;
fromAccount?: string;
toAccount?: string;
amount?: number;
appointment?: string;
};
'wbb-council': {
sport?: string;
destination?: string;
maxPrice?: string;
};
'wbb-tickit': {
fullSummary?: string;
description?: string;
assignedTo?: string;
category?: string;
application?: string;
computerName?: string;
extOrganisation?: string;
extOrganisationList?: string;
isThisIrssueOrReq?: string;
konicaSupportCall?: string;
location?: string;
phoneNumber?: string;
preferredContactMethod?: string;
procurementCategory?: string;
selfServiceCall?: string;
subTeam?: string;
team?: string;
};
'testing-client': {
favouriteColour?: string;
};
};
};
channels: {
messenger?: {
avatar?: string;
id?: string;
};
microsoft?: {
id?: string;
tenantId?: string;
aadId?: string;
conversationRef?: {
activityId?: string;
user?: any;
bot?: any;
conversation?: any;
locale?: string;
channelId?: string;
serviceUrl?: string;
};
};
jovo?: {
id?: string;
alexa?: {
apiEndpoint: string;
apiAccessToken: string;
deviceId: string;
};
googleAssistant: {
localityGiven?: boolean;
};
};
api?: {
avatar?: string;
};
twilio?: {
phone?: string;
numVoiceEnrollments?: number;
};
};
_id?: any;
}