@colijnit/mainapi 257.1.3 → 257.1.4

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.
@@ -15,5 +15,6 @@ export declare enum InternalParam {
15
15
  PlanNotFinal = "PLAN_NOT_FINAL",
16
16
  AfterSalesSystem = "ASS",
17
17
  PlanRayon = "PLAN_RAYON",
18
- EarlyOrderPossible = "VOORTIJDIG_ORDER_MOGELIJK"
18
+ EarlyOrderPossible = "VOORTIJDIG_ORDER_MOGELIJK",
19
+ KassaPersnr = "KASSA_PERSNR"
19
20
  }
@@ -20,4 +20,5 @@ var InternalParam;
20
20
  InternalParam["AfterSalesSystem"] = "ASS";
21
21
  InternalParam["PlanRayon"] = "PLAN_RAYON";
22
22
  InternalParam["EarlyOrderPossible"] = "VOORTIJDIG_ORDER_MOGELIJK";
23
+ InternalParam["KassaPersnr"] = "KASSA_PERSNR";
23
24
  })(InternalParam = exports.InternalParam || (exports.InternalParam = {}));
@@ -35,7 +35,7 @@ export declare class MainApi {
35
35
  private readonly _subs;
36
36
  private _connector;
37
37
  constructor(options?: Options);
38
- connect(): Promise<LoginResponse>;
38
+ connect(url?: string, schema?: string, version?: string): Promise<LoginResponse>;
39
39
  logOut(): Promise<ServerResponseData>;
40
40
  selectMultiple(module: ModuleName, objectClass: string, operation?: string, params?: {}, showLoader?: boolean): Promise<DataServiceResponseData>;
41
41
  getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
package/build/main-api.js CHANGED
@@ -38,9 +38,9 @@ class MainApi {
38
38
  this.mainApi.branchNr = this.branch;
39
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()));
40
40
  }
41
- connect() {
41
+ connect(url, schema, version) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- return this._connector.connect();
43
+ return this._connector.connect(url, schema, version);
44
44
  });
45
45
  }
46
46
  logOut() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/mainapi",
3
- "version": "257.1.3",
3
+ "version": "257.1.4",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
@@ -24,11 +24,11 @@
24
24
  "rxjs": "6.6.3"
25
25
  },
26
26
  "peerDependencies": {
27
- "@colijnit/ioneconnector": ">=257.1.0"
27
+ "@colijnit/ioneconnector": ">=257.1.14"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/jest": "^24.0.13",
31
- "@colijnit/ioneconnector": "257.1.0",
31
+ "@colijnit/ioneconnector": "257.1.14",
32
32
  "grunt": "^1.0.3",
33
33
  "grunt-clean": "^0.4.0",
34
34
  "grunt-contrib-clean": "^1.1.0",