@colijnit/transactionapi 1.1.98 → 1.1.99
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/build/transaction.d.ts +1 -1
- package/build/transaction.js +3 -3
- package/package.json +7 -7
package/build/transaction.d.ts
CHANGED
|
@@ -355,6 +355,6 @@ export declare class Transaction {
|
|
|
355
355
|
copySalesOrder(request: CopyTransactionRequest): Promise<DataServiceResponseData>;
|
|
356
356
|
copyPurchaseOrder(request: CopyTransactionRequest): Promise<DataServiceResponseData>;
|
|
357
357
|
copySalesQuotation(request: CopyTransactionRequest): Promise<DataServiceResponseData>;
|
|
358
|
-
static createConnector(options: Options): IoneApiTransaction;
|
|
358
|
+
static createConnector(options: Options, sessionExists: boolean): IoneApiTransaction;
|
|
359
359
|
private _handleConnectionReset;
|
|
360
360
|
}
|
package/build/transaction.js
CHANGED
|
@@ -26,7 +26,7 @@ class Transaction {
|
|
|
26
26
|
this.useLoginEncryption = options.hasOwnProperty("useLoginEncryption") ? options.useLoginEncryption === true : false;
|
|
27
27
|
}
|
|
28
28
|
this._connector = new connector_1.Connector(options);
|
|
29
|
-
this.transaction = Transaction.createConnector(options);
|
|
29
|
+
this.transaction = Transaction.createConnector(options, this._connector.hasSession());
|
|
30
30
|
this.transaction.connector = this._connector;
|
|
31
31
|
this.transaction.languageCode = this.languageCode;
|
|
32
32
|
this.transaction.branchNr = this.branch;
|
|
@@ -689,8 +689,8 @@ class Transaction {
|
|
|
689
689
|
copySalesQuotation(request) {
|
|
690
690
|
return this.transaction.copySalesQuotation(request);
|
|
691
691
|
}
|
|
692
|
-
static createConnector(options) {
|
|
693
|
-
if (options.username && options.password) {
|
|
692
|
+
static createConnector(options, sessionExists) {
|
|
693
|
+
if ((options.username && options.password) || sessionExists) {
|
|
694
694
|
return new transaction_auth_1.TransactionAuth();
|
|
695
695
|
}
|
|
696
696
|
return new transaction_public_1.TransactionPublic();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transactionapi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.99",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"rxjs-compat": "^6.6.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@colijnit/ioneconnector": ">=3.1.
|
|
31
|
-
"@colijnit/mainapi": ">=1.0.
|
|
32
|
-
"@colijnit/relationapi": ">=1.0.
|
|
30
|
+
"@colijnit/ioneconnector": ">=3.1.5",
|
|
31
|
+
"@colijnit/mainapi": ">=1.0.23",
|
|
32
|
+
"@colijnit/relationapi": ">=1.0.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/jest": "^24.0.13",
|
|
36
|
-
"@colijnit/ioneconnector": "3.1.
|
|
37
|
-
"@colijnit/mainapi": "1.0.
|
|
38
|
-
"@colijnit/relationapi": "1.0.
|
|
36
|
+
"@colijnit/ioneconnector": "3.1.5",
|
|
37
|
+
"@colijnit/mainapi": "1.0.23",
|
|
38
|
+
"@colijnit/relationapi": "1.0.8",
|
|
39
39
|
"grunt": "1.0.3",
|
|
40
40
|
"grunt-clean": "0.4.0",
|
|
41
41
|
"grunt-contrib-clean": "1.1.0",
|