@fbrc/sdk 0.0.3 → 0.0.4

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @fbrc/sdk@0.0.3
1
+ # @fbrc/sdk
2
2
 
3
3
  A TypeScript SDK client for the api.fabric.so API.
4
4
 
@@ -14,12 +14,12 @@ Next, try it out.
14
14
 
15
15
  ```ts
16
16
  import {
17
- FabricApi,
17
+ Fabric,
18
18
  } from '@fbrc/sdk';
19
19
 
20
20
  async function example() {
21
21
  console.log('🚀 Testing @fbrc/sdk SDK...');
22
- const api = new FabricApi({ apiKey: 'YOUR_API_KEY' });
22
+ const api = new Fabric({ apiKey: 'YOUR_API_KEY' });
23
23
 
24
24
  const body = {
25
25
  ...
@@ -41,16 +41,16 @@ Select a specific delegated workspace
41
41
 
42
42
  ```ts
43
43
  import {
44
- FabricApi,
44
+ Fabric,
45
45
  } from '@fbrc/sdk';
46
46
 
47
47
  // Provide workspace id in class constructor
48
- const api = new FabricApi({apiKey: 'YOUR_API_KEY', workspaceId: `xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`});
48
+ const api = new Fabric({apiKey: 'YOUR_API_KEY', workspaceId: `xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`});
49
49
  ```
50
50
 
51
51
  ## Documentation
52
52
 
53
- [https://developers.fabric.so/fabric-api](https://developers.fabric.so/reference)
53
+ [https://developers.fabric.so/fabric-api](https://developers.fabric.so/fabric-api)
54
54
 
55
55
  ### Authorization
56
56
 
@@ -17,8 +17,8 @@ type LowercaseFirst<T extends string> = T extends `${infer First}${infer Rest}`
17
17
  type FabricApis = {
18
18
  [K in ApiKeys as LowercaseFirst<StripApiSuffix<K>>]: GeneratedExports[K] extends ApiConstructor ? InstanceType<GeneratedExports[K]> : never;
19
19
  };
20
- export interface FabricApi extends FabricApis {
20
+ export interface Fabric extends FabricApis {
21
21
  }
22
- export declare class FabricApi {
22
+ export declare class Fabric {
23
23
  constructor(options: FabricApiOptions);
24
24
  }
package/dist/esm/index.js CHANGED
@@ -16,7 +16,7 @@ function apiPropertyName(className) {
16
16
  .replace(/Api$/, '') // remove Api suffix
17
17
  .replace(/^./, (c) => c.toLowerCase()); // lowercase first letter
18
18
  }
19
- export class FabricApi {
19
+ export class Fabric {
20
20
  constructor(options) {
21
21
  const configuration = new Configuration(Object.assign({ apiKey: options.apiKey }, (options.workspaceId && {
22
22
  headers: {
package/dist/index.d.ts CHANGED
@@ -17,8 +17,8 @@ type LowercaseFirst<T extends string> = T extends `${infer First}${infer Rest}`
17
17
  type FabricApis = {
18
18
  [K in ApiKeys as LowercaseFirst<StripApiSuffix<K>>]: GeneratedExports[K] extends ApiConstructor ? InstanceType<GeneratedExports[K]> : never;
19
19
  };
20
- export interface FabricApi extends FabricApis {
20
+ export interface Fabric extends FabricApis {
21
21
  }
22
- export declare class FabricApi {
22
+ export declare class Fabric {
23
23
  constructor(options: FabricApiOptions);
24
24
  }
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.FabricApi = void 0;
17
+ exports.Fabric = void 0;
18
18
  /* eslint-disable */
19
19
  const generatedApis = require("./apis/index");
20
20
  const runtime_1 = require("./runtime");
@@ -33,7 +33,7 @@ function apiPropertyName(className) {
33
33
  .replace(/Api$/, '') // remove Api suffix
34
34
  .replace(/^./, (c) => c.toLowerCase()); // lowercase first letter
35
35
  }
36
- class FabricApi {
36
+ class Fabric {
37
37
  constructor(options) {
38
38
  const configuration = new runtime_1.Configuration(Object.assign({ apiKey: options.apiKey }, (options.workspaceId && {
39
39
  headers: {
@@ -46,4 +46,4 @@ class FabricApi {
46
46
  }
47
47
  }
48
48
  }
49
- exports.FabricApi = FabricApi;
49
+ exports.Fabric = Fabric;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fbrc/sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Client library for Fabric API",
5
5
  "author": "",
6
6
  "license": "Apache-2.0",
package/src/index.ts CHANGED
@@ -52,9 +52,9 @@ function apiPropertyName(className: string): string {
52
52
  .replace(/^./, (c) => c.toLowerCase()); // lowercase first letter
53
53
  }
54
54
 
55
- export interface FabricApi extends FabricApis {}
55
+ export interface Fabric extends FabricApis {}
56
56
 
57
- export class FabricApi {
57
+ export class Fabric {
58
58
  constructor(options: FabricApiOptions) {
59
59
  const configuration = new Configuration({
60
60
  apiKey: options.apiKey,