mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
improvement(sap_s4hana): use MERGE for OData v2 updates and enlarge icon (#4332)
This commit is contained in:
@@ -4099,7 +4099,7 @@ export function SalesforceIcon(props: SVGProps<SVGSVGElement>) {
|
||||
export function SapS4HanaIcon(props: SVGProps<SVGSVGElement>) {
|
||||
const id = useId()
|
||||
return (
|
||||
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='0 0 412.38 204'>
|
||||
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='15 10 382.38 184'>
|
||||
<defs>
|
||||
<linearGradient
|
||||
id={id}
|
||||
|
||||
@@ -4099,7 +4099,7 @@ export function SalesforceIcon(props: SVGProps<SVGSVGElement>) {
|
||||
export function SapS4HanaIcon(props: SVGProps<SVGSVGElement>) {
|
||||
const id = useId()
|
||||
return (
|
||||
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='0 0 412.38 204'>
|
||||
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='15 10 382.38 184'>
|
||||
<defs>
|
||||
<linearGradient
|
||||
id={id}
|
||||
|
||||
@@ -110,7 +110,7 @@ export const updateBusinessPartnerTool: ToolConfig<UpdateBusinessPartnerParams,
|
||||
...baseProxyBody(params),
|
||||
service: 'API_BUSINESS_PARTNER',
|
||||
path: `/A_BusinessPartner(${quoteOdataKey(params.businessPartner)})`,
|
||||
method: 'PATCH',
|
||||
method: 'MERGE',
|
||||
query: { $format: 'json' },
|
||||
body: payload,
|
||||
ifMatch: params.ifMatch || '*',
|
||||
|
||||
@@ -109,7 +109,7 @@ export const updateCustomerTool: ToolConfig<UpdateCustomerParams, SapProxyRespon
|
||||
...baseProxyBody(params),
|
||||
service: 'API_BUSINESS_PARTNER',
|
||||
path: `/A_Customer(${quoteOdataKey(params.customer)})`,
|
||||
method: 'PATCH',
|
||||
method: 'MERGE',
|
||||
query: { $format: 'json' },
|
||||
body: payload,
|
||||
ifMatch: params.ifMatch || '*',
|
||||
|
||||
@@ -109,7 +109,7 @@ export const updateProductTool: ToolConfig<UpdateProductParams, SapProxyResponse
|
||||
...baseProxyBody(params),
|
||||
service: 'API_PRODUCT_SRV',
|
||||
path: `/A_Product(${quoteOdataKey(params.product)})`,
|
||||
method: 'PATCH',
|
||||
method: 'MERGE',
|
||||
query: { $format: 'json' },
|
||||
body: payload,
|
||||
ifMatch: params.ifMatch || '*',
|
||||
|
||||
@@ -109,7 +109,7 @@ export const updatePurchaseOrderTool: ToolConfig<UpdatePurchaseOrderParams, SapP
|
||||
...baseProxyBody(params),
|
||||
service: 'API_PURCHASEORDER_PROCESS_SRV',
|
||||
path: `/A_PurchaseOrder(${quoteOdataKey(params.purchaseOrder)})`,
|
||||
method: 'PATCH',
|
||||
method: 'MERGE',
|
||||
query: { $format: 'json' },
|
||||
body: payload,
|
||||
ifMatch: params.ifMatch || '*',
|
||||
|
||||
@@ -112,7 +112,7 @@ export const updatePurchaseRequisitionTool: ToolConfig<
|
||||
...baseProxyBody(params),
|
||||
service: 'API_PURCHASEREQ_PROCESS_SRV',
|
||||
path: `/A_PurchaseRequisitionHeader(${quoteOdataKey(params.purchaseRequisition)})`,
|
||||
method: 'PATCH',
|
||||
method: 'MERGE',
|
||||
query: { $format: 'json' },
|
||||
body: payload,
|
||||
ifMatch: params.ifMatch || '*',
|
||||
|
||||
@@ -109,7 +109,7 @@ export const updateSalesOrderTool: ToolConfig<UpdateSalesOrderParams, SapProxyRe
|
||||
...baseProxyBody(params),
|
||||
service: 'API_SALES_ORDER_SRV',
|
||||
path: `/A_SalesOrder(${quoteOdataKey(params.salesOrder)})`,
|
||||
method: 'PATCH',
|
||||
method: 'MERGE',
|
||||
query: { $format: 'json' },
|
||||
body: payload,
|
||||
ifMatch: params.ifMatch || '*',
|
||||
|
||||
@@ -109,7 +109,7 @@ export const updateSupplierTool: ToolConfig<UpdateSupplierParams, SapProxyRespon
|
||||
...baseProxyBody(params),
|
||||
service: 'API_BUSINESS_PARTNER',
|
||||
path: `/A_Supplier(${quoteOdataKey(params.supplier)})`,
|
||||
method: 'PATCH',
|
||||
method: 'MERGE',
|
||||
query: { $format: 'json' },
|
||||
body: payload,
|
||||
ifMatch: params.ifMatch || '*',
|
||||
|
||||
Reference in New Issue
Block a user