Commit 07ceff58 authored by Ben Galloway's avatar Ben Galloway

Update README with new name and URL

parent 142c6cc8
# Gamma in JS
# GammaJS
A library of async JavaScript functions that make the corresponding calls to the GSC Gamma API.
## Installation
```bash
yarn add git+ssh://git@gscgit:utils/gamma-in-js.git
yarn add git+ssh://git@gscgit:utils/gammajs.git
```
## Config
......@@ -283,7 +283,7 @@ If the Gamma API throws an error, an error will also be thrown from the JavaScri
## TODO
* **Endpoints** - the multi-endpoint API architecture has not yet been introduced to the live Gamma environment. `config.js` will require updating when this occurs.
- **Endpoints** - the multi-endpoint API architecture has not yet been introduced to the live Gamma environment. `config.js` will require updating when this occurs.
## Methods List
......@@ -293,73 +293,73 @@ See the full Gamma documentation in the `docs/` directory for complete details o
All of these methods are destructive - i.e. if called correctly they push new data into Gamma or remove existing data from Gamma. They therefore require correspondingly more care in their use.
* `gammaAmendBooking`
* `gammaBookingAllSave`
* `gammaCancelBookingRequest`
* `gammaRemoveContactInterests`
* `gammaSaveCustomerDetails`
* `gammaUpdateBooking`
* `gammaUpdateBookingStatus`
- `gammaAmendBooking`
- `gammaBookingAllSave`
- `gammaCancelBookingRequest`
- `gammaRemoveContactInterests`
- `gammaSaveCustomerDetails`
- `gammaUpdateBooking`
- `gammaUpdateBookingStatus`
### Reservation methods
These methods are not destructive but do cause some side-effects. They have a separate endpoint as they can be called live/in real time by the website.
* `gammaBookAvailableSpacesRequest`
* `gammaCancelBookAvailableSpaces`
* `gammaReserveXTSeats`
* `gammaCancelSeats`
- `gammaBookAvailableSpacesRequest`
- `gammaCancelBookAvailableSpaces`
- `gammaReserveXTSeats`
- `gammaCancelSeats`
### Membership methods
These are methods which relate purely to memberships. There are some which are destructive:
* `gammaChangeMemberDetails`
* `gammaMembershipPurchase`
* `gammaMembershipCancellation`
- `gammaChangeMemberDetails`
- `gammaMembershipPurchase`
- `gammaMembershipCancellation`
and some which are not:
* `gammaMembershipSubscriptionsLoad`
* `gammaModifiedMembers`
- `gammaMembershipSubscriptionsLoad`
- `gammaModifiedMembers`
### Availability methods
All of these methods are non-destructive, i.e. they do not push any data into Gamma, only pull data from it.
* `gammaAllContactInterests`
* `gammaBookingETicketExportRequest`
* `gammaBookingStatusUpdateCheck`
* `gammaContactInterests`
* `gammaCustomerLoad`
* `gammaEventEditList`
* `gammaEventListLoad`
* `gammaEventsOnlyListLoad`
* `gammaGetBookingHistory`
* `gammaGetBookingStatusList`
* `gammaGetTourList`
* `gammaProductListLoad`
* `gammaProductMapListLoad`
* `gammaRedeemedBookings`
* `gammaResourceDatesListLoad`
* `gammaResourceListByViewByDateLoad`
* `gammaResourceListByViewLoad`
* `gammaResourceListLoad`
* `gammaResourceViewListLoad`
* `gammaViewResourcesLoad`
* `gammaVoucherDiscountCheck`
* `gammaVoucherListLoad`
- `gammaAllContactInterests`
- `gammaBookingETicketExportRequest`
- `gammaBookingStatusUpdateCheck`
- `gammaContactInterests`
- `gammaCustomerLoad`
- `gammaEventEditList`
- `gammaEventListLoad`
- `gammaEventsOnlyListLoad`
- `gammaGetBookingHistory`
- `gammaGetBookingStatusList`
- `gammaGetTourList`
- `gammaProductListLoad`
- `gammaProductMapListLoad`
- `gammaRedeemedBookings`
- `gammaResourceDatesListLoad`
- `gammaResourceListByViewByDateLoad`
- `gammaResourceListByViewLoad`
- `gammaResourceListLoad`
- `gammaResourceViewListLoad`
- `gammaViewResourcesLoad`
- `gammaVoucherDiscountCheck`
- `gammaVoucherListLoad`
#### Methods from the docs that are unavailable in this library
The following availability methods seem to be unsupported by the Gamma API. They are defined within the library but not made available on the export:
* `ResourceDatesNotAvailable`
* `ResourceListByViewByDateLoadLight`
- `ResourceDatesNotAvailable`
- `ResourceListByViewByDateLoadLight`
#### Methods available in this library that are not in the docs
* `gammaVisitorStats`
- `gammaVisitorStats`
This is a call written specifically for GSC's visitor stats requirement and is therefore not in the main Gamma documentation. It will return a number of adults and children visiting on each date in a given date range - this is comprised of pre-booked public and education visitors to the Science Mall, as well as walk-in Science Mall sales processed through the front desk. It will update throughout the day on any given day, allowing it to be used as a monitor for how busy the building is, but does not return any results for future dates.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment