@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.
- package/README.md +541 -128
- package/lib/commonjs/core/OxyServices.js +6 -1
- package/lib/commonjs/core/OxyServices.js.map +1 -1
- package/lib/commonjs/core/index.js +7 -0
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/node/index.js +7 -0
- package/lib/commonjs/node/index.js.map +1 -1
- package/lib/module/core/OxyServices.js +5 -0
- package/lib/module/core/OxyServices.js.map +1 -1
- package/lib/module/core/index.js +1 -1
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/node/index.js +2 -2
- package/lib/module/node/index.js.map +1 -1
- package/lib/typescript/core/OxyServices.d.ts +1 -0
- package/lib/typescript/core/OxyServices.d.ts.map +1 -1
- package/lib/typescript/core/index.d.ts +1 -1
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/node/index.d.ts +2 -2
- package/lib/typescript/node/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/OxyServices.ts +4 -1
- package/src/core/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/node/index.ts +2 -2
|
@@ -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;
|
|
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.
|
|
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",
|
package/src/core/OxyServices.ts
CHANGED
|
@@ -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
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
|