@partium/ionic-sdk 14.17.0 → 15.1.0

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/core/index.d.ts CHANGED
@@ -1,2 +1,12 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
2
  export * from '@partium/js-sdk/core';
3
+ export * from './models/ionic-partium-config';
4
+ import { Partium as PartiumBase } from '@partium/js-sdk';
5
+ import { Observable } from 'rxjs';
6
+ import { IonicPartiumConfig } from './models/ionic-partium-config';
7
+ /**
8
+ * Ionic specific wrapper for @partium/js-sdk Partium.init
9
+ */
10
+ export declare class Partium extends PartiumBase {
11
+ static init(config: IonicPartiumConfig): Observable<any>;
12
+ }
package/core/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,i,r,t){void 0===t&&(t=r);var c=Object.getOwnPropertyDescriptor(i,r);c&&!("get"in c?!i.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return i[r]}}),Object.defineProperty(e,t,c)}:function(e,i,r,t){void 0===t&&(t=r),e[t]=i[r]}),__exportStar=this&&this.__exportStar||function(e,i){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(i,r)||__createBinding(i,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("@partium/js-sdk/core"),exports);const js_sdk_1=require("@partium/js-sdk"),core_1=require("@partium/js-sdk/core"),origInit=js_sdk_1.Partium.init;js_sdk_1.Partium.init=function(e){return console.log("Initializing Partium..."),origInit(Object.assign(e,{authenticationConfig:e.authenticationConfig,httpsClientService:e.httpsClientService||core_1.AxiosHttpsClientService,fileTransferService:e.fileTransferService||core_1.AxiosFileTransferService,localStorageService:e.localStorageService||core_1.WebLocalStorageService,deviceStatusService:e.deviceStatusService||core_1.WebDeviceStatusService,fileService:e.fileService||core_1.WebFileService}))};
2
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(t,e,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,o)}:function(t,e,r,i){void 0===i&&(i=r),t[i]=e[r]}),__exportStar=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||__createBinding(e,t,r)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Partium=void 0,__exportStar(require("@partium/js-sdk/core"),exports),__exportStar(require("./models/ionic-partium-config"),exports);const js_sdk_1=require("@partium/js-sdk");class Partium extends js_sdk_1.Partium{static init(t){return console.log("Initializing Partium (Ionic)...",t),super.init(t)}}exports.Partium=Partium;
@@ -0,0 +1,22 @@
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
+ import { HttpsClientService } from '@partium/js-sdk/core';
3
+ import { BaseServiceClass } from '@partium/js-sdk/core';
4
+ import { FileTransferService } from '@partium/js-sdk/core';
5
+ import { LocalStorageService } from '@partium/js-sdk/core';
6
+ import { DeviceStatusService } from '@partium/js-sdk/core';
7
+ import { FileService } from '@partium/js-sdk/core';
8
+ import { PartiumConfig } from '@partium/js-sdk/core';
9
+ /**
10
+ * The Ionic specific Partium-configuration that is passed to the Partium-SDK for the initialization.
11
+ * It contains information about the backend-url, the authentication-method and it's configuration,
12
+ * and some references to Platform-Adapters that need to be implemented.
13
+ */
14
+ export declare class IonicPartiumConfig extends PartiumConfig {
15
+ protected _platform: 'ionic';
16
+ httpsClientService: BaseServiceClass<HttpsClientService>;
17
+ fileTransferService: BaseServiceClass<FileTransferService>;
18
+ localStorageService: BaseServiceClass<LocalStorageService>;
19
+ deviceStatusService: BaseServiceClass<DeviceStatusService>;
20
+ fileService: BaseServiceClass<FileService>;
21
+ constructor(init?: Partial<IonicPartiumConfig>);
22
+ }
@@ -0,0 +1,2 @@
1
+ // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IonicPartiumConfig=void 0;const core_1=require("@partium/js-sdk/core"),core_2=require("@partium/js-sdk/core");class IonicPartiumConfig extends core_2.PartiumConfig{constructor(e){super(e),this.httpsClientService=core_1.AxiosHttpsClientService,this.fileTransferService=core_1.AxiosFileTransferService,this.localStorageService=core_1.WebLocalStorageService,this.deviceStatusService=core_1.WebDeviceStatusService,this.fileService=core_1.WebFileService,Object.assign(this,e)}}exports.IonicPartiumConfig=IonicPartiumConfig;
package/index.d.ts CHANGED
@@ -9,4 +9,4 @@ export * from '@partium/js-sdk/management';
9
9
  export * from '@partium/js-sdk/catalog';
10
10
  export * from '@partium/js-sdk/datacuration';
11
11
  export * from '@partium/js-sdk/enrichment';
12
- export { Partium, INITIALIZATION_STATUS } from '@partium/js-sdk';
12
+ export { INITIALIZATION_STATUS } from '@partium/js-sdk';
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2026 Partium, Inc. DBA Partium
2
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(r,e,t,i){void 0===i&&(i=t);var o=Object.getOwnPropertyDescriptor(e,t);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,o)}:function(r,e,t,i){void 0===i&&(i=t),r[i]=e[t]}),__exportStar=this&&this.__exportStar||function(r,e){for(var t in r)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||__createBinding(e,r,t)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.INITIALIZATION_STATUS=exports.Partium=void 0,__exportStar(require("./core"),exports),__exportStar(require("@partium/js-sdk/core"),exports),__exportStar(require("@partium/js-sdk/find"),exports),__exportStar(require("@partium/js-sdk/data"),exports),__exportStar(require("@partium/js-sdk/user-data"),exports),__exportStar(require("@partium/js-sdk/ocr"),exports),__exportStar(require("@partium/js-sdk/management"),exports),__exportStar(require("@partium/js-sdk/catalog"),exports),__exportStar(require("@partium/js-sdk/datacuration"),exports),__exportStar(require("@partium/js-sdk/enrichment"),exports);var js_sdk_1=require("@partium/js-sdk");Object.defineProperty(exports,"Partium",{enumerable:!0,get:function(){return js_sdk_1.Partium}}),Object.defineProperty(exports,"INITIALIZATION_STATUS",{enumerable:!0,get:function(){return js_sdk_1.INITIALIZATION_STATUS}});
2
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(r,e,t,i){void 0===i&&(i=t);var o=Object.getOwnPropertyDescriptor(e,t);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,o)}:function(r,e,t,i){void 0===i&&(i=t),r[i]=e[t]}),__exportStar=this&&this.__exportStar||function(r,e){for(var t in r)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||__createBinding(e,r,t)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.INITIALIZATION_STATUS=void 0,__exportStar(require("./core"),exports),__exportStar(require("@partium/js-sdk/core"),exports),__exportStar(require("@partium/js-sdk/find"),exports),__exportStar(require("@partium/js-sdk/data"),exports),__exportStar(require("@partium/js-sdk/user-data"),exports),__exportStar(require("@partium/js-sdk/ocr"),exports),__exportStar(require("@partium/js-sdk/management"),exports),__exportStar(require("@partium/js-sdk/catalog"),exports),__exportStar(require("@partium/js-sdk/datacuration"),exports),__exportStar(require("@partium/js-sdk/enrichment"),exports);var js_sdk_1=require("@partium/js-sdk");Object.defineProperty(exports,"INITIALIZATION_STATUS",{enumerable:!0,get:function(){return js_sdk_1.INITIALIZATION_STATUS}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partium/ionic-sdk",
3
- "version": "14.17.0",
3
+ "version": "15.1.0",
4
4
  "description": "The Partium Find SDK enables integration of Partium’s parts and materials search capabilities into Ionic-based applications.",
5
5
  "author": "Partium Inc.",
6
6
  "license": "See LICENSE.txt",
@@ -19,7 +19,7 @@
19
19
  "clean": "npx rimraf -- node_modules package-lock.json && npm i"
20
20
  },
21
21
  "dependencies": {
22
- "@partium/js-sdk": "14.17.0",
22
+ "@partium/js-sdk": "15.1.0",
23
23
  "rxjs": "~7.8.2"
24
24
  },
25
25
  "devDependencies": {