@ossy/sdk 0.6.4 → 0.6.6
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/build/public.index.d.ts +54 -11
- package/build/public.index.js +1 -1
- package/build/types/Field.d.ts +9 -0
- package/build/types/Resource.d.ts +11 -0
- package/build/types/ResourceTemplate.d.ts +9 -0
- package/build/types/Workspace.d.ts +11 -0
- package/build/types/public.index.d.ts +5 -1
- package/package.json +2 -2
package/build/public.index.d.ts
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
declare namespace Jobs {
|
|
2
|
+
let VisualContentDescriptors: string;
|
|
3
|
+
let ResizeCommonWeb: string;
|
|
4
|
+
}
|
|
5
|
+
declare namespace JobStatus {
|
|
6
|
+
let Queued: string;
|
|
7
|
+
let InProgress: string;
|
|
8
|
+
let Success: string;
|
|
9
|
+
let Failed: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface Field {
|
|
13
|
+
label: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
description: string;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
required: boolean;
|
|
19
|
+
options?: string[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface Resource<T = any> {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
location: string;
|
|
26
|
+
belongsTo: string;
|
|
27
|
+
type: string;
|
|
28
|
+
createdBy: string;
|
|
29
|
+
created: string;
|
|
30
|
+
lastUpdated: string;
|
|
31
|
+
content: T;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface ResourceTemplate {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
description: string;
|
|
38
|
+
categoryName: string;
|
|
39
|
+
icon: string;
|
|
40
|
+
fields: Field[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface Workspace {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
createdBy: string;
|
|
47
|
+
created: string;
|
|
48
|
+
users: string[];
|
|
49
|
+
invitations: any[];
|
|
50
|
+
resourceTemplates: ResourceTemplate[];
|
|
51
|
+
services: Record<string, boolean>;
|
|
52
|
+
}
|
|
53
|
+
|
|
1
54
|
interface SDKConfig {
|
|
2
55
|
apiUrl?: string;
|
|
3
56
|
workspaceId?: string;
|
|
@@ -136,15 +189,5 @@ declare class SDK {
|
|
|
136
189
|
makeRequest: <T extends Action>(action: T) => (_payload?: Required<T["payload"]>) => Promise<any>;
|
|
137
190
|
}
|
|
138
191
|
|
|
139
|
-
declare namespace Jobs {
|
|
140
|
-
let VisualContentDescriptors: string;
|
|
141
|
-
let ResizeCommonWeb: string;
|
|
142
|
-
}
|
|
143
|
-
declare namespace JobStatus {
|
|
144
|
-
let Queued: string;
|
|
145
|
-
let InProgress: string;
|
|
146
|
-
let Success: string;
|
|
147
|
-
let Failed: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
192
|
export { JobStatus, Jobs, SDK };
|
|
193
|
+
export type { Field, Resource, ResourceTemplate, Workspace };
|
package/build/public.index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{JobStatus,Jobs}from"./jobs-client.js";export{SDK}from"./sdk.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ResourceTemplate } from "./ResourceTemplate";
|
|
2
|
+
export interface Workspace {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
createdBy: string;
|
|
6
|
+
created: string;
|
|
7
|
+
users: string[];
|
|
8
|
+
invitations: any[];
|
|
9
|
+
resourceTemplates: ResourceTemplate[];
|
|
10
|
+
services: Record<string, boolean>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/sdk",
|
|
3
3
|
"description": "Sofware Development Kit for interacting with our services",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.6",
|
|
5
5
|
"url": "git://github.com/ossy-se/packages/sdk",
|
|
6
6
|
"source": "src/public.index.ts",
|
|
7
7
|
"module": "build/public.index.js",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"/build",
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "3694b1625d298c93c5bfbed5c54a56abb52e4619"
|
|
30
30
|
}
|