From 3355718884b292f30d5a11f39e73f855f5bb336a Mon Sep 17 00:00:00 2001 From: MrMatiz2 Date: Tue, 22 Jul 2025 15:49:56 -0500 Subject: [PATCH] api definitions added --- nodes/S4DSMain/ApiHelper.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nodes/S4DSMain/ApiHelper.ts b/nodes/S4DSMain/ApiHelper.ts index c76117f..4662f75 100644 --- a/nodes/S4DSMain/ApiHelper.ts +++ b/nodes/S4DSMain/ApiHelper.ts @@ -9,6 +9,15 @@ import getProductCount from './actions/products/getProductCount.json'; import getCustomerByDocument from './actions/customers/getCustomerByDocument.json'; import createCustomer from './actions/customers/createCustomer.json'; import updateCustomer from './actions/customers/updateCustomer.json'; +import cloneUsername from './actions/customers/cloneUsername.json'; +import customerInfo from './actions/customers/customerInfo.json'; +import getAdvancedSearch from './actions/customers/getAdvancedSearch.json'; +import getConsultantInformation from './actions/customers/getConsultantInformation.json'; +import getDocumentIdByAutocomplete from './actions/customers/getDocumentIdByAutocomplete.json'; +import getOffSyncCustomers from './actions/customers/getOffSyncCustomers.json'; +import getOrdersByCustomer from './actions/customers/getOrdersByCustomer.json'; +import getUserByToken from './actions/customers/getUserByToken.json'; +import inactiveCustomer from './actions/customers/inactiveCustomer.json'; export interface ApiDefinition { method: string; @@ -22,7 +31,7 @@ export interface ApiDefinition { }; response: { type: string; - properties: Record; + properties: Record; }; } @@ -62,6 +71,15 @@ const staticApiDefinitions: Record> = { getCustomerByDocument: getCustomerByDocument as ApiDefinition, createCustomer: createCustomer as ApiDefinition, updateCustomer: updateCustomer as ApiDefinition, + cloneUsername: cloneUsername as ApiDefinition, + customerInfo: customerInfo as ApiDefinition, + getAdvancedSearch: getAdvancedSearch as ApiDefinition, + getConsultantInformation: getConsultantInformation as ApiDefinition, + getDocumentIdByAutocomplete: getDocumentIdByAutocomplete as ApiDefinition, + getOffSyncCustomers: getOffSyncCustomers as ApiDefinition, + getOrdersByCustomer: getOrdersByCustomer as ApiDefinition, + getUserByToken: getUserByToken as ApiDefinition, + inactiveCustomer: inactiveCustomer as ApiDefinition, }, };