@colijnit/mainapi 1.0.20 → 1.0.22

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.
@@ -58,5 +58,6 @@ export declare enum DomainName {
58
58
  VoucherType = "DOM_VOUCHERTYPES",
59
59
  TextType = "TEKSTSOORT",
60
60
  ArtPublication = "ART_PUBLICATIE",
61
- ArtPublicationSales = "ART_PUBLICATIE_VERK"
61
+ ArtPublicationSales = "ART_PUBLICATIE_VERK",
62
+ YesNo = "DOM_JANEE"
62
63
  }
@@ -63,4 +63,5 @@ var DomainName;
63
63
  DomainName["TextType"] = "TEKSTSOORT";
64
64
  DomainName["ArtPublication"] = "ART_PUBLICATIE";
65
65
  DomainName["ArtPublicationSales"] = "ART_PUBLICATIE_VERK";
66
+ DomainName["YesNo"] = "DOM_JANEE";
66
67
  })(DomainName = exports.DomainName || (exports.DomainName = {}));
@@ -1,5 +1,4 @@
1
1
  import { Subject } from 'rxjs';
2
- import { Session } from '@colijnit/ioneconnector/build/model/session';
3
2
  import { Options } from '@colijnit/ioneconnector/build/model/options';
4
3
  import { MainApiConnection } from './main-api-connection';
5
4
  import { SequenceName } from './enum/sequence-name.enum';
@@ -18,7 +17,6 @@ export declare class MainApi {
18
17
  schema: string;
19
18
  branch: string;
20
19
  currencyId: number;
21
- session: Session;
22
20
  useLoginEncryption: boolean;
23
21
  languageCode: string;
24
22
  mainApi: MainApiConnection;
package/build/main-api.js CHANGED
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MainApi = void 0;
13
13
  const rxjs_1 = require("rxjs");
14
- const session_1 = require("@colijnit/ioneconnector/build/model/session");
15
14
  const ioneconnector_1 = require("@colijnit/ioneconnector");
16
15
  const main_auth_1 = require("./main-auth");
17
16
  const main_public_1 = require("./main-public");
@@ -21,7 +20,6 @@ class MainApi {
21
20
  this.showLoader = new rxjs_1.Subject();
22
21
  this.connectionAborted = new rxjs_1.Subject();
23
22
  this.connectionResetInactivity = new rxjs_1.Subject();
24
- this.session = new session_1.Session();
25
23
  this.useLoginEncryption = false;
26
24
  this._subs = [];
27
25
  if (options) {
@@ -31,7 +29,6 @@ class MainApi {
31
29
  this.branch = options.branch ? options.branch : "";
32
30
  this.languageCode = options.languageCode;
33
31
  this.currencyId = options.hasOwnProperty("currencyId") ? options.currencyId : undefined;
34
- this.session = options.hasOwnProperty("session") ? options.session : undefined;
35
32
  this.useLoginEncryption = options.hasOwnProperty("useLoginEncryption") ? options.useLoginEncryption === true : false;
36
33
  }
37
34
  this._connector = new ioneconnector_1.Connector(options);
@@ -39,9 +36,6 @@ class MainApi {
39
36
  this.mainApi.connector = this._connector;
40
37
  this.mainApi.languageCode = this.languageCode;
41
38
  this.mainApi.branchNr = this.branch;
42
- if (this._connector.hasOwnProperty("session")) {
43
- this.session = this._connector["session"];
44
- }
45
39
  this._subs.push(this._connector.showLoader.subscribe(value => this.showLoader.next(value)), this._connector.connectionAborted.subscribe(() => this.connectionAborted.next()), this._connector.connectionResetInactivity.subscribe(() => this._handleConnectionReset()));
46
40
  }
47
41
  getSequenceValue(sequenceName, noSequence = false) {
@@ -14,8 +14,7 @@ const sequence_name_enum_1 = require("./enum/sequence-name.enum");
14
14
  const domain_name_enum_1 = require("./enum/domain-name.enum");
15
15
  const preset_bo_1 = require("./model/preset.bo");
16
16
  const options = {
17
- url: 'http',
18
- ajaxUrl: 'http'
17
+ url: 'http'
19
18
  };
20
19
  const localOptions = {
21
20
  url: "http://localhost:8080/ione",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/mainapi",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
@@ -23,11 +23,11 @@
23
23
  "rxjs": "6.6.3"
24
24
  },
25
25
  "peerDependencies": {
26
- "@colijnit/ioneconnector": ">=2.1.16"
26
+ "@colijnit/ioneconnector": ">=3.1.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/jest": "^24.0.13",
30
- "@colijnit/ioneconnector": "2.1.16",
30
+ "@colijnit/ioneconnector": "3.1.0",
31
31
  "grunt": "^1.0.3",
32
32
  "grunt-clean": "^0.4.0",
33
33
  "grunt-contrib-clean": "^1.1.0",