@narrative.io/data-collaboration-sdk-ts 0.0.56 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseApi } from '../base-api';
|
|
2
|
-
import { type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser } from './types';
|
|
2
|
+
import { type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser, type StytchToken } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* A class for accessing the Authentication API
|
|
5
5
|
* @extends BaseApi
|
|
@@ -20,4 +20,4 @@ declare class AuthenticationApi extends BaseApi {
|
|
|
20
20
|
*/
|
|
21
21
|
register(registerRequest: RegisterRequest): Promise<RegisterResponse>;
|
|
22
22
|
}
|
|
23
|
-
export { type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser, AuthenticationApi };
|
|
23
|
+
export { type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser, type StytchToken, AuthenticationApi };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface LoginRequest {
|
|
2
|
-
stytch_token:
|
|
2
|
+
stytch_token: StytchToken;
|
|
3
3
|
session_duration_minutes?: number;
|
|
4
4
|
}
|
|
5
5
|
export interface LoginResponse {
|
|
@@ -9,7 +9,7 @@ export interface LoginResponse {
|
|
|
9
9
|
stytch_session_jwt: string;
|
|
10
10
|
}
|
|
11
11
|
export interface RegisterRequest {
|
|
12
|
-
stytch_token:
|
|
12
|
+
stytch_token: StytchToken;
|
|
13
13
|
name?: string;
|
|
14
14
|
company_name: string;
|
|
15
15
|
}
|
|
@@ -22,3 +22,7 @@ export interface LoggedInUser {
|
|
|
22
22
|
company_id: number;
|
|
23
23
|
company_name: string;
|
|
24
24
|
}
|
|
25
|
+
export interface StytchToken {
|
|
26
|
+
token: string;
|
|
27
|
+
token_type: 'magiclinkstoken' | 'oauth';
|
|
28
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -21,9 +21,9 @@ import { DataStreamsApi, type DataStream } from './data-streams';
|
|
|
21
21
|
import { ForecastApi, type ForecastRequest, type ForecastResponse, type CostForecastRequest, type CostForecastResponse, type JobState } from './forecast';
|
|
22
22
|
import { ContractsApi, type ContractDetails, type CustomerContract, type PaymentMethod, type ContractRateView } from './contracts';
|
|
23
23
|
import { getNqlObject, buildNql } from './nql/NQLParser';
|
|
24
|
-
import { AuthenticationApi, type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser } from './authentication';
|
|
24
|
+
import { AuthenticationApi, type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser, type StytchToken } from './authentication';
|
|
25
25
|
declare class NarrativeApi extends BaseApi {
|
|
26
26
|
}
|
|
27
27
|
interface NarrativeApi extends BaseApi, HealthCheckApi, DatasetApi, RosettaStoneApi, AttributeApi, PingApi, CompanyInfoApi, InstallationsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi {
|
|
28
28
|
}
|
|
29
|
-
export { NarrativeApi, AttributeApi, HealthCheckApi, DatasetApi, PingApi, ProductsApi, CompanyInfoApi, InstallationsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, type Resource, type UploadsResponse, type PingStatus, type Attribute, type Environment, type Config, type ApiRecords, type Dataset, type HealthCheckResult, type SampleRecords, type DatasetTableSummary, type DatasetTableSummaryAPIResponse, type Product, type MonetaryAmount, type CompanyInfo, type Installation, type FilePerSnapshotResponse, type BucketCreationRequest, type UpdateAccessTypeRequest, type Nql, type NqlField, type NqlResult, type NqlQueryInput, type NqlCompileResult, type NqlExpression, type NqlWhere, type NqlFilterExpression, type NqlBooleanExpression, type NqlFilterBinaryExpression, type NqlFilterUnaryExpression, type DataStream, type ForecastRequest, type ForecastResponse, type CostForecastRequest, type CostForecastResponse, type JobState, type ContractDetails, type CustomerContract, type PaymentMethod, type ContractRateView, type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser, getNqlObject, buildNql };
|
|
29
|
+
export { NarrativeApi, AttributeApi, HealthCheckApi, DatasetApi, PingApi, ProductsApi, CompanyInfoApi, InstallationsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, type Resource, type UploadsResponse, type PingStatus, type Attribute, type Environment, type Config, type ApiRecords, type Dataset, type HealthCheckResult, type SampleRecords, type DatasetTableSummary, type DatasetTableSummaryAPIResponse, type Product, type MonetaryAmount, type CompanyInfo, type Installation, type FilePerSnapshotResponse, type BucketCreationRequest, type UpdateAccessTypeRequest, type Nql, type NqlField, type NqlResult, type NqlQueryInput, type NqlCompileResult, type NqlExpression, type NqlWhere, type NqlFilterExpression, type NqlBooleanExpression, type NqlFilterBinaryExpression, type NqlFilterUnaryExpression, type DataStream, type ForecastRequest, type ForecastResponse, type CostForecastRequest, type CostForecastResponse, type JobState, type ContractDetails, type CustomerContract, type PaymentMethod, type ContractRateView, type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser, type StytchToken, getNqlObject, buildNql };
|