UNPKG

skyhook-graphql-sdk

Version:

Node SDK for the Skyhook graphql API

1,183 lines (1,182 loc) 1.2 MB
{ "__schema": { "queryType": { "name": "Query" }, "mutationType": { "name": "Mutation" }, "subscriptionType": { "name": "Subscription" }, "types": [ { "kind": "SCALAR", "name": "AWSDate", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "SCALAR", "name": "AWSDateTime", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "SCALAR", "name": "AWSEmail", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "SCALAR", "name": "AWSIPAddress", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "SCALAR", "name": "AWSJSON", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "SCALAR", "name": "AWSPhone", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "SCALAR", "name": "AWSTime", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "SCALAR", "name": "AWSTimestamp", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "SCALAR", "name": "AWSURL", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "ENUM", "name": "AccountingAccountName", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { "name": "ACCOUNTS_PAYABLE", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "ACCOUNTS_RECEIVABLE", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "PAYPAL_EUR", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "PAYPAL_GBP", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "PAYPAL_NOK", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "PAYPAL_USD", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "STRIPE_CAD", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "STRIPE_EUR", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "STRIPE_GBP", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "STRIPE_NOK", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "STRIPE_NZD", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "STRIPE_SGD", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "STRIPE_USD", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "TMTV2_EUR", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "TMTV2_GBP", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "TMTV2_USD", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "TMT_EUR", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "TMT_GBP", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "TMT_USD", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "TRAVEL_AGENT_COMMISSION", "description": null, "isDeprecated": false, "deprecationReason": null } ], "possibleTypes": null }, { "kind": "OBJECT", "name": "AccountingJournal", "description": "Accounting Journal\n\nFor internal use only.\n\nInspired by the\n[QuickBooks API](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/journalentry) but\ndesigned to be used universally with other tools as needed.\n\nAlso designed to work with the [Zoho Books API](https://www.zoho.com/books/api/v3/#Journals).", "fields": [ { "name": "date", "description": "Date the journal should be posted", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "AWSDateTime", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "description", "description": "Description of journal being posted\n\n@example\nBooking Space\n\n@example\nTransaction\n\n@example\nCancellation", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "id", "description": "Journal ID\n\nShould be the id of the booking invoice.\n\n@example\nln_UUID", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "lines", "description": "Journal Lines\n\nMust contain exactly two lines.", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "LIST", "name": null, "ofType": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "OBJECT", "name": "AccountingJournalLine", "ofType": null } } } }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, "interfaces": [ { "kind": "INTERFACE", "name": "Node", "ofType": null } ], "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", "name": "AccountingJournalLine", "description": null, "fields": [ { "name": "account", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "ENUM", "name": "AccountingAccountName", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "currency", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "ENUM", "name": "Currency", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "customer", "description": "Customer (host) ID\n\n@example\nhost_UUID", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "grossAmountZD", "description": "Gross Amount in ZD (i.e. cents not dollars)\n\nThis is before any taxes, and is always positive.", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "Int", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "id", "description": "Journal line ID\n\nShould be based on the line ID plus an integer postfix\n\n@example\nln_UUID_1", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "journalType", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "ENUM", "name": "AccountingJournalType", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "taxCode", "description": "Tax code", "args": [], "type": { "kind": "ENUM", "name": "BookingCommissionTaxRate", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "taxCountry", "description": "Country within which sales tax may be due\n\nShould be set as the country of the host.", "args": [], "type": { "kind": "ENUM", "name": "CountryCodes", "ofType": null }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "ENUM", "name": "AccountingJournalType", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { "name": "CREDIT", "description": "Credit\n\nA credit either increases equity, liability, or revenue accounts or decreases an asset or expense account. Record the\ncorresponding credit for the purchase of a new computer by crediting your expense account.", "isDeprecated": false, "deprecationReason": null }, { "name": "DEBIT", "description": "Debit\n\nA debit either increases an asset or expense account or decreases equity, liability, or revenue accounts. For example,\n you would debit the purchase of a new computer by entering the asset gained on the left side of your asset account.", "isDeprecated": false, "deprecationReason": null } ], "possibleTypes": null }, { "kind": "OBJECT", "name": "ActivityObject", "description": "ActivityObject\n\nThe Activity object represents the direct object upon which an activity was\nperformed on e.g. space for space cancellation or booking for booking created.", "fields": [ { "name": "id", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "name", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", "name": "ActivityStream", "description": "ActivityStream\n\nThe activity stream is based on Activity Stream Spec v2 and represents an\nactivity that has been performed on the system.\n\nhttps://www.w3.org/TR/activitystreams-vocabulary/#introduction", "fields": [ { "name": "actor", "description": "ActivityStreamActor\n\nActors represent entities capable of carrying out an Activity - for example the\nactor for a booking created activity is the person/user who made the booking.\n\n@example\n{\n id: \"user_UUID\",\n name: \"John Doe\",\n}\n\nhttps://www.w3.org/TR/activitystreams-core/#actors", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "OBJECT", "name": "ActivityStreamActor", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "id", "description": "A unique ID for the activity stream object. This is created by the Notification\nservice and not by the service emitting the activity.\n\nYou can pass an activity stream object without id.\n\n@example\nas_UUID", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "isRead", "description": "isRead\n\nIndicates whether a notification has been viewed and read by the user.", "args": [], "type": { "kind": "ENUM", "name": "NotificationIsRead", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "object", "description": "The Activity object represents the direct object upon which an activity was\nperformed on e.g. space for space cancellation or booking for booking created.\n\n@example\n{\n id: \"space_UUID\",\n name: \"space\",\n}\n\nhttps://www.w3.org/TR/activitystreams-vocabulary/#dfn-object", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "OBJECT", "name": "ActivityObject", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "published", "description": "The date and time at which the object was published\n\nhttps://www.w3.org/TR/activitystreams-vocabulary/#dfn-published", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "AWSDateTime", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "serviceBatchID", "description": "An optional ID to group activities together i.e. for a space cancellation you\ncan group by groupID, allowing all cancellation for a specific departure date to\nbe grouped together. This is not part of the ActivityStreams spec.\n\n@example\ngroup_UUID\n\n@example\ntrip_UUID", "args": [], "type": { "kind": "SCALAR", "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "target", "description": "The activity target represents the indirect object of the activity e.g. for\nspace cancellation, the direct object is Space, the target is the Trip that\nthe space was cancelled on.\n\n@example\n{\n id: \"group_UUID\",\n name: \"Trip Title, 1 Jan 2020\",\n}\n\nhttps://www.w3.org/TR/activitystreams-vocabulary/#dfn-target", "args": [], "type": { "kind": "OBJECT", "name": "ActivityStreamTarget", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "to", "description": "The id of the user or host affected by the activity (i.e the person to receive the\nnotification from this activity)\n\n@example\nuser_UUID\n\n@example\nhost_UUID\n\nhttps://www.w3.org/TR/activitystreams-vocabulary/#dfn-to", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "type", "description": "The action that was performed\n\nActivity types are added in past tense so they are ready to displayed to the user without\nneed for conversion from present tense i.e. Cancelled, Received, etc\n\nhttps://www.w3.org/TR/activitystreams-vocabulary/#activity-types", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "url", "description": "A url or link to a dashboard or web page where the user can view the activity\nor activities or take action in relationship to the activity or set of\nactivities.\n\nFor batched activities, this is the url to the page where the user can view\nand taken action for the batch of activities.\n\n@example\nhttps://www.skyhookadventure.com/hosts/dashboard/host-url/bookings/group_UUID\n\nhttps://www.w3.org/TR/activitystreams-vocabulary/#dfn-url", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "AWSURL", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "userBatchID", "description": "A generated ID that is unique but deterministic in a certain period of time\nfor a given user, object, and activity stream type.\n\nNB: This is generated by the Notification service and not by the emitting\nservice.\n\n@example\ncancelled-space-host_UUID-1640696400000\n\n@example\nbooked-space-host_UUID-1640696400000", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", "name": "ActivityStreamActor", "description": "ActivityStreamPerson\n\nActors represent entities capable of carrying out an Activity - for example the\nactor for a booking created activity is the person/user who made the booking.", "fields": [ { "name": "host", "description": null, "args": [], "type": { "kind": "OBJECT", "name": "Host", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "icon", "description": "Describes an Icon for An Actor in the activity stream i.e. Profile Picture or\nHost Image.\n\nhttps://www.w3.org/ns/activitystreams#icon", "args": [], "type": { "kind": "OBJECT", "name": "ActivityStreamIcon", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "id", "description": "The user id or host id of the host or guest who performed the action.\n\n@example\nuser_UUID\n\n@example\nhost_UUID", "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "name", "description": "The full name of the host or the guest who performed the action.\n\n@example\nJohn Doe\n\n@example\nSkyhook Mountaineering LTD", "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "type", "description": "The role of user who performed the action within Skyhook hook i.e. Host or Guest.", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "ENUM", "name": "ActivityStreamActorType", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "user", "description": null, "args": [], "type": { "kind": "OBJECT", "name": "UserPublicProfile", "ofType": null }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "ENUM", "name": "ActivityStreamActorType", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { "name": "GUEST", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "HOST", "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "SYSTEM", "description": null, "isDeprecated": false, "deprecationReason": null } ], "possibleTypes": null }, { "kind": "OBJECT", "name": "ActivityStreamConnection", "description": null, "fields": [ { "name": "items", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "LIST", "name": null, "ofType": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "OBJECT", "name": "ActivityStream", "ofType": null } } } }, "isDeprecated": false, "deprecationReason": null }, { "name": "nextToken", "description": null, "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", "name": "ActivityStreamIcon", "description": "Describes an Icon for An Actor in the activity stream i.e. Profile Picture or\nHost Image.\n\nhttps://www.w3.org/ns/activitystreams#icon", "fields": [ { "name": "height", "description": null, "args": [], "type": { "kind": "SCALAR", "name": "Int", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "name", "description": null, "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "type", "description": null, "args": [], "type": { "kind": "ENUM", "name": "ActivityStreamIconType", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "url", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "AWSURL", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "width", "description": null, "args": [], "type": { "kind": "SCALAR", "name": "Int", "ofType": null }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "ENUM", "name": "ActivityStreamIconType", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { "name": "Image", "description": null, "isDeprecated": false, "deprecationReason": null } ], "possibleTypes": null }, { "kind": "OBJECT", "name": "ActivityStreamTarget", "description": "ActivityStreamTarget\n\nThe direct object upon which an activity was performed on i.e. space or booking.", "fields": [ { "name": "href", "description": "Web link to the target object i.e. Link to host group dashboard for\ncancellations or host inbox link for messages.", "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "id", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { "name": "name", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", "name": "AddUserHostRoleInput", "description": null, "fields": null, "inputFields": [ { "name": "hostID", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { "name": "role", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "ENUM", "name": "HostRoleType", "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { "name": "userID", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null } ], "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", "name": "AddUserToWaitListInput", "description": null, "fields": null, "inputFields": [ { "name": "groupID", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { "name": "spacesRequested", "description": null, "type": { "kind": "SCALAR", "name": "Int", "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { "name": "userID", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null } ], "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", "name": "Address", "description": "Address uses the OASIS [XAL](https://www.oasis-open.org/committees/ciq/download.shtml) standard", "fields": [ { "name": "additionalNames", "description": null, "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "addressLine1", "description": null, "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "addressLine2", "description": null, "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "administrativeArea", "description": "State, province or county", "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { "name": "coordinates", "description": null, "args": [], "type": { "kind": "OBJECT", "name": "Coordinates", "ofType": null }, "isDeprecated": false, "deprecationReason": null