@decaf-ts/integrations 0.9.0 → 0.10.2
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/dist/integrations.cjs +1 -1
- package/docker/minio-compose.yml +1 -1
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs +33 -0
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/core/BlobStoreService.cjs +176 -1
- package/lib/cjs/blob/core/BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs +32 -0
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +31 -0
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/local/LocalBlobStoreService.cjs +30 -0
- package/lib/cjs/blob/local/LocalBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs +30 -0
- package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/MinioBlobStoreService.cjs +2 -16
- package/lib/cjs/blob/s3/MinioBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/R2BlobStoreService.cjs +2 -16
- package/lib/cjs/blob/s3/R2BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs +31 -0
- package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs.map +1 -1
- package/lib/cjs/calendar/CalendarService.cjs +393 -0
- package/lib/cjs/calendar/CalendarService.cjs.map +1 -0
- package/lib/cjs/calendar/index.cjs +21 -0
- package/lib/cjs/calendar/index.cjs.map +1 -0
- package/lib/cjs/calendar/types.cjs +4 -0
- package/lib/cjs/calendar/types.cjs.map +1 -0
- package/lib/cjs/calendar/validators/cron.cjs +58 -0
- package/lib/cjs/calendar/validators/cron.cjs.map +1 -0
- package/lib/cjs/calendar/writers/CalendarFsWriter.cjs +39 -0
- package/lib/cjs/calendar/writers/CalendarFsWriter.cjs.map +1 -0
- package/lib/cjs/calendar/writers/CalenderDownloader.cjs +47 -0
- package/lib/cjs/calendar/writers/CalenderDownloader.cjs.map +1 -0
- package/lib/cjs/calendar/writers/ICalendarWriter.cjs +4 -0
- package/lib/cjs/calendar/writers/ICalendarWriter.cjs.map +1 -0
- package/lib/cjs/graph/log/GraphRunLogger.cjs +2 -3
- package/lib/cjs/graph/log/GraphRunLogger.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/blob/azure/AzureBlobStoreService.js +33 -0
- package/lib/esm/blob/azure/AzureBlobStoreService.js.map +1 -1
- package/lib/esm/blob/core/BlobStoreService.js +176 -1
- package/lib/esm/blob/core/BlobStoreService.js.map +1 -1
- package/lib/esm/blob/gcp/GcsBlobStoreService.js +32 -0
- package/lib/esm/blob/gcp/GcsBlobStoreService.js.map +1 -1
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +31 -0
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +1 -1
- package/lib/esm/blob/local/LocalBlobStoreService.js +30 -0
- package/lib/esm/blob/local/LocalBlobStoreService.js.map +1 -1
- package/lib/esm/blob/memory/MemoryBlobStoreService.js +30 -0
- package/lib/esm/blob/memory/MemoryBlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/MinioBlobStoreService.js +3 -14
- package/lib/esm/blob/s3/MinioBlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/R2BlobStoreService.js +3 -14
- package/lib/esm/blob/s3/R2BlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js +31 -0
- package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js.map +1 -1
- package/lib/esm/calendar/CalendarService.js +384 -0
- package/lib/esm/calendar/CalendarService.js.map +1 -0
- package/lib/esm/calendar/index.js +4 -0
- package/lib/esm/calendar/index.js.map +1 -0
- package/lib/esm/calendar/types.js +2 -0
- package/lib/esm/calendar/types.js.map +1 -0
- package/lib/esm/calendar/validators/cron.js +48 -0
- package/lib/esm/calendar/validators/cron.js.map +1 -0
- package/lib/esm/calendar/writers/CalendarFsWriter.js +31 -0
- package/lib/esm/calendar/writers/CalendarFsWriter.js.map +1 -0
- package/lib/esm/calendar/writers/CalenderDownloader.js +39 -0
- package/lib/esm/calendar/writers/CalenderDownloader.js.map +1 -0
- package/lib/esm/calendar/writers/ICalendarWriter.js +2 -0
- package/lib/esm/calendar/writers/ICalendarWriter.js.map +1 -0
- package/lib/esm/graph/log/GraphRunLogger.js +2 -3
- package/lib/esm/graph/log/GraphRunLogger.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/types/blob/azure/AzureBlobStoreService.d.cts +37 -0
- package/lib/types/blob/azure/AzureBlobStoreService.d.mts +37 -0
- package/lib/types/blob/core/BlobStoreService.d.cts +232 -1
- package/lib/types/blob/core/BlobStoreService.d.mts +232 -1
- package/lib/types/blob/gcp/GcsBlobStoreService.d.cts +35 -0
- package/lib/types/blob/gcp/GcsBlobStoreService.d.mts +35 -0
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.cts +34 -0
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +34 -0
- package/lib/types/blob/local/LocalBlobStoreService.d.cts +27 -0
- package/lib/types/blob/local/LocalBlobStoreService.d.mts +27 -0
- package/lib/types/blob/memory/MemoryBlobStoreService.d.cts +27 -0
- package/lib/types/blob/memory/MemoryBlobStoreService.d.mts +27 -0
- package/lib/types/blob/s3/MinioBlobStoreService.d.cts +5 -0
- package/lib/types/blob/s3/MinioBlobStoreService.d.mts +5 -0
- package/lib/types/blob/s3/R2BlobStoreService.d.cts +5 -0
- package/lib/types/blob/s3/R2BlobStoreService.d.mts +5 -0
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.cts +28 -0
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.mts +28 -0
- package/lib/types/calendar/CalendarService.d.cts +40 -0
- package/lib/types/calendar/CalendarService.d.mts +40 -0
- package/lib/types/calendar/index.d.cts +3 -0
- package/lib/types/calendar/index.d.mts +3 -0
- package/lib/types/calendar/types.d.cts +64 -0
- package/lib/types/calendar/types.d.mts +64 -0
- package/lib/types/calendar/validators/cron.d.cts +7 -0
- package/lib/types/calendar/validators/cron.d.mts +7 -0
- package/lib/types/calendar/writers/CalendarFsWriter.d.cts +6 -0
- package/lib/types/calendar/writers/CalendarFsWriter.d.mts +6 -0
- package/lib/types/calendar/writers/CalenderDownloader.d.cts +6 -0
- package/lib/types/calendar/writers/CalenderDownloader.d.mts +6 -0
- package/lib/types/calendar/writers/ICalendarWriter.d.cts +5 -0
- package/lib/types/calendar/writers/ICalendarWriter.d.mts +5 -0
- package/lib/types/graph/log/GraphRunLogger.d.cts +3 -1
- package/lib/types/graph/log/GraphRunLogger.d.mts +3 -1
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/package.json +14 -2
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface CalendarReminderOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Standard 5-field cron:
|
|
4
|
+
* minute hour day-of-month month day-of-week
|
|
5
|
+
*
|
|
6
|
+
* Examples:
|
|
7
|
+
* "0 9 * * *" Every day at 09:00
|
|
8
|
+
* "0 9,21 * * *" Every day at 09:00 and 21:00
|
|
9
|
+
* "0 9 * * 1-5" Weekdays at 09:00
|
|
10
|
+
*/
|
|
11
|
+
cron: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
location?: string;
|
|
15
|
+
/**
|
|
16
|
+
* First date from which occurrences should be calculated.
|
|
17
|
+
* Defaults to now.
|
|
18
|
+
*/
|
|
19
|
+
start?: Date;
|
|
20
|
+
/**
|
|
21
|
+
* IANA timezone, for example:
|
|
22
|
+
* "Europe/Lisbon"
|
|
23
|
+
*/
|
|
24
|
+
timezone?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Length of each calendar event.
|
|
27
|
+
* Defaults to 15 minutes.
|
|
28
|
+
*/
|
|
29
|
+
durationMinutes?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Calendar notification before every occurrence.
|
|
32
|
+
* Defaults to 10 minutes.
|
|
33
|
+
*/
|
|
34
|
+
alarmMinutesBefore?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Maximum number of generated RDATE occurrences when the cron
|
|
37
|
+
* expression cannot be converted into a single RRULE.
|
|
38
|
+
*/
|
|
39
|
+
maxOccurrences?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Do not generate occurrences after this date.
|
|
42
|
+
*/
|
|
43
|
+
until?: Date;
|
|
44
|
+
uid?: string;
|
|
45
|
+
organizerEmail?: string;
|
|
46
|
+
attendeeEmail?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface CalendarFile {
|
|
49
|
+
filename: string;
|
|
50
|
+
content: string;
|
|
51
|
+
mimeType: "text/calendar";
|
|
52
|
+
bytes: Uint8Array;
|
|
53
|
+
}
|
|
54
|
+
export interface ParsedCron {
|
|
55
|
+
minute: number[];
|
|
56
|
+
hour: number[];
|
|
57
|
+
dayOfMonth: number[] | null;
|
|
58
|
+
month: number[] | null;
|
|
59
|
+
dayOfWeek: number[] | null;
|
|
60
|
+
}
|
|
61
|
+
export interface RecurrenceResult {
|
|
62
|
+
rrule?: string;
|
|
63
|
+
rdates?: Date[];
|
|
64
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Validator, ValidatorOptions } from "@decaf-ts/decorator-validation";
|
|
2
|
+
export declare const CRON_VALIDATION_ERROR_MESSAGE = "Not a valid cron expression";
|
|
3
|
+
export declare class CronValidator extends Validator {
|
|
4
|
+
constructor(message?: string);
|
|
5
|
+
hasErrors(value: string, options?: ValidatorOptions): string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare const cron: (message?: string) => (target: object, propKey?: any) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Validator, ValidatorOptions } from "@decaf-ts/decorator-validation";
|
|
2
|
+
export declare const CRON_VALIDATION_ERROR_MESSAGE = "Not a valid cron expression";
|
|
3
|
+
export declare class CronValidator extends Validator {
|
|
4
|
+
constructor(message?: string);
|
|
5
|
+
hasErrors(value: string, options?: ValidatorOptions): string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare const cron: (message?: string) => (target: object, propKey?: any) => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICalendarWriter } from "./ICalendarWriter.d.cts";
|
|
2
|
+
import { CalendarFile } from "../types.d.cts";
|
|
3
|
+
import { Context } from "@decaf-ts/core";
|
|
4
|
+
export declare class FsCalenderWriter implements ICalendarWriter {
|
|
5
|
+
write(file: CalendarFile, ctx: Context<any>): Promise<CalendarFile>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICalendarWriter } from "./ICalendarWriter.d.mts";
|
|
2
|
+
import { CalendarFile } from "../types.d.mts";
|
|
3
|
+
import { Context } from "@decaf-ts/core";
|
|
4
|
+
export declare class FsCalenderWriter implements ICalendarWriter {
|
|
5
|
+
write(file: CalendarFile, ctx: Context<any>): Promise<CalendarFile>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICalendarWriter } from "./ICalendarWriter.d.cts";
|
|
2
|
+
import { CalendarFile } from "../types.d.cts";
|
|
3
|
+
import { Context } from "@decaf-ts/core";
|
|
4
|
+
export declare class DownloadCalenderWriter implements ICalendarWriter {
|
|
5
|
+
write(file: CalendarFile, ctx: Context): Promise<CalendarFile>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICalendarWriter } from "./ICalendarWriter.d.mts";
|
|
2
|
+
import { CalendarFile } from "../types.d.mts";
|
|
3
|
+
import { Context } from "@decaf-ts/core";
|
|
4
|
+
export declare class DownloadCalenderWriter implements ICalendarWriter {
|
|
5
|
+
write(file: CalendarFile, ctx: Context): Promise<CalendarFile>;
|
|
6
|
+
}
|
|
@@ -60,7 +60,9 @@ export declare class GraphRunLogger implements Logger {
|
|
|
60
60
|
/** @inheritdoc */
|
|
61
61
|
debug(msg: StringLike, meta?: LogMeta): void;
|
|
62
62
|
/** @inheritdoc */
|
|
63
|
-
action(action: string,
|
|
63
|
+
action(action: string, meta?: LogMeta): void;
|
|
64
|
+
/** @inheritdoc */
|
|
65
|
+
action(action: string, code: number, meta?: LogMeta): void;
|
|
64
66
|
/** @inheritdoc */
|
|
65
67
|
setConfig(): void;
|
|
66
68
|
/** @inheritdoc */
|
|
@@ -60,7 +60,9 @@ export declare class GraphRunLogger implements Logger {
|
|
|
60
60
|
/** @inheritdoc */
|
|
61
61
|
debug(msg: StringLike, meta?: LogMeta): void;
|
|
62
62
|
/** @inheritdoc */
|
|
63
|
-
action(action: string,
|
|
63
|
+
action(action: string, meta?: LogMeta): void;
|
|
64
|
+
/** @inheritdoc */
|
|
65
|
+
action(action: string, code: number, meta?: LogMeta): void;
|
|
64
66
|
/** @inheritdoc */
|
|
65
67
|
setConfig(): void;
|
|
66
68
|
/** @inheritdoc */
|
package/lib/types/index.d.cts
CHANGED
|
@@ -7,6 +7,6 @@ export * from "./utils.d.cts";
|
|
|
7
7
|
export * from "./namespaces/index.d.cts";
|
|
8
8
|
export * from "./feature-flags/index.d.cts";
|
|
9
9
|
export declare const VERSION: string;
|
|
10
|
-
export declare const COMMIT = "
|
|
11
|
-
export declare const FULL_VERSION = "0.
|
|
10
|
+
export declare const COMMIT = "3c17886";
|
|
11
|
+
export declare const FULL_VERSION = "0.10.1-3c17886";
|
|
12
12
|
export declare const PACKAGE_NAME: string;
|
package/lib/types/index.d.mts
CHANGED
|
@@ -7,6 +7,6 @@ export * from "./utils.d.mts";
|
|
|
7
7
|
export * from "./namespaces/index.d.mts";
|
|
8
8
|
export * from "./feature-flags/index.d.mts";
|
|
9
9
|
export declare const VERSION: string;
|
|
10
|
-
export declare const COMMIT = "
|
|
11
|
-
export declare const FULL_VERSION = "0.
|
|
10
|
+
export declare const COMMIT = "3c17886";
|
|
11
|
+
export declare const FULL_VERSION = "0.10.1-3c17886";
|
|
12
12
|
export declare const PACKAGE_NAME: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/integrations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.mts",
|
|
@@ -258,6 +258,17 @@
|
|
|
258
258
|
},
|
|
259
259
|
"default": "./lib/esm/blob/memory/index.js"
|
|
260
260
|
},
|
|
261
|
+
"./calendar": {
|
|
262
|
+
"import": {
|
|
263
|
+
"types": "./lib/types/calendar/index.d.mts",
|
|
264
|
+
"default": "./lib/esm/calendar/index.js"
|
|
265
|
+
},
|
|
266
|
+
"require": {
|
|
267
|
+
"types": "./lib/types/calendar/index.d.cts",
|
|
268
|
+
"default": "./lib/cjs/calendar/index.cjs"
|
|
269
|
+
},
|
|
270
|
+
"default": "./lib/esm/calendar/index.js"
|
|
271
|
+
},
|
|
261
272
|
"./graph": {
|
|
262
273
|
"import": {
|
|
263
274
|
"types": "./lib/types/graph/index.d.mts",
|
|
@@ -392,7 +403,8 @@
|
|
|
392
403
|
"@types/supertest": "^6.0.0",
|
|
393
404
|
"reflect-metadata": "^0.2.0",
|
|
394
405
|
"rxjs": "^7.8.0",
|
|
395
|
-
"supertest": "^7.0.0"
|
|
406
|
+
"supertest": "^7.0.0",
|
|
407
|
+
"cron-parser": "^5.7.0"
|
|
396
408
|
},
|
|
397
409
|
"peerDependencies": {
|
|
398
410
|
"@decaf-ts/as-zod": "latest",
|