@ossy/sdk 0.7.7 → 0.7.8

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.
@@ -1,28 +1,6 @@
1
+ import { SDKConfig, Action } from '@ossy/types';
1
2
  export * from '@ossy/types';
2
-
3
- declare namespace Jobs {
4
- let VisualContentDescriptors: string;
5
- let ResizeCommonWeb: string;
6
- }
7
- declare namespace JobStatus {
8
- let Queued: string;
9
- let InProgress: string;
10
- let Success: string;
11
- let Failed: string;
12
- }
13
-
14
- interface SDKConfig {
15
- apiUrl?: string;
16
- workspaceId?: string;
17
- authorization?: string;
18
- }
19
-
20
- interface Action<Payload extends (Record<string, string | boolean | number> & SDKConfig) | undefined = {}> {
21
- id: string;
22
- endpoint: string;
23
- method: 'GET' | 'POST' | 'PUT' | 'DELETE';
24
- payload?: Payload;
25
- }
3
+ export { JobStatus, Jobs } from '@ossy/types';
26
4
 
27
5
  declare class SDK {
28
6
  workspaceId?: string;
@@ -153,4 +131,4 @@ declare class SDK {
153
131
  makeRequest: <T extends Action>(action: T) => (_payload?: Required<T["payload"]>) => Promise<any>;
154
132
  }
155
133
 
156
- export { JobStatus, Jobs, SDK };
134
+ export { SDK };
@@ -0,0 +1 @@
1
+ export{JobStatus,Jobs}from"../../types/build/Jobs.js";export{SDK}from"./sdk.js";
@@ -1,10 +1,5 @@
1
- import { SDKConfig } from "./config";
2
- export interface Action<Payload extends (Record<string, string | boolean | number> & SDKConfig) | undefined = {}> {
3
- id: string;
4
- endpoint: string;
5
- method: 'GET' | 'POST' | 'PUT' | 'DELETE';
6
- payload?: Payload;
7
- }
1
+ import type { Action } from '@ossy/types';
2
+ export type { Action };
8
3
  export declare const ApiTokenGetAll: Action;
9
4
  export declare const ApiTokenCreate: Action<{
10
5
  name: string;
@@ -1,5 +1 @@
1
- export interface SDKConfig {
2
- apiUrl?: string;
3
- workspaceId?: string;
4
- authorization?: string;
5
- }
1
+ export type { SDKConfig } from '@ossy/types';
@@ -1,13 +1,3 @@
1
- export namespace Jobs {
2
- let VisualContentDescriptors: string;
3
- let ResizeCommonWeb: string;
4
- }
5
- export namespace JobStatus {
6
- let Queued: string;
7
- let InProgress: string;
8
- let Success: string;
9
- let Failed: string;
10
- }
11
1
  export class JobsClient {
12
2
  static location: string;
13
3
  static of(config: any): JobsClient;
@@ -21,3 +11,6 @@ export class JobsClient {
21
11
  resourceId: any;
22
12
  }): any;
23
13
  }
14
+ import { Jobs } from '@ossy/types';
15
+ import { JobStatus } from '@ossy/types';
16
+ export { Jobs, JobStatus };
package/package.json CHANGED
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "name": "@ossy/sdk",
3
3
  "description": "Sofware Development Kit for interacting with our services",
4
- "version": "0.7.7",
4
+ "version": "0.7.8",
5
5
  "url": "git://github.com/ossy-se/packages/sdk",
6
6
  "source": "src/public.index.ts",
7
+ "main": "build/public.index.js",
7
8
  "module": "build/public.index.js",
8
9
  "types": "build/public.index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./build/public.index.js",
13
+ "types": "./build/public.index.d.ts"
14
+ }
15
+ },
9
16
  "type": "module",
10
17
  "author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
11
18
  "repository": {
@@ -14,7 +21,7 @@
14
21
  },
15
22
  "license": "MIT",
16
23
  "dependencies": {
17
- "@ossy/types": "^0.0.6"
24
+ "@ossy/types": "^0.0.7"
18
25
  },
19
26
  "scripts": {
20
27
  "start": "",
@@ -29,5 +36,5 @@
29
36
  "/build",
30
37
  "README.md"
31
38
  ],
32
- "gitHead": "9d1619ca70c0fa64a1b57b34f64ff062cd12c640"
39
+ "gitHead": "444b07347555d52448c3f206db9f492d434222d3"
33
40
  }
@@ -1 +0,0 @@
1
- export{JobStatus,Jobs}from"./jobs-client.js";export{SDK}from"./sdk.js";
File without changes
File without changes
File without changes