@colijnit/articleapi 257.1.0 → 257.1.1

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.
@@ -36,7 +36,6 @@ export declare class Articles {
36
36
  useLoginEncryption: boolean;
37
37
  languageCode: string;
38
38
  articles: IoneApiArticles;
39
- private readonly _subs;
40
39
  private _connector;
41
40
  private boFactory;
42
41
  constructor(options?: Options);
@@ -119,5 +118,4 @@ export declare class Articles {
119
118
  static createConnector(isPublicSession: boolean, sessionExists: boolean): IoneApiArticles;
120
119
  private _getFrozenArticle;
121
120
  private _getArticleFlatTree;
122
- private _handleConnectionReset;
123
121
  }
package/build/articles.js CHANGED
@@ -21,7 +21,6 @@ export class Articles {
21
21
  this.connectionResetInactivity = new Subject();
22
22
  this.useGroups = false;
23
23
  this.useLoginEncryption = false;
24
- this._subs = [];
25
24
  this.boFactory = new BusinessObjectFactory();
26
25
  if (options) {
27
26
  this.url = options.url ? options.url : '';
@@ -37,7 +36,9 @@ export class Articles {
37
36
  this.articles.connector = this._connector;
38
37
  this.articles.languageCode = this.languageCode;
39
38
  this.articles.branchNr = this.branch;
40
- 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()));
39
+ this.showLoader = this._connector.showLoader;
40
+ this.connectionAborted = this._connector.connectionAborted;
41
+ this.connectionResetInactivity = this._connector.connectionResetInactivity;
41
42
  }
42
43
  connect() {
43
44
  return __awaiter(this, void 0, void 0, function* () {
@@ -344,7 +345,4 @@ export class Articles {
344
345
  }
345
346
  });
346
347
  }
347
- _handleConnectionReset() {
348
- this.connectionResetInactivity.next();
349
- }
350
348
  }
@@ -0,0 +1,9 @@
1
+ export declare enum ExternalSourceGroup {
2
+ Catalog = "CATALOG",
3
+ Financial = "FINANCIAL",
4
+ LogisticServiceProviders = "LOGISTIC_SERVICE_PROVIDERS",
5
+ PaymentServiceProvider = "PAYMENT_SERVICE_PROVIDER",
6
+ Verzuim = "VERZUIM",
7
+ Deprecated = "DEPRECATED",
8
+ None = "NONE"
9
+ }
@@ -0,0 +1,10 @@
1
+ export var ExternalSourceGroup;
2
+ (function (ExternalSourceGroup) {
3
+ ExternalSourceGroup["Catalog"] = "CATALOG";
4
+ ExternalSourceGroup["Financial"] = "FINANCIAL";
5
+ ExternalSourceGroup["LogisticServiceProviders"] = "LOGISTIC_SERVICE_PROVIDERS";
6
+ ExternalSourceGroup["PaymentServiceProvider"] = "PAYMENT_SERVICE_PROVIDER";
7
+ ExternalSourceGroup["Verzuim"] = "VERZUIM";
8
+ ExternalSourceGroup["Deprecated"] = "DEPRECATED";
9
+ ExternalSourceGroup["None"] = "NONE";
10
+ })(ExternalSourceGroup || (ExternalSourceGroup = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/articleapi",
3
- "version": "257.1.0",
3
+ "version": "257.1.1",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",