Comparing version 0.52.1 to 0.52.2
@@ -33,3 +33,3 @@ import * as ClientOAuth2 from "client-oauth2"; | ||
*/ | ||
getAuthUri: (opts?: GetAuthUriOpts | undefined) => Promise<string>; | ||
getAuthUri: (opts?: GetAuthUriOpts) => Promise<string>; | ||
/** | ||
@@ -72,3 +72,3 @@ * @deprecated This method will be removed in v1.0.0. | ||
*/ | ||
refresh: (timeout?: number | undefined) => Promise<ClientOAuth2.Token>; | ||
refresh: (timeout?: number) => Promise<ClientOAuth2.Token>; | ||
/** | ||
@@ -85,4 +85,4 @@ * @deprecated This method will be removed in v1.0.0. | ||
*/ | ||
setToken: (accessToken: string, refreshToken?: string | undefined, tokenType?: string | undefined) => ClientOAuth2.Token; | ||
setToken: (accessToken: string, refreshToken?: string, tokenType?: string) => ClientOAuth2.Token; | ||
private showDeprecationWarning; | ||
} |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -61,3 +61,3 @@ import * as ClientOAuth2 from "client-oauth2"; | ||
*/ | ||
setToken: (accessToken: string, refreshToken?: string | undefined, tokenType?: string | undefined) => ClientOAuth2.Token; | ||
setToken: (accessToken: string, refreshToken?: string, tokenType?: string) => ClientOAuth2.Token; | ||
/** | ||
@@ -64,0 +64,0 @@ * Renew auth token using refresh token |
@@ -28,3 +28,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -31,0 +31,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -32,3 +32,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -35,0 +35,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -32,3 +32,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -35,0 +35,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -32,3 +32,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -35,0 +35,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -48,4 +48,4 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
function GraphQLClient(_a) { | ||
var auth = _a.auth, endpoint = _a.endpoint, subscriptionEndpoint = _a.subscriptionEndpoint; | ||
var _this = this; | ||
var auth = _a.auth, endpoint = _a.endpoint, subscriptionEndpoint = _a.subscriptionEndpoint; | ||
this.subscriptions = {}; | ||
@@ -52,0 +52,0 @@ this.subscriptionId = 0; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
import { GraphQLClient } from "./client"; | ||
import { Document as DocumentModel, MutationUpdateDocumentArgs } from "./schema"; | ||
declare type DocumentProps = keyof DocumentModel; | ||
type DocumentProps = keyof DocumentModel; | ||
export declare class Document { | ||
@@ -5,0 +5,0 @@ protected client: GraphQLClient; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
import { GraphQLClient } from "./client"; | ||
import { EmailDocument as EmailDocumentModel, MutationDeleteEmailDocumentArgs, MutationMatchEmailDocumentToTransactionArgs, MutationResult, Transaction as TransactionModel, UserEmailDocumentArgs, UserEmailDocumentsArgs } from "./schema"; | ||
declare type EmailDocumentProps = keyof EmailDocumentModel; | ||
declare type TransactionProps = keyof TransactionModel; | ||
type EmailDocumentProps = keyof EmailDocumentModel; | ||
type TransactionProps = keyof TransactionModel; | ||
export declare class EmailDocument { | ||
@@ -6,0 +6,0 @@ protected client: GraphQLClient; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -46,0 +46,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -32,3 +32,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -35,0 +35,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -46,0 +46,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -32,3 +32,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -35,0 +35,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
import { CardType, Mutation, Query } from "./schema"; | ||
export declare type FetchOptions = { | ||
export type FetchOptions = { | ||
first?: number; | ||
@@ -8,6 +8,6 @@ last?: number; | ||
}; | ||
export declare type SearchFilter = { | ||
export type SearchFilter = { | ||
assets_exist?: boolean; | ||
}; | ||
export declare type GetCardOptions = { | ||
export type GetCardOptions = { | ||
id: string; | ||
@@ -19,5 +19,5 @@ type?: CardType; | ||
} | ||
export declare type Subscription = { | ||
export type Subscription = { | ||
unsubscribe: () => void; | ||
}; | ||
export declare type RawQueryResponse = Query & Mutation; | ||
export type RawQueryResponse = Query & Mutation; |
@@ -32,3 +32,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -35,0 +35,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -14,3 +14,3 @@ import { HttpMethod } from "./types"; | ||
*/ | ||
fetch: (path: string, method: HttpMethod, body?: string | object | undefined) => Promise<any>; | ||
fetch: (path: string, method: HttpMethod, body?: string | object) => Promise<any>; | ||
} |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -12,3 +12,3 @@ import * as ClientOAuth2 from "client-oauth2"; | ||
} | ||
export declare type GraphQLClientOpts = { | ||
export type GraphQLClientOpts = { | ||
endpoint: string; | ||
@@ -18,3 +18,3 @@ subscriptionEndpoint: string; | ||
}; | ||
export declare type ClientOpts = { | ||
export type ClientOpts = { | ||
baseUrl?: string; | ||
@@ -30,3 +30,3 @@ baseSubscriptionUrl?: string; | ||
}; | ||
export declare type TokenManagerOpts = { | ||
export type TokenManagerOpts = { | ||
oauth2Client: ClientOAuth2; | ||
@@ -41,3 +41,3 @@ state?: string; | ||
} | ||
export declare type PushChallenge = { | ||
export type PushChallenge = { | ||
id: string; | ||
@@ -47,3 +47,3 @@ expiresAt: Date; | ||
}; | ||
export declare type GetAuthUriOpts = { | ||
export type GetAuthUriOpts = { | ||
query?: { | ||
@@ -53,25 +53,25 @@ [key: string]: string | string[]; | ||
}; | ||
export declare type CreateDeviceParams = { | ||
export type CreateDeviceParams = { | ||
name: string; | ||
key: string; | ||
}; | ||
export declare type CreateDeviceResult = { | ||
export type CreateDeviceResult = { | ||
deviceId: string; | ||
challengeId: string; | ||
}; | ||
export declare type VerifyDeviceParams = { | ||
export type VerifyDeviceParams = { | ||
challengeId: string; | ||
signature: string; | ||
}; | ||
export declare type DeviceChallenge = { | ||
export type DeviceChallenge = { | ||
id: string; | ||
stringToSign: string; | ||
}; | ||
export declare type VerifyDeviceChallengeParams = { | ||
export type VerifyDeviceChallengeParams = { | ||
signature: string; | ||
}; | ||
export declare type MfaResult = { | ||
export type MfaResult = { | ||
token: string; | ||
refresh_token?: string; | ||
}; | ||
export declare type TimeoutID = ReturnType<typeof setTimeout>; | ||
export type TimeoutID = ReturnType<typeof setTimeout>; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
{ | ||
"name": "kontist", | ||
"version": "0.52.1", | ||
"version": "0.52.2", | ||
"description": "Kontist client SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1321961
20460