@oxyhq/services 5.10.15 → 5.10.16

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,9 +1,9 @@
1
1
  /**
2
2
  * OxyHQServices Node.js Entry Point
3
3
  */
4
- import { OxyServices, OXY_CLOUD_URL } from '../core';
4
+ import { OxyServices, OXY_CLOUD_URL, oxyClient } from '../core';
5
5
  import * as Models from '../models/interfaces';
6
- export { OxyServices, OXY_CLOUD_URL };
6
+ export { OxyServices, OXY_CLOUD_URL, oxyClient };
7
7
  export { Models };
8
8
  export * from '../models/interfaces';
9
9
  export default OxyServices;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;AAGtC,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,cAAc,sBAAsB,CAAC;AAGrC,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;AAGjD,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,cAAc,sBAAsB,CAAC;AAGrC,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/services",
3
- "version": "5.10.15",
3
+ "version": "5.10.16",
4
4
  "description": "Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -1337,4 +1337,7 @@ export class OxyServices {
1337
1337
  }
1338
1338
 
1339
1339
  // Export the cloud URL constant
1340
- export const OXY_CLOUD_URL = 'https://cloud.oxyhq.com';
1340
+ export const OXY_CLOUD_URL = 'https://cloud.oxyhq.com';
1341
+
1342
+ // Pre-configured client instance for easy import
1343
+ export const oxyClient = new OxyServices({ baseURL: OXY_CLOUD_URL });
package/src/core/index.ts CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  // Main OxyServices class (unified)
9
9
  export { OxyServices, OxyAuthenticationError, OxyAuthenticationTimeoutError } from './OxyServices';
10
- export { OXY_CLOUD_URL } from './OxyServices';
10
+ export { OXY_CLOUD_URL, oxyClient } from './OxyServices';
11
11
 
12
12
  // Re-export all models and types for convenience
13
13
  export * from '../models/interfaces';
package/src/index.ts CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  // Core exports
10
10
  export { OxyServices, OxyAuthenticationError, OxyAuthenticationTimeoutError } from './core';
11
- export { OXY_CLOUD_URL } from './core';
11
+ export { OXY_CLOUD_URL, oxyClient } from './core';
12
12
 
13
13
  // React context
14
14
  export {
package/src/node/index.ts CHANGED
@@ -3,11 +3,11 @@
3
3
  */
4
4
 
5
5
  // ------------- Core Imports -------------
6
- import { OxyServices, OXY_CLOUD_URL } from '../core'; // Adjusted path
6
+ import { OxyServices, OXY_CLOUD_URL, oxyClient } from '../core'; // Adjusted path
7
7
  import * as Models from '../models/interfaces'; // Adjusted path
8
8
 
9
9
  // ------------- Core Exports -------------
10
- export { OxyServices, OXY_CLOUD_URL };
10
+ export { OxyServices, OXY_CLOUD_URL, oxyClient };
11
11
 
12
12
  // ------------- Model Exports -------------
13
13
  export { Models }; // Export all models as a namespace