bigstate.client.javascript 0.0.5-alpha.34 → 0.0.5-alpha.36

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.
@@ -2,7 +2,7 @@ import { FetchDataResponse, NextType } from '../types';
2
2
  export interface Definition {
3
3
  principals: string[];
4
4
  actions: string[];
5
- resources: string[];
5
+ objects: string[];
6
6
  }
7
7
  export interface Policy {
8
8
  policy: string;
@@ -1,4 +1,4 @@
1
- import { FetchDataResponse, CreateObjectRequest, Action, GetListRequest } from '../types';
1
+ import { FetchDataResponse, CreateObjectRequest, Action, GetListRequest, NextType } from '../types';
2
2
  export type WithValue<T> = {
3
3
  value: T;
4
4
  valueRef?: never;
@@ -39,15 +39,21 @@ export interface VersionRef extends Version {
39
39
  }
40
40
  export interface ValueRefInfo extends ValueRef {
41
41
  objects: VersionRef[];
42
+ fileMimeType?: string;
43
+ fileName?: string;
44
+ fileSize?: number;
42
45
  }
43
46
  export interface SetValueRefRequest extends GetStateBase {
44
47
  filename?: string;
45
48
  filemimetype?: string;
46
49
  }
47
50
  export type GetValueListRequest = GetStateBase & GetListRequest;
51
+ export interface GetListResponse extends NextType {
52
+ values: ValueRefInfo[];
53
+ }
48
54
  export type SubjectStateResponse<T = any> = FetchDataResponse<IStateResponse<T>>;
49
55
  export type SetStateResponse = FetchDataResponse<Version>;
50
56
  export type VersionListResponse = FetchDataResponse<VersionInfo[]>;
51
57
  export type SetValueRefResponse = FetchDataResponse<ValueRef>;
52
58
  export type GetValueRefResponse = FetchDataResponse<Blob | ReadableStream<Uint8Array> | null>;
53
- export type ValueListRefResponse = FetchDataResponse<ValueRefInfo[]>;
59
+ export type ValueListRefResponse = FetchDataResponse<GetListResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigstate.client.javascript",
3
- "version": "0.0.5-alpha.34",
3
+ "version": "0.0.5-alpha.36",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",