1
0
mirror of https://github.com/limosek/zaf-plugins.git synced 2024-11-01 08:17:19 +01:00
limosek-zaf-plugins/booked/bookedapiconfig.php

73 lines
2.2 KiB
PHP

<?php
/**
* Title: booked-php-api-client
* Ver: 0.0.1 Beta
* By: Ryan C Crawford
* Email: ryan@mytrueserenity.com
*
* This file is part of Booked PHP Client Libary.
* There are other files that make up the whole libary
* and that are dependent on this file or that this file is dependent on.
*
*
*/
// Endpoints
const AUTHENTICATE = '/Authentication/Authenticate';
const GETRESOURCES = '/Resources/';
const GETRESERVATIONS ='/Reservations/';
const FILTERRESERVATION = '/Reservations';
const GETAVAILABILITY = '/Resources/Availability';
const GETACCESSORY = '/Accessories/';
const GETCATATTRIBUTE = '/Attributes/Category/';
const GETATTRIBUTE = '/Attributes/';
const GETGROUPS = '/Groups/';
const RESERVATIONS = '/Reservations/';
const SCHEDULES = '/Schedules/';
const SLOTS = '/Slots';
const STATUS = '/Status';
const STATUSREASONS = '/Reasons';
const RESOURCETYPES = '/Types';
const USERS = '/Users/';
const INTERVALHOURS = 'hours';
const INTERVALMINUTES = 'minutes';
const INTERVALDAYS = 'days';
// updateScope are this|full|future
const UPDATESCOPE_THIS = 'this';
const UPDATESCOPE_FULL = 'full';
const UPDATESCOPE_FUTURE = 'future';
// Recurrance Rule Const
//"recurrenceRule":{"type":"daily|monthly|none|weekly|yearly","interval":3,"monthlyType":"dayOfMonth|dayOfWeek|null","weekdays":[0,1,2,3,4,5,6],"repeatTerminationDate":"2015-09-16T20:51:36-0700"}
const RECURRENCETYPE_DAILY = 'daily';
const RECURRENCETYPE_MONTHLY = 'monthly';
const RECURRENCETYPE_NONE = 'none';
const RECURRENCETYPE_WEEKLY = 'weekly';
const RECURRENCETYPE_YEARLY = 'yearly';
const RECURRENCE_MONTHLY_TYPE_DAYOFMONTH = 'dayOfMonth';
const RECURRENCE_MONTHLY_TYPE_DAYOFWEEK = 'dayOfWeek';
const RECURRENCE_MONTHLY_TYPE_NULL = null;
const RECURRENCE_WEEKDAY_SUN = 0;
const RECURRENCE_WEEKDAY_MON = 1;
const RECURRENCE_WEEKDAY_TUE = 2;
const RECURRENCE_WEEKDAY_WED = 3;
const RECURRENCE_WEEKDAY_THR = 4;
const RECURRENCE_WEEKDAY_FRI = 5;
const RECURRENCE_WEEKDAY_SAT = 6;
// Attibute Categories
const ATT_CAT_RESERVATION = 1;
const ATT_CAT_USER = 2;
const ATT_CAT_RESOURCE = 4;
const ATT_CAT_RESOURCE_TYPE = 5;
// Attribute Types
const SINGLE_LINE_TEXT = 1;
const SELECT_LIST = 3;
const MULTI_LINE_TEXT = 2;
const CHECK_BOX = 4;
?>