@scopieflows/app-apify 0.1.1

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.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # pieces-apify
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build pieces-apify` to build the library.
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@scopieflows/app-apify",
3
+ "version": "0.1.1",
4
+ "dependencies": {
5
+ "@sinclair/typebox": "0.34.11",
6
+ "ai": "^6.0.0",
7
+ "axios": "1.13.1",
8
+ "axios-retry": "4.4.1",
9
+ "deepmerge-ts": "7.1.0",
10
+ "form-data": "4.0.4",
11
+ "i18next": "23.13.0",
12
+ "mime-types": "2.1.35",
13
+ "nanoid": "3.3.8",
14
+ "semver": "7.6.0",
15
+ "socket.io-client": "4.8.1",
16
+ "zod": "4.1.13",
17
+ "@scopieflows/pieces-common": "0.11.2",
18
+ "@scopieflows/pieces-framework": "0.25.0",
19
+ "@scopieflows/shared": "0.33.0",
20
+ "tslib": "2.6.2"
21
+ },
22
+ "resolutions": {
23
+ "rollup": "npm:@rollup/wasm-node"
24
+ },
25
+ "types": "./src/index.d.ts",
26
+ "main": "./src/index.js",
27
+ "type": "commonjs"
28
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "Your full‑stack platform for web scraping": "Ihre Komplett-Stack-Plattform für Web-Scraping",
3
+ "API Key": "API-Schlüssel",
4
+ "Find your API key on Apify in the settings, API & Integrations section.": "Finden Sie Ihren API-Schlüssel unter Apify in den Einstellungen, API & Integrations Abschnitt.",
5
+ "Enter API key authentication details": "API-Schlüssel Authentifizierungsdetails eingeben",
6
+ "Get Dataset Items": "Daten abrufen",
7
+ "Get user's Actors": "Lade Benutzeraktoren",
8
+ "Get last run details": "Letzte Rundetails abrufen",
9
+ "Start an Apify Actor": "Starte einen Apify Akteur",
10
+ "Gets the data from an Actors run.": "Ruft die Daten eines Akteurs ab.",
11
+ "Gets the list of Actors available to the user.": "Ruft die Liste der Akteure auf, die dem Benutzer zur Verfügung stehen.",
12
+ "Gets last run details for a given Actor.": "Ruft die letzten Details für einen bestimmten Akteur auf.",
13
+ "Starts an Apify Actor web scraper": "Beginnt einen Apify Akteur Web Scraper",
14
+ "The runid of the Actor (alphanumeric)": "Die Runid des Akteurs (alphanumerisch)",
15
+ "The id of the Actor (alphanumeric)": "Die id des Akteurs (alphanumerisch)",
16
+ "The id or name of the Actor (alphanumeric)": "Die Id oder Name des Akteurs (alphanumerisch)",
17
+ "JSON input": "JSON input",
18
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "Die Runde der abgeschlossenen Akteure läuft [defaultDatasetId] (obligatorisch)",
19
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "Die ID [defaultDatasetId] des Akteurs um Informationen zu erhalten [Sie können auch den Benutzernamen verwenden dann ~ dann den Namen] (obligatorisch)",
20
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "Die Id des Akteurs auszuführen [Benutze entweder Id oder der Benutzername dann ~ dann den Namen] (obligatorisch)",
21
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "Die JSON-Eingabe, um an den Akteur zu übergeben [Sie können das JSON von einem Run in Ihrem Apify Account holen]. Wenn leer gelassen, werden die Standardwerte verwendet. (optional)"
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "Your full‑stack platform for web scraping": "Tu plataforma completa para rascar web",
3
+ "API Key": "Clave API",
4
+ "Find your API key on Apify in the settings, API & Integrations section.": "Encuentre su clave API en Apify en la sección de configuraciones, API e integraciones.",
5
+ "Enter API key authentication details": "Introduzca los detalles de autenticación de la clave API",
6
+ "Get Dataset Items": "Obtener elementos de datos",
7
+ "Get user's Actors": "Obtener Actores del usuario",
8
+ "Get last run details": "Obtener los últimos detalles de ejecución",
9
+ "Start an Apify Actor": "Iniciar un Actor Apify",
10
+ "Gets the data from an Actors run.": "Obtiene los datos de una ejecución de Actores.",
11
+ "Gets the list of Actors available to the user.": "Obtiene la lista de Actores disponibles para el usuario.",
12
+ "Gets last run details for a given Actor.": "Obtiene los detalles de la última ejecución de un Actor.",
13
+ "Starts an Apify Actor web scraper": "Inicia un raspador web de Apify Actor",
14
+ "The runid of the Actor (alphanumeric)": "El runid del Actor (alfanumérico)",
15
+ "The id of the Actor (alphanumeric)": "El id del Actor (alfanumérico)",
16
+ "The id or name of the Actor (alphanumeric)": "El id o nombre del Actor (alfanumérico)",
17
+ "JSON input": "JSON input",
18
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "El runid de los Actores completados corre [defaultDatasetId] (sissory)",
19
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "El id [defaultDatasetId] del Actor para obtener información de ejecución[también puedes usar el nombre de usuario entonces ~ entonces el nombre] (clasificación)",
20
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "El id del Actor a ejecutar [Usar ya sea id, o el nombre de usuario entonces ~ entonces el nombre] (tidiano)",
21
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "La entrada JSON para pasar al Actor [puedes obtener el JSON desde una ejecución en tu cuenta Apify]. Si se deja en blanco usará los valores predeterminados. (opcional)"
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "Your full‑stack platform for web scraping": "Votre plateforme complète pour le ramassage web",
3
+ "API Key": "Clé API",
4
+ "Find your API key on Apify in the settings, API & Integrations section.": "Trouvez votre clé API sur Apify dans la section paramètres, API & Integrations.",
5
+ "Enter API key authentication details": "Entrez les détails d'authentification de la clé API",
6
+ "Get Dataset Items": "Récupérer les éléments du jeu de données",
7
+ "Get user's Actors": "Obtenir les acteurs de l'utilisateur",
8
+ "Get last run details": "Obtenir les détails de la dernière exécution",
9
+ "Start an Apify Actor": "Démarrer un acteur Apify",
10
+ "Gets the data from an Actors run.": "Récupère les données depuis une exécution d'Acteurs.",
11
+ "Gets the list of Actors available to the user.": "Renvoie la liste des Acteurs disponibles pour l'utilisateur.",
12
+ "Gets last run details for a given Actor.": "Renvoie les détails de la dernière exécution pour un acteur donné.",
13
+ "Starts an Apify Actor web scraper": "Démarre un gratteur web Apify Actor",
14
+ "The runid of the Actor (alphanumeric)": "Le runid de l'Acteur (alphanumérique)",
15
+ "The id of the Actor (alphanumeric)": "L'id de l'acteur (alphanumérique)",
16
+ "The id or name of the Actor (alphanumeric)": "L'id ou le nom de l'acteur (alphanumérique)",
17
+ "JSON input": "JSON input",
18
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "The runid of the completed Actors run [defaultDatasetId] (compulsory)",
19
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "L'id [defaultDatasetId] de l'Acteur pour obtenir des informations sur l'exécution [vous pouvez également utiliser le nom d'utilisateur puis ~ puis le nom] (obligatoire)",
20
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "L'identifiant de l'acteur à exécuter [Utiliser l'identifiant ou le nom d'utilisateur puis ~ puis le nom] (obligatoire)",
21
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "L'entrée JSON à passer à l'Acteur [vous pouvez obtenir le JSON à partir d'un run dans votre compte Apify]. Si laissé vide utilisera les valeurs par défaut. (facultatif)"
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "Your full‑stack platform for web scraping": "ウェブスクレイピング用のフルスタックプラットフォーム",
3
+ "API Key": "API キー",
4
+ "Find your API key on Apify in the settings, API & Integrations section.": "APIキーは、設定、API & 連携のセクションにあります。",
5
+ "Enter API key authentication details": "API キー認証の詳細を入力してください",
6
+ "Get Dataset Items": "データセットアイテムを取得する",
7
+ "Get user's Actors": "ユーザーのアクターを取得する",
8
+ "Get last run details": "最後の実行の詳細を取得する",
9
+ "Start an Apify Actor": "Apifyアクターを開始",
10
+ "Gets the data from an Actors run.": "アクターが実行するデータを取得します。",
11
+ "Gets the list of Actors available to the user.": "ユーザーが利用できるアクターのリストを取得します。",
12
+ "Gets last run details for a given Actor.": "特定のアクターの最後の実行の詳細を取得します。",
13
+ "Starts an Apify Actor web scraper": "ApifyアクターのWebスクレーパーを開始",
14
+ "The runid of the Actor (alphanumeric)": "俳優の<unk> (英数字)",
15
+ "The id of the Actor (alphanumeric)": "アクターのid (英数字)",
16
+ "The id or name of the Actor (alphanumeric)": "アクターのIDまたは名前 (英数字)",
17
+ "JSON input": "JSON input",
18
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "The runid of the completed Actors run [defaultDatasetId] (compulsory)",
19
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "実行情報を取得するためのアクターの id [defaultDatasetId] (必須)",
20
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "実行するアクターのid format@@0 (必須)",
21
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "Actor に渡すための JSON 入力。format@@0 では、Apify アカウントの実行から JSON を取得できます。 空白の場合はデフォルトを使用します(任意)"
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "Your full‑stack platform for web scraping": "Uw fullDailstack platform voor webscraping",
3
+ "API Key": "API Sleutel",
4
+ "Find your API key on Apify in the settings, API & Integrations section.": "Vind je API-sleutel op Apify in de sectie instellingen, API & Integraties.",
5
+ "Enter API key authentication details": "Voer authenticatiegegevens van de API-sleutel in",
6
+ "Get Dataset Items": "Dataset items ophalen",
7
+ "Get user's Actors": "Gebruiker Actors ophalen",
8
+ "Get last run details": "Krijg details van de laatste uitvoering",
9
+ "Start an Apify Actor": "Start een Apify Actor",
10
+ "Gets the data from an Actors run.": "Haalt de gegevens op van een actor.",
11
+ "Gets the list of Actors available to the user.": "Haalt de lijst van actors op die de gebruiker.",
12
+ "Gets last run details for a given Actor.": "Haalt de laatst uitgevoerde details op voor een bepaalde actor.",
13
+ "Starts an Apify Actor web scraper": "Start een Apify Actor web scraper",
14
+ "The runid of the Actor (alphanumeric)": "Het runid van de Actor (alfanumeriek)",
15
+ "The id of the Actor (alphanumeric)": "Het id van de Actor (alfanumeriek)",
16
+ "The id or name of the Actor (alphanumeric)": "Het ID of de naam van de Actor (alfanumeriek)",
17
+ "JSON input": "JSON input",
18
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "De runid van de voltooide Actors run [defaultDatasetId] (compulsory)",
19
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "Het id [defaultDatasetId] van de Actor om informatie te krijgen [je kan ook de gebruikersnaam gebruiken ~ dan de naam] (compulbaar)",
20
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "Het id van de Actor om [Gebruik id, of de gebruikersnaam dan ~ de naam] (verplicht.",
21
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "De JSON invoer om door te geven aan de Actor [u kunt de JSON krijgen via een run in uw Apify account]. Indien leeg worden de standaardwaarden gebruikt. (optioneel)"
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "Your full‑stack platform for web scraping": "Sua plataforma completa de pilha para web scraping",
3
+ "API Key": "Chave de API",
4
+ "Find your API key on Apify in the settings, API & Integrations section.": "Encontre a sua chave de API no Apify nas configurações, na seção API e integrações.",
5
+ "Enter API key authentication details": "Inserir detalhes de autenticação de chaves API",
6
+ "Get Dataset Items": "Obter Itens do Conjunto de Dados",
7
+ "Get user's Actors": "Obter Personagens do Usuário",
8
+ "Get last run details": "Obter detalhes da última execução",
9
+ "Start an Apify Actor": "Iniciar um Apify Actor",
10
+ "Gets the data from an Actors run.": "Obtém os dados de um ator executado.",
11
+ "Gets the list of Actors available to the user.": "Obtém a lista de Personagens disponíveis para o usuário.",
12
+ "Gets last run details for a given Actor.": "Obtém os detalhes da última execução para um determinado Ator",
13
+ "Starts an Apify Actor web scraper": "Inicia um Apify Actor Web scraper",
14
+ "The runid of the Actor (alphanumeric)": "O runido do ator (alfanumérico)",
15
+ "The id of the Actor (alphanumeric)": "O id do ator (alfanumérico)",
16
+ "The id or name of the Actor (alphanumeric)": "O id ou nome do ator (alfanumérico)",
17
+ "JSON input": "JSON input",
18
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "O runido dos personagens concluídos executa [defaultDatasetId] (obrigatório)",
19
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "Ajuda [defaultDatasetId] do Ator para obter informações de execução [você também pode usar o nome de usuário e então o nome] (obrigatório)",
20
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "Identificação do Ator para executar [Use id ou o nome de usuário então ~ então o nome] (obrigatório)",
21
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "A entrada JSON para passar para o ator [você pode obter o JSON de uma execução em sua conta Apify]. Se deixado em branco usará os padrões. (opcional)"
22
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "Apify": "Apify",
3
+ "Your full‑stack platform for web scraping": "Ваша полномасштабная стековая платформа для веб-лома",
4
+ "API Key": "Ключ API",
5
+ "Find your API key on Apify in the settings, API & Integrations section.": "Найдите ваш API ключ на Apify в разделе настройки, API и Интеграции.",
6
+ "Enter API key authentication details": "Введите данные проверки подлинности ключа API",
7
+ "Get Dataset Items": "Получить предметы набора данных",
8
+ "Get user's Actors": "Получить пользовательские акторы",
9
+ "Get last run details": "Получить данные о последнем запуске",
10
+ "Start an Apify Actor": "Начать Apify актер",
11
+ "Gets the data from an Actors run.": "Получает данные от исполнителей.",
12
+ "Gets the list of Actors available to the user.": "Получает список Actors доступных пользователю.",
13
+ "Gets last run details for a given Actor.": "Возвращает последний запуск деталей для данного актера.",
14
+ "Starts an Apify Actor web scraper": "Запускает веб-скрепер Apify Actor",
15
+ "The runid of the Actor (alphanumeric)": "Руна актера (альфанумерический)",
16
+ "The id of the Actor (alphanumeric)": "Идентификатор актера (буквенно-цифровый)",
17
+ "The id or name of the Actor (alphanumeric)": "Идентификатор или имя актера (буквенно-цифровый)",
18
+ "JSON input": "JSON input",
19
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "The runid of the completed Actors run [defaultDatasetId] (compulsory)",
20
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "id [defaultDatasetId] актера для получения информации о запуске [вы также можете использовать имя пользователя, затем ~ то имя] (обязательно)",
21
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "Идентификатор актора для запуска [Используйте идентификатор или имя пользователя, затем ~ то имя] (обязательно)",
22
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "Ввод JSON, который передается Исполнительу [вы можете получить JSON с запуска в вашем аккаунте Apif]. Если оставить пустым будет использовать значения по умолчанию. (опционально)"
23
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "Your full‑stack platform for web scraping": "Your full‑stack platform for web scraping",
3
+ "API Key": "API Key",
4
+ "Find your API key on Apify in the settings, API & Integrations section.": "Find your API key on Apify in the settings, API & Integrations section.",
5
+ "Enter API key authentication details": "Enter API key authentication details",
6
+ "Get Dataset Items": "Get Dataset Items",
7
+ "Get user's Actors": "Get user's Actors",
8
+ "Get last run details": "Get last run details",
9
+ "Start an Apify Actor": "Start an Apify Actor",
10
+ "Gets the data from an Actors run.": "Gets the data from an Actors run.",
11
+ "Gets the list of Actors available to the user.": "Gets the list of Actors available to the user.",
12
+ "Gets last run details for a given Actor.": "Gets last run details for a given Actor.",
13
+ "Starts an Apify Actor web scraper": "Starts an Apify Actor web scraper",
14
+ "The runid of the Actor (alphanumeric)": "The runid of the Actor (alphanumeric)",
15
+ "The id of the Actor (alphanumeric)": "The id of the Actor (alphanumeric)",
16
+ "The id or name of the Actor (alphanumeric)": "The id or name of the Actor (alphanumeric)",
17
+ "JSON input": "JSON input",
18
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "The runid of the completed Actors run [defaultDatasetId] (compulsory)",
19
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)",
20
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)",
21
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)"
22
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "Apify": "Apify",
3
+ "Your full‑stack platform for web scraping": "Your full‑stack platform for web scraping",
4
+ "API Key": "API Key",
5
+ "Find your API key on Apify in the settings, API & Integrations section.": "Find your API key on Apify in the settings, API & Integrations section.",
6
+ "Enter API key authentication details": "Enter API key authentication details",
7
+ "Get Dataset Items": "Get Dataset Items",
8
+ "Get user's Actors": "Get user's Actors",
9
+ "Get last run details": "Get last run details",
10
+ "Start an Apify Actor": "Start an Apify Actor",
11
+ "Gets the data from an Actors run.": "Gets the data from an Actors run.",
12
+ "Gets the list of Actors available to the user.": "Gets the list of Actors available to the user.",
13
+ "Gets last run details for a given Actor.": "Gets last run details for a given Actor.",
14
+ "Starts an Apify Actor web scraper": "Starts an Apify Actor web scraper",
15
+ "The runid of the Actor (alphanumeric)": "The runid of the Actor (alphanumeric)",
16
+ "The id of the Actor (alphanumeric)": "The id of the Actor (alphanumeric)",
17
+ "The id or name of the Actor (alphanumeric)": "The id or name of the Actor (alphanumeric)",
18
+ "JSON input": "JSON input",
19
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "The runid of the completed Actors run [defaultDatasetId] (compulsory)",
20
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)",
21
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)",
22
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)"
23
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "Your full‑stack platform for web scraping": "Your full‑stack platform for web scraping",
3
+ "API Key": "API 密钥",
4
+ "Find your API key on Apify in the settings, API & Integrations section.": "Find your API key on Apify in the settings, API & Integrations section.",
5
+ "Enter API key authentication details": "Enter API key authentication details",
6
+ "Get Dataset Items": "Get Dataset Items",
7
+ "Get user's Actors": "Get user's Actors",
8
+ "Get last run details": "Get last run details",
9
+ "Start an Apify Actor": "Start an Apify Actor",
10
+ "Gets the data from an Actors run.": "Gets the data from an Actors run.",
11
+ "Gets the list of Actors available to the user.": "Gets the list of Actors available to the user.",
12
+ "Gets last run details for a given Actor.": "Gets last run details for a given Actor.",
13
+ "Starts an Apify Actor web scraper": "Starts an Apify Actor web scraper",
14
+ "The runid of the Actor (alphanumeric)": "The runid of the Actor (alphanumeric)",
15
+ "The id of the Actor (alphanumeric)": "The id of the Actor (alphanumeric)",
16
+ "The id or name of the Actor (alphanumeric)": "The id or name of the Actor (alphanumeric)",
17
+ "JSON input": "JSON input",
18
+ "The runid of the completed Actors run [defaultDatasetId] (compulsory)": "The runid of the completed Actors run [defaultDatasetId] (compulsory)",
19
+ "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)": "The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)",
20
+ "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)": "The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)",
21
+ "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)": "The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)"
22
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export declare const apifyAuth: import("@scopieflows/pieces-framework").CustomAuthProperty<{
2
+ apikey: import("@scopieflows/pieces-framework").SecretTextProperty<true>;
3
+ }>;
4
+ export declare const apify: import("@scopieflows/pieces-framework").Piece<import("@scopieflows/pieces-framework").CustomAuthProperty<{
5
+ apikey: import("@scopieflows/pieces-framework").SecretTextProperty<true>;
6
+ }>>;
package/src/index.js ADDED
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.apify = exports.apifyAuth = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const shared_1 = require("@scopieflows/shared");
7
+ const get_dataset_items_1 = require("./lib/actions/get-dataset-items");
8
+ const get_actors_1 = require("./lib/actions/get-actors");
9
+ const get_last_run_1 = require("./lib/actions/get-last-run");
10
+ const start_actor_1 = require("./lib/actions/start-actor");
11
+ exports.apifyAuth = pieces_framework_1.PieceAuth.CustomAuth({
12
+ description: 'Enter API key authentication details',
13
+ props: {
14
+ apikey: pieces_framework_1.PieceAuth.SecretText({
15
+ displayName: 'API Key',
16
+ required: true,
17
+ description: 'Find your API key on Apify in the settings, API & Integrations section.',
18
+ }),
19
+ },
20
+ // Optional Validation
21
+ validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
22
+ if (auth) {
23
+ return {
24
+ valid: true,
25
+ };
26
+ }
27
+ return {
28
+ valid: false,
29
+ error: 'Invalid Api Key',
30
+ };
31
+ }),
32
+ required: true,
33
+ });
34
+ exports.apify = (0, pieces_framework_1.createPiece)({
35
+ displayName: 'Apify',
36
+ description: 'Your full‑stack platform for web scraping',
37
+ auth: exports.apifyAuth,
38
+ minimumSupportedRelease: '0.30.0',
39
+ logoUrl: '/pieces/apify.png',
40
+ categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
41
+ authors: ['buttonsbond'],
42
+ actions: [get_dataset_items_1.getDatasetItems, get_actors_1.getActors, get_last_run_1.getLastRun, start_actor_1.startActor],
43
+ triggers: [],
44
+ });
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/apify/src/index.ts"],"names":[],"mappings":";;;;AAAA,oEAAuE;AACvE,gDAAoD;AACpD,uEAAkE;AAClE,yDAAqD;AACrD,6DAAwD;AACxD,2DAAuD;AAE1C,QAAA,SAAS,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC5C,WAAW,EAAE,sCAAsC;IACnD,KAAK,EAAE;QACL,MAAM,EAAE,4BAAS,CAAC,UAAU,CAAC;YAC3B,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,yEAAyE;SAC5E,CAAC;KACH;IACD,sBAAsB;IACtB,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,IAAI,EAAE,CAAC;YACT,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;QACD,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,iBAAiB;SACzB,CAAC;IACJ,CAAC,CAAA;IACD,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,KAAK,GAAG,IAAA,8BAAW,EAAC;IAC/B,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,2CAA2C;IACxD,IAAI,EAAE,iBAAS;IACf,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,mBAAmB;IAC5B,UAAU,EAAE,CAAC,sBAAa,CAAC,qBAAqB,CAAC;IACjD,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,OAAO,EAAE,CAAC,mCAAe,EAAE,sBAAS,EAAE,yBAAU,EAAE,wBAAU,CAAC;IAC7D,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const getActors: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").CustomAuthProperty<{
2
+ apikey: import("@scopieflows/pieces-framework").SecretTextProperty<true>;
3
+ }>, {}>;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getActors = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const __1 = require("../..");
7
+ const pieces_common_1 = require("@scopieflows/pieces-common");
8
+ exports.getActors = (0, pieces_framework_1.createAction)({
9
+ name: 'getActors',
10
+ auth: __1.apifyAuth,
11
+ displayName: "Get user's Actors",
12
+ description: 'Gets the list of Actors available to the user.',
13
+ props: {},
14
+ run(context) {
15
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
+ const apifyToken = context.auth.props.apikey;
17
+ const headers = {
18
+ Authorization: 'Bearer ' + apifyToken,
19
+ 'Content-Type': 'application/json',
20
+ };
21
+ const url = 'https://api.apify.com/v2/acts/';
22
+ const httprequestdata = {
23
+ method: pieces_common_1.HttpMethod.GET,
24
+ url,
25
+ headers,
26
+ };
27
+ const response = yield pieces_common_1.httpClient.sendRequest(httprequestdata);
28
+ return response.body;
29
+ });
30
+ },
31
+ });
32
+ //# sourceMappingURL=get-actors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-actors.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/apify/src/lib/actions/get-actors.ts"],"names":[],"mappings":";;;;AAAA,oEAA6D;AAC7D,6BAAkC;AAClC,8DAAoE;AAEvD,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,aAAS;IACf,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,gDAAgD;IAC7D,KAAK,EAAE,EAAE;IACH,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YAC7C,MAAM,OAAO,GAAG;gBACd,aAAa,EAAE,SAAS,GAAG,UAAU;gBACrC,cAAc,EAAE,kBAAkB;aACnC,CAAC;YAEF,MAAM,GAAG,GAAG,gCAAgC,CAAC;YAE7C,MAAM,eAAe,GAAG;gBACtB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG;gBACH,OAAO;aACR,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YAC/D,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const getDatasetItems: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").CustomAuthProperty<{
2
+ apikey: import("@scopieflows/pieces-framework").SecretTextProperty<true>;
3
+ }>, {
4
+ runid: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
5
+ }>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDatasetItems = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const __1 = require("../..");
7
+ const pieces_common_1 = require("@scopieflows/pieces-common");
8
+ exports.getDatasetItems = (0, pieces_framework_1.createAction)({
9
+ name: 'getDatasetItems',
10
+ auth: __1.apifyAuth,
11
+ displayName: 'Get Dataset Items',
12
+ description: 'Gets the data from an Actors run.',
13
+ props: {
14
+ runid: pieces_framework_1.Property.ShortText({
15
+ displayName: 'The runid of the Actor (alphanumeric)',
16
+ description: 'The runid of the completed Actors run [defaultDatasetId] (compulsory)',
17
+ required: true,
18
+ }),
19
+ },
20
+ run(context) {
21
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
+ const apifyToken = context.auth.props.apikey;
23
+ const headers = {
24
+ Authorization: 'Bearer ' + apifyToken,
25
+ 'Content-Type': 'application/json',
26
+ };
27
+ const url = 'https://api.apify.com/v2/datasets/' +
28
+ context.propsValue.runid +
29
+ '/items/';
30
+ const httprequestdata = {
31
+ method: pieces_common_1.HttpMethod.GET,
32
+ url,
33
+ headers,
34
+ };
35
+ const response = yield pieces_common_1.httpClient.sendRequest(httprequestdata);
36
+ return response.body;
37
+ });
38
+ },
39
+ });
40
+ //# sourceMappingURL=get-dataset-items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-items.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/apify/src/lib/actions/get-dataset-items.ts"],"names":[],"mappings":";;;;AAAA,oEAAuE;AACvE,6BAAkC;AAClC,8DAAoE;AAEvD,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,aAAS;IACf,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,uCAAuC;YACpD,WAAW,EACT,uEAAuE;YACzE,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YAC7C,MAAM,OAAO,GAAG;gBACd,aAAa,EAAE,SAAS,GAAG,UAAU;gBACrC,cAAc,EAAE,kBAAkB;aACnC,CAAC;YAEF,MAAM,GAAG,GACP,oCAAoC;gBACpC,OAAO,CAAC,UAAU,CAAC,KAAK;gBACxB,SAAS,CAAC;YAEZ,MAAM,eAAe,GAAG;gBACtB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG;gBACH,OAAO;aACR,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YAC/D,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const getLastRun: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").CustomAuthProperty<{
2
+ apikey: import("@scopieflows/pieces-framework").SecretTextProperty<true>;
3
+ }>, {
4
+ actorid: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
5
+ }>;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLastRun = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const __1 = require("../..");
7
+ const pieces_common_1 = require("@scopieflows/pieces-common");
8
+ exports.getLastRun = (0, pieces_framework_1.createAction)({
9
+ name: 'getLastRun',
10
+ auth: __1.apifyAuth,
11
+ displayName: 'Get last run details',
12
+ description: 'Gets last run details for a given Actor.',
13
+ props: {
14
+ actorid: pieces_framework_1.Property.ShortText({
15
+ displayName: 'The id of the Actor (alphanumeric)',
16
+ // updated the description as can also use the actors user or ownername a tilde and the actor name in place of the id
17
+ description: 'The id [defaultDatasetId] of the Actor to get run information [you can also use the username then ~ then the name] (compulsory)',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const apifyToken = context.auth.props.apikey;
24
+ const headers = {
25
+ Authorization: 'Bearer ' + apifyToken,
26
+ 'Content-Type': 'application/json',
27
+ };
28
+ // removed ?status=SUCCEEDED as we might need to know if a particular actor failed
29
+ const url = 'https://api.apify.com/v2/acts/' +
30
+ context.propsValue.actorid +
31
+ '/runs/last';
32
+ //?status=SUCCEEDED'
33
+ const httprequestdata = {
34
+ method: pieces_common_1.HttpMethod.GET,
35
+ url,
36
+ headers,
37
+ };
38
+ const response = yield pieces_common_1.httpClient.sendRequest(httprequestdata);
39
+ return response.body.data;
40
+ });
41
+ },
42
+ });
43
+ //# sourceMappingURL=get-last-run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-last-run.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/apify/src/lib/actions/get-last-run.ts"],"names":[],"mappings":";;;;AAAA,oEAAuE;AACvE,6BAAkC;AAClC,8DAAoE;AAEvD,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,aAAS;IACf,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,0CAA0C;IACvD,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,oCAAoC;YACjD,qHAAqH;YACrH,WAAW,EACT,iIAAiI;YACnI,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YAC7C,MAAM,OAAO,GAAG;gBACd,aAAa,EAAE,SAAS,GAAG,UAAU;gBACrC,cAAc,EAAE,kBAAkB;aACnC,CAAC;YAEF,kFAAkF;YAClF,MAAM,GAAG,GACP,gCAAgC;gBAChC,OAAO,CAAC,UAAU,CAAC,OAAO;gBAC1B,YAAY,CAAC;YACf,oBAAoB;YAEpB,MAAM,eAAe,GAAG;gBACtB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG;gBACH,OAAO;aACR,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YAC/D,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;QAC5B,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const startActor: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").CustomAuthProperty<{
2
+ apikey: import("@scopieflows/pieces-framework").SecretTextProperty<true>;
3
+ }>, {
4
+ actorid: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
5
+ jsonbody: import("@scopieflows/pieces-framework").JsonProperty<true>;
6
+ }>;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.startActor = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const __1 = require("../..");
7
+ const pieces_common_1 = require("@scopieflows/pieces-common");
8
+ exports.startActor = (0, pieces_framework_1.createAction)({
9
+ // https://api.apify.com/v2/acts/{actorId}/run-sync
10
+ // https://api.apify.com/v2/acts/{actorId}/runs
11
+ name: 'startActor',
12
+ auth: __1.apifyAuth,
13
+ displayName: 'Start an Apify Actor',
14
+ description: 'Starts an Apify Actor web scraper',
15
+ props: {
16
+ actorid: pieces_framework_1.Property.ShortText({
17
+ displayName: 'The id or name of the Actor (alphanumeric)',
18
+ description: 'The id of the Actor to run [Use either id, or the username then ~ then the name] (compulsory)',
19
+ required: true,
20
+ }),
21
+ jsonbody: pieces_framework_1.Property.Json({
22
+ displayName: 'JSON input',
23
+ description: 'The JSON input to pass to the Actor [you can get the JSON from a run in your Apify account]. If left blank will use defaults. (optional)',
24
+ required: true,
25
+ }),
26
+ },
27
+ run(context) {
28
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
+ const apifyToken = context.auth.props.apikey;
30
+ const headers = {
31
+ Authorization: 'Bearer ' + apifyToken,
32
+ 'Content-Type': 'application/json',
33
+ };
34
+ const url = 'https://api.apify.com/v2/acts/' + context.propsValue.actorid + '/runs/';
35
+ const httprequestdata = {
36
+ method: pieces_common_1.HttpMethod.POST,
37
+ url,
38
+ headers,
39
+ body: JSON.stringify(context.propsValue.jsonbody),
40
+ };
41
+ const response = yield pieces_common_1.httpClient.sendRequest(httprequestdata);
42
+ return response.body.data;
43
+ });
44
+ },
45
+ });
46
+ //# sourceMappingURL=start-actor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-actor.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/apify/src/lib/actions/start-actor.ts"],"names":[],"mappings":";;;;AAAA,oEAAuE;AACvE,6BAAkC;AAClC,8DAAoE;AAEvD,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,mDAAmD;IACnD,+CAA+C;IAC/C,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,aAAS;IACf,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,4CAA4C;YACzD,WAAW,EACT,+FAA+F;YACjG,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACtB,WAAW,EAAE,YAAY;YACzB,WAAW,EACT,0IAA0I;YAC5I,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YAC7C,MAAM,OAAO,GAAG;gBACd,aAAa,EAAE,SAAS,GAAG,UAAU;gBACrC,cAAc,EAAE,kBAAkB;aACnC,CAAC;YAEF,MAAM,GAAG,GACP,gCAAgC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,GAAG,QAAQ,CAAC;YAE3E,MAAM,eAAe,GAAG;gBACtB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG;gBACH,OAAO;gBACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;aAClD,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YAC/D,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;QAC5B,CAAC;KAAA;CACF,CAAC,CAAC"}