@yousolution/node-red-contrib-you-sap-service-layer 0.0.3 → 0.0.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.
@@ -0,0 +1,343 @@
1
+ {
2
+ "AccountCategoryService": ["AccountCategoryService_GetCategoryList"],
3
+ "AccountsService": ["AccountsService_CreateOpenBalance"],
4
+ "AccrualTypesService": ["AccrualTypesService_GetAccrualTypeList"],
5
+ "ActivitiesService": [
6
+ "ActivitiesService_GetActivityList",
7
+ "ActivitiesService_GetSingleInstanceFromSeries",
8
+ "ActivitiesService_UpdateSingleInstanceInSeries",
9
+ "ActivitiesService_DeleteSingleInstanceFromSeries",
10
+ "ActivitiesService_GetTopNActivityInstances"
11
+ ],
12
+ "ActivityRecipientListsService": ["ActivityRecipientListsService_GetList"],
13
+ "AlternativeItemsService": [
14
+ "AlternativeItemsService_AddItem",
15
+ "AlternativeItemsService_UpdateItem",
16
+ "AlternativeItemsService_DeleteItem",
17
+ "AlternativeItemsService_GetItem"
18
+ ],
19
+ "ApprovalRequestsService": [
20
+ "ApprovalRequestsService_GetApprovalRequestList",
21
+ "ApprovalRequestsService_GetOpenApprovalRequestList",
22
+ "ApprovalRequestsService_GetAllApprovalRequestsList"
23
+ ],
24
+ "ApprovalStagesService": ["ApprovalStagesService_GetApprovalStageList"],
25
+ "ApprovalTemplatesService": ["ApprovalTemplatesService_GetApprovalTemplateList"],
26
+ "AssetCapitalizationCreditMemoService": ["AssetCapitalizationCreditMemoService_Cancel", "AssetCapitalizationCreditMemoService_GetList"],
27
+ "AssetCapitalizationService": ["AssetCapitalizationService_Cancel", "AssetCapitalizationService_GetList"],
28
+ "AssetClassesService": ["AssetClassesService_GetList"],
29
+ "AssetDepreciationGroupsService": ["AssetDepreciationGroupsService_GetList"],
30
+ "AssetGroupsService": ["AssetGroupsService_GetList"],
31
+ "AssetManualDepreciationService": ["AssetManualDepreciationService_Cancel", "AssetManualDepreciationService_GetList"],
32
+ "AssetRetirementService": ["AssetRetirementService_Cancel", "AssetRetirementService_GetList"],
33
+ "AssetTransferService": ["AssetTransferService_Cancel", "AssetTransferService_GetList"],
34
+ "AttributeGroupsService": ["AttributeGroupsService_GetList"],
35
+ "BankChargesAllocationCodesService": ["BankChargesAllocationCodesService_GetBankChargesAllocationCodeList"],
36
+ "BankStatementsService": ["BankStatementsService_GetBankStatementList"],
37
+ "BarCodesService": ["BarCodesService_GetList"],
38
+ "BinLocationAttributesService": ["BinLocationAttributesService_GetList"],
39
+ "BinLocationFieldsService": ["BinLocationFieldsService_GetList"],
40
+ "BinLocationsService": ["BinLocationsService_GetList"],
41
+ "BlanketAgreementsService": ["BlanketAgreementsService_GetBlanketAgreementList"],
42
+ "BOEDocumentTypesService": ["BOEDocumentTypesService_GetBOEDocumentTypeList"],
43
+ "BOEInstructionsService": ["BOEInstructionsService_GetBOEInstructionList"],
44
+ "BOELinesService": ["BOELinesService_GetBOELine"],
45
+ "BOEPortfoliosService": ["BOEPortfoliosService_GetBOEPortfolioList"],
46
+ "BPOpeningBalanceService": ["BPOpeningBalanceService_CreateOpenBalance"],
47
+ "BranchesService": ["BranchesService_GetBranchList"],
48
+ "BrazilBeverageIndexersService": ["BrazilBeverageIndexersService_GetList"],
49
+ "BrazilFuelIndexersService": ["BrazilFuelIndexersService_GetList"],
50
+ "BusinessPartnerPropertiesService": ["BusinessPartnerPropertiesService_GetBusinessPartnerPropertyList"],
51
+ "BusinessPartnersService": ["BusinessPartnersService_CreateOpenBalance"],
52
+ "CampaignResponseTypeService": ["CampaignResponseTypeService_GetResponseTypeList"],
53
+ "CampaignsService": ["CampaignsService_GetList"],
54
+ "CashDiscountsService": ["CashDiscountsService_GetCashDiscountList"],
55
+ "CashFlowLineItemsService": ["CashFlowLineItemsService_GetCashFlowLineItemList"],
56
+ "CertificateSeriesService": ["CertificateSeriesService_GetCertificateSeriesList"],
57
+ "ChangeLogsService": ["ChangeLogsService_GetChangeLog", "ChangeLogsService_GetChangeLogDifferences"],
58
+ "CheckLinesService": ["CheckLinesService_GetCheckLine", "CheckLinesService_GetValidCheckLineList"],
59
+ "CockpitsService": [
60
+ "CockpitsService_GetCockpitList",
61
+ "CockpitsService_PublishCockpit",
62
+ "CockpitsService_GetUserCockpitList",
63
+ "CockpitsService_GetTemplateCockpitList"
64
+ ],
65
+ "CompanyService": [
66
+ "CompanyService_GetCompanyInfo",
67
+ "CompanyService_UpdateCompanyInfo",
68
+ "CompanyService_GetAdminInfo",
69
+ "CompanyService_UpdateAdminInfo",
70
+ "CompanyService_CreatePeriod",
71
+ "CompanyService_GetPeriods",
72
+ "CompanyService_GetPeriod",
73
+ "CompanyService_UpdatePeriod",
74
+ "CompanyService_GetFinancePeriods",
75
+ "CompanyService_GetFinancePeriod",
76
+ "CompanyService_UpdateFinancePeriod",
77
+ "CompanyService_RemoveFinancePeriod",
78
+ "CompanyService_CreatePeriodWithFinanceParams",
79
+ "CompanyService_GetFeaturesStatus",
80
+ "CompanyService_GetPathAdmin",
81
+ "CompanyService_UpdatePathAdmin",
82
+ "CompanyService_RoundDecimal",
83
+ "CompanyService_GetItemPrice",
84
+ "CompanyService_GetAdvancedGLAccount"
85
+ ],
86
+ "CorrectionInvoiceReversalService": ["CorrectionInvoiceReversalService_GetApprovalTemplates", "CorrectionInvoiceReversalService_HandleApprovalRequest"],
87
+ "CorrectionInvoiceService": ["CorrectionInvoiceService_GetApprovalTemplates", "CorrectionInvoiceService_HandleApprovalRequest"],
88
+ "CorrectionPurchaseInvoiceReversalService": [
89
+ "CorrectionPurchaseInvoiceReversalService_GetApprovalTemplates",
90
+ "CorrectionPurchaseInvoiceReversalService_HandleApprovalRequest"
91
+ ],
92
+ "CorrectionPurchaseInvoiceService": ["CorrectionPurchaseInvoiceService_GetApprovalTemplates", "CorrectionPurchaseInvoiceService_HandleApprovalRequest"],
93
+ "CostCenterTypesService": ["CostCenterTypesService_GetCostCenterTypeList"],
94
+ "CostElementService": ["CostElementService_GetCostElementList"],
95
+ "CountriesService": ["CountriesService_GetCountryList"],
96
+ "CreditLinesService": ["CreditLinesService_GetCreditLine", "CreditLinesService_GetValidCreditLineList"],
97
+ "CreditNotesService": ["CreditNotesService_GetApprovalTemplates", "CreditNotesService_HandleApprovalRequest"],
98
+ "CycleCountDeterminationsService": ["CycleCountDeterminationsService_GetList"],
99
+ "DashboardPackagesService": ["DashboardPackagesService_ImportDashboardPackage"],
100
+ "DeductionTaxSubGroupsService": ["DeductionTaxSubGroupsService_GetDeductionTaxSubGroupList"],
101
+ "DeliveryNotesService": ["DeliveryNotesService_GetApprovalTemplates", "DeliveryNotesService_HandleApprovalRequest"],
102
+ "DepartmentsService": ["DepartmentsService_GetDepartmentList"],
103
+ "DepositsService": ["DepositsService_GetDepositList", "DepositsService_CancelCheckRow", "DepositsService_CancelCheckRowbyCurrentSystemDate"],
104
+ "DepreciationAreasService": ["DepreciationAreasService_GetList"],
105
+ "DepreciationTypePoolsService": ["DepreciationTypePoolsService_GetList"],
106
+ "DepreciationTypesService": ["DepreciationTypesService_GetList"],
107
+ "DeterminationCriteriasService": ["DeterminationCriteriasService_GetList"],
108
+ "DimensionsService": ["DimensionsService_GetDimensionList"],
109
+ "DistributionRulesService": ["DistributionRulesService_GetDistributionRuleList"],
110
+ "DNFCodeSetupService": ["DNFCodeSetupService_GetDNFCodeSetupList"],
111
+ "DownPaymentsService": ["DownPaymentsService_GetApprovalTemplates", "DownPaymentsService_HandleApprovalRequest"],
112
+ "DraftsService": ["DraftsService_GetApprovalTemplates", "DraftsService_HandleApprovalRequest", "DraftsService_SaveDraftToDocument"],
113
+ "DunningTermsService": ["DunningTermsService_GetDunningTermList"],
114
+ "ElectronicCommunicationActionService": [
115
+ "ElectronicCommunicationActionService_UpdateAction",
116
+ "ElectronicCommunicationActionService_ConfirmSuccessOfCommunication",
117
+ "ElectronicCommunicationActionService_ReportErrorAndContinue",
118
+ "ElectronicCommunicationActionService_ReportErrorAndStop"
119
+ ],
120
+ "ElectronicCommunicationActionsService": [
121
+ "ElectronicCommunicationActionsService_GetEcmAction",
122
+ "ElectronicCommunicationActionsService_AddEcmAction",
123
+ "ElectronicCommunicationActionsService_UpdateEcmAction",
124
+ "ElectronicCommunicationActionsService_DeleteEcmAction",
125
+ "ElectronicCommunicationActionsService_GetEcmActionByDoc",
126
+ "ElectronicCommunicationActionsService_GetEcmActionLogList",
127
+ "ElectronicCommunicationActionsService_GetEcmActionLog",
128
+ "ElectronicCommunicationActionsService_AddEcmActionLog"
129
+ ],
130
+ "ElectronicFileFormatsService": ["ElectronicFileFormatsService_GetElectronicFileFormatList"],
131
+ "EmailGroupsService": ["EmailGroupsService_GetList"],
132
+ "EmployeeIDTypeService": ["EmployeeIDTypeService_GetList"],
133
+ "EmployeePositionService": ["EmployeePositionService_GetList"],
134
+ "EmployeeRolesSetupService": ["EmployeeRolesSetupService_GetEmployeeRoleSetupList"],
135
+ "EmployeeStatusService": ["EmployeeStatusService_GetList"],
136
+ "EmployeeTransfersService": ["EmployeeTransfersService_GetEmployeeTransferList"],
137
+ "EnhancedDiscountGroupsService": ["EnhancedDiscountGroupsService_GetList"],
138
+ "ExtendedTranslationsService": ["ExtendedTranslationsService_GetExtendedTranslationList"],
139
+ "ExternalCallsService": ["ExternalCallsService_SendCall", "ExternalCallsService_UpdateCall", "ExternalCallsService_GetCall"],
140
+ "ExternalReconciliationsService": [
141
+ "ExternalReconciliationsService_Reconcile",
142
+ "ExternalReconciliationsService_GetReconciliation",
143
+ "ExternalReconciliationsService_CancelReconciliation",
144
+ "ExternalReconciliationsService_GetReconciliationList"
145
+ ],
146
+ "FAAccountDeterminationsService": ["FAAccountDeterminationsService_GetList"],
147
+ "FinancialYearsService": ["FinancialYearsService_GetFinancialYearList"],
148
+ "FiscalPrinterService": ["FiscalPrinterService_GetFiscalPrinterList"],
149
+ "FixedAssetItemsService": [
150
+ "FixedAssetItemsService_GetAssetValuesList",
151
+ "FixedAssetItemsService_GetAssetEndBalance",
152
+ "FixedAssetItemsService_UpdateAssetEndBalanceCorrectionInvoiceReversalService",
153
+ "CorrectionInvoiceReversalService_GetApprovalTemplates",
154
+ "CorrectionInvoiceReversalService_HandleApprovalRequest"
155
+ ],
156
+ "GLAccountAdvancedRulesService": ["GLAccountAdvancedRulesService_GetList"],
157
+ "GoodsReturnRequestService": [
158
+ "GoodsReturnRequestService_GetApprovalTemplates",
159
+ "GoodsReturnRequestService_Preview",
160
+ "GoodsReturnRequestService_HandleApprovalRequest"
161
+ ],
162
+ "GovPayCodesService": ["GovPayCodesService_GetList"],
163
+ "GTIsService": ["GTIsService_Import"],
164
+ "IntegrationPackagesConfigureService": ["IntegrationPackagesConfigureService_GetList"],
165
+ "InternalReconciliationsService": ["InternalReconciliationsService_GetOpenTransactions", "InternalReconciliationsService_Cancel"],
166
+ "IntrastatConfigurationService": ["IntrastatConfigurationService_GetList"],
167
+ "InventoryCountingsService": ["InventoryCountingsService_GetList"],
168
+ "InventoryGenEntryService": ["InventoryGenEntryService_GetApprovalTemplates", "InventoryGenEntryService_HandleApprovalRequest"],
169
+ "InventoryGenExitService": ["InventoryGenExitService_GetApprovalTemplates", "InventoryGenExitService_HandleApprovalRequest"],
170
+ "InventoryOpeningBalancesService": ["InventoryOpeningBalancesService_GetList"],
171
+ "InventoryPostingsService": ["InventoryPostingsService_GetList", "InventoryPostingsService_SetCopyOption"],
172
+ "InventoryTransferRequestsService": ["InventoryTransferRequestsService_GetApprovalTemplates", "InventoryTransferRequestsService_HandleApprovalRequest"],
173
+ "InvoicesService": ["InvoicesService_GetApprovalTemplates", "InvoicesService_HandleApprovalRequest"],
174
+ "JournalEntryDocumentTypeService": ["JournalEntryDocumentTypeService_GetList"],
175
+ "JournalVouchersService": ["JournalVouchersService_Add"],
176
+ "KPIsService": ["KPIsService_GetList"],
177
+ "LandedCostsService": ["LandedCostsService_GetLandedCostList"],
178
+ "LicenseService": ["LicenseService_GetInstallationNumber"],
179
+ "Login": ["Login"],
180
+ "Logout": ["Logout"],
181
+ "MaterialGroupsService": ["MaterialGroupsService_GetMaterialGroupList"],
182
+ "MaterialRevaluationFIFOService": ["MaterialRevaluationFIFOService_GetMaterialRevaluationFIFO"],
183
+ "MaterialRevaluationSNBService": ["MaterialRevaluationSNBService_GetList"],
184
+ "MessagesService": ["MessagesService_GetInbox", "MessagesService_GetOutbox", "MessagesService_GetSentMessages"],
185
+ "MobileAddOnSettingService": ["MobileAddOnSettingService_GetMobileAddOnSettingList"],
186
+ "MobileAppService": [
187
+ "MobileAppService_GetTechnicianSchedulings",
188
+ "MobileAppService_GetEmployeeFullNames",
189
+ "MobileAppService_GetTechnicianSettings",
190
+ "MobileAppService_UpdateTechnicianSettings",
191
+ "MobileAppService_GetTechnicianSettingsGroup",
192
+ "MobileAppService_UpdateTechnicianSettingsGroup",
193
+ "MobileAppService_GetServiceAppReportContent",
194
+ "MobileAppService_UpdateServiceAppReportContent",
195
+ "MobileAppService_GetServiceAppReport",
196
+ "MobileAppService_UpdateServiceAppReport"
197
+ ],
198
+ "NatureOfAssesseesService": ["NatureOfAssesseesService_GetNatureOfAssesseeList"],
199
+ "NCMCodesSetupService": ["NCMCodesSetupService_GetNCMCodeSetupList"],
200
+ "NFModelsService": ["NFModelsService_GetList"],
201
+ "NFTaxCategoriesService": ["NFTaxCategoriesService_GetList"],
202
+ "OccurrenceCodesService": ["OccurrenceCodesService_GetList"],
203
+ "OrdersService": ["OrdersService_GetApprovalTemplates", "OrdersService_HandleApprovalRequest"],
204
+ "PartnersSetupsService": ["PartnersSetupsService_GetList"],
205
+ "PaymentBlocksService": ["PaymentBlocksService_GetPaymentBlockList"],
206
+ "PaymentCalculationService": ["PaymentCalculationService_GetPaymentAmount"],
207
+ "PaymentTermsTypesService": ["PaymentTermsTypesService_UpdateWithBPs"],
208
+ "PickListsService": ["PickListsService_Close", "PickListsService_UpdateReleasedAllocation"],
209
+ "PredefinedTextsService": ["PredefinedTextsService_GetPredefinedTextList"],
210
+ "ProfitCentersService": ["ProfitCentersService_GetProfitCenterList"],
211
+ "ProjectManagementConfigurationService": [
212
+ "ProjectManagementConfigurationService_GetSubprojectTypes",
213
+ "ProjectManagementConfigurationService_AddSubprojectTypes",
214
+ "ProjectManagementConfigurationService_UpdateSubprojectTypes",
215
+ "ProjectManagementConfigurationService_DeleteSubprojectTypes",
216
+ "ProjectManagementConfigurationService_GetStageTypes",
217
+ "ProjectManagementConfigurationService_AddStageTypes",
218
+ "ProjectManagementConfigurationService_UpdateStageTypes",
219
+ "ProjectManagementConfigurationService_DeleteStageTypes",
220
+ "ProjectManagementConfigurationService_GetAreas",
221
+ "ProjectManagementConfigurationService_AddAreas",
222
+ "ProjectManagementConfigurationService_UpdateAreas",
223
+ "ProjectManagementConfigurationService_DeleteAreas",
224
+ "ProjectManagementConfigurationService_GetPriorities",
225
+ "ProjectManagementConfigurationService_AddPriorities",
226
+ "ProjectManagementConfigurationService_UpdatePriorities",
227
+ "ProjectManagementConfigurationService_DeletePriorities",
228
+ "ProjectManagementConfigurationService_GetActivities",
229
+ "ProjectManagementConfigurationService_AddActivities",
230
+ "ProjectManagementConfigurationService_UpdateActivities",
231
+ "ProjectManagementConfigurationService_DeleteActivities",
232
+ "ProjectManagementConfigurationService_GetTasks",
233
+ "ProjectManagementConfigurationService_AddTasks",
234
+ "ProjectManagementConfigurationService_UpdateTasks",
235
+ "ProjectManagementConfigurationService_DeleteTasks"
236
+ ],
237
+ "ProjectManagementService": [
238
+ "ProjectManagementService_GetSubprojectsList",
239
+ "ProjectManagementService_GetSubproject",
240
+ "ProjectManagementService_AddSubproject",
241
+ "ProjectManagementService_UpdateSubproject",
242
+ "ProjectManagementService_DeleteSubproject"
243
+ ],
244
+ "ProjectsService": ["ProjectsService_GetProjectList"],
245
+ "PurchaseCreditNotesService": ["PurchaseCreditNotesService_GetApprovalTemplates", "PurchaseCreditNotesService_HandleApprovalRequest"],
246
+ "PurchaseDeliveryNotesService": ["PurchaseDeliveryNotesService_GetApprovalTemplates", "PurchaseDeliveryNotesService_HandleApprovalRequest"],
247
+ "PurchaseDownPaymentsService": ["PurchaseDownPaymentsService_GetApprovalTemplates", "PurchaseDownPaymentsService_HandleApprovalRequest"],
248
+ "PurchaseInvoicesService": ["PurchaseInvoicesService_GetApprovalTemplates", "PurchaseInvoicesService_HandleApprovalRequest"],
249
+ "PurchaseOrdersService": ["PurchaseOrdersService_GetApprovalTemplates", "PurchaseOrdersService_HandleApprovalRequest"],
250
+ "PurchaseQuotationsService": ["PurchaseQuotationsService_GetApprovalTemplates", "PurchaseQuotationsService_HandleApprovalRequest"],
251
+ "PurchaseRequestService": ["PurchaseRequestService_GetApprovalTemplates", "PurchaseRequestService_HandleApprovalRequest"],
252
+ "PurchaseReturnsService": ["PurchaseReturnsService_GetApprovalTemplates", "PurchaseReturnsService_HandleApprovalRequest"],
253
+ "QueryService": ["QueryService_PostQuery"],
254
+ "QuotationsService": ["QuotationsService_GetApprovalTemplates", "QuotationsService_HandleApprovalRequest"],
255
+ "RecurringTransactionService": ["RecurringTransactionService_GetAvailableRecurringTransactions", "RecurringTransactionService_ExecuteRecurringTransactions"],
256
+ "ReportFilterService": ["ReportFilterService_GetTaxReportFilterList"],
257
+ "ReportLayoutsService": [
258
+ "ReportLayoutsService_SetDefaultReport",
259
+ "ReportLayoutsService_GetDefaultReport",
260
+ "ReportLayoutsService_AddReportLayout",
261
+ "ReportLayoutsService_UpdatePrinterSettings",
262
+ "ReportLayoutsService_DeleteReportLayout",
263
+ "ReportLayoutsService_GetReportLayout",
264
+ "ReportLayoutsService_GetDefaultReportLayout",
265
+ "ReportLayoutsService_GetReportLayoutList",
266
+ "ReportLayoutsService_UpdateLanguageReport",
267
+ "ReportLayoutsService_AddReportLayoutToMenu",
268
+ "ReportLayoutsService_DeleteReportLayoutAndMenu"
269
+ ],
270
+ "ReportTypesService": ["ReportTypesService_GetReportTypeList"],
271
+ "ResourceCapacitiesService": ["ResourceCapacitiesService_GetList", "ResourceCapacitiesService_GetListWithFilter"],
272
+ "ResourceGroupsService": ["ResourceGroupsService_GetList"],
273
+ "ResourcePropertiesService": ["ResourcePropertiesService_GetList"],
274
+ "ResourcesService": ["ResourcesService_GetList"],
275
+ "RetornoCodesService": ["RetornoCodesService_GetList"],
276
+ "ReturnRequestService": ["ReturnRequestService_GetApprovalTemplates", "ReturnRequestService_Preview", "ReturnRequestService_HandleApprovalRequest"],
277
+ "ReturnsService": ["ReturnsService_GetApprovalTemplates", "ReturnsService_HandleApprovalRequest"],
278
+ "RouteStagesService": ["RouteStagesService_GetList"],
279
+ "SalesOpportunityCompetitorsSetupService": ["SalesOpportunityCompetitorsSetupService_GetSalesOpportunityCompetitorSetupList"],
280
+ "SalesOpportunityInterestsSetupService": ["SalesOpportunityInterestsSetupService_GetSalesOpportunityInterestSetupList"],
281
+ "SalesOpportunityReasonsSetupService": ["SalesOpportunityReasonsSetupService_GetSalesOpportunityReasonSetupList"],
282
+ "SalesOpportunitySourcesSetupService": ["SalesOpportunitySourcesSetupService_GetSalesOpportunitySourceSetupList"],
283
+ "SBOBobService": [
284
+ "SBOBobService_GetSystemPermission",
285
+ "SBOBobService_GetSystemCurrency",
286
+ "SBOBobService_GetDueDate",
287
+ "SBOBobService_GetLocalCurrency",
288
+ "SBOBobService_GetCurrencyRate",
289
+ "SBOBobService_GetIndexRate",
290
+ "SBOBobService_SetCurrencyRate"
291
+ ],
292
+ "SectionsService": ["SectionsService_GetSectionList"],
293
+ "SeriesService": [
294
+ "SeriesService_AddSeries",
295
+ "SeriesService_RemoveSeries",
296
+ "SeriesService_AttachSeriesToDocument",
297
+ "SeriesService_UnattachSeriesFromDocument",
298
+ "SeriesService_SetDefaultSeriesForAllUsers",
299
+ "SeriesService_SetDefaultSeriesForCurrentUser",
300
+ "SeriesService_SetDefaultSeriesForUser",
301
+ "SeriesService_UpdateSeries",
302
+ "SeriesService_GetDefaultSeries",
303
+ "SeriesService_GetDocumentSeries",
304
+ "SeriesService_GetSeries",
305
+ "SeriesService_GetDocumentChangedMenuName",
306
+ "SeriesService_ChangeDocumentMenuName",
307
+ "SeriesService_GetElectronicSeries",
308
+ "SeriesService_AddElectronicSeries",
309
+ "SeriesService_RemoveElectronicSeries",
310
+ "SeriesService_UpdateElectronicSeries",
311
+ "SeriesService_GetDefaultElectronicSeries",
312
+ "SeriesService_SetDefaultElectronicSeries"
313
+ ],
314
+ "ServiceCallOriginsService": ["ServiceCallOriginsService_GetServiceCallOriginList"],
315
+ "ServiceCallProblemSubTypesService": ["ServiceCallProblemSubTypesService_GetServiceCallProblemSubTypeList"],
316
+ "ServiceCallProblemTypesService": ["ServiceCallProblemTypesService_GetServiceCallProblemTypeList"],
317
+ "ServiceCallSolutionStatusService": ["ServiceCallSolutionStatusService_GetServiceCallSolutionStatusList"],
318
+ "ServiceCallStatusService": ["ServiceCallStatusService_GetServiceCallStatusList"],
319
+ "ServiceCallTypesService": ["ServiceCallTypesService_GetServiceCallTypeList"],
320
+ "ServiceGroupsService": ["ServiceGroupsService_GetServiceGroupList"],
321
+ "ServiceTaxPostingService": ["ServiceTaxPostingService_PostServiceTax", "ServiceTaxPostingService_GetTaxableDeliveries"],
322
+ "StatesService": ["StatesService_GetStateList"],
323
+ "StockTransferDraftService": ["StockTransferDraftService_GetApprovalTemplates", "StockTransferDraftService_HandleApprovalRequest"],
324
+ "StockTransferService": ["StockTransferService_GetApprovalTemplates", "StockTransferService_HandleApprovalRequest"],
325
+ "TargetGroupsService": ["TargetGroupsService_GetList"],
326
+ "TaxCodeDeterminationsService": ["TaxCodeDeterminationsService_GetTaxCodeDeterminationList"],
327
+ "TaxCodeDeterminationsTCDService": ["TaxCodeDeterminationsTCDService_GetTaxCodeDeterminationTCDList"],
328
+ "TaxWebSitesService": ["TaxWebSitesService_GetTaxWebSiteList", "TaxWebSitesService_GetDefaultWebSite"],
329
+ "TerminationReasonService": ["TerminationReasonService_GetList"],
330
+ "TrackingNotesService": ["TrackingNotesService_GetList"],
331
+ "TransactionCodesService": ["TransactionCodesService_GetList"],
332
+ "UnitOfMeasurementGroupsService": ["UnitOfMeasurementGroupsService_GetList"],
333
+ "UnitOfMeasurementsService": ["UnitOfMeasurementsService_GetList"],
334
+ "UserMenuService": [
335
+ "UserMenuService_GetCurrentUserMenu",
336
+ "UserMenuService_UpdateCurrentUserMenu",
337
+ "UserMenuService_GetUserMenu",
338
+ "UserMenuService_UpdateUserMenu"
339
+ ],
340
+ "ValueMappingService": ["ValueMappingService_GetMappedB1Value", "ValueMappingService_GetThirdPartyValuesForB1Value", "ValueMappingService_RemoveMappedValue"],
341
+ "WarehouseSublevelCodesService": ["WarehouseSublevelCodesService_GetList"],
342
+ "WorkflowTaskService": ["WorkflowTaskService_Complete", "WorkflowTaskService_GetApprovalTaskList"]
343
+ }
@@ -0,0 +1,191 @@
1
+ const should = require('should');
2
+ const helper = require('node-red-node-test-helper');
3
+ const manipulateEntitySap = require('../nodes/manipulateEntitySap');
4
+ const Context = require('../node_modules/./@node-red/runtime/lib/nodes/context/index');
5
+ const sinon = require('sinon');
6
+ const Support = require('../nodes/support');
7
+
8
+ helper.init(require.resolve('node-red'));
9
+
10
+ describe('manipulateEntitySap Node', () => {
11
+ beforeEach((done) => {
12
+ helper.startServer(done);
13
+ });
14
+
15
+ function initContext(done) {
16
+ Context.init({
17
+ contextStorage: {
18
+ memory0: {
19
+ module: 'memory',
20
+ },
21
+ memory1: {
22
+ module: 'memory',
23
+ },
24
+ },
25
+ });
26
+ Context.load().then(function () {
27
+ done();
28
+ });
29
+ }
30
+
31
+ afterEach((done) => {
32
+ helper
33
+ .unload()
34
+ .then(function () {
35
+ return Context.clean({ allNodes: {} });
36
+ })
37
+ .then(function () {
38
+ return Context.close();
39
+ })
40
+ .then(function () {
41
+ helper.stopServer(done);
42
+ });
43
+
44
+ // Restore the default sandbox here
45
+ sinon.restore();
46
+
47
+ // helper.unload();
48
+ // helper.stopServer(done);
49
+ });
50
+
51
+ it('should be loaded', (done) => {
52
+ const flow = [
53
+ {
54
+ id: 'n1',
55
+ type: 'manipulateEntitySap',
56
+ name: 'manipulateEntitySap',
57
+ wires: [['n2']],
58
+ z: 'flow',
59
+ rules: [{ t: 'set', p: 'payload', to: '#:(memory1)::flowValue', tot: 'flow' }],
60
+ },
61
+ ];
62
+
63
+ helper.load(manipulateEntitySap, flow, () => {
64
+ initContext(function () {
65
+ const n1 = helper.getNode('n1');
66
+
67
+ // console.log(helper.log().args);
68
+
69
+ // n1.context().flow.set('A', 1, 'memory1', function (error) {
70
+ // console.log(error);
71
+ // });
72
+
73
+ // console.log(n1.context().flow.get('A', 'memory1'));
74
+ // console.log('- - - B- - - -');
75
+
76
+ // n1.id
77
+ // flow.push({
78
+ // [`_YOU_SapServiceLayer_${n1.id}.headers`]:
79
+ // })
80
+
81
+ try {
82
+ // n1.status.calledWith({ fill: 'gray', shape: 'ring', text: 'Set credentials1' });
83
+ // should.equal(n1.status.calledWith({ fill: 'gray', shape: 'ring', text: 'Missing credentials' }), true);
84
+ n1.should.have.property('name', 'manipulateEntitySap');
85
+ done();
86
+ } catch (err) {
87
+ done(err);
88
+ }
89
+ });
90
+ });
91
+ });
92
+
93
+ it('should have correct request with data', (done) => {
94
+ const flow = [
95
+ {
96
+ id: 'n1',
97
+ type: 'manipulateEntitySap',
98
+ name: 'manipulateEntitySap',
99
+ entity: 'PickLists',
100
+ manipulateMethod: 'GetReleasedAllocation',
101
+ entityId: '123',
102
+ wires: [['n2']],
103
+ z: 'flow',
104
+ bodyData: 'data',
105
+ rules: [{ t: 'set', p: 'payload', to: '#:(memory1)::flowValue', tot: 'flow' }],
106
+ },
107
+ { id: 'n2', type: 'helper' },
108
+ ];
109
+ helper.load(manipulateEntitySap, flow, () => {
110
+ const n2 = helper.getNode('n2');
111
+ const n1 = helper.getNode('n1');
112
+
113
+ sinon.stub(Support, 'sendRequest').resolves({ data: 'ok', status: 200 });
114
+
115
+ n1.receive({ data: { cardCode: '00000001', cardName: '0000001' } });
116
+
117
+ n2.on('input', (msg) => {
118
+ try {
119
+ msg.should.have.property('_msgid');
120
+ msg.should.have.property('payload', 'ok');
121
+ msg.should.have.property('statusCode', 200);
122
+ done();
123
+ } catch (err) {
124
+ done(err);
125
+ }
126
+ });
127
+ });
128
+ });
129
+
130
+ it('should have request without data', (done) => {
131
+ const flow = [
132
+ {
133
+ id: 'n1',
134
+ type: 'manipulateEntitySap',
135
+ name: 'manipulateEntitySap',
136
+ wires: [['n2']],
137
+ z: 'flow',
138
+ bodyPost: 'data',
139
+ rules: [{ t: 'set', p: 'payload', to: '#:(memory1)::flowValue', tot: 'flow' }],
140
+ },
141
+ { id: 'n2', type: 'helper' },
142
+ ];
143
+ helper.load(manipulateEntitySap, flow, () => {
144
+ const n2 = helper.getNode('n2');
145
+ const n1 = helper.getNode('n1');
146
+
147
+ sinon.stub(Support, 'sendRequest').resolves({ data: 'ok', status: 200 });
148
+ n1.receive({});
149
+
150
+ n2.on('input', (msg) => {
151
+ try {
152
+ msg.should.have.property('_msgid');
153
+ msg.should.have.property('payload', 'ok');
154
+ done();
155
+ } catch (err) {
156
+ done(err);
157
+ }
158
+ });
159
+ });
160
+ });
161
+
162
+ it('should handle the error', (done) => {
163
+ const flow = [
164
+ {
165
+ id: 'n1',
166
+ type: 'manipulateEntitySap',
167
+ name: 'manipulateEntitySap',
168
+ wires: [['n2']],
169
+ z: 'flow',
170
+ bodyPatch: 'data',
171
+ rules: [{ t: 'set', p: 'payload', to: '#:(memory1)::flowValue', tot: 'flow' }],
172
+ },
173
+ { id: 'n2', type: 'helper' },
174
+ ];
175
+ helper.load(manipulateEntitySap, flow, () => {
176
+ const n2 = helper.getNode('n2');
177
+ const n1 = helper.getNode('n1');
178
+
179
+ const expected = new Error('Custom error');
180
+
181
+ sinon.stub(Support, 'sendRequest').rejects(expected);
182
+
183
+ n1.receive({ data: { cardCode: '00000001', cardName: '0000001' } });
184
+
185
+ n1.on('call:error', (error) => {
186
+ should.deepEqual(error.args[0], expected);
187
+ done();
188
+ });
189
+ });
190
+ });
191
+ });