UNPKG

@arcblock/analytics-js

Version:

Analytics Javascript SDK for API Service by ArcBlock

1,304 lines (1,303 loc) 34.2 kB
{ "directives": [ { "args": [ { "defaultValue": null, "description": "Included when true.", "name": "if", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } } } ], "description": "Directs the executor to include this field or fragment only when the `if` argument is true.\"", "locations": ["INLINE_FRAGMENT", "FRAGMENT_SPREAD", "FIELD"], "name": "include" }, { "args": [ { "defaultValue": null, "description": "Skipped when true.", "name": "if", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "Boolean", "ofType": null } } } ], "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", "locations": ["INLINE_FRAGMENT", "FRAGMENT_SPREAD", "FIELD"], "name": "skip" } ], "mutationType": { "name": "RootMutationType" }, "queryType": { "name": "RootQueryType" }, "subscriptionType": null, "types": [ { "description": "The `Boolean` scalar type represents `true` or `false`.", "enumValues": null, "fields": null, "inputFields": null, "interfaces": null, "kind": "SCALAR", "name": "Boolean", "possibleTypes": null }, { "description": "The `DateTime` scalar type represents a date and time in the UTC\ntimezone. The DateTime appears in a JSON response as an ISO8601 formatted\nstring, including UTC timezone (\"Z\"). The parsed date and time string will\nbe converted to UTC and any UTC offset other than 0 will be rejected.", "enumValues": null, "fields": null, "inputFields": null, "interfaces": null, "kind": "SCALAR", "name": "DateTime", "possibleTypes": null }, { "description": "", "enumValues": null, "fields": null, "inputFields": [ { "defaultValue": null, "description": null, "name": "city", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "clientTimestamp", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "DateTime", "ofType": null } } }, { "defaultValue": null, "description": null, "name": "country", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "deviceId", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": null, "name": "eventContent", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "eventType", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": null, "name": "ip", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "language", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "latitude", "type": { "kind": "SCALAR", "name": "Float", "ofType": null } }, { "defaultValue": null, "description": null, "name": "longitude", "type": { "kind": "SCALAR", "name": "Float", "ofType": null } }, { "defaultValue": null, "description": null, "name": "objectId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "objectType", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": null, "name": "operation", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": null, "name": "postalCode", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "responseTime", "type": { "kind": "SCALAR", "name": "Int", "ofType": null } }, { "defaultValue": null, "description": null, "name": "serverTimestamp", "type": { "kind": "SCALAR", "name": "DateTime", "ofType": null } }, { "defaultValue": null, "description": null, "name": "source", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": null, "name": "targetId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "targetType", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "userAgent", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, "name": "userId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } } ], "interfaces": null, "kind": "INPUT_OBJECT", "name": "EventInput", "possibleTypes": null }, { "description": "", "enumValues": null, "fields": null, "inputFields": [ { "defaultValue": null, "description": null, "name": "eventInputs", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "LIST", "name": null, "ofType": { "kind": "INPUT_OBJECT", "name": "EventInput", "ofType": null } } } } ], "interfaces": null, "kind": "INPUT_OBJECT", "name": "EventInputs", "possibleTypes": null }, { "description": "The `Float` scalar type represents signed double-precision fractional\nvalues as specified by\n[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).", "enumValues": null, "fields": null, "inputFields": null, "interfaces": null, "kind": "SCALAR", "name": "Float", "possibleTypes": null }, { "description": "The `Int` scalar type represents non-fractional signed whole numeric values.\nInt can represent values between `-(2^53 - 1)` and `2^53 - 1` since it is\nrepresented in JSON as double-precision floating point numbers specified\nby [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).", "enumValues": null, "fields": null, "inputFields": null, "interfaces": null, "kind": "SCALAR", "name": "Int", "possibleTypes": null }, { "description": null, "enumValues": null, "fields": [ { "args": [ { "defaultValue": null, "description": "Client's city", "name": "city", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "Specifies the timestamp when client makes the request", "name": "clientTimestamp", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "DateTime", "ofType": null } } }, { "defaultValue": null, "description": "Client's country", "name": "country", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "Client's deviceID", "name": "deviceId", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": "Specifies the content of this event.We will define it in detail in future", "name": "eventContent", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "Specifies the type of this event. Examples:interaction, activity", "name": "eventType", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": "Client's IP address", "name": "ip", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "The language client uses", "name": "language", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "Client's latitude", "name": "latitude", "type": { "kind": "SCALAR", "name": "Float", "ofType": null } }, { "defaultValue": null, "description": "Client's longitude", "name": "longitude", "type": { "kind": "SCALAR", "name": "Float", "ofType": null } }, { "defaultValue": null, "description": "Specifies the object ID of this activity", "name": "objectId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "Specifies the type of the object", "name": "objectType", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": "Specifies the operation of this event", "name": "operation", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": "Client's postal code", "name": "postalCode", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "Specifies the time it took for server to respond. The value is in milliseconds", "name": "responseTime", "type": { "kind": "SCALAR", "name": "Int", "ofType": null } }, { "defaultValue": null, "description": "Specifies the timestamp when server receives the request", "name": "serverTimestamp", "type": { "kind": "SCALAR", "name": "DateTime", "ofType": null } }, { "defaultValue": null, "description": "Specifies which application/service this event belongs to.Example:Playground, OCAP", "name": "source", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } }, { "defaultValue": null, "description": "Specifies the target ID of this activity", "name": "targetId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "Specifies the type of the target", "name": "targetType", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "The User Agent of the browser", "name": "userAgent", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "defaultValue": null, "description": "Client's userID", "name": "userId", "type": { "kind": "SCALAR", "name": "String", "ofType": null } } ], "deprecationReason": null, "description": "Create an analytics event.", "isDeprecated": false, "name": "createEvent", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [ { "defaultValue": null, "description": "A list of analytics events", "name": "data", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", "name": "EventInputs", "ofType": null } } } ], "deprecationReason": null, "description": "Create a list of analytics events.", "isDeprecated": false, "name": "createEvents", "type": { "kind": "SCALAR", "name": "String", "ofType": null } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", "name": "RootMutationType", "possibleTypes": null }, { "description": null, "enumValues": null, "fields": [ { "args": [ { "defaultValue": null, "description": "hello world.", "name": "name", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "String", "ofType": null } } } ], "deprecationReason": null, "description": "just say hello. GraphQL requires at least a query node so we fake one. This query should not be removed.", "isDeprecated": false, "name": "hello", "type": { "kind": "SCALAR", "name": "String", "ofType": null } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", "name": "RootQueryType", "possibleTypes": null }, { "description": "The `String` scalar type represents textual data, represented as UTF-8\ncharacter sequences. The String type is most often used by GraphQL to\nrepresent free-form human-readable text.", "enumValues": null, "fields": null, "inputFields": null, "interfaces": null, "kind": "SCALAR", "name": "String", "possibleTypes": null }, { "description": "Represents a directive", "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "args", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__InputValue", "ofType": null } } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "description", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "locations", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "ENUM", "name": "__DirectiveLocation", "ofType": null } } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "name", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": "Check `locations` field for enum value FIELD", "description": null, "isDeprecated": true, "name": "onField", "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null } }, { "args": [], "deprecationReason": "Check `locations` field for enum value FRAGMENT_SPREAD", "description": null, "isDeprecated": true, "name": "onFragment", "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null } }, { "args": [], "deprecationReason": "Check `locations` field for enum value OPERATION", "description": null, "isDeprecated": true, "name": "onOperation", "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", "name": "__Directive", "possibleTypes": null }, { "description": null, "enumValues": [ { "deprecationReason": null, "description": null, "isDeprecated": false, "name": "FIELD" }, { "deprecationReason": null, "description": null, "isDeprecated": false, "name": "FRAGMENT_DEFINITION" }, { "deprecationReason": null, "description": null, "isDeprecated": false, "name": "FRAGMENT_SPREAD" }, { "deprecationReason": null, "description": null, "isDeprecated": false, "name": "INLINE_FRAGMENT" }, { "deprecationReason": null, "description": null, "isDeprecated": false, "name": "MUTATION" }, { "deprecationReason": null, "description": null, "isDeprecated": false, "name": "QUERY" }, { "deprecationReason": null, "description": null, "isDeprecated": false, "name": "SUBSCRIPTION" } ], "fields": null, "inputFields": null, "interfaces": null, "kind": "ENUM", "name": "__DirectiveLocation", "possibleTypes": null }, { "description": null, "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "deprecationReason", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "description", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "isDeprecated", "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "name", "type": { "kind": "SCALAR", "name": "String", "ofType": null } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", "name": "__EnumValue", "possibleTypes": null }, { "description": null, "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "args", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__InputValue", "ofType": null } } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "deprecationReason", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "description", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "isDeprecated", "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "name", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "type", "type": { "kind": "OBJECT", "name": "__Type", "ofType": null } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", "name": "__Field", "possibleTypes": null }, { "description": null, "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "defaultValue", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "description", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "name", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "type", "type": { "kind": "OBJECT", "name": "__Type", "ofType": null } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", "name": "__InputValue", "possibleTypes": null }, { "description": "Represents a schema", "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "directives", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__Directive", "ofType": null } } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "mutationType", "type": { "kind": "OBJECT", "name": "__Type", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "queryType", "type": { "kind": "OBJECT", "name": "__Type", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "subscriptionType", "type": { "kind": "OBJECT", "name": "__Type", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "types", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", "name": "__Schema", "possibleTypes": null }, { "description": "Represents scalars, interfaces, object types, unions, enums in the system", "enumValues": null, "fields": [ { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "description", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [ { "defaultValue": "false", "description": null, "name": "includeDeprecated", "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null } } ], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "enumValues", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__EnumValue", "ofType": null } } }, { "args": [ { "defaultValue": "false", "description": null, "name": "includeDeprecated", "type": { "kind": "SCALAR", "name": "Boolean", "ofType": null } } ], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "fields", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__Field", "ofType": null } } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "inputFields", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__InputValue", "ofType": null } } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "interfaces", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "kind", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "name", "type": { "kind": "SCALAR", "name": "String", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "ofType", "type": { "kind": "OBJECT", "name": "__Type", "ofType": null } }, { "args": [], "deprecationReason": null, "description": null, "isDeprecated": false, "name": "possibleTypes", "type": { "kind": "LIST", "name": null, "ofType": { "kind": "OBJECT", "name": "__Type", "ofType": null } } } ], "inputFields": null, "interfaces": [], "kind": "OBJECT", "name": "__Type", "possibleTypes": null } ] }