@squared-functions/types
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -32,2 +32,4 @@ /// <reference path="type.d.ts" /> | ||
compress?: CompressFormat[]; | ||
watch?: boolean | WatchInterval; | ||
tasks?: string[]; | ||
} | ||
@@ -48,4 +50,6 @@ | ||
apiEndpoint?: string; | ||
publicAccess?: boolean; | ||
settings?: string; | ||
objects?: CloudObject[]; | ||
overwrite?: boolean; | ||
[key: string]: Undef<unknown>; | ||
@@ -58,2 +62,7 @@ } | ||
interface WatchInterval { | ||
interval?: number; | ||
expires?: string; | ||
} | ||
interface ResponseData { | ||
@@ -80,7 +89,4 @@ success: boolean; | ||
preserve?: boolean; | ||
watch?: boolean | WatchInterval; | ||
tasks?: string[]; | ||
attributes?: AttributeValue[]; | ||
cloudStorage?: squared.CloudService[]; | ||
exclude?: boolean; | ||
basePath?: string; | ||
@@ -90,12 +96,8 @@ bundleId?: number; | ||
bundleRoot?: string; | ||
textContent?: string; | ||
trailingContent?: FormattableContent[]; | ||
textContent?: string; | ||
inlineContent?: string; | ||
exclude?: boolean; | ||
} | ||
interface WatchInterval { | ||
interval?: number; | ||
expires?: string; | ||
} | ||
interface AttributeValue { | ||
@@ -108,3 +110,2 @@ name: string; | ||
value: string; | ||
format?: string; | ||
preserve?: boolean; | ||
@@ -205,4 +206,5 @@ } | ||
namespace external { | ||
interface CloudUploadOptions { | ||
interface CloudUploadOptions<T>{ | ||
config: squared.CloudService; | ||
credentials: T; | ||
filename: string; | ||
@@ -218,5 +220,5 @@ fileUri: string; | ||
type CloudServiceClient = (data: squared.CloudService, settings: StandardMap) => boolean; | ||
type CloudServiceHost = (this: IFileManager, config: squared.CloudService) => CloudServiceUpload; | ||
type CloudServiceUpload = (buffer: Buffer, success: (value?: unknown) => void, options: CloudUploadOptions) => void; | ||
type CloudServiceClient = (config: squared.CloudService) => boolean; | ||
type CloudServiceHost = (this: IFileManager, config: PlainObject, serviceName: string) => CloudServiceUpload; | ||
type CloudServiceUpload = (buffer: Buffer, success: (value?: unknown) => void, options: CloudUploadOptions<unknown>) => void; | ||
} | ||
@@ -223,0 +225,0 @@ |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Type definitions for squared-functions", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19541
434