@colijnit/transactionapi 1.1.7 → 1.1.10
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/enum/data-service-method.enum.d.ts +2 -1
- package/build/enum/data-service-method.enum.js +1 -0
- package/build/enum/domain-name.enum.d.ts +2 -1
- package/build/enum/domain-name.enum.js +1 -0
- package/build/enum/master-data-object-name.enum.d.ts +3 -1
- package/build/enum/master-data-object-name.enum.js +2 -0
- package/build/enum/public-service-method.d.ts +6 -1
- package/build/enum/public-service-method.js +5 -0
- package/build/enum/transaction-method.enum.d.ts +3 -1
- package/build/enum/transaction-method.enum.js +2 -0
- package/build/ione-api-transaction.d.ts +5 -0
- package/build/model/customer-group.bo.d.ts +6 -0
- package/build/model/customer-group.bo.js +36 -0
- package/build/model/transaction-add-text-line-request.bo.d.ts +10 -0
- package/build/model/transaction-add-text-line-request.bo.js +38 -0
- package/build/model/transaction-line-info.bo.d.ts +2 -0
- package/build/model/transaction-line-info.bo.js +12 -0
- package/build/transaction-auth.d.ts +7 -1
- package/build/transaction-auth.js +309 -397
- package/build/transaction-public.d.ts +6 -0
- package/build/transaction-public.js +57 -0
- package/build/transaction.d.ts +5 -0
- package/build/transaction.js +15 -0
- package/build/transaction.unit.test.js +57 -7
- package/package.json +7 -4
|
@@ -127,371 +127,300 @@ var TransactionAuth = (function (_super) {
|
|
|
127
127
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
128
128
|
};
|
|
129
129
|
TransactionAuth.prototype.getCountries = function () {
|
|
130
|
-
return
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.Country);
|
|
131
|
+
};
|
|
132
|
+
TransactionAuth.prototype.getCustomerGroups = function () {
|
|
133
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.CustomerGroup);
|
|
134
|
+
};
|
|
135
|
+
TransactionAuth.prototype.commit = function () {
|
|
136
|
+
return this._call(DataServiceMethod.Commit, {}, BackendServiceName.DatasessionService);
|
|
135
137
|
};
|
|
136
138
|
TransactionAuth.prototype.getPrivacySettings = function () {
|
|
137
|
-
return
|
|
138
|
-
return __generator(this, function (_a) {
|
|
139
|
-
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PrivacySettingDTO)];
|
|
140
|
-
});
|
|
141
|
-
});
|
|
139
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PrivacySettingDTO);
|
|
142
140
|
};
|
|
143
141
|
TransactionAuth.prototype.getRelationPrivacySettings = function () {
|
|
144
|
-
return
|
|
145
|
-
return __generator(this, function (_a) {
|
|
146
|
-
return [2, this.getPrivacySettings()];
|
|
147
|
-
});
|
|
148
|
-
});
|
|
142
|
+
return this.getPrivacySettings();
|
|
149
143
|
};
|
|
150
144
|
TransactionAuth.prototype.getCommissionCodes = function (languageCode) {
|
|
151
|
-
return
|
|
152
|
-
return __generator(this, function (_a) {
|
|
153
|
-
return [2, this._getDomainCollection(languageCode, DomainName.CommissionCode)];
|
|
154
|
-
});
|
|
155
|
-
});
|
|
145
|
+
return this._getDomainCollection(languageCode, DomainName.CommissionCode);
|
|
156
146
|
};
|
|
157
147
|
TransactionAuth.prototype.getInOutCollection = function (languageCode) {
|
|
158
|
-
return
|
|
159
|
-
return __generator(this, function (_a) {
|
|
160
|
-
return [2, this._getDomainCollection(languageCode, DomainName.InOutCollection)];
|
|
161
|
-
});
|
|
162
|
-
});
|
|
148
|
+
return this._getDomainCollection(languageCode, DomainName.InOutCollection);
|
|
163
149
|
};
|
|
164
|
-
TransactionAuth.prototype.
|
|
165
|
-
return
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
150
|
+
TransactionAuth.prototype.getTextTypes = function (languageCode) {
|
|
151
|
+
return this._getMultipleDomainCollection(languageCode, DomainName.TextType);
|
|
152
|
+
};
|
|
153
|
+
TransactionAuth.prototype.getStandardTexts = function (languageCode) {
|
|
154
|
+
var params = {
|
|
155
|
+
language: languageCode
|
|
156
|
+
};
|
|
157
|
+
var data = {
|
|
158
|
+
moduleName: ModuleName.Transaction,
|
|
159
|
+
methodName: TransactionMethod.GetStandardTextsNoHeadOrFeet,
|
|
160
|
+
parameterValues: params,
|
|
161
|
+
refCursorAsArray: true
|
|
162
|
+
};
|
|
163
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
175
164
|
};
|
|
176
165
|
TransactionAuth.prototype.getTransactionArticleWarehouses = function (goodId, branchNr) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
goodId: goodId
|
|
183
|
-
};
|
|
184
|
-
return [2, this.selectMultiple(ModuleName.Transaction, MasterDataObjectName.WareHouse, "", params)];
|
|
185
|
-
});
|
|
186
|
-
});
|
|
166
|
+
var params = {
|
|
167
|
+
branchNr: branchNr,
|
|
168
|
+
goodId: goodId
|
|
169
|
+
};
|
|
170
|
+
return this.selectMultiple(ModuleName.Transaction, MasterDataObjectName.WareHouse, "", params);
|
|
187
171
|
};
|
|
188
172
|
TransactionAuth.prototype.getMarketingCodes = function () {
|
|
189
|
-
return
|
|
190
|
-
return __generator(this, function (_a) {
|
|
191
|
-
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.MarketingCode)];
|
|
192
|
-
});
|
|
193
|
-
});
|
|
173
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.MarketingCode);
|
|
194
174
|
};
|
|
195
175
|
TransactionAuth.prototype.createTransaction = function (kind, branchNr) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
refCursorAsArray: true
|
|
208
|
-
};
|
|
209
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
210
|
-
});
|
|
211
|
-
});
|
|
176
|
+
var params = {
|
|
177
|
+
transactionKind: kind,
|
|
178
|
+
branchNr: branchNr
|
|
179
|
+
};
|
|
180
|
+
var data = {
|
|
181
|
+
moduleName: ModuleName.Transaction,
|
|
182
|
+
methodName: TransactionMethod.CreateTransaction,
|
|
183
|
+
parameterValues: params,
|
|
184
|
+
refCursorAsArray: true
|
|
185
|
+
};
|
|
186
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
212
187
|
};
|
|
213
188
|
TransactionAuth.prototype.getTransactionByNrAndKind = function (kind, transactionNo) {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
refCursorAsArray: true
|
|
226
|
-
};
|
|
227
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
228
|
-
});
|
|
229
|
-
});
|
|
189
|
+
var params = {
|
|
190
|
+
transactionNr: transactionNo,
|
|
191
|
+
transactionKind: kind
|
|
192
|
+
};
|
|
193
|
+
var data = {
|
|
194
|
+
moduleName: ModuleName.Transaction,
|
|
195
|
+
methodName: TransactionMethod.GetTransactionByNrAndKind,
|
|
196
|
+
parameterValues: params,
|
|
197
|
+
refCursorAsArray: true
|
|
198
|
+
};
|
|
199
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
230
200
|
};
|
|
231
201
|
TransactionAuth.prototype.getTransactionById = function (transactionId) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
202
|
+
var params = {
|
|
203
|
+
transactionId: transactionId
|
|
204
|
+
};
|
|
205
|
+
var data = {
|
|
206
|
+
moduleName: ModuleName.Transaction,
|
|
207
|
+
methodName: TransactionMethod.GetTransactionById,
|
|
208
|
+
parameterValues: params,
|
|
209
|
+
refCursorAsArray: true
|
|
210
|
+
};
|
|
211
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
212
|
+
};
|
|
213
|
+
TransactionAuth.prototype.getArticleBoundTextLinesOfArticleLine = function (articleLineUuid) {
|
|
214
|
+
var params = {
|
|
215
|
+
articleLineUuid: articleLineUuid
|
|
216
|
+
};
|
|
217
|
+
var data = {
|
|
218
|
+
moduleName: ModuleName.Transaction,
|
|
219
|
+
methodName: TransactionMethod.GetArticleBoundTextLinesOfArticleLine,
|
|
220
|
+
parameterValues: params,
|
|
221
|
+
refCursorAsArray: true
|
|
222
|
+
};
|
|
223
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
247
224
|
};
|
|
248
225
|
TransactionAuth.prototype.addRelationToTransaction = function (uuid, relationId) {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
refCursorAsArray: true,
|
|
261
|
-
};
|
|
262
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
263
|
-
});
|
|
264
|
-
});
|
|
226
|
+
var params = {
|
|
227
|
+
transactionUuid: uuid,
|
|
228
|
+
relationId: relationId
|
|
229
|
+
};
|
|
230
|
+
var data = {
|
|
231
|
+
moduleName: ModuleName.Transaction,
|
|
232
|
+
methodName: TransactionMethod.SetTransactionRelation,
|
|
233
|
+
parameterValues: params,
|
|
234
|
+
refCursorAsArray: true,
|
|
235
|
+
};
|
|
236
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
265
237
|
};
|
|
266
238
|
TransactionAuth.prototype.saveTransaction = function (uuid) {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
refCursorAsArray: true,
|
|
278
|
-
};
|
|
279
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
280
|
-
});
|
|
281
|
-
});
|
|
239
|
+
var params = {
|
|
240
|
+
uuid: uuid
|
|
241
|
+
};
|
|
242
|
+
var data = {
|
|
243
|
+
moduleName: ModuleName.Transaction,
|
|
244
|
+
methodName: TransactionMethod.SaveTransaction,
|
|
245
|
+
parameterValues: params,
|
|
246
|
+
refCursorAsArray: true,
|
|
247
|
+
};
|
|
248
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
282
249
|
};
|
|
283
250
|
TransactionAuth.prototype.setTransactionDeliveryOptions = function (request) {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
refCursorAsArray: true,
|
|
307
|
-
};
|
|
308
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
309
|
-
});
|
|
310
|
-
});
|
|
251
|
+
var params = {
|
|
252
|
+
transactionUuid: request.transactionUuid,
|
|
253
|
+
deliveryMethod: request.deliveryMethod,
|
|
254
|
+
deliveryOptions: request.deliveryOptions,
|
|
255
|
+
deliveryDate: request.deliveryDate,
|
|
256
|
+
allowPartialDelivery: request.allowPartialDelivery,
|
|
257
|
+
preferredDeliveryDate: request.preferredDeliveryDate,
|
|
258
|
+
preferredDeliveryDate2: request.preferredDeliveryDate2,
|
|
259
|
+
remark: request.remark,
|
|
260
|
+
marketingCode: request.marketingCode,
|
|
261
|
+
relationReference: request.relationReference,
|
|
262
|
+
ownReference: request.ownReference,
|
|
263
|
+
transactionAddress: request.transactionAddress,
|
|
264
|
+
invoiceAddress: request.invoiceAddress,
|
|
265
|
+
};
|
|
266
|
+
var data = {
|
|
267
|
+
moduleName: ModuleName.Transaction,
|
|
268
|
+
methodName: TransactionMethod.SetTransactionDeliveryOptions,
|
|
269
|
+
parameterValues: params,
|
|
270
|
+
refCursorAsArray: true,
|
|
271
|
+
};
|
|
272
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
311
273
|
};
|
|
312
274
|
TransactionAuth.prototype.addTransactionLine = function (uuid, lineType, articleNumber, amount, warehouseNr, commissionCode, isReturn, aboveLineNr, belowLineNr) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
refCursorAsArray: true,
|
|
332
|
-
};
|
|
333
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
334
|
-
});
|
|
335
|
-
});
|
|
275
|
+
var params = {
|
|
276
|
+
transactionUuid: uuid,
|
|
277
|
+
articleNumber: articleNumber,
|
|
278
|
+
lineType: lineType,
|
|
279
|
+
amount: amount,
|
|
280
|
+
warehouseNr: warehouseNr,
|
|
281
|
+
commissionCode: commissionCode,
|
|
282
|
+
isReturn: isReturn,
|
|
283
|
+
aboveLineNr: aboveLineNr,
|
|
284
|
+
belowLineNr: belowLineNr
|
|
285
|
+
};
|
|
286
|
+
var data = {
|
|
287
|
+
moduleName: ModuleName.Transaction,
|
|
288
|
+
methodName: TransactionMethod.AddTransactionLine,
|
|
289
|
+
parameterValues: params,
|
|
290
|
+
refCursorAsArray: true,
|
|
291
|
+
};
|
|
292
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
336
293
|
};
|
|
337
294
|
TransactionAuth.prototype.addTextLineToTransaction = function (uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
refCursorAsArray: true,
|
|
355
|
-
};
|
|
356
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
357
|
-
});
|
|
358
|
-
});
|
|
295
|
+
var params = {
|
|
296
|
+
transactionUuid: uuid,
|
|
297
|
+
showOnDocuments: showOnDocuments,
|
|
298
|
+
text: text,
|
|
299
|
+
articleBound: articleBound,
|
|
300
|
+
refArticleLineNr: refArticleLineNr,
|
|
301
|
+
aboveLineNr: aboveLineNr,
|
|
302
|
+
belowLineNr: belowLineNr
|
|
303
|
+
};
|
|
304
|
+
var data = {
|
|
305
|
+
moduleName: ModuleName.Transaction,
|
|
306
|
+
methodName: TransactionMethod.AddTextLineToTransaction,
|
|
307
|
+
parameterValues: params,
|
|
308
|
+
refCursorAsArray: true,
|
|
309
|
+
};
|
|
310
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
359
311
|
};
|
|
360
312
|
TransactionAuth.prototype.changeLineSequence = function (uuid, lineUuid, aboveLineNr, belowLineNr) {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
refCursorAsArray: true,
|
|
375
|
-
};
|
|
376
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
377
|
-
});
|
|
378
|
-
});
|
|
313
|
+
var params = {
|
|
314
|
+
lineUuid: lineUuid,
|
|
315
|
+
transactionUuid: uuid,
|
|
316
|
+
aboveLineNr: aboveLineNr,
|
|
317
|
+
belowLineNr: belowLineNr
|
|
318
|
+
};
|
|
319
|
+
var data = {
|
|
320
|
+
moduleName: ModuleName.Transaction,
|
|
321
|
+
methodName: TransactionMethod.ChangeLineSequence,
|
|
322
|
+
parameterValues: params,
|
|
323
|
+
refCursorAsArray: true,
|
|
324
|
+
};
|
|
325
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
379
326
|
};
|
|
380
327
|
TransactionAuth.prototype.cancelAddTransactionLine = function (lineUuid) {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
refCursorAsArray: true,
|
|
392
|
-
};
|
|
393
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
394
|
-
});
|
|
395
|
-
});
|
|
328
|
+
var params = {
|
|
329
|
+
lineUuid: lineUuid
|
|
330
|
+
};
|
|
331
|
+
var data = {
|
|
332
|
+
moduleName: ModuleName.Transaction,
|
|
333
|
+
methodName: TransactionMethod.CancelAddTransactionLine,
|
|
334
|
+
parameterValues: params,
|
|
335
|
+
refCursorAsArray: true,
|
|
336
|
+
};
|
|
337
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
396
338
|
};
|
|
397
339
|
TransactionAuth.prototype.deleteTransactionLine = function (transactionUuid, lineUuid) {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
refCursorAsArray: true,
|
|
410
|
-
};
|
|
411
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
412
|
-
});
|
|
413
|
-
});
|
|
340
|
+
var params = {
|
|
341
|
+
transactionUuid: transactionUuid,
|
|
342
|
+
transactionLineUuid: lineUuid,
|
|
343
|
+
};
|
|
344
|
+
var data = {
|
|
345
|
+
moduleName: ModuleName.Transaction,
|
|
346
|
+
methodName: TransactionMethod.DeleteTransactionLine,
|
|
347
|
+
parameterValues: params,
|
|
348
|
+
refCursorAsArray: true,
|
|
349
|
+
};
|
|
350
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
414
351
|
};
|
|
415
352
|
TransactionAuth.prototype.changeTransactionLineQuantity = function (transactionUuid, lineUuid, quantity) {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
refCursorAsArray: true,
|
|
429
|
-
};
|
|
430
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
431
|
-
});
|
|
432
|
-
});
|
|
353
|
+
var params = {
|
|
354
|
+
transactionUuid: transactionUuid,
|
|
355
|
+
transactionLineUuid: lineUuid,
|
|
356
|
+
newQuantity: quantity
|
|
357
|
+
};
|
|
358
|
+
var data = {
|
|
359
|
+
moduleName: ModuleName.Transaction,
|
|
360
|
+
methodName: TransactionMethod.ChangeTransactionLineQuantity,
|
|
361
|
+
parameterValues: params,
|
|
362
|
+
refCursorAsArray: true,
|
|
363
|
+
};
|
|
364
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
433
365
|
};
|
|
434
366
|
TransactionAuth.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
refCursorAsArray: true,
|
|
443
|
-
};
|
|
444
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
445
|
-
});
|
|
446
|
-
});
|
|
367
|
+
var data = {
|
|
368
|
+
moduleName: ModuleName.Transaction,
|
|
369
|
+
methodName: TransactionMethod.ResolvePendingLineReason,
|
|
370
|
+
parameterValues: pendingLineValues,
|
|
371
|
+
refCursorAsArray: true,
|
|
372
|
+
};
|
|
373
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
447
374
|
};
|
|
448
375
|
TransactionAuth.prototype.getCustomerFullObject = function (relationNo) {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
objectId: relationNo
|
|
457
|
-
};
|
|
458
|
-
return [2, this._call(DataServiceMethod.SelectSingleObject, data)];
|
|
459
|
-
});
|
|
460
|
-
});
|
|
376
|
+
var data = {
|
|
377
|
+
moduleName: ModuleName.Relation,
|
|
378
|
+
objectName: RelationObjectName.CustomerFullObject,
|
|
379
|
+
refCursorAsArray: true,
|
|
380
|
+
objectId: relationNo
|
|
381
|
+
};
|
|
382
|
+
return this._call(DataServiceMethod.SelectSingleObject, data);
|
|
461
383
|
};
|
|
462
384
|
TransactionAuth.prototype.getRelationNumber = function (relationId) {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
refCursorAsArray: true
|
|
474
|
-
};
|
|
475
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
476
|
-
});
|
|
477
|
-
});
|
|
385
|
+
var params = {
|
|
386
|
+
relationId: relationId
|
|
387
|
+
};
|
|
388
|
+
var data = {
|
|
389
|
+
moduleName: ModuleName.Relation,
|
|
390
|
+
methodName: RelationObjectName.GetRelationNumber,
|
|
391
|
+
parameterValues: params,
|
|
392
|
+
refCursorAsArray: true
|
|
393
|
+
};
|
|
394
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
478
395
|
};
|
|
479
396
|
TransactionAuth.prototype.getSequenceValue = function (sequenceName, noSequence) {
|
|
480
397
|
if (noSequence === void 0) { noSequence = false; }
|
|
481
398
|
return __awaiter(this, void 0, void 0, function () {
|
|
482
|
-
var params, data;
|
|
399
|
+
var params, data, response;
|
|
483
400
|
return __generator(this, function (_a) {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
401
|
+
switch (_a.label) {
|
|
402
|
+
case 0:
|
|
403
|
+
params = {
|
|
404
|
+
seqName: sequenceName,
|
|
405
|
+
noSequence: noSequence
|
|
406
|
+
};
|
|
407
|
+
data = {
|
|
408
|
+
moduleName: ModuleName.General,
|
|
409
|
+
methodName: GeneralMethod.GetSequenceValue,
|
|
410
|
+
parameterValues: params,
|
|
411
|
+
refCursorAsArray: true
|
|
412
|
+
};
|
|
413
|
+
return [4, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
414
|
+
case 1:
|
|
415
|
+
response = _a.sent();
|
|
416
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
417
|
+
return [2, response.resultObject];
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
return [2, null];
|
|
421
|
+
}
|
|
422
|
+
return [2];
|
|
423
|
+
}
|
|
495
424
|
});
|
|
496
425
|
});
|
|
497
426
|
};
|
|
@@ -518,76 +447,63 @@ var TransactionAuth = (function (_super) {
|
|
|
518
447
|
});
|
|
519
448
|
};
|
|
520
449
|
TransactionAuth.prototype.updateCustomer = function (customer) {
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
object: this._boSerializer.prepareBusinessObjectForSend(customer),
|
|
529
|
-
};
|
|
530
|
-
return [2, this._call(DataServiceMethod.UpdateObject, data)];
|
|
531
|
-
});
|
|
532
|
-
});
|
|
450
|
+
var data = {
|
|
451
|
+
moduleName: ModuleName.Relation,
|
|
452
|
+
objectName: RelationObjectName.CustomerFullObject,
|
|
453
|
+
methodName: DataServiceMethod.UpdateObject,
|
|
454
|
+
object: this._boSerializer.prepareBusinessObjectForSend(customer),
|
|
455
|
+
};
|
|
456
|
+
return this._call(DataServiceMethod.UpdateObject, data);
|
|
533
457
|
};
|
|
534
458
|
TransactionAuth.prototype.getDeliveryMethods = function () {
|
|
535
|
-
return
|
|
536
|
-
return __generator(this, function (_a) {
|
|
537
|
-
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryMethod, OperationName.GetAll)];
|
|
538
|
-
});
|
|
539
|
-
});
|
|
459
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryMethod, OperationName.GetAll);
|
|
540
460
|
};
|
|
541
461
|
TransactionAuth.prototype.getDeliveryOptions = function () {
|
|
542
|
-
return
|
|
543
|
-
return __generator(this, function (_a) {
|
|
544
|
-
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryOption)];
|
|
545
|
-
});
|
|
546
|
-
});
|
|
462
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryOption);
|
|
547
463
|
};
|
|
548
464
|
TransactionAuth.prototype.getPostalCodeRetrieval = function (postalCode, houseNumber) {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
refCursorAsArray: true
|
|
561
|
-
};
|
|
562
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
563
|
-
});
|
|
564
|
-
});
|
|
465
|
+
var params = {
|
|
466
|
+
postalCode: postalCode,
|
|
467
|
+
houseNumber: houseNumber
|
|
468
|
+
};
|
|
469
|
+
var data = {
|
|
470
|
+
moduleName: ModuleName.Relation,
|
|
471
|
+
methodName: GeneralMethod.PostalCodeRetrieval,
|
|
472
|
+
parameterValues: params,
|
|
473
|
+
refCursorAsArray: true
|
|
474
|
+
};
|
|
475
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
565
476
|
};
|
|
566
477
|
TransactionAuth.prototype.getRelationListObjects = function (relationRequest) {
|
|
567
|
-
return
|
|
568
|
-
return __generator(this, function (_a) {
|
|
569
|
-
return [2, this.selectMultiple(ModuleName.Relation, "RelationListObject", undefined, relationRequest)];
|
|
570
|
-
});
|
|
571
|
-
});
|
|
478
|
+
return this.selectMultiple(ModuleName.Relation, "RelationListObject", undefined, relationRequest);
|
|
572
479
|
};
|
|
573
480
|
TransactionAuth.prototype.setRelationByUser = function (uuid, username, password) {
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
481
|
+
var paramValues = {
|
|
482
|
+
uuid: uuid,
|
|
483
|
+
username: username,
|
|
484
|
+
password: password
|
|
485
|
+
};
|
|
486
|
+
var data = {
|
|
487
|
+
moduleName: ModuleName.Transaction,
|
|
488
|
+
methodName: TransactionMethod.SetRelationByUser,
|
|
489
|
+
parameterValues: paramValues,
|
|
490
|
+
refCursorAsArray: true
|
|
491
|
+
};
|
|
492
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
493
|
+
};
|
|
494
|
+
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
495
|
+
var params = {
|
|
496
|
+
domainName: domainName,
|
|
497
|
+
language: languageCode
|
|
498
|
+
};
|
|
499
|
+
return this.selectMultiple(ModuleName.General, MasterDataObjectName.CoDomainValue, "", params);
|
|
500
|
+
};
|
|
501
|
+
TransactionAuth.prototype._getMultipleDomainCollection = function (languageCode, domainName) {
|
|
502
|
+
var params = {
|
|
503
|
+
domainName: domainName,
|
|
504
|
+
language: languageCode
|
|
505
|
+
};
|
|
506
|
+
return this.selectMultiple(ModuleName.General, MasterDataObjectName.CoMultipleValue, "", params);
|
|
591
507
|
};
|
|
592
508
|
TransactionAuth.prototype.callGetNodeData = function (params) {
|
|
593
509
|
var data = {
|
|
@@ -627,29 +543,25 @@ var TransactionAuth = (function (_super) {
|
|
|
627
543
|
return response && response.data && response.data.validationResult && response.data.validationResult.success === true;
|
|
628
544
|
};
|
|
629
545
|
TransactionAuth.prototype.selectMultiple = function (moduleName, objectName, operationName, parameterValues) {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
});
|
|
646
|
-
});
|
|
647
|
-
};
|
|
648
|
-
TransactionAuth.prototype._call = function (method, data, showLoader) {
|
|
546
|
+
var stronglyTypedResults = [];
|
|
547
|
+
var data = {
|
|
548
|
+
moduleName: moduleName,
|
|
549
|
+
objectName: objectName
|
|
550
|
+
};
|
|
551
|
+
if (operationName) {
|
|
552
|
+
data.operationName = operationName;
|
|
553
|
+
}
|
|
554
|
+
if (parameterValues) {
|
|
555
|
+
data.parameterValues = parameterValues;
|
|
556
|
+
}
|
|
557
|
+
return this._call(DataServiceMethod.SelectMultipleObjects, data);
|
|
558
|
+
};
|
|
559
|
+
TransactionAuth.prototype._call = function (method, data, service, showLoader) {
|
|
560
|
+
if (service === void 0) { service = BackendServiceName.DataService; }
|
|
649
561
|
if (showLoader === void 0) { showLoader = false; }
|
|
650
562
|
return __awaiter(this, void 0, void 0, function () {
|
|
651
563
|
return __generator(this, function (_a) {
|
|
652
|
-
return [2, this.connector.call(method, data, showLoader,
|
|
564
|
+
return [2, this.connector.call(method, data, showLoader, service, this.endPoint)];
|
|
653
565
|
});
|
|
654
566
|
});
|
|
655
567
|
};
|