Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Localize/lang/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@
"7ZR1xr": "Add an action",
"7aJqIH": "Optional. The locale to be used when formatting (defaults to 'en-us').",
"7adnmH": "Back to template library",
"7col/w": "Fetching chat history...",
"7fZkLA": "Disable static result",
"7gUE8h": "This will revert your workflow to the state it was in before Copilot's edit. If you made additional edits to the workflow after Copilot's, you will lose them. This action cannot be undone. Do you want to continue?",
"7jcTNd": "Enter a valid email.",
Expand Down Expand Up @@ -845,6 +846,7 @@
"PRnqYA": "Required. The number of seconds to add. Can be negative to subtract seconds.",
"PSrCNL": "Function",
"PTBl5s": "Method",
"PVT2SW": "Agent chat",
"PXa0D4": "False",
"PYku3O": "Shared",
"Pa+UkC": "Returns the UTF-8 byte length of an input string",
Expand Down Expand Up @@ -1494,6 +1496,7 @@
"_7ZR1xr.comment": "Text on example action node",
"_7aJqIH.comment": "Optional locale parameter to apply formatNumber function with",
"_7adnmH.comment": "Button to navigate back to the template library",
"_7col/w.comment": "Fetching chat history progress card text",
"_7fZkLA.comment": "Label for toggle to disable static result",
"_7gUE8h.comment": "Warning description of what undoing operation will do to the workflow",
"_7jcTNd.comment": "Error validation message for emails",
Expand Down Expand Up @@ -2030,6 +2033,7 @@
"_PRnqYA.comment": "Required integer parameter to subtract seconds from time",
"_PSrCNL.comment": "Function",
"_PTBl5s.comment": "Method",
"_PVT2SW.comment": "Agent chat header text",
"_PXa0D4.comment": "False",
"_PYku3O.comment": "The label for shared connector kind",
"_Pa+UkC.comment": "Label for description of custom utf8Length Function",
Expand Down Expand Up @@ -2960,7 +2964,6 @@
"_sYQDN+.comment": "Label for Font family dropdown",
"_sZ0G/Z.comment": "Required string parameter to represent the unit of time",
"_sZHTQV.comment": "Time zone value ",
"_sav1Y4.comment": "Fetching chat history progress card text",
"_sbPZ9S.comment": "Required collection parameter to check empty function on",
"_sfJTHV.comment": "Required number parameter to be minused in sub function",
"_sfTqHY.comment": "Aria label for the close button in the node search panel",
Expand Down Expand Up @@ -3816,7 +3819,6 @@
"sYQDN+": "Formatting options for font family",
"sZ0G/Z": "Required. A string containing the unit of time specified in the interval to add.",
"sZHTQV": "(UTC+09:00) Chita",
"sav1Y4": "Fetching chat history...",
"sbPZ9S": "Required. The collection to check if it is empty.",
"sfJTHV": "Required. The number to remove from the Minuend.",
"sfTqHY": "Close panel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
UserErrorCode,
isCustomConnectorId,
getUniqueName,
getResourceNameFromId,
} from '../../../utils/src';
import type { HttpResponse } from '../common/exceptions/service';
import type { ConnectionCreationInfo, ConnectionParametersMetadata, CreateConnectionResult, IConnectionService } from '../connection';
Expand Down Expand Up @@ -141,7 +142,13 @@ export abstract class BaseConnectionService implements IConnectionService {
protected async _getAzureConnector(connectorId: string): Promise<Connector> {
const { apiVersion, httpClient, locale } = this.options;
const headers = locale ? { 'Accept-Language': locale } : undefined;
const response = await httpClient.get<Connector>({ uri: connectorId, queryParameters: { 'api-version': apiVersion }, headers });
const queryParameters: Record<string, any> = { 'api-version': apiVersion };

if (!isArmResourceId(connectorId)) {
connectorId = `/subscriptions/${this.options.subscriptionId}/providers/microsoft.web/locations/${this.options.location}/managedapis/${getResourceNameFromId(connectorId)}`;
// queryParameters['isBuiltIn'] = 'true'; @Bryan: I have kept it commented here so in case you cannot have this deployed before build in backend you can uncomment this.
}
const response = await httpClient.get<Connector>({ uri: connectorId, queryParameters, headers });

return {
...response,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const x12ConnectorId = 'connectionProviders/x12Operations';
const xmlOperationsConnectionId = 'connectionProviders/xmlOperations';
const edifactConnectorId = 'connectionProviders/edifactOperations';
export const inlineCodeConnectorId = 'connectionProviders/inlineCode';
const aiOperationsConnectorId = 'connectionProviders/aiOperations';

const azurefunction = 'azurefunction';
const appservice = 'appservice';
Expand Down Expand Up @@ -730,15 +731,15 @@ const builtInOperationsMetadata: Record<string, OperationInfo> = {
operationId: edifactbatchencode,
},
[chunktext]: {
connectorId: dataOperationConnectorId,
connectorId: aiOperationsConnectorId,
operationId: chunktext,
},
[parsedocument]: {
connectorId: dataOperationConnectorId,
connectorId: aiOperationsConnectorId,
operationId: parsedocument,
},
[parsedocumentwithmetadata]: {
connectorId: dataOperationConnectorId,
connectorId: aiOperationsConnectorId,
operationId: parsedocumentwithmetadata,
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,75 +42,6 @@ export const parseJsonOperation = {
},
};

export const chunktext = {
name: 'chunktext',
id: 'chunktext',
type: 'ChunkText',
properties: {
api: {
id: 'connectionProviders/dataOperationNew',
name: 'dataOperationNew',
brandColor: '#8c6cff',
description: 'Data operations',
displayName: 'Data operations',
iconUri: 'https://logicappsv2resources.blob.core.windows.net/icons/compose.svg',
},
summary: 'Chunk text',
description: 'Chunk text to a fixed length.',
visibility: 'Important',
operationType: 'ChunkText',
brandColor: '#8c6cff',
iconUri: 'https://logicappsv2resources.blob.core.windows.net/icons/compose.svg',
annotation: { status: 'Preview' },
},
};

export const parsedocument = {
name: 'parsedocument',
id: 'parsedocument',
type: 'ParseDocument',
properties: {
api: {
id: 'connectionProviders/dataOperationNew',
name: 'dataOperationNew',
brandColor: '#8c6cff',
description: 'Data operations',
displayName: 'Data operations',
iconUri: 'https://logicappsv2resources.blob.core.windows.net/icons/compose.svg',
},
summary: 'Parse a document',
description: 'Parse a document to extract text from the document.',
visibility: 'Important',
operationType: 'ParseDocument',
brandColor: '#8c6cff',
iconUri: 'https://logicappsv2resources.blob.core.windows.net/icons/compose.svg',
annotation: { status: 'Preview' },
},
};

export const parsedocumentwithmetadata = {
name: 'parsedocumentwithmetadata',
id: 'parsedocumentwithmetadata',
type: 'ParseDocumentWithMetadata',
properties: {
api: {
id: 'connectionProviders/dataOperationNew',
name: 'dataOperationNew',
brandColor: '#8c6cff',
description: 'Data operations',
displayName: 'Data operations',
iconUri: 'https://logicappsv2resources.blob.core.windows.net/icons/compose.svg',
},
summary: 'Parse a document returning text array and metadata',
description: 'Parses a document to extract text and metadata from the document.',
visibility: 'Important',
operationType: 'ParseDocumentWithMetadata',
brandColor: '#8c6cff',
iconUri: 'https://logicappsv2resources.blob.core.windows.net/icons/compose.svg',
annotation: { status: 'Preview' },
},
};

export const queryOperation = {
name: 'query',
id: 'query',
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading