needle-cloud 0.1.0-alpha.5 → 0.1.0-alpha.7

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.
@@ -21,6 +21,42 @@ export function uploadFiles(files: Array<import("@needle-tools/cloud-sdk/types")
21
21
  url?: string;
22
22
  skipped?: boolean;
23
23
  }>;
24
+ /**
25
+ * @typedef {Object} Upload
26
+ * @property {string} name
27
+ * @property {string} created_at
28
+ * @property {string} updated_at
29
+ * @property {Array<{
30
+ * name? :string,
31
+ * type: import("@needle-tools/cloud-sdk/types").JobType,
32
+ * created_at: string,
33
+ * updated_at: string,
34
+ * url:string
35
+ * }>} files
36
+ */
37
+ /**
38
+ * @param {AuthData & ({ name?: string, view_id?:string } | { page: number, limit: number })} opts
39
+ * @returns {Promise<Array<Upload>>}
40
+ */
41
+ export function getUploads(opts: AuthData & ({
42
+ name?: string;
43
+ view_id?: string;
44
+ } | {
45
+ page: number;
46
+ limit: number;
47
+ })): Promise<Array<Upload>>;
24
48
  export type AuthData = {
25
49
  token: string;
26
50
  };
51
+ export type Upload = {
52
+ name: string;
53
+ created_at: string;
54
+ updated_at: string;
55
+ files: Array<{
56
+ name?: string;
57
+ type: import("@needle-tools/cloud-sdk/types").JobType;
58
+ created_at: string;
59
+ updated_at: string;
60
+ url: string;
61
+ }>;
62
+ };
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "needle-cloud",
3
- "version": "0.1.0-alpha.5",
3
+ "version": "0.1.0-alpha.7",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "needle-cloud": "./bin/cli.js"
7
7
  },
8
+ "types": "./dist/index.d.ts",
8
9
  "exports": {
9
- "default": "./dist/index.esm.js",
10
+ "import": "./dist/index.esm.js",
10
11
  "types": "./dist/index.d.ts",
11
12
  "node": "./dist/cli.esm.js"
12
13
  },