feat(sdk): standalone package #996
Annotations
3 errors and 1 warning
Run npm run test:unit -- packages/cli:
packages/cli/lib/services/model.service.unit.test.ts#L13
Error: Snapshot `buildModelTs > should return empty (with sdk) 1` mismatched
- Expected
+ Received
@@ -8,29 +8,35 @@
// ------ /Models
// ------ SDK
- import { Nango } from '@nangohq/node';
+ import type { Nango } from '@nangohq/node';
- import type { AxiosInstance, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse } from 'axios';
- import { AxiosError } from 'axios';
+ import type { AxiosInstance, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
import type { ApiEndUser, DBSyncConfig, DBTeam, GetPublicIntegration, RunnerFlags } from '@nangohq/types';
+
export declare const oldLevelToNewLevel: {
- readonly debug: "debug";
+ readonly debug: 'debug';
- readonly info: "info";
+ readonly info: 'info';
- readonly warn: "warn";
+ readonly warn: 'warn';
- readonly error: "error";
+ readonly error: 'error';
- readonly verbose: "debug";
+ readonly verbose: 'debug';
- readonly silly: "debug";
+ readonly silly: 'debug';
- readonly http: "info";
+ readonly http: 'info';
};
type LogLevel = 'info' | 'debug' | 'error' | 'warn' | 'http' | 'verbose' | 'silly';
type ParamEncoder = (value: any, defaultEncoder: (value: any) => any) => any;
interface GenericFormData {
append(name: string, value: any, options?: any): any;
}
- type SerializerVisitor = (this: GenericFormData, value: any, key: string | number, path: null | (string | number)[], helpers: FormDataVisitorHelpers) => boolean;
+ type SerializerVisitor = (
+ this: GenericFormData,
+ value: any,
+ key: string | number,
+ path: null | (string | number)[],
+ helpers: FormDataVisitorHelpers
+ ) => boolean;
type CustomParamsSerializer = (params: Record<string, any>, options?: ParamsSerializerOptions) => string;
interface FormDataVisitorHelpers {
defaultVisitor: SerializerVisitor;
convertValue: (value: any) => any;
isVisitable: (value: any) => boolean;
@@ -169,14 +175,16 @@
}
interface JwtCredentials {
type: AuthModes['Jwt'];
privateKeyId?: string;
issuerId?: string;
- privateKey: {
+ privateKey:
+ | {
- id: string;
+ id: string;
- secret: string;
+ secret: string;
- } | string;
+ }
+ | string;
token?: string;
expires_at?: Date | undefined;
}
interface BillCredentials extends CredentialsCommon {
type: AuthModes['Bill'];
@@ -203,11 +211,26 @@
}
interface CustomCredentials extends CredentialsCommon {
type: AuthModes['Custom'];
}
type UnauthCredentials = Record<string, never>;
- type AuthCredentials = OAuth2Credentials | OAuth2ClientCredentials | OAuth1Credentials | BasicApiCredentials | ApiKeyCredentials | AppCredentials | AppStoreCredentials | UnauthCredentials | TbaCredentials | TableauCredentials | JwtCredentials | BillCredentials | TwoStepCredentials | SignatureCredentials | CustomCredentials;
+ type AuthCredentials =
+ | OAuth2Credentials
+ | OAuth2ClientCredentials
+ | OAuth1Credentials
+ | BasicApiCredentials
+ | ApiKeyCredentials
+ | AppCredentials
+ | AppStoreCredentials
+ | UnauthCredentials
+ | TbaCredentials
+ | TableauCredentials
+ | JwtCredentials
+ | BillCredentials
+ | TwoStepCredentials
+ | SignatureCredentials
+ | CustomCredentials;
type Metadata = Record<string, unknown>;
interface MetadataChangeResponse {
metadata: Metadata;
provider_config_key: string;
connection_id: string | string[];
@@ -265,18 +288,20 @@
nangoConnectionId?: number;
syncJobId?: number | undefined;
dryRun?: boolean;
track_deletes?: boolean;
attributes?: object | undefined;
- logMessages?: {
- counts: {
+ logMessages?:
+ | {
+ counts: {
- updated: number;
+ updated: number;
- added: number;
+ added: number;
- deleted: number;
+ deleted: number;
- };
-
|
Run npm run test:unit -- packages/cli
Process completed with exit code 1.
|
Run npm run test:cli
Type 'string' is not assignable to type 'number'.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading