@bitblit/ratchet-common 4.0.353-alpha → 4.0.355-alpha
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.
- package/lib/index.mjs +1 -1
- package/lib/types.d.ts +980 -0
- package/package.json +3 -3
- package/lib/2d/line-2d.d.ts +0 -5
- package/lib/2d/plane-2d.d.ts +0 -6
- package/lib/2d/point-2d.d.ts +0 -4
- package/lib/2d/poly-line-2d.d.ts +0 -4
- package/lib/2d/ratchet-2d.d.ts +0 -37
- package/lib/2d/ratchet-2d.spec.d.ts +0 -1
- package/lib/build/build-information.d.ts +0 -8
- package/lib/build/ratchet-common-info.d.ts +0 -5
- package/lib/histogram/histogram-entry.d.ts +0 -4
- package/lib/histogram/histogram.d.ts +0 -12
- package/lib/histogram/histogram.spec.d.ts +0 -1
- package/lib/index.d.ts +0 -86
- package/lib/index.mjs.map +0 -1
- package/lib/jwt/common-jwt-token.d.ts +0 -6
- package/lib/jwt/expired-jwt-handling.d.ts +0 -5
- package/lib/jwt/jwt-ratchet-like.d.ts +0 -15
- package/lib/jwt/jwt-ratchet.d.ts +0 -30
- package/lib/jwt/jwt-ratchet.spec.d.ts +0 -1
- package/lib/jwt/jwt-token-base.d.ts +0 -9
- package/lib/lang/array-ratchet.d.ts +0 -14
- package/lib/lang/array-ratchet.spec.d.ts +0 -1
- package/lib/lang/base64-ratchet.d.ts +0 -20
- package/lib/lang/base64-ratchet.spec.d.ts +0 -1
- package/lib/lang/boolean-ratchet.d.ts +0 -7
- package/lib/lang/boolean-ratchet.spec.d.ts +0 -1
- package/lib/lang/composite-last-success-provider.d.ts +0 -7
- package/lib/lang/composite-last-success-provider.spec.d.ts +0 -1
- package/lib/lang/date-ratchet.d.ts +0 -11
- package/lib/lang/date-ratchet.spec.d.ts +0 -1
- package/lib/lang/duration-ratchet.d.ts +0 -7
- package/lib/lang/duration-ratchet.spec.d.ts +0 -1
- package/lib/lang/enum-ratchet.d.ts +0 -5
- package/lib/lang/enum-ratchet.spec.d.ts +0 -5
- package/lib/lang/error-ratchet.d.ts +0 -6
- package/lib/lang/error-ratchet.spec.d.ts +0 -1
- package/lib/lang/esm-ratchet.d.ts +0 -4
- package/lib/lang/expiring-object.d.ts +0 -20
- package/lib/lang/expiring-object.spec.d.ts +0 -1
- package/lib/lang/geolocation-ratchet.d.ts +0 -40
- package/lib/lang/geolocation-ratchet.spec.d.ts +0 -1
- package/lib/lang/global-ratchet.d.ts +0 -6
- package/lib/lang/global-ratchet.spec.d.ts +0 -1
- package/lib/lang/key-value.d.ts +0 -4
- package/lib/lang/last-success-provider.d.ts +0 -3
- package/lib/lang/map-ratchet.d.ts +0 -15
- package/lib/lang/map-ratchet.spec.d.ts +0 -1
- package/lib/lang/no.d.ts +0 -3
- package/lib/lang/no.spec.d.ts +0 -1
- package/lib/lang/number-ratchet.d.ts +0 -28
- package/lib/lang/number-ratchet.spec.d.ts +0 -1
- package/lib/lang/parsed-url.d.ts +0 -10
- package/lib/lang/promise-ratchet.d.ts +0 -18
- package/lib/lang/promise-ratchet.spec.d.ts +0 -1
- package/lib/lang/require-ratchet.d.ts +0 -11
- package/lib/lang/require-ratchet.spec.d.ts +0 -3
- package/lib/lang/sort-ratchet.d.ts +0 -7
- package/lib/lang/sort-ratchet.spec.d.ts +0 -1
- package/lib/lang/stop-watch.d.ts +0 -28
- package/lib/lang/stop-watch.spec.d.ts +0 -1
- package/lib/lang/string-ratchet.d.ts +0 -37
- package/lib/lang/string-ratchet.spec.d.ts +0 -1
- package/lib/lang/time-zone-ratchet.d.ts +0 -20
- package/lib/lang/time-zone-ratchet.spec.d.ts +0 -1
- package/lib/lang/timeout-token.d.ts +0 -9
- package/lib/lang/timeout-token.spec.d.ts +0 -1
- package/lib/lang/uint-8-array-ratchet.d.ts +0 -5
- package/lib/lang/uint-8-array-ratchet.spec.d.ts +0 -1
- package/lib/lang/web-stream-ratchet.d.ts +0 -6
- package/lib/lang/web-stream-ratchet.spec.d.ts +0 -1
- package/lib/logger/classic-single-line-log-message-formatter.d.ts +0 -6
- package/lib/logger/log-message-builder.d.ts +0 -14
- package/lib/logger/log-message-format-type.d.ts +0 -6
- package/lib/logger/log-message-formatter.d.ts +0 -5
- package/lib/logger/log-message-processor.d.ts +0 -5
- package/lib/logger/log-message.d.ts +0 -8
- package/lib/logger/log-snapshot.d.ts +0 -5
- package/lib/logger/logger-instance.d.ts +0 -48
- package/lib/logger/logger-level-name.d.ts +0 -9
- package/lib/logger/logger-meta.d.ts +0 -6
- package/lib/logger/logger-options.d.ts +0 -13
- package/lib/logger/logger-output-function.d.ts +0 -6
- package/lib/logger/logger-ring-buffer.d.ts +0 -18
- package/lib/logger/logger-util.d.ts +0 -8
- package/lib/logger/logger-util.spec.d.ts +0 -1
- package/lib/logger/logger.d.ts +0 -45
- package/lib/logger/logger.spec.d.ts +0 -1
- package/lib/logger/none-log-message-formatter.d.ts +0 -6
- package/lib/logger/structured-json-log-message-formatter.d.ts +0 -6
- package/lib/mail/archive-email-result.d.ts +0 -5
- package/lib/mail/email-attachment.d.ts +0 -5
- package/lib/mail/mail-sending-provider.d.ts +0 -5
- package/lib/mail/mailer-config.d.ts +0 -11
- package/lib/mail/mailer-like.d.ts +0 -11
- package/lib/mail/mailer-util.d.ts +0 -7
- package/lib/mail/mailer.d.ts +0 -17
- package/lib/mail/mailer.spec.d.ts +0 -1
- package/lib/mail/ready-to-send-email.d.ts +0 -13
- package/lib/mail/resolved-ready-to-send-email.d.ts +0 -5
- package/lib/mail/send-email-result.d.ts +0 -12
- package/lib/mail/test-mail-sending-provider.d.ts +0 -8
- package/lib/network/browser-local-ip-provider.d.ts +0 -7
- package/lib/network/browser-local-ip-provider.spec.d.ts +0 -1
- package/lib/network/fixed-local-ip-provider.d.ts +0 -6
- package/lib/network/local-ip-provider.d.ts +0 -3
- package/lib/network/network-ratchet.d.ts +0 -9
- package/lib/network/network-ratchet.spec.d.ts +0 -1
- package/lib/network/restful-api-http-error.d.ts +0 -41
- package/lib/network/restful-api-http-error.spec.d.ts +0 -1
- package/lib/template/ratchet-template-renderer.d.ts +0 -4
- package/lib/third-party/google/google-recaptcha-ratchet.d.ts +0 -4
- package/lib/third-party/google/google-recaptcha-ratchet.spec.d.ts +0 -1
- package/lib/third-party/twilio/twilio-ratchet.d.ts +0 -11
- package/lib/third-party/twilio/twilio-verify-ratchet.d.ts +0 -23
- package/lib/transform/built-in-transforms.d.ts +0 -18
- package/lib/transform/transform-ratchet.d.ts +0 -7
- package/lib/transform/transform-ratchet.spec.d.ts +0 -1
- package/lib/transform/transform-rule.d.ts +0 -3
- package/lib/tx/transaction-configuration.d.ts +0 -7
- package/lib/tx/transaction-final-state.d.ts +0 -6
- package/lib/tx/transaction-ratchet.d.ts +0 -6
- package/lib/tx/transaction-ratchet.spec.d.ts +0 -1
- package/lib/tx/transaction-result.d.ts +0 -9
- package/lib/tx/transaction-step.d.ts +0 -5
package/lib/logger/logger.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { LogMessage } from './log-message.js';
|
|
2
|
-
import { LogSnapshot } from './log-snapshot.js';
|
|
3
|
-
import { LoggerOptions } from './logger-options.js';
|
|
4
|
-
import { LoggerInstance } from './logger-instance.js';
|
|
5
|
-
import { LoggerLevelName } from './logger-level-name.js';
|
|
6
|
-
import { LoggerRingBuffer } from './logger-ring-buffer.js';
|
|
7
|
-
import { LogMessageBuilder } from './log-message-builder.js';
|
|
8
|
-
export declare class Logger {
|
|
9
|
-
private static LOGGER_INSTANCE_MAP_GLOBAL_KEY;
|
|
10
|
-
private static GLOBAL_PROVIDER;
|
|
11
|
-
private static DEFAULT_OPTIONS;
|
|
12
|
-
static applyDefaultsToOptions(input?: LoggerOptions): LoggerOptions;
|
|
13
|
-
private static loggerInstances;
|
|
14
|
-
static changeDefaultOptions(input: LoggerOptions, retroactive?: boolean): void;
|
|
15
|
-
static getLogger(loggerName?: string, inOptions?: LoggerOptions): LoggerInstance;
|
|
16
|
-
static recordMessageBuilder(msgBuild: LogMessageBuilder): string;
|
|
17
|
-
static recordMessage(msg: LogMessage): string;
|
|
18
|
-
static formatMessages(msgs: LogMessage[]): string[];
|
|
19
|
-
static updateTracePrefix(newValue: string): void;
|
|
20
|
-
static changeRingBufferSize(newValue: number): void;
|
|
21
|
-
static getRingBuffer(): LoggerRingBuffer;
|
|
22
|
-
static dumpConfigurationIntoLog(): void;
|
|
23
|
-
static dumpOptionsIntoLog(): void;
|
|
24
|
-
static getLevel(): LoggerLevelName;
|
|
25
|
-
static setLevel(newLevel: LoggerLevelName): void;
|
|
26
|
-
static getOptions(): LoggerOptions;
|
|
27
|
-
static getMessages(inStartFrom?: number, clear?: boolean, reverseSort?: boolean): LogMessage[];
|
|
28
|
-
static consoleLogPassThru(level: LoggerLevelName, ...input: any[]): void;
|
|
29
|
-
static error(format: string, ...input: any[]): string;
|
|
30
|
-
static errorP(...input: any[]): void;
|
|
31
|
-
static warn(format: string, ...input: any[]): string;
|
|
32
|
-
static warnP(...input: any[]): void;
|
|
33
|
-
static info(format: string, ...input: any[]): string;
|
|
34
|
-
static infoP(...input: any[]): void;
|
|
35
|
-
static verbose(format: string, ...input: any[]): string;
|
|
36
|
-
static verboseP(...input: any[]): void;
|
|
37
|
-
static debug(format: string, ...input: any[]): string;
|
|
38
|
-
static debugP(...input: any[]): void;
|
|
39
|
-
static silly(format: string, ...input: any[]): string;
|
|
40
|
-
static sillyP(...input: any[]): void;
|
|
41
|
-
static takeSnapshot(): LogSnapshot;
|
|
42
|
-
static logByLevel(level: LoggerLevelName, format: string, ...input: any[]): void;
|
|
43
|
-
static importMessages(msgs: LogMessage[], prefixIn?: string, addTimestamp?: boolean): void;
|
|
44
|
-
static getLastLogMessage(): LogMessage;
|
|
45
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LogMessage } from './log-message.js';
|
|
2
|
-
import { LogMessageFormatter } from './log-message-formatter.js';
|
|
3
|
-
import { LoggerMeta } from './logger-meta.js';
|
|
4
|
-
export declare class NoneLogMessageFormatter implements LogMessageFormatter {
|
|
5
|
-
formatMessage(msg: LogMessage, meta: LoggerMeta): string;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LogMessage } from './log-message.js';
|
|
2
|
-
import { LogMessageFormatter } from './log-message-formatter.js';
|
|
3
|
-
import { LoggerMeta } from './logger-meta.js';
|
|
4
|
-
export declare class StructuredJsonLogMessageFormatter implements LogMessageFormatter {
|
|
5
|
-
formatMessage(msg: LogMessage, meta: LoggerMeta): string;
|
|
6
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MailSendingProvider } from './mail-sending-provider.js';
|
|
2
|
-
import { RatchetTemplateRenderer } from '../template/ratchet-template-renderer.js';
|
|
3
|
-
export interface MailerConfig<T, R> {
|
|
4
|
-
provider: MailSendingProvider<T, R>;
|
|
5
|
-
defaultSendingAddress?: string;
|
|
6
|
-
autoBccAddresses?: string[];
|
|
7
|
-
templateRenderer?: RatchetTemplateRenderer;
|
|
8
|
-
allowedDestinationEmails?: RegExp[];
|
|
9
|
-
maxMessageBodySizeInBytes?: number;
|
|
10
|
-
maxAttachmentSizeInBase64Bytes?: number;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReadyToSendEmail } from './ready-to-send-email.js';
|
|
2
|
-
import { ResolvedReadyToSendEmail } from './resolved-ready-to-send-email.js';
|
|
3
|
-
import { SendEmailResult } from './send-email-result';
|
|
4
|
-
export interface MailerLike<T, R> {
|
|
5
|
-
fillEmailBody(rts: ReadyToSendEmail, context: any, htmlTemplateName: string, txtTemplateName?: string, layoutName?: string, partialNames?: string[]): Promise<ReadyToSendEmail>;
|
|
6
|
-
fillEmailBodyAndSend(rts: ReadyToSendEmail, context: any, htmlTemplateName: string, txtTemplateName?: string, layoutName?: string, partialNames?: string[]): Promise<SendEmailResult<T, R>>;
|
|
7
|
-
filterEmailsToValid(emails: string[]): string[];
|
|
8
|
-
applyLimitsToBodySizesIfAnyInPlace(rts: ResolvedReadyToSendEmail): void;
|
|
9
|
-
applyLimitsToAttachmentSizesIfAnyInPlace(rts: ResolvedReadyToSendEmail): void;
|
|
10
|
-
sendEmail(inRts: ReadyToSendEmail): Promise<SendEmailResult<T, R>>;
|
|
11
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ResolvedReadyToSendEmail } from './resolved-ready-to-send-email.js';
|
|
2
|
-
export declare class MailerUtil {
|
|
3
|
-
static readonly EMAIL: RegExp;
|
|
4
|
-
constructor();
|
|
5
|
-
static convertResolvedReadyToSendEmailToRaw(rts: ResolvedReadyToSendEmail): string;
|
|
6
|
-
static validEmail(email: string): boolean;
|
|
7
|
-
}
|
package/lib/mail/mailer.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReadyToSendEmail } from './ready-to-send-email.js';
|
|
2
|
-
import { MailerConfig } from './mailer-config.js';
|
|
3
|
-
import { ResolvedReadyToSendEmail } from './resolved-ready-to-send-email.js';
|
|
4
|
-
import { MailerLike } from './mailer-like.js';
|
|
5
|
-
import { SendEmailResult } from './send-email-result';
|
|
6
|
-
export declare class Mailer<T, R> implements MailerLike<T, R> {
|
|
7
|
-
private config;
|
|
8
|
-
constructor(config: MailerConfig<T, R>);
|
|
9
|
-
fillEmailBody(rts: ReadyToSendEmail, context: any, htmlTemplateName: string, txtTemplateName?: string, layoutName?: string, partialNames?: string[]): Promise<ReadyToSendEmail>;
|
|
10
|
-
fillEmailBodyAndSend(rts: ReadyToSendEmail, context: any, htmlTemplateName: string, txtTemplateName?: string, layoutName?: string, partialNames?: string[]): Promise<SendEmailResult<T, R>>;
|
|
11
|
-
filterEmailsToValid(emails: string[]): string[];
|
|
12
|
-
private archiveEmailIfConfigured;
|
|
13
|
-
applyLimitsToBodySizesIfAnyInPlace(rts: ResolvedReadyToSendEmail): void;
|
|
14
|
-
applyLimitsToAttachmentSizesIfAnyInPlace(rts: ResolvedReadyToSendEmail): void;
|
|
15
|
-
sendEmail(inRts: ReadyToSendEmail): Promise<SendEmailResult<T, R>>;
|
|
16
|
-
resolveReadyToSendEmail(inRts: ReadyToSendEmail): Promise<ResolvedReadyToSendEmail>;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EmailAttachment } from './email-attachment.js';
|
|
2
|
-
export interface ReadyToSendEmail {
|
|
3
|
-
destinationAddresses?: Array<string>;
|
|
4
|
-
bccAddresses?: Array<string>;
|
|
5
|
-
attachments?: Array<EmailAttachment>;
|
|
6
|
-
fromAddress?: string;
|
|
7
|
-
txtMessage?: string;
|
|
8
|
-
htmlMessage?: string;
|
|
9
|
-
subject?: string;
|
|
10
|
-
fromName?: string;
|
|
11
|
-
doNotAutoBcc?: boolean;
|
|
12
|
-
doNotArchive?: boolean;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReadyToSendEmail } from './ready-to-send-email.js';
|
|
2
|
-
import { ResolvedReadyToSendEmail } from './resolved-ready-to-send-email.js';
|
|
3
|
-
import { ArchiveEmailResult } from './archive-email-result';
|
|
4
|
-
export interface SendEmailResult<T, R> {
|
|
5
|
-
request: ReadyToSendEmail;
|
|
6
|
-
resolved: ResolvedReadyToSendEmail;
|
|
7
|
-
success: boolean;
|
|
8
|
-
rawResult: T;
|
|
9
|
-
error: string;
|
|
10
|
-
meta: Record<string, any>;
|
|
11
|
-
archiveResults: ArchiveEmailResult<R>;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ResolvedReadyToSendEmail } from './resolved-ready-to-send-email.js';
|
|
2
|
-
import { MailSendingProvider } from './mail-sending-provider';
|
|
3
|
-
export declare class TestMailSendingProvider implements MailSendingProvider<string, string> {
|
|
4
|
-
failEmails: string[];
|
|
5
|
-
constructor(failEmails?: string[]);
|
|
6
|
-
sendEmail(mail: ResolvedReadyToSendEmail): Promise<string>;
|
|
7
|
-
archiveEmail(mail: ResolvedReadyToSendEmail): Promise<string>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ParsedUrl } from '../lang/parsed-url.js';
|
|
2
|
-
export declare class NetworkRatchet {
|
|
3
|
-
private static LOCAL_IP;
|
|
4
|
-
static findLocalIp(useCache?: boolean): Promise<string>;
|
|
5
|
-
static parseUrl(href: string): ParsedUrl;
|
|
6
|
-
private static updateLocalIP;
|
|
7
|
-
private static grepSDP;
|
|
8
|
-
private static updateAddressList;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare class RestfulApiHttpError<T = void> extends Error {
|
|
2
|
-
private static readonly RATCHET_RESTFUL_API_HTTP_ERROR_FLAG_KEY;
|
|
3
|
-
private _httpStatusCode;
|
|
4
|
-
private _errors;
|
|
5
|
-
private _detailErrorCode;
|
|
6
|
-
private _endUserErrors;
|
|
7
|
-
private _details;
|
|
8
|
-
private _requestId;
|
|
9
|
-
private _wrappedError;
|
|
10
|
-
constructor(...errors: string[]);
|
|
11
|
-
static combineErrorStringsWithDefault(errors: string[], defMessage?: string): string;
|
|
12
|
-
setFormattedErrorMessage(format: string, ...input: any[]): void;
|
|
13
|
-
withFormattedErrorMessage(format: string, ...input: any[]): RestfulApiHttpError<T>;
|
|
14
|
-
withHttpStatusCode(httpStatusCode: number): RestfulApiHttpError<T>;
|
|
15
|
-
withErrors(errors: string[]): RestfulApiHttpError<T>;
|
|
16
|
-
withDetailErrorCode(detailErrorCode: number): RestfulApiHttpError<T>;
|
|
17
|
-
withEndUserErrors(endUserErrors: string[]): RestfulApiHttpError<T>;
|
|
18
|
-
withDetails(details: T): RestfulApiHttpError<T>;
|
|
19
|
-
withRequestId(requestId: string): RestfulApiHttpError<T>;
|
|
20
|
-
withWrappedError(err: Error): RestfulApiHttpError<T>;
|
|
21
|
-
isWrappedError(): boolean;
|
|
22
|
-
static wrapError<T = void>(err: Error): RestfulApiHttpError<T>;
|
|
23
|
-
static objectIsRestfulApiHttpError(obj: any): boolean;
|
|
24
|
-
get httpStatusCode(): number;
|
|
25
|
-
get errors(): string[];
|
|
26
|
-
get detailErrorCode(): number;
|
|
27
|
-
get endUserErrors(): string[];
|
|
28
|
-
get details(): T;
|
|
29
|
-
get requestId(): string;
|
|
30
|
-
get wrappedError(): Error;
|
|
31
|
-
set httpStatusCode(value: number);
|
|
32
|
-
set errors(value: string[]);
|
|
33
|
-
set detailErrorCode(value: number);
|
|
34
|
-
set endUserErrors(value: string[]);
|
|
35
|
-
set details(value: T);
|
|
36
|
-
set requestId(value: string);
|
|
37
|
-
set wrappedError(value: Error);
|
|
38
|
-
static errorIsX0x(errIn: Error, xClass: number): boolean;
|
|
39
|
-
static errorIs40x(err: Error): boolean;
|
|
40
|
-
static errorIs50x(err: Error): boolean;
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class TwilioRatchet {
|
|
2
|
-
private accountSid;
|
|
3
|
-
private authToken;
|
|
4
|
-
private outBoundNumber;
|
|
5
|
-
static readonly TWILLIO_BASE_API_URL: string;
|
|
6
|
-
constructor(accountSid: string, authToken: string, outBoundNumber: string);
|
|
7
|
-
static sendMessageDirect(accountSid: string, authToken: string, outBoundNumber: string, recipientPhoneNumbers: string[], message: string): Promise<any[]>;
|
|
8
|
-
static generateTwilioBasicAuth(sid: string, authToken: string): string;
|
|
9
|
-
sendMessage(recipientPhoneNumbers: string[], message: string): Promise<any[]>;
|
|
10
|
-
static isValidE164Number(num: string): boolean;
|
|
11
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare class TwilioVerifyRatchet {
|
|
2
|
-
private accountSid;
|
|
3
|
-
private authToken;
|
|
4
|
-
private serviceSid;
|
|
5
|
-
static readonly TWILLIO_BASE_VERIFY_URL: string;
|
|
6
|
-
constructor(accountSid: string, authToken: string, serviceSid: string);
|
|
7
|
-
sendVerificationTokenUsingTwilioVerify(recipientPhoneNumber: string): Promise<string>;
|
|
8
|
-
simpleCheckVerificationTokenUsingTwilioVerify(recipientPhoneNumber: string, code: string): Promise<boolean>;
|
|
9
|
-
checkVerificationTokenUsingTwilioVerify(recipientPhoneNumber: string, code: string): Promise<TwilioVerifyCheckResponse>;
|
|
10
|
-
}
|
|
11
|
-
export interface TwilioVerifyCheckResponse {
|
|
12
|
-
status: string;
|
|
13
|
-
payee: string;
|
|
14
|
-
date_updated: string;
|
|
15
|
-
account_sid: string;
|
|
16
|
-
to: string;
|
|
17
|
-
amount: string;
|
|
18
|
-
valid: boolean;
|
|
19
|
-
sid: string;
|
|
20
|
-
date_created: string;
|
|
21
|
-
service_sid: string;
|
|
22
|
-
channel: string;
|
|
23
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TransformRule } from './transform-rule.js';
|
|
2
|
-
export declare class BuiltInTransforms {
|
|
3
|
-
static keysOnly(rule: TransformRule): TransformRule;
|
|
4
|
-
static valuesOnly(rule: TransformRule): TransformRule;
|
|
5
|
-
static stringReplaceTransform(input: string, output: string): TransformRule;
|
|
6
|
-
static stripStringTransform(input: string): TransformRule;
|
|
7
|
-
static retainAll(input: string[]): TransformRule;
|
|
8
|
-
static removeAll(input: string[]): TransformRule;
|
|
9
|
-
static snakeToCamelCase(): TransformRule;
|
|
10
|
-
static stringToNumber(): TransformRule;
|
|
11
|
-
static camelToSnakeCase(): TransformRule;
|
|
12
|
-
static concatenateToNewField(newFieldName: string, oldFieldNamesInOrder: string[], abortIfFieldMissing?: boolean): TransformRule;
|
|
13
|
-
static numberToBool(fieldNames: string[]): TransformRule;
|
|
14
|
-
static boolToNumber(fieldNames: string[]): TransformRule;
|
|
15
|
-
static makeDuplicateField(oldName: string, newName: string): TransformRule;
|
|
16
|
-
static addField(name: string, valueToAdd: string): TransformRule;
|
|
17
|
-
static reformatDateFields(fieldNames: string[], oldFormat: string, newFormat: string): TransformRule;
|
|
18
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformRule } from './transform-rule.js';
|
|
2
|
-
export declare class TransformRatchet {
|
|
3
|
-
static transform(toTransform: any, rules?: TransformRule[]): any;
|
|
4
|
-
private static transformGeneric;
|
|
5
|
-
private static applyTransformToObject;
|
|
6
|
-
private static applyTransformToPrimitive;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransactionResult } from './transaction-result.js';
|
|
2
|
-
import { LoggerLevelName } from '../logger/logger-level-name.js';
|
|
3
|
-
export interface TransactionConfiguration<T> {
|
|
4
|
-
stepLogLevel?: LoggerLevelName;
|
|
5
|
-
executeAfterRollback?(result: TransactionResult<T>): Promise<void>;
|
|
6
|
-
executeAfterRollbackFailure?(result: TransactionResult<T>): Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TransactionStep } from './transaction-step.js';
|
|
2
|
-
import { TransactionResult } from './transaction-result.js';
|
|
3
|
-
import { TransactionConfiguration } from './transaction-configuration.js';
|
|
4
|
-
export declare class TransactionRatchet {
|
|
5
|
-
static execute<T>(steps: TransactionStep<T>[], initialContext: T, inConfiguration?: TransactionConfiguration<T>): Promise<TransactionResult<T>>;
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|