@oxyhq/services 5.1.28 → 5.1.30
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 +71 -24
- package/UI_COMPONENTS.md +48 -0
- package/lib/commonjs/core/index.js +17 -4
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/node/index.js +52 -0
- package/lib/commonjs/node/index.js.map +1 -0
- package/lib/commonjs/ui/index.js +9 -1
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +5 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +6 -3
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +638 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/module/core/index.js +17 -4
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/node/index.js +20 -0
- package/lib/module/node/index.js.map +1 -0
- package/lib/module/ui/index.js +1 -0
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/OxyRouter.js +5 -0
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +6 -3
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +632 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/typescript/__tests__/ui/screens/AccountSettingsScreen.test.d.ts +2 -0
- package/lib/typescript/__tests__/ui/screens/AccountSettingsScreen.test.d.ts.map +1 -0
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/node/index.d.ts +10 -0
- package/lib/typescript/node/index.d.ts.map +1 -0
- package/lib/typescript/ui/index.d.ts +1 -0
- package/lib/typescript/ui/index.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +8 -0
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
- package/package.json +5 -22
- package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +112 -0
- package/src/core/index.ts +16 -4
- package/src/node/index.ts +17 -0
- package/src/ui/index.ts +1 -0
- package/src/ui/navigation/OxyRouter.tsx +5 -0
- package/src/ui/screens/AccountCenterScreen.tsx +3 -2
- package/src/ui/screens/AccountSettingsScreen.tsx +616 -0
- package/lib/commonjs/backend.js +0 -44
- package/lib/commonjs/backend.js.map +0 -1
- package/lib/commonjs/core-only.js +0 -44
- package/lib/commonjs/core-only.js.map +0 -1
- package/lib/commonjs/test-backend.js +0 -21
- package/lib/commonjs/test-backend.js.map +0 -1
- package/lib/module/backend.js +0 -17
- package/lib/module/backend.js.map +0 -1
- package/lib/module/core-only.js +0 -17
- package/lib/module/core-only.js.map +0 -1
- package/lib/module/test-backend.js +0 -18
- package/lib/module/test-backend.js.map +0 -1
- package/lib/typescript/backend.d.ts +0 -9
- package/lib/typescript/backend.d.ts.map +0 -1
- package/lib/typescript/core-only.d.ts +0 -9
- package/lib/typescript/core-only.d.ts.map +0 -1
- package/lib/typescript/test-backend.d.ts +0 -8
- package/lib/typescript/test-backend.d.ts.map +0 -1
- package/src/backend.ts +0 -14
- package/src/core-only.ts +0 -14
- package/src/test-backend.ts +0 -17
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
OxyServices: true,
|
|
8
|
-
OXY_CLOUD_URL: true
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "OXY_CLOUD_URL", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _core.OXY_CLOUD_URL;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "OxyServices", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () {
|
|
19
|
-
return _core.OxyServices;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
exports.default = void 0;
|
|
23
|
-
var _core = require("./core");
|
|
24
|
-
var _interfaces = require("./models/interfaces");
|
|
25
|
-
Object.keys(_interfaces).forEach(function (key) {
|
|
26
|
-
if (key === "default" || key === "__esModule") return;
|
|
27
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
28
|
-
if (key in exports && exports[key] === _interfaces[key]) return;
|
|
29
|
-
Object.defineProperty(exports, key, {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () {
|
|
32
|
-
return _interfaces[key];
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
/**
|
|
37
|
-
* Core OxyServices exports without React Native dependencies
|
|
38
|
-
* Use this import path for Node.js backend environments
|
|
39
|
-
*/
|
|
40
|
-
// Export core services only
|
|
41
|
-
// Export models/interfaces
|
|
42
|
-
// Default export for backward compatibility
|
|
43
|
-
var _default = exports.default = _core.OxyServices;
|
|
44
|
-
//# sourceMappingURL=core-only.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_interfaces","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_default","default","OxyServices"],"sourceRoot":"../../src","sources":["core-only.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,KAAA,GAAAC,OAAA;AAIA,IAAAC,WAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,WAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,WAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,WAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAVA;AACA;AACA;AACA;AAEA;AAIA;AAGA;AAAA,IAAAS,QAAA,GAAAJ,OAAA,CAAAK,OAAA,GACeC,iBAAW","ignoreList":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.oxyServices = void 0;
|
|
7
|
-
var _backend = require("./backend");
|
|
8
|
-
/**
|
|
9
|
-
* Test file to verify backend-only imports work in Node.js
|
|
10
|
-
* This should not import any React Native dependencies
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
// Test importing the backend-only version
|
|
14
|
-
|
|
15
|
-
// Test that we can create an instance
|
|
16
|
-
const oxyServices = exports.oxyServices = new _backend.OxyServices({
|
|
17
|
-
baseURL: 'https://api.example.com'
|
|
18
|
-
});
|
|
19
|
-
console.log('Backend import test successful!');
|
|
20
|
-
console.log('OxyServices instance created:', !!oxyServices);
|
|
21
|
-
//# sourceMappingURL=test-backend.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_backend","require","oxyServices","exports","OxyServices","baseURL","console","log"],"sourceRoot":"../../src","sources":["test-backend.ts"],"mappings":";;;;;;AAMA,IAAAA,QAAA,GAAAC,OAAA;AANA;AACA;AACA;AACA;;AAEA;;AAGA;AACA,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,IAAIE,oBAAW,CAAC;EAClCC,OAAO,EAAE;AACX,CAAC,CAAC;AAEFC,OAAO,CAACC,GAAG,CAAC,iCAAiC,CAAC;AAC9CD,OAAO,CAACC,GAAG,CAAC,+BAA+B,EAAE,CAAC,CAACL,WAAW,CAAC","ignoreList":[]}
|
package/lib/module/backend.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Backend-only exports for Node.js environments
|
|
5
|
-
* This file exports only the core functionality without React Native dependencies
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Export core services
|
|
9
|
-
export { OxyServices, OXY_CLOUD_URL } from './core';
|
|
10
|
-
import { OxyServices } from './core';
|
|
11
|
-
|
|
12
|
-
// Export models/interfaces
|
|
13
|
-
export * from './models/interfaces';
|
|
14
|
-
|
|
15
|
-
// Default export for backward compatibility
|
|
16
|
-
export default OxyServices;
|
|
17
|
-
//# sourceMappingURL=backend.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["OxyServices","OXY_CLOUD_URL"],"sourceRoot":"../../src","sources":["backend.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA;AACA,SAASA,WAAW,EAAEC,aAAa,QAAQ,QAAQ;AACnD,SAASD,WAAW,QAAQ,QAAQ;;AAEpC;AACA,cAAc,qBAAqB;;AAEnC;AACA,eAAeA,WAAW","ignoreList":[]}
|
package/lib/module/core-only.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Core OxyServices exports without React Native dependencies
|
|
5
|
-
* Use this import path for Node.js backend environments
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Export core services only
|
|
9
|
-
export { OxyServices, OXY_CLOUD_URL } from './core';
|
|
10
|
-
import { OxyServices } from './core';
|
|
11
|
-
|
|
12
|
-
// Export models/interfaces
|
|
13
|
-
export * from './models/interfaces';
|
|
14
|
-
|
|
15
|
-
// Default export for backward compatibility
|
|
16
|
-
export default OxyServices;
|
|
17
|
-
//# sourceMappingURL=core-only.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["OxyServices","OXY_CLOUD_URL"],"sourceRoot":"../../src","sources":["core-only.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA;AACA,SAASA,WAAW,EAAEC,aAAa,QAAQ,QAAQ;AACnD,SAASD,WAAW,QAAQ,QAAQ;;AAEpC;AACA,cAAc,qBAAqB;;AAEnC;AACA,eAAeA,WAAW","ignoreList":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Test file to verify backend-only imports work in Node.js
|
|
5
|
-
* This should not import any React Native dependencies
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Test importing the backend-only version
|
|
9
|
-
import { OxyServices } from './backend';
|
|
10
|
-
|
|
11
|
-
// Test that we can create an instance
|
|
12
|
-
const oxyServices = new OxyServices({
|
|
13
|
-
baseURL: 'https://api.example.com'
|
|
14
|
-
});
|
|
15
|
-
console.log('Backend import test successful!');
|
|
16
|
-
console.log('OxyServices instance created:', !!oxyServices);
|
|
17
|
-
export { oxyServices };
|
|
18
|
-
//# sourceMappingURL=test-backend.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["OxyServices","oxyServices","baseURL","console","log"],"sourceRoot":"../../src","sources":["test-backend.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA;AACA,SAASA,WAAW,QAAQ,WAAW;;AAEvC;AACA,MAAMC,WAAW,GAAG,IAAID,WAAW,CAAC;EAClCE,OAAO,EAAE;AACX,CAAC,CAAC;AAEFC,OAAO,CAACC,GAAG,CAAC,iCAAiC,CAAC;AAC9CD,OAAO,CAACC,GAAG,CAAC,+BAA+B,EAAE,CAAC,CAACH,WAAW,CAAC;AAE3D,SAASA,WAAW","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backend-only exports for Node.js environments
|
|
3
|
-
* This file exports only the core functionality without React Native dependencies
|
|
4
|
-
*/
|
|
5
|
-
export { OxyServices, OXY_CLOUD_URL } from './core';
|
|
6
|
-
import { OxyServices } from './core';
|
|
7
|
-
export * from './models/interfaces';
|
|
8
|
-
export default OxyServices;
|
|
9
|
-
//# sourceMappingURL=backend.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../src/backend.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGrC,cAAc,qBAAqB,CAAC;AAGpC,eAAe,WAAW,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core OxyServices exports without React Native dependencies
|
|
3
|
-
* Use this import path for Node.js backend environments
|
|
4
|
-
*/
|
|
5
|
-
export { OxyServices, OXY_CLOUD_URL } from './core';
|
|
6
|
-
import { OxyServices } from './core';
|
|
7
|
-
export * from './models/interfaces';
|
|
8
|
-
export default OxyServices;
|
|
9
|
-
//# sourceMappingURL=core-only.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core-only.d.ts","sourceRoot":"","sources":["../../src/core-only.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGrC,cAAc,qBAAqB,CAAC;AAGpC,eAAe,WAAW,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test file to verify backend-only imports work in Node.js
|
|
3
|
-
* This should not import any React Native dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { OxyServices } from './backend';
|
|
6
|
-
declare const oxyServices: OxyServices;
|
|
7
|
-
export { oxyServices };
|
|
8
|
-
//# sourceMappingURL=test-backend.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-backend.d.ts","sourceRoot":"","sources":["../../src/test-backend.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,QAAA,MAAM,WAAW,aAEf,CAAC;AAKH,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/src/backend.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backend-only exports for Node.js environments
|
|
3
|
-
* This file exports only the core functionality without React Native dependencies
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Export core services
|
|
7
|
-
export { OxyServices, OXY_CLOUD_URL } from './core';
|
|
8
|
-
import { OxyServices } from './core';
|
|
9
|
-
|
|
10
|
-
// Export models/interfaces
|
|
11
|
-
export * from './models/interfaces';
|
|
12
|
-
|
|
13
|
-
// Default export for backward compatibility
|
|
14
|
-
export default OxyServices;
|
package/src/core-only.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core OxyServices exports without React Native dependencies
|
|
3
|
-
* Use this import path for Node.js backend environments
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Export core services only
|
|
7
|
-
export { OxyServices, OXY_CLOUD_URL } from './core';
|
|
8
|
-
import { OxyServices } from './core';
|
|
9
|
-
|
|
10
|
-
// Export models/interfaces
|
|
11
|
-
export * from './models/interfaces';
|
|
12
|
-
|
|
13
|
-
// Default export for backward compatibility
|
|
14
|
-
export default OxyServices;
|
package/src/test-backend.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test file to verify backend-only imports work in Node.js
|
|
3
|
-
* This should not import any React Native dependencies
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Test importing the backend-only version
|
|
7
|
-
import { OxyServices } from './backend';
|
|
8
|
-
|
|
9
|
-
// Test that we can create an instance
|
|
10
|
-
const oxyServices = new OxyServices({
|
|
11
|
-
baseURL: 'https://api.example.com'
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
console.log('Backend import test successful!');
|
|
15
|
-
console.log('OxyServices instance created:', !!oxyServices);
|
|
16
|
-
|
|
17
|
-
export { oxyServices };
|