@corsair-dev/onedrive 0.1.0 → 0.1.1
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/api.test.d.ts.map +1 -1
- package/dist/client.d.ts +4 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/endpoints/drive.d.ts.map +1 -1
- package/dist/endpoints/files.d.ts.map +1 -1
- package/dist/endpoints/index.d.ts +19926 -131
- package/dist/endpoints/index.d.ts.map +1 -1
- package/dist/endpoints/items.d.ts.map +1 -1
- package/dist/endpoints/permissions.d.ts.map +1 -1
- package/dist/endpoints/sharepoint.d.ts.map +1 -1
- package/dist/endpoints/subscriptions.d.ts.map +1 -1
- package/dist/endpoints/types.d.ts +93414 -4525
- package/dist/endpoints/types.d.ts.map +1 -1
- package/dist/index.d.ts +128 -2768
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/integration.test.d.ts +2 -0
- package/dist/integration.test.d.ts.map +1 -0
- package/dist/schema/database.d.ts +20 -20
- package/dist/schema/database.d.ts.map +1 -1
- package/dist/schema/index.d.ts +20 -20
- package/dist/webhooks/drive.d.ts.map +1 -1
- package/dist/webhooks/index.d.ts +6 -6
- package/dist/webhooks/types.d.ts +19 -19
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/webhooks/validation.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/schema/index.d.ts
CHANGED
|
@@ -31,13 +31,13 @@ export declare const OnedriveSchema: {
|
|
|
31
31
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
32
|
}, "strip", import("zod").ZodTypeAny, {
|
|
33
33
|
id?: string | undefined;
|
|
34
|
-
name?: string | undefined;
|
|
35
34
|
path?: string | undefined;
|
|
35
|
+
name?: string | undefined;
|
|
36
36
|
driveId?: string | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
id?: string | undefined;
|
|
39
|
-
name?: string | undefined;
|
|
40
39
|
path?: string | undefined;
|
|
40
|
+
name?: string | undefined;
|
|
41
41
|
driveId?: string | undefined;
|
|
42
42
|
}>>;
|
|
43
43
|
file: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -64,22 +64,22 @@ export declare const OnedriveSchema: {
|
|
|
64
64
|
}, "strip", import("zod").ZodTypeAny, {
|
|
65
65
|
id: string;
|
|
66
66
|
name: string;
|
|
67
|
-
size?: number | undefined;
|
|
68
67
|
webUrl?: string | undefined;
|
|
69
|
-
eTag?: string | undefined;
|
|
70
|
-
cTag?: string | undefined;
|
|
71
|
-
createdDateTime?: string | undefined;
|
|
72
68
|
lastModifiedDateTime?: string | undefined;
|
|
73
|
-
|
|
69
|
+
size?: number | undefined;
|
|
70
|
+
lastModifiedBy?: {
|
|
74
71
|
id?: string | undefined;
|
|
75
72
|
} | undefined;
|
|
76
|
-
|
|
73
|
+
eTag?: string | undefined;
|
|
74
|
+
createdDateTime?: string | undefined;
|
|
75
|
+
createdBy?: {
|
|
77
76
|
id?: string | undefined;
|
|
78
77
|
} | undefined;
|
|
78
|
+
cTag?: string | undefined;
|
|
79
79
|
parentReference?: {
|
|
80
80
|
id?: string | undefined;
|
|
81
|
-
name?: string | undefined;
|
|
82
81
|
path?: string | undefined;
|
|
82
|
+
name?: string | undefined;
|
|
83
83
|
driveId?: string | undefined;
|
|
84
84
|
} | undefined;
|
|
85
85
|
file?: {
|
|
@@ -94,22 +94,22 @@ export declare const OnedriveSchema: {
|
|
|
94
94
|
}, {
|
|
95
95
|
id: string;
|
|
96
96
|
name: string;
|
|
97
|
-
size?: number | undefined;
|
|
98
97
|
webUrl?: string | undefined;
|
|
99
|
-
eTag?: string | undefined;
|
|
100
|
-
cTag?: string | undefined;
|
|
101
|
-
createdDateTime?: string | undefined;
|
|
102
98
|
lastModifiedDateTime?: string | undefined;
|
|
103
|
-
|
|
99
|
+
size?: number | undefined;
|
|
100
|
+
lastModifiedBy?: {
|
|
104
101
|
id?: string | undefined;
|
|
105
102
|
} | undefined;
|
|
106
|
-
|
|
103
|
+
eTag?: string | undefined;
|
|
104
|
+
createdDateTime?: string | undefined;
|
|
105
|
+
createdBy?: {
|
|
107
106
|
id?: string | undefined;
|
|
108
107
|
} | undefined;
|
|
108
|
+
cTag?: string | undefined;
|
|
109
109
|
parentReference?: {
|
|
110
110
|
id?: string | undefined;
|
|
111
|
-
name?: string | undefined;
|
|
112
111
|
path?: string | undefined;
|
|
112
|
+
name?: string | undefined;
|
|
113
113
|
driveId?: string | undefined;
|
|
114
114
|
} | undefined;
|
|
115
115
|
file?: {
|
|
@@ -173,10 +173,10 @@ export declare const OnedriveSchema: {
|
|
|
173
173
|
}>>;
|
|
174
174
|
}, "strip", import("zod").ZodTypeAny, {
|
|
175
175
|
id: string;
|
|
176
|
-
name: string;
|
|
177
176
|
webUrl: string;
|
|
178
|
-
createdDateTime: string;
|
|
179
177
|
lastModifiedDateTime: string;
|
|
178
|
+
name: string;
|
|
179
|
+
createdDateTime: string;
|
|
180
180
|
driveType: string;
|
|
181
181
|
description?: string | undefined;
|
|
182
182
|
owner?: {
|
|
@@ -194,10 +194,10 @@ export declare const OnedriveSchema: {
|
|
|
194
194
|
} | undefined;
|
|
195
195
|
}, {
|
|
196
196
|
id: string;
|
|
197
|
-
name: string;
|
|
198
197
|
webUrl: string;
|
|
199
|
-
createdDateTime: string;
|
|
200
198
|
lastModifiedDateTime: string;
|
|
199
|
+
name: string;
|
|
200
|
+
createdDateTime: string;
|
|
201
201
|
driveType: string;
|
|
202
202
|
description?: string | undefined;
|
|
203
203
|
owner?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../webhooks/drive.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA0B,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAGnE,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../webhooks/drive.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA0B,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAGnE,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,mBAAmB,CA8EnE,CAAC"}
|
package/dist/webhooks/index.d.ts
CHANGED
|
@@ -11,21 +11,21 @@ export declare const DriveWebhooks: {
|
|
|
11
11
|
match: import("corsair/core").CorsairWebhookMatcher;
|
|
12
12
|
handler: import("corsair/core").CorsairWebhookHandler<import("..").OnedriveContext, {
|
|
13
13
|
value: {
|
|
14
|
-
subscriptionId: string;
|
|
15
14
|
changeType: string;
|
|
16
|
-
|
|
17
|
-
clientState?: string | undefined;
|
|
15
|
+
subscriptionId: string;
|
|
18
16
|
resource?: string | undefined;
|
|
17
|
+
clientState?: string | undefined;
|
|
18
|
+
tenantId?: string | undefined;
|
|
19
19
|
resourceData?: Record<string, unknown> | undefined;
|
|
20
20
|
subscriptionExpirationDateTime?: string | undefined;
|
|
21
21
|
}[];
|
|
22
22
|
}, {
|
|
23
23
|
value: {
|
|
24
|
-
subscriptionId: string;
|
|
25
24
|
changeType: string;
|
|
26
|
-
|
|
27
|
-
clientState?: string | undefined;
|
|
25
|
+
subscriptionId: string;
|
|
28
26
|
resource?: string | undefined;
|
|
27
|
+
clientState?: string | undefined;
|
|
28
|
+
tenantId?: string | undefined;
|
|
29
29
|
resourceData?: Record<string, unknown> | undefined;
|
|
30
30
|
subscriptionExpirationDateTime?: string | undefined;
|
|
31
31
|
}[];
|
package/dist/webhooks/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import type { CorsairWebhookMatcher, RawWebhookRequest } from 'corsair/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
export declare const OnedriveNotificationSchema: z.ZodObject<{
|
|
4
4
|
subscriptionId: z.ZodString;
|
|
5
5
|
changeType: z.ZodString;
|
|
@@ -9,19 +9,19 @@ export declare const OnedriveNotificationSchema: z.ZodObject<{
|
|
|
9
9
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
subscriptionExpirationDateTime: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
subscriptionId: string;
|
|
13
12
|
changeType: string;
|
|
14
|
-
|
|
15
|
-
clientState?: string | undefined;
|
|
13
|
+
subscriptionId: string;
|
|
16
14
|
resource?: string | undefined;
|
|
15
|
+
clientState?: string | undefined;
|
|
16
|
+
tenantId?: string | undefined;
|
|
17
17
|
resourceData?: Record<string, unknown> | undefined;
|
|
18
18
|
subscriptionExpirationDateTime?: string | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
subscriptionId: string;
|
|
21
20
|
changeType: string;
|
|
22
|
-
|
|
23
|
-
clientState?: string | undefined;
|
|
21
|
+
subscriptionId: string;
|
|
24
22
|
resource?: string | undefined;
|
|
23
|
+
clientState?: string | undefined;
|
|
24
|
+
tenantId?: string | undefined;
|
|
25
25
|
resourceData?: Record<string, unknown> | undefined;
|
|
26
26
|
subscriptionExpirationDateTime?: string | undefined;
|
|
27
27
|
}>;
|
|
@@ -35,39 +35,39 @@ export declare const OnedriveWebhookPayloadSchema: z.ZodObject<{
|
|
|
35
35
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
36
36
|
subscriptionExpirationDateTime: z.ZodOptional<z.ZodString>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
subscriptionId: string;
|
|
39
38
|
changeType: string;
|
|
40
|
-
|
|
41
|
-
clientState?: string | undefined;
|
|
39
|
+
subscriptionId: string;
|
|
42
40
|
resource?: string | undefined;
|
|
41
|
+
clientState?: string | undefined;
|
|
42
|
+
tenantId?: string | undefined;
|
|
43
43
|
resourceData?: Record<string, unknown> | undefined;
|
|
44
44
|
subscriptionExpirationDateTime?: string | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
subscriptionId: string;
|
|
47
46
|
changeType: string;
|
|
48
|
-
|
|
49
|
-
clientState?: string | undefined;
|
|
47
|
+
subscriptionId: string;
|
|
50
48
|
resource?: string | undefined;
|
|
49
|
+
clientState?: string | undefined;
|
|
50
|
+
tenantId?: string | undefined;
|
|
51
51
|
resourceData?: Record<string, unknown> | undefined;
|
|
52
52
|
subscriptionExpirationDateTime?: string | undefined;
|
|
53
53
|
}>, "many">;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
55
|
value: {
|
|
56
|
-
subscriptionId: string;
|
|
57
56
|
changeType: string;
|
|
58
|
-
|
|
59
|
-
clientState?: string | undefined;
|
|
57
|
+
subscriptionId: string;
|
|
60
58
|
resource?: string | undefined;
|
|
59
|
+
clientState?: string | undefined;
|
|
60
|
+
tenantId?: string | undefined;
|
|
61
61
|
resourceData?: Record<string, unknown> | undefined;
|
|
62
62
|
subscriptionExpirationDateTime?: string | undefined;
|
|
63
63
|
}[];
|
|
64
64
|
}, {
|
|
65
65
|
value: {
|
|
66
|
-
subscriptionId: string;
|
|
67
66
|
changeType: string;
|
|
68
|
-
|
|
69
|
-
clientState?: string | undefined;
|
|
67
|
+
subscriptionId: string;
|
|
70
68
|
resource?: string | undefined;
|
|
69
|
+
clientState?: string | undefined;
|
|
70
|
+
tenantId?: string | undefined;
|
|
71
71
|
resourceData?: Record<string, unknown> | undefined;
|
|
72
72
|
subscriptionExpirationDateTime?: string | undefined;
|
|
73
73
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EASrC,CAAC;A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"validation.d.ts","sourceRoot":"","sources":["../../webhooks/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAM3C,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAwBrD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corsair-dev/onedrive",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "onedrive plugin for Corsair",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"tsup": "^8.0.1",
|
|
24
24
|
"typescript": "^5.9.3",
|
|
25
25
|
"zod": "^3.25.76",
|
|
26
|
-
"corsair": "0.1.
|
|
26
|
+
"corsair": "0.1.54"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|
|
29
29
|
"corsair",
|