@aerostack/core 0.6.3 → 0.6.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/dist/client.d.ts CHANGED
@@ -1,10 +1,14 @@
1
1
  import { Product, Cart, AerostackRPC, CollectionItem, StoreConfig, ProductVariant, Category } from './types';
2
+ /** @deprecated Use AerostackConfig instead. */
2
3
  export interface AerocallConfig {
3
4
  baseUrl?: string;
4
5
  apiKey?: string;
5
6
  jwt?: string;
6
7
  projectId?: string;
7
8
  }
9
+ export interface AerostackConfig extends AerocallConfig {
10
+ }
11
+ /** @deprecated Use AerostackClient instead. */
8
12
  export declare class AerocallClient implements AerostackRPC {
9
13
  private baseUrl;
10
14
  private apiKey?;
@@ -161,3 +165,5 @@ export declare class AerocallClient implements AerostackRPC {
161
165
  }>;
162
166
  };
163
167
  }
168
+ export declare class AerostackClient extends AerocallClient {
169
+ }
package/dist/client.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AerocallClient = void 0;
3
+ exports.AerostackClient = exports.AerocallClient = void 0;
4
+ /** @deprecated Use AerostackClient instead. */
4
5
  class AerocallClient {
5
6
  constructor(config) {
6
7
  this.baseUrl = config.baseUrl || 'https://api.aerocall.ai/v1';
@@ -117,3 +118,6 @@ class AerocallClient {
117
118
  }
118
119
  }
119
120
  exports.AerocallClient = AerocallClient;
121
+ class AerostackClient extends AerocallClient {
122
+ }
123
+ exports.AerostackClient = AerostackClient;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { AerocallClient, AerocallConfig } from './client';
1
+ export { AerocallClient, AerocallConfig, AerostackClient, AerostackConfig } from './client';
2
2
  export * from './types';
3
3
  export * from './types/gateway';
package/dist/index.js CHANGED
@@ -14,8 +14,9 @@ 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.AerocallClient = void 0;
17
+ exports.AerostackClient = exports.AerocallClient = void 0;
18
18
  var client_1 = require("./client");
19
19
  Object.defineProperty(exports, "AerocallClient", { enumerable: true, get: function () { return client_1.AerocallClient; } });
20
+ Object.defineProperty(exports, "AerostackClient", { enumerable: true, get: function () { return client_1.AerostackClient; } });
20
21
  __exportStar(require("./types"), exports);
21
22
  __exportStar(require("./types/gateway"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aerostack/core",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Shared types and RPC client for Aerostack SDKs",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.js",
package/src/client.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Product, Order, Cart, Customer, AerostackRPC, CollectionItem, StoreConfig, ProductVariant, Category } from './types';
2
2
 
3
+ /** @deprecated Use AerostackConfig instead. */
3
4
  export interface AerocallConfig {
4
5
  baseUrl?: string;
5
6
  apiKey?: string;
@@ -7,6 +8,9 @@ export interface AerocallConfig {
7
8
  projectId?: string;
8
9
  }
9
10
 
11
+ export interface AerostackConfig extends AerocallConfig {}
12
+
13
+ /** @deprecated Use AerostackClient instead. */
10
14
  export class AerocallClient implements AerostackRPC {
11
15
  private baseUrl: string;
12
16
  private apiKey?: string;
@@ -149,3 +153,5 @@ export class AerocallClient implements AerostackRPC {
149
153
  };
150
154
  }
151
155
  }
156
+
157
+ export class AerostackClient extends AerocallClient {}
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { AerocallClient, AerocallConfig } from './client';
1
+ export { AerocallClient, AerocallConfig, AerostackClient, AerostackConfig } from './client';
2
2
  export * from './types';
3
3
  export * from './types/gateway';