@dodi-smart/ttlock-graphql-api
Version:
TTLock GraphQL API
63 lines • 3.14 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const builder_1 = require("../builder");
builder_1.builder.objectType('TTLockPasscode', {
fields: (t) => ({
keyboardPwdId: t.exposeInt('keyboardPwdId', {
nullable: false,
description: 'passcode id'
}),
lockId: t.exposeInt('lockId', {
nullable: false,
description: 'Lock ID, generated by Lock init'
}),
keyboardPwd: t.exposeString('keyboardPwd', {
nullable: false,
description: 'passcode'
}),
keyboardPwdName: t.exposeString('keyboardPwdName', {
nullable: false,
description: 'passcode name'
}),
keyboardPwdType: t.exposeString('keyboardPwdType', {
nullable: false,
description: [
'One-time 1 This code only valid for once within 6 hours from the Start Time',
'Permanent 2 This code must be used at least once within 24 Hours after the Start Time, Or it will be invalidated',
'Period 3 This code must be used at least once within 24 Hours after the Start Time, Or it will be invalidated',
'Delete 4 This code will delete all other codes',
'Weekend Cyclic 5 This code is valid during the time period at the weekend',
'Daily Cyclic 6 This code is valid during the time period everyday',
'Workday Cyclic 7 This code is valid during the time period on workdays',
'Monday Cyclic 8 This code is valid during the time period on Mondays',
'Tuesday Cyclic 9 This code is valid during the time period on Tuesdays',
'Wednesday Cyclic 10 This code is valid during the time period on Wednesdays',
'Thursday Cyclic 11 This code is valid during the time period on Thursdays',
'Friday Cyclic 12 This code is valid during the time period on Fridays',
'Saturday Cyclic 13 This code is valid during the time period on Saturdays',
'Sunday Cyclic 14 This code is valid during the time period on Sundays'
].join('\n')
}),
startDate: t.exposeFloat('startDate', {
nullable: false,
description: 'The time when it becomes valid (timestamp in millisecond)'
}),
endDate: t.exposeFloat('endDate', {
nullable: false,
description: 'The time when it is expired (timestamp in millisecond)'
}),
sendDate: t.exposeFloat('sendDate', {
nullable: false,
description: 'The time when it is expired (timestamp in millisecond)'
}),
isCustom: t.exposeInt('isCustom', {
nullable: false,
description: '1 - yes, 0 - no'
}),
senderUsername: t.exposeString('senderUsername', {
nullable: false,
description: "The sender's username"
})
})
});
//# sourceMappingURL=ttlock-passcode.js.map