Skip to content

Commit c417cf0

Browse files
authored
feat: add STORAGE_OWNERSHIP_FILTER to consts (#590)
add STORAGE_OWNERSHIP_FILTER to consts This will be used in `apify-client-js` and `apify-core`
1 parent 05f4720 commit c417cf0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

packages/consts/src/consts.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,3 +711,17 @@ export const ACTOR_PERMISSION_LEVEL = {
711711
} as const;
712712

713713
export type ACTOR_PERMISSION_LEVEL = ValueOf<typeof ACTOR_PERMISSION_LEVEL>;
714+
715+
/**
716+
* Filter for listing storages (datasets, key_value_stores & request_queues) by ownership.
717+
* If omitted, we currently return both owned and shared storages
718+
*/
719+
export const STORAGE_OWNERSHIP_FILTER = {
720+
/** Return only storages owned by the user. */
721+
OWNED_BY_ME: 'ownedByMe',
722+
723+
/** Return only storages shared with the user. */
724+
SHARED_WITH_ME: 'sharedWithMe',
725+
} as const;
726+
727+
export type STORAGE_OWNERSHIP_FILTER = ValueOf<typeof STORAGE_OWNERSHIP_FILTER>;

0 commit comments

Comments
 (0)