Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/google-drive-realtime-api

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/google-drive-realtime-api - npm Package Compare versions

Comparing version 0.0.31 to 0.0.32

86

google-drive-realtime-api/index.d.ts

@@ -519,6 +519,88 @@ // Type definitions for Google Realtime API

// INCOMPLETE
// Complete
// https://developers.google.com/google-apps/realtime/reference/gapi.drive.realtime#.ErrorType
export type ErrorType =
"concurrent_creation" | "invalid_compound_operation" | "invalid_json_syntax" |
"missing_property" | "not_found" | "forbidden" | "server_error" | "client_error" |
"token_refresh_required" | "invalid_element_type" | "no_write_permission" |
"fatal_network_error" | "unexpected_element";
export var ErrorType : {
// Another user created the document's initial state after
// gapi.drive.realtime.load was called but before the local
// creation was saved.
CONCURRENT_CREATION: ErrorType,
// A compound operation was still open at the end of a
// synchronous block. Compound operations must always
// be ended in the same synchronous block that they
// are started.
INVALID_COMPOUND_OPERATION: ErrorType,
// The user tried to decode a brix model that
// contained invalid json.
INVALID_JSON_SYNTAX: ErrorType,
// The user tried to decode a brix model that was
// missing a neccessary property.
MISSING_PROPERTY: ErrorType,
// The provided document ID could not be found.
NOT_FOUND: ErrorType,
// The user associated with the provided OAuth token
// is not authorized to access the provided document
// ID.
FORBIDDEN: ErrorType,
// An internal error occurred in the Drive Realtime
// API server.
SERVER_ERROR: ErrorType,
// An internal error occurred in the Drive Realtime API client.
CLIENT_ERROR: ErrorType,
// The provided OAuth token is no longer valid and
// must be refreshed.
TOKEN_REFRESH_REQUIRED: ErrorType,
// The provided JSON element does not have the
// expected type.
INVALID_ELEMENT_TYPE: ErrorType,
// The user does not have permission to edit the
// document.
NO_WRITE_PERMISSION: ErrorType,
// A network error occurred on a request to the
// Realtime API server for a request which can not be
// retried. The document may no longer be used after
// this error has occurred. This error can only be
// corrected by reloading the document.
FATAL_NETWORK_ERROR: ErrorType,
// The provided JSON element has the correct JSON type
// but does not have the correct expected Realtime
// type.
UNEXPECTED_ELEMENT: ErrorType,
};
// Complete
// https://developers.google.com/google-apps/realtime/reference/gapi.drive.realtime.Error
export class Error { }
export class Error {
constructor (type: string, message: string, isFatal: boolean);
// The type of the error that occurred.
type: ErrorType;
// A message describing the error.
message: string;
// Whether the error is fatal. Fatal errors cannot be recovered
// from and require the document to be reloaded.
isFatal: boolean;
// Returns a string representation of the error object.
toString(): string;
}
// Complete

@@ -525,0 +607,0 @@ // Opens the debugger application on the current page. The debugger shows all realtime documents that the

5

google-drive-realtime-api/package.json
{
"name": "@types/google-drive-realtime-api",
"version": "0.0.31",
"version": "0.0.32",
"description": "TypeScript definitions for Google Realtime API",

@@ -14,4 +14,5 @@ "license": "MIT",

"dependencies": {},
"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "ef4d19a506859cbc2b1596e377e16dac1701d62cfa7133bd1ea23279e6061af0"
"typesPublisherContentHash": "3dccaff8912de3ace1b9a13add1af534296804bfc06b926516b4fcaf4f3223c0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* Last updated: Wed, 26 Oct 2016 19:23:26 GMT
* File structure: Global

@@ -14,0 +14,0 @@ * Library Dependencies: none

@@ -23,3 +23,3 @@ {

"hasPackageJson": false,
"contentHash": "ef4d19a506859cbc2b1596e377e16dac1701d62cfa7133bd1ea23279e6061af0"
"contentHash": "3dccaff8912de3ace1b9a13add1af534296804bfc06b926516b4fcaf4f3223c0"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc