Skip to content

Commit a466c81

Browse files
authored
Remove path from Event and remove owners and acl from storage payload. (#112)
1 parent 3d82509 commit a466c81

File tree

3 files changed

+0
-27
lines changed

3 files changed

+0
-27
lines changed

spec/cloud-functions.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ describe('makeCloudFunction', () => {
5353
},
5454
eventType: 'providers/provider/eventTypes/event',
5555
resource: 'resource',
56-
path: 'path',
5756
params: {
5857
foo: 'bar',
5958
},
@@ -68,7 +67,6 @@ describe('makeCloudFunction', () => {
6867
},
6968
eventType: 'providers/provider/eventTypes/event',
7069
resource: 'resource',
71-
path: 'path',
7270
params: {
7371
foo: 'bar',
7472
},

src/cloud-functions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export interface Event<T> {
2929
timestamp?: string;
3030
eventType?: string;
3131
resource?: string;
32-
path?: string;
3332
params?: {[option: string]: any};
3433
data: T;
3534

src/providers/storage.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,6 @@ export class ObjectBuilder {
6464
}
6565
}
6666

67-
export interface AccessControl {
68-
kind: string;
69-
id: string;
70-
role: string;
71-
selfLink?: string;
72-
bucket?: string;
73-
object?: string;
74-
generation?: number;
75-
entity?: string;
76-
email?: string;
77-
entityId?: string;
78-
domain?: string;
79-
projectTeam?: {
80-
projectNumber?: string,
81-
team?: string,
82-
};
83-
etag?: string;
84-
}
85-
8667
export interface ObjectMetadata {
8768
kind: string;
8869
id: string;
@@ -106,11 +87,6 @@ export interface ObjectMetadata {
10687
metadata?: {
10788
[key: string]: string;
10889
};
109-
acl?: Array<AccessControl>;
110-
owner?: {
111-
entity?: string,
112-
entityId?: string,
113-
};
11490
crc32c?: string;
11591
componentCount?: number;
11692
etag?: string;

0 commit comments

Comments
 (0)