meetjoshi

invoiceEddsExchange.json

May 27th, 2025 (edited)
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 6.98 KB | None | 0 0
  1. {
  2.     "authRequirements": [
  3.         "client_id",
  4.         "client_secret",
  5.         "tenant_id",
  6.         "scope",
  7.         "grant_type"
  8.     ],
  9.     "authType": "extended_oauth2",
  10.     "className": "connectors.extended_oauth2_auth.custom.EDDSExchangeConnector",
  11.     "connectorCategory": "Cost",
  12.     "connectorInstanceID": "eddsExchange",
  13.     "description": "EDDS Exchange Connector for Invoices and Purchase Orders",
  14.     "fileName": "edds-exchange",
  15.     "icon": "https://stbackendservicedev.blob.core.windows.net/icons/Microsoft Exchange Online.svg",
  16.     "name": "EDDS Exchange Connector",
  17.     "outputFolder": "source-data/edds-uploads/",
  18.     "dummyFileURL": "source-data/edds-uploads/dummy.json",
  19.     "parentConnectorID": "MSFT Extended OAuth2 001",
  20.     "connectorConfigForm": [
  21.         {
  22.             "labelText": "Mailbox Email Address",
  23.             "name": "mailbox_email_address",
  24.             "placeholder": "Enter mailbox email address",
  25.             "required": true,
  26.             "grid": {
  27.                 "xs": 12,
  28.                 "md": 6,
  29.                 "sm": 12
  30.             },
  31.             "type": "text"
  32.         },
  33.         {
  34.             "labelText": "Sender Email Addresses",
  35.             "name": "sender_email_addresses",
  36.             "placeholder": "Enter comma-separated email addresses",
  37.             "required": false,
  38.             "grid": {
  39.                 "xs": 12,
  40.                 "md": 6,
  41.                 "sm": 12
  42.             },
  43.             "type": "text"
  44.         },
  45.         {
  46.             "labelText": "Invoice Keywords",
  47.             "name": "invoice_keywords",
  48.             "placeholder": "Enter comma-separated keywords for invoices",
  49.             "required": false,
  50.             "defaultValue": "Invoice,payment due",
  51.             "grid": {
  52.                 "xs": 12,
  53.                 "md": 6,
  54.                 "sm": 12
  55.             },
  56.             "type": "text"
  57.         },
  58.         {
  59.             "labelText": "Invoice Keyword Locations",
  60.             "name": "invoice_keyword_locations",
  61.             "placeholder": "Select where to look for invoice keywords",
  62.             "required": false,
  63.             "defaultValue": [
  64.                 "subject"
  65.             ],
  66.             "grid": {
  67.                 "xs": 12,
  68.                 "md": 6,
  69.                 "sm": 12
  70.             },
  71.             "type": "select",
  72.             "multiple": true,
  73.             "options": [
  74.                 {
  75.                     "label": "Subject",
  76.                     "value": "subject"
  77.                 },
  78.                 {
  79.                     "label": "Body",
  80.                     "value": "body"
  81.                 }
  82.             ]
  83.         },
  84.         {
  85.             "labelText": "Purchase Order Keywords",
  86.             "name": "po_keywords",
  87.             "placeholder": "Enter comma-separated keywords for purchase orders",
  88.             "required": false,
  89.             "defaultValue": "Purchase Order",
  90.             "grid": {
  91.                 "xs": 12,
  92.                 "md": 6,
  93.                 "sm": 12
  94.             },
  95.             "type": "text"
  96.         },
  97.         {
  98.             "labelText": "Purchase Order Keyword Locations",
  99.             "name": "po_keyword_locations",
  100.             "placeholder": "Select where to look for purchase order keywords",
  101.             "required": false,
  102.             "defaultValue": [
  103.                 "subject"
  104.             ],
  105.             "grid": {
  106.                 "xs": 12,
  107.                 "md": 6,
  108.                 "sm": 12
  109.             },
  110.             "type": "select",
  111.             "multiple": true,
  112.             "options": [
  113.                 {
  114.                     "label": "Subject",
  115.                     "value": "subject"
  116.                 },
  117.                 {
  118.                     "label": "Body",
  119.                     "value": "body"
  120.                 }
  121.             ]
  122.         }
  123.     ],
  124.     "connectorConfigRequirements": [
  125.         "mailbox_email_address",
  126.         "sender_email_addresses",
  127.         "invoice_keywords",
  128.         "invoice_keyword_locations",
  129.         "po_keywords",
  130.         "po_keyword_locations"
  131.     ],
  132.     "inputForm": [
  133.         {
  134.             "labelText": "Tenant ID",
  135.             "name": "tenant_id",
  136.             "placeholder": "Directory (tenant) ID",
  137.             "required": true,
  138.             "grid": {
  139.                 "xs": 12,
  140.                 "md": 6,
  141.                 "sm": 12
  142.             },
  143.             "type": "text"
  144.         },
  145.         {
  146.             "labelText": "Client ID",
  147.             "name": "client_id",
  148.             "placeholder": "Application (client) ID",
  149.             "required": true,
  150.             "grid": {
  151.                 "xs": 12,
  152.                 "md": 6,
  153.                 "sm": 12
  154.             },
  155.             "type": "text"
  156.         },
  157.         {
  158.             "labelText": "Client Secret",
  159.             "name": "client_secret",
  160.             "placeholder": "Client secret (value)",
  161.             "required": true,
  162.             "grid": {
  163.                 "xs": 12,
  164.                 "md": 6,
  165.                 "sm": 12
  166.             },
  167.             "type": "text"
  168.         },
  169.         {
  170.             "defaultValue": "https://graph.microsoft.com/.default",
  171.             "labelText": "Scope",
  172.             "name": "scope",
  173.             "placeholder": "scope for credentials",
  174.             "required": false,
  175.             "grid": {
  176.                 "xs": 12,
  177.                 "md": 6,
  178.                 "sm": 12
  179.             },
  180.             "type": "text"
  181.         },
  182.         {
  183.             "defaultValue": "client_credentials",
  184.             "labelText": "Grant Type",
  185.             "name": "grant_type",
  186.             "placeholder": "Type of grant",
  187.             "required": false,
  188.             "grid": {
  189.                 "xs": 12,
  190.                 "md": 6,
  191.                 "sm": 12
  192.             },
  193.             "type": "text"
  194.         }
  195.     ],
  196.     "providerSetupGuide": "",
  197.     "statusCodeMapping": {
  198.         "400": "The credentials you have entered are incorrect. Please check your tenant_id and client_id, and try again.",
  199.         "401": "The credentials you have entered are incorrect. Please check your client_secret, and try again.",
  200.         "403": "Access to the API endpoint is forbidden (403). Please check your API permissions and credentials.",
  201.         "404": "Not Found - This can happen when requested resource is not found.",
  202.         "429": "Rate limit exceeded (429). Please try again later or adjust the rate of API requests.",
  203.         "500": "Internal Server Error - Client API seems down, please try after sometime."
  204.     },
  205.     "authEndpoint": {
  206.         "tokenURL": "https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token"
  207.     },
  208.     "apiEndpoints": [
  209.         {
  210.             "apiPath": "/servicePrincipals?$top=50&$filter=servicePrincipalType eq 'Application'",
  211.             "baseURL": "https://graph.microsoft.com/v1.0",
  212.             "method": "GET",
  213.             "responseType": "JSON"
  214.         }
  215.     ],
  216.     "vendor": "",
  217.     "vendorName": "Microsoft",
  218.     "version": "1.0.0",
  219.     "supportedTransformations": [
  220.         "edds_exchange"
  221.     ]
  222. }
Advertisement
Add Comment
Please, Sign In to add comment