@aiqadam/qadam-wordpress 0.0.0-stage → 0.5.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.
Files changed (45) hide show
  1. package/LICENSE +22 -0
  2. package/NOTICE +6 -0
  3. package/README.md +4 -2
  4. package/package.json +21 -3
  5. package/src/i18n/ca.json +68 -0
  6. package/src/i18n/de.json +77 -0
  7. package/src/i18n/es.json +77 -0
  8. package/src/i18n/fr.json +77 -0
  9. package/src/i18n/hi.json +68 -0
  10. package/src/i18n/id.json +68 -0
  11. package/src/i18n/ja.json +77 -0
  12. package/src/i18n/nl.json +77 -0
  13. package/src/i18n/pt.json +77 -0
  14. package/src/i18n/ru.json +68 -0
  15. package/src/i18n/translation.json +77 -0
  16. package/src/i18n/vi.json +68 -0
  17. package/src/i18n/zh.json +77 -0
  18. package/src/index.d.ts +11 -0
  19. package/src/index.d.ts.map +1 -0
  20. package/src/index.js +120 -0
  21. package/src/index.js.map +1 -0
  22. package/src/lib/actions/create-page.action.d.ts +15 -0
  23. package/src/lib/actions/create-page.action.d.ts.map +1 -0
  24. package/src/lib/actions/create-page.action.js +105 -0
  25. package/src/lib/actions/create-page.action.js.map +1 -0
  26. package/src/lib/actions/create-post.action.d.ts +32 -0
  27. package/src/lib/actions/create-post.action.d.ts.map +1 -0
  28. package/src/lib/actions/create-post.action.js +136 -0
  29. package/src/lib/actions/create-post.action.js.map +1 -0
  30. package/src/lib/actions/get-post.action.d.ts +8 -0
  31. package/src/lib/actions/get-post.action.d.ts.map +1 -0
  32. package/src/lib/actions/get-post.action.js +40 -0
  33. package/src/lib/actions/get-post.action.js.map +1 -0
  34. package/src/lib/actions/update-post.action.d.ts +37 -0
  35. package/src/lib/actions/update-post.action.d.ts.map +1 -0
  36. package/src/lib/actions/update-post.action.js +142 -0
  37. package/src/lib/actions/update-post.action.js.map +1 -0
  38. package/src/lib/common/index.d.ts +84 -0
  39. package/src/lib/common/index.d.ts.map +1 -0
  40. package/src/lib/common/index.js +435 -0
  41. package/src/lib/common/index.js.map +1 -0
  42. package/src/lib/trigger/new-post.trigger.d.ts +43 -0
  43. package/src/lib/trigger/new-post.trigger.d.ts.map +1 -0
  44. package/src/lib/trigger/new-post.trigger.js +187 -0
  45. package/src/lib/trigger/new-post.trigger.js.map +1 -0
@@ -0,0 +1,77 @@
1
+ {
2
+ "Open-source website creation software": "Open-source website creatie software",
3
+ "Username": "Gebruikersnaam",
4
+ "Password": "Wachtwoord",
5
+ "Website URL": "Website URL",
6
+ "URL of the wordpress url i.e https://www.example-website.com": "URL van de wordpress url vb. https://www.voorbeeld-website.com",
7
+ "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n": "\n**Activeer Basis Authenticatie:**\n\n1. Download de plugin van: https://github. om/WP-API/Basic-Auth (Klik op Code -> Download Zip)\n2. Log in op uw WordPress dashboard.\n3. Ga naar \"Plug-ins\" en klik op \"Nieuw toevoegen\"\n4. Kies \"Upload Plugin\" en selecteer het gedownloade bestand.\n5. Installeer en activeer de plugin.\n\n",
8
+ "Create Post": "Post aanmaken",
9
+ "Create Page": "Pagina maken",
10
+ "Update Post": "Bericht bijwerken",
11
+ "Get Post Details": "Krijg berichtdetails",
12
+ "Custom API Call": "Custom API Call",
13
+ "Create new post on WordPress": "Maak een nieuw bericht in WordPress",
14
+ "Create new page on WordPress": "Maak een nieuwe pagina aan in WordPress",
15
+ "Update an existing post on WordPress.": "Update een bestaand bericht op WordPress.",
16
+ "Get a post from WordPress": "Haal een bericht van WordPress",
17
+ "Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
18
+ "Title": "Aanspreektitel",
19
+ "Content": "Inhoud",
20
+ "Slug": "Slak",
21
+ "Date": "Datum:",
22
+ "Featured Media (URL)": "Uitgelichte media (URL)",
23
+ "Tags": "Labels",
24
+ "Custom ACF fields": "Aangepaste ACF-velden",
25
+ "Categories": "Categoriechar@@0n",
26
+ "Featured Media (image)": "Uitgelichte media (afbeelding)",
27
+ "Status": "status",
28
+ "Excerpt": "Samenvatting",
29
+ "Enable Comments": "Reacties inschakelen",
30
+ "Open to Pinging": "Open om in te gaan",
31
+ "Post": "Plaatsen",
32
+ "Post ID": "Post ID",
33
+ "Method": "Methode",
34
+ "Headers": "Kopteksten",
35
+ "Query Parameters": "Query parameters",
36
+ "Body Type": "Type lichaam",
37
+ "Body": "Lichaam",
38
+ "Response is Binary ?": "Antwoord is binair?",
39
+ "No Error on Failure": "Geen fout bij fout",
40
+ "Timeout (in seconds)": "Time-out (in seconden)",
41
+ "Follow redirects": "Volg omleidingen",
42
+ "Title of the post about to be added": "Titel van het bericht dat toegevoegd zal worden",
43
+ "Uses the WordPress Text Editor which supports HTML": "Gebruikt de WordPress Text Editor die HTML ondersteunt",
44
+ "Post publish date (ISO-8601)": "Plaats publicatiedatum (ISO-8601)",
45
+ "URL of featured media": "URL van aanbevolen media",
46
+ "Post tags": "Post labels",
47
+ "Provide field name with value.You can find out field name from ACF plugin menu.": "Geef een veldnaam met waarde op. U kunt de veldnaam vinden in het ACF plugin menu.",
48
+ "Post categories": "Post categorieën",
49
+ "Choose from one of your uploaded media files": "Kies uit een van je geüploade mediabestanden",
50
+ "Choose post status": "Kies post status",
51
+ "Title of the page about to be added": "Titel van de pagina die toegevoegd zal worden",
52
+ "Page publish date (ISO-8601)": "Publicatiedatum van de pagina (ISO-8601)",
53
+ "Choose status": "Status kiezen",
54
+ "The ID of the post to get": "Het ID van het bericht om te krijgen",
55
+ "Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
56
+ "Enable for files like PDFs, images, etc.": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc.",
57
+ "Published": "Gepubliceerd",
58
+ "Scheduled": "Gepland",
59
+ "Draft": "Concept",
60
+ "Pending": "In behandeling",
61
+ "Private": "Privé",
62
+ "Trash": "Prullenbak",
63
+ "GET": "KRIJG",
64
+ "POST": "POSTE",
65
+ "PATCH": "BEKIJK",
66
+ "PUT": "PUT",
67
+ "DELETE": "VERWIJDEREN",
68
+ "HEAD": "HOOFD",
69
+ "None": "geen",
70
+ "JSON": "JSON",
71
+ "Form Data": "Formulieren gegevens",
72
+ "Raw": "Onbewerkte",
73
+ "Binary": "Binair",
74
+ "New Post": "Nieuw bericht",
75
+ "Triggers when a new post is published": "Triggert wanneer een nieuw bericht wordt gepubliceerd",
76
+ "Authors": "Auteurs"
77
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "Open-source website creation software": "Software de criação de site de código aberto",
3
+ "Username": "Usuário:",
4
+ "Password": "Senha",
5
+ "Website URL": "URL do site",
6
+ "URL of the wordpress url i.e https://www.example-website.com": "URL do wordpress i.e https://www.exemplo-website.com",
7
+ "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n": "\n**Ative a Autenticação Básica:**\n\n1. Baixe o plugin em: https://github. om/WP-API/Basic-Auth (Clique no código -> Baixar Zip)\n2. Faça login no seu painel do WordPress.\n3. Vá para \"Plugins\" e clique em \"Adicionar novo\".\n4. Escolha \"Upload do Plugin\" e selecione o arquivo baixado.\n5. Instale e ative o plugin.\n\n",
8
+ "Create Post": "Criar publicação",
9
+ "Create Page": "Criar página",
10
+ "Update Post": "Atualizar publicação",
11
+ "Get Post Details": "Obter detalhes do post",
12
+ "Custom API Call": "Chamada de API personalizada",
13
+ "Create new post on WordPress": "Criar nova postagem no WordPress",
14
+ "Create new page on WordPress": "Criar nova página no WordPress",
15
+ "Update an existing post on WordPress.": "Atualizar uma postagem existente no WordPress.",
16
+ "Get a post from WordPress": "Obter uma postagem do WordPress",
17
+ "Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
18
+ "Title": "Título",
19
+ "Content": "Conteúdo",
20
+ "Slug": "Permalink",
21
+ "Date": "Encontro",
22
+ "Featured Media (URL)": "Mídia em Destaque (URL)",
23
+ "Tags": "Etiquetas",
24
+ "Custom ACF fields": "Campos personalizados ACF",
25
+ "Categories": "categorias",
26
+ "Featured Media (image)": "Mídia em destaque (imagem)",
27
+ "Status": "Estado",
28
+ "Excerpt": "Resumo",
29
+ "Enable Comments": "Habilitar comentários",
30
+ "Open to Pinging": "Abrir ao Pinging",
31
+ "Post": "Publicar",
32
+ "Post ID": "ID da postagem",
33
+ "Method": "Método",
34
+ "Headers": "Cabeçalhos",
35
+ "Query Parameters": "Parâmetros da consulta",
36
+ "Body Type": "Tipo de Corpo",
37
+ "Body": "Conteúdo",
38
+ "Response is Binary ?": "A resposta é binária ?",
39
+ "No Error on Failure": "Nenhum erro no Failure",
40
+ "Timeout (in seconds)": "Tempo limite (em segundos)",
41
+ "Follow redirects": "Seguir redirecionamentos",
42
+ "Title of the post about to be added": "Título da postagem prestes a ser adicionado",
43
+ "Uses the WordPress Text Editor which supports HTML": "Usa o Editor de Texto do WordPress que suporta HTML",
44
+ "Post publish date (ISO-8601)": "Data de publicação da postagem (ISO-8601)",
45
+ "URL of featured media": "URL da mídia em destaque",
46
+ "Post tags": "Etiquetas de publicação",
47
+ "Provide field name with value.You can find out field name from ACF plugin menu.": "Forneça o nome do campo com valor. Você pode encontrar o nome do campo no menu do plugin ACF.",
48
+ "Post categories": "Categorias de postagem",
49
+ "Choose from one of your uploaded media files": "Escolha entre um dos seus arquivos de mídia enviados",
50
+ "Choose post status": "Escolher status da publicação",
51
+ "Title of the page about to be added": "Título da página prestes a ser adicionado",
52
+ "Page publish date (ISO-8601)": "Data de publicação da página (ISO-8601)",
53
+ "Choose status": "Escolha o status",
54
+ "The ID of the post to get": "O ID da postagem para obter",
55
+ "Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
56
+ "Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
57
+ "Published": "Publicado",
58
+ "Scheduled": "Agendado",
59
+ "Draft": "Rascunho",
60
+ "Pending": "Pendente",
61
+ "Private": "Privado",
62
+ "Trash": "Descartar",
63
+ "GET": "OBTER",
64
+ "POST": "POSTAR",
65
+ "PATCH": "COMPRAR",
66
+ "PUT": "COLOCAR",
67
+ "DELETE": "EXCLUIR",
68
+ "HEAD": "CABEÇA",
69
+ "None": "Nenhuma",
70
+ "JSON": "JSON",
71
+ "Form Data": "Dados de Formulário",
72
+ "Raw": "RAW",
73
+ "Binary": "Binário",
74
+ "New Post": "Nova Postagem",
75
+ "Triggers when a new post is published": "Dispara quando uma nova postagem é publicada",
76
+ "Authors": "Autores"
77
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "Open-source website creation software": "Программное обеспечение для создания веб-сайтов с открытым исходным кодом",
3
+ "Username": "Имя пользователя",
4
+ "Password": "Password",
5
+ "Website URL": "URL сайта",
6
+ "URL of the wordpress url i.e https://www.example-website.com": "URL URL wordpress, т.е. https://www.example-website.com",
7
+ "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n": "\n**Включить базовую аутентификацию:**\n\n1. Скачать плагин с: https://github. om/WP-API/Basic-Auth (Щелкните на код -> Скачать Zip)\n2. Войти в панель управления WordPress.\n3. Перейдите в \"Плагины\" и нажмите \"Добавить новое\".\n4. Выберите \"Загрузить плагин\" и выберите загруженный файл.\n5. Установите и активируйте плагин.\n\n",
8
+ "Create Post": "Создать запись",
9
+ "Create Page": "Создать страницу",
10
+ "Update Post": "Обновить пост",
11
+ "Get Post Details": "Получить информацию о записи",
12
+ "Custom API Call": "Пользовательский вызов API",
13
+ "Create new post on WordPress": "Создать новое сообщение на WordPress",
14
+ "Create new page on WordPress": "Создать новую страницу на WordPress",
15
+ "Update an existing post on WordPress.": "Обновить существующий пост на WordPress.",
16
+ "Get a post from WordPress": "Получить сообщение от WordPress",
17
+ "Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
18
+ "Title": "Заголовок",
19
+ "Content": "Содержание",
20
+ "Slug": "Слаг",
21
+ "Date": "Дата",
22
+ "Featured Media (URL)": "Рекомендуемые медиа (URL)",
23
+ "Tags": "Теги",
24
+ "Custom ACF fields": "Пользовательские поля ACF",
25
+ "Categories": "Категории",
26
+ "Featured Media (image)": "Рекомендуемые медиа (изображение)",
27
+ "Status": "Статус",
28
+ "Excerpt": "Выдержка",
29
+ "Enable Comments": "Включить комментарии",
30
+ "Open to Pinging": "Открыть для пинга",
31
+ "Post": "Пост",
32
+ "Post ID": "ID поста",
33
+ "Method": "Метод",
34
+ "Headers": "Заголовки",
35
+ "Query Parameters": "Параметры запроса",
36
+ "Body": "Тело",
37
+ "No Error on Failure": "Нет ошибок при ошибке",
38
+ "Timeout (in seconds)": "Таймаут (в секундах)",
39
+ "Title of the post about to be added": "Заголовок сообщения будет добавлен",
40
+ "Uses the WordPress Text Editor which supports HTML": "Использует WordPress текстовый редактор, который поддерживает HTML",
41
+ "Post publish date (ISO-8601)": "Дата публикации записи (ISO-8601)",
42
+ "URL of featured media": "URL избранного медиа",
43
+ "Post tags": "Пост тэги",
44
+ "Provide field name with value.You can find out field name from ACF plugin menu.": "Предоставьте имя поля со значением. Вы можете найти название поля из ACF плагина меню.",
45
+ "Post categories": "Категории записей",
46
+ "Choose from one of your uploaded media files": "Выберите один из загруженных медиа-файлов",
47
+ "Choose post status": "Выберите статус записи",
48
+ "Title of the page about to be added": "Заголовок страницы будет добавлен",
49
+ "Page publish date (ISO-8601)": "Дата публикации страницы (ISO-8601)",
50
+ "Choose status": "Выберите статус",
51
+ "The ID of the post to get": "ID сообщения, чтобы получить",
52
+ "Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
53
+ "Published": "Опубликовано",
54
+ "Scheduled": "Запланированный",
55
+ "Draft": "Черновик",
56
+ "Pending": "В ожидании",
57
+ "Private": "Приватный",
58
+ "Trash": "Корзина",
59
+ "GET": "ПОЛУЧИТЬ",
60
+ "POST": "ПОСТ",
61
+ "PATCH": "ПАТЧ",
62
+ "PUT": "ПОКУПИТЬ",
63
+ "DELETE": "УДАЛИТЬ",
64
+ "HEAD": "HEAD",
65
+ "New Post": "Новая запись",
66
+ "Triggers when a new post is published": "Триггеры при публикации нового сообщения",
67
+ "Authors": "Авторы"
68
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "Open-source website creation software": "Open-source website creation software",
3
+ "Username": "Username",
4
+ "Password": "Password",
5
+ "Website URL": "Website URL",
6
+ "URL of the wordpress url i.e https://www.example-website.com": "URL of the wordpress url i.e https://www.example-website.com",
7
+ "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n": "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n",
8
+ "Create Post": "Create Post",
9
+ "Create Page": "Create Page",
10
+ "Update Post": "Update Post",
11
+ "Get Post Details": "Get Post Details",
12
+ "Custom API Call": "Custom API Call",
13
+ "Create new post on WordPress": "Create new post on WordPress",
14
+ "Create new page on WordPress": "Create new page on WordPress",
15
+ "Update an existing post on WordPress.": "Update an existing post on WordPress.",
16
+ "Get a post from WordPress": "Get a post from WordPress",
17
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
18
+ "Title": "Title",
19
+ "Content": "Content",
20
+ "Slug": "Slug",
21
+ "Date": "Date",
22
+ "Featured Media (URL)": "Featured Media (URL)",
23
+ "Tags": "Tags",
24
+ "Custom ACF fields": "Custom ACF fields",
25
+ "Categories": "Categories",
26
+ "Featured Media (image)": "Featured Media (image)",
27
+ "Status": "Status",
28
+ "Excerpt": "Excerpt",
29
+ "Enable Comments": "Enable Comments",
30
+ "Open to Pinging": "Open to Pinging",
31
+ "Post": "Post",
32
+ "Post ID": "Post ID",
33
+ "Method": "Method",
34
+ "Headers": "Headers",
35
+ "Query Parameters": "Query Parameters",
36
+ "Body Type": "Body Type",
37
+ "Body": "Body",
38
+ "Response is Binary ?": "Response is Binary ?",
39
+ "No Error on Failure": "No Error on Failure",
40
+ "Timeout (in seconds)": "Timeout (in seconds)",
41
+ "Follow redirects": "Follow redirects",
42
+ "Title of the post about to be added": "Title of the post about to be added",
43
+ "Uses the WordPress Text Editor which supports HTML": "Uses the WordPress Text Editor which supports HTML",
44
+ "Post publish date (ISO-8601)": "Post publish date (ISO-8601)",
45
+ "URL of featured media": "URL of featured media",
46
+ "Post tags": "Post tags",
47
+ "Provide field name with value.You can find out field name from ACF plugin menu.": "Provide field name with value.You can find out field name from ACF plugin menu.",
48
+ "Post categories": "Post categories",
49
+ "Choose from one of your uploaded media files": "Choose from one of your uploaded media files",
50
+ "Choose post status": "Choose post status",
51
+ "Title of the page about to be added": "Title of the page about to be added",
52
+ "Page publish date (ISO-8601)": "Page publish date (ISO-8601)",
53
+ "Choose status": "Choose status",
54
+ "The ID of the post to get": "The ID of the post to get",
55
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
56
+ "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
57
+ "Published": "Published",
58
+ "Scheduled": "Scheduled",
59
+ "Draft": "Draft",
60
+ "Pending": "Pending",
61
+ "Private": "Private",
62
+ "Trash": "Trash",
63
+ "GET": "GET",
64
+ "POST": "POST",
65
+ "PATCH": "PATCH",
66
+ "PUT": "PUT",
67
+ "DELETE": "DELETE",
68
+ "HEAD": "HEAD",
69
+ "None": "None",
70
+ "JSON": "JSON",
71
+ "Form Data": "Form Data",
72
+ "Raw": "Raw",
73
+ "Binary": "Binary",
74
+ "New Post": "New Post",
75
+ "Triggers when a new post is published": "Triggers when a new post is published",
76
+ "Authors": "Authors"
77
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "Open-source website creation software": "Open-source website creation software",
3
+ "Username": "Username",
4
+ "Password": "Password",
5
+ "Website URL": "Website URL",
6
+ "URL of the wordpress url i.e https://www.example-website.com": "URL of the wordpress url i.e https://www.example-website.com",
7
+ "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n": "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n",
8
+ "Create Post": "Create Post",
9
+ "Create Page": "Create Page",
10
+ "Update Post": "Update Post",
11
+ "Get Post Details": "Get Post Details",
12
+ "Custom API Call": "Custom API Call",
13
+ "Create new post on WordPress": "Create new post on WordPress",
14
+ "Create new page on WordPress": "Create new page on WordPress",
15
+ "Update an existing post on WordPress.": "Update an existing post on WordPress.",
16
+ "Get a post from WordPress": "Get a post from WordPress",
17
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
18
+ "Title": "Title",
19
+ "Content": "Content",
20
+ "Slug": "Slug",
21
+ "Date": "Date",
22
+ "Featured Media (URL)": "Featured Media (URL)",
23
+ "Tags": "Tags",
24
+ "Custom ACF fields": "Custom ACF fields",
25
+ "Categories": "Categories",
26
+ "Featured Media (image)": "Featured Media (image)",
27
+ "Status": "Status",
28
+ "Excerpt": "Excerpt",
29
+ "Enable Comments": "Enable Comments",
30
+ "Open to Pinging": "Open to Pinging",
31
+ "Post": "Post",
32
+ "Post ID": "Post ID",
33
+ "Method": "Method",
34
+ "Headers": "Headers",
35
+ "Query Parameters": "Query Parameters",
36
+ "Body": "Body",
37
+ "No Error on Failure": "No Error on Failure",
38
+ "Timeout (in seconds)": "Timeout (in seconds)",
39
+ "Title of the post about to be added": "Title of the post about to be added",
40
+ "Uses the WordPress Text Editor which supports HTML": "Uses the WordPress Text Editor which supports HTML",
41
+ "Post publish date (ISO-8601)": "Post publish date (ISO-8601)",
42
+ "URL of featured media": "URL of featured media",
43
+ "Post tags": "Post tags",
44
+ "Provide field name with value.You can find out field name from ACF plugin menu.": "Provide field name with value.You can find out field name from ACF plugin menu.",
45
+ "Post categories": "Post categories",
46
+ "Choose from one of your uploaded media files": "Choose from one of your uploaded media files",
47
+ "Choose post status": "Choose post status",
48
+ "Title of the page about to be added": "Title of the page about to be added",
49
+ "Page publish date (ISO-8601)": "Page publish date (ISO-8601)",
50
+ "Choose status": "Choose status",
51
+ "The ID of the post to get": "The ID of the post to get",
52
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
53
+ "Published": "Đã xuất bản",
54
+ "Scheduled": "Scheduled",
55
+ "Draft": "Bản nháp",
56
+ "Pending": "Đang chờ",
57
+ "Private": "Private",
58
+ "Trash": "Trash",
59
+ "GET": "GET",
60
+ "POST": "POST",
61
+ "PATCH": "PATCH",
62
+ "PUT": "PUT",
63
+ "DELETE": "DELETE",
64
+ "HEAD": "HEAD",
65
+ "New Post": "New Post",
66
+ "Triggers when a new post is published": "Triggers when a new post is published",
67
+ "Authors": "Authors"
68
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "Open-source website creation software": "Open-source website creation software",
3
+ "Username": "用户名",
4
+ "Password": "Password",
5
+ "Website URL": "Website URL",
6
+ "URL of the wordpress url i.e https://www.example-website.com": "URL of the wordpress url i.e https://www.example-website.com",
7
+ "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n": "\n**Enable Basic Authentication:**\n\n1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)\n2. Log in to your WordPress dashboard.\n3. Go to \"Plugins\" and click \"Add New.\"\n4. Choose \"Upload Plugin\" and select the downloaded file.\n5. Install and activate the plugin.\n\n",
8
+ "Create Post": "Create Post",
9
+ "Create Page": "Create Page",
10
+ "Update Post": "Update Post",
11
+ "Get Post Details": "Get Post Details",
12
+ "Custom API Call": "自定义 API 呼叫",
13
+ "Create new post on WordPress": "Create new post on WordPress",
14
+ "Create new page on WordPress": "Create new page on WordPress",
15
+ "Update an existing post on WordPress.": "Update an existing post on WordPress.",
16
+ "Get a post from WordPress": "Get a post from WordPress",
17
+ "Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
18
+ "Title": "标题",
19
+ "Content": "Content",
20
+ "Slug": "Slug",
21
+ "Date": "Date",
22
+ "Featured Media (URL)": "Featured Media (URL)",
23
+ "Tags": "标签",
24
+ "Custom ACF fields": "Custom ACF fields",
25
+ "Categories": "Categories",
26
+ "Featured Media (image)": "Featured Media (image)",
27
+ "Status": "状态",
28
+ "Excerpt": "Excerpt",
29
+ "Enable Comments": "Enable Comments",
30
+ "Open to Pinging": "Open to Pinging",
31
+ "Post": "Post",
32
+ "Post ID": "Post ID",
33
+ "Method": "方法",
34
+ "Headers": "信头",
35
+ "Query Parameters": "查询参数",
36
+ "Body Type": "Body Type",
37
+ "Body": "正文内容",
38
+ "Response is Binary ?": "Response is Binary ?",
39
+ "No Error on Failure": "失败时没有错误",
40
+ "Timeout (in seconds)": "超时(秒)",
41
+ "Follow redirects": "Follow redirects",
42
+ "Title of the post about to be added": "Title of the post about to be added",
43
+ "Uses the WordPress Text Editor which supports HTML": "Uses the WordPress Text Editor which supports HTML",
44
+ "Post publish date (ISO-8601)": "Post publish date (ISO-8601)",
45
+ "URL of featured media": "URL of featured media",
46
+ "Post tags": "Post tags",
47
+ "Provide field name with value.You can find out field name from ACF plugin menu.": "Provide field name with value.You can find out field name from ACF plugin menu.",
48
+ "Post categories": "Post categories",
49
+ "Choose from one of your uploaded media files": "Choose from one of your uploaded media files",
50
+ "Choose post status": "Choose post status",
51
+ "Title of the page about to be added": "Title of the page about to be added",
52
+ "Page publish date (ISO-8601)": "Page publish date (ISO-8601)",
53
+ "Choose status": "Choose status",
54
+ "The ID of the post to get": "The ID of the post to get",
55
+ "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
56
+ "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
57
+ "Published": "已发布",
58
+ "Scheduled": "Scheduled",
59
+ "Draft": "草稿",
60
+ "Pending": "待處理",
61
+ "Private": "Private",
62
+ "Trash": "Trash",
63
+ "GET": "获取",
64
+ "POST": "帖子",
65
+ "PATCH": "PATCH",
66
+ "PUT": "弹出",
67
+ "DELETE": "删除",
68
+ "HEAD": "黑色",
69
+ "None": "无",
70
+ "JSON": "JSON",
71
+ "Form Data": "表单数据",
72
+ "Raw": "原始文件",
73
+ "Binary": "二进制",
74
+ "New Post": "New Post",
75
+ "Triggers when a new post is published": "Triggers when a new post is published",
76
+ "Authors": "Authors"
77
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export declare const wordpressAuth: import("@aiqadam/qadams-framework").CustomAuthProperty<{
2
+ username: import("@aiqadam/qadams-framework").ShortTextProperty<true>;
3
+ password: import("@aiqadam/qadams-framework").SecretTextProperty<true>;
4
+ website_url: import("@aiqadam/qadams-framework").ShortTextProperty<true>;
5
+ }>;
6
+ export declare const wordpress: import("@aiqadam/qadams-framework").Qadam<import("@aiqadam/qadams-framework").CustomAuthProperty<{
7
+ username: import("@aiqadam/qadams-framework").ShortTextProperty<true>;
8
+ password: import("@aiqadam/qadams-framework").SecretTextProperty<true>;
9
+ website_url: import("@aiqadam/qadams-framework").ShortTextProperty<true>;
10
+ }>>;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,aAAa;;;;EAgExB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;GAoCpB,CAAC"}
package/src/index.js ADDED
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wordpress = exports.wordpressAuth = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const qadams_common_1 = require("@aiqadam/qadams-common");
6
+ const qadams_framework_1 = require("@aiqadam/qadams-framework");
7
+ const shared_1 = require("@aiqadam/shared");
8
+ const create_page_action_1 = require("./lib/actions/create-page.action");
9
+ const create_post_action_1 = require("./lib/actions/create-post.action");
10
+ const get_post_action_1 = require("./lib/actions/get-post.action");
11
+ const common_1 = require("./lib/common");
12
+ const new_post_trigger_1 = require("./lib/trigger/new-post.trigger");
13
+ const update_post_action_1 = require("./lib/actions/update-post.action");
14
+ const markdownPropertyDescription = `
15
+ **Enable Basic Authentication:**
16
+
17
+ 1. Download the plugin from: https://github.com/WP-API/Basic-Auth (Click on Code -> Download Zip)
18
+ 2. Log in to your WordPress dashboard.
19
+ 3. Go to "Plugins" and click "Add New."
20
+ 4. Choose "Upload Plugin" and select the downloaded file.
21
+ 5. Install and activate the plugin.
22
+
23
+ `;
24
+ exports.wordpressAuth = qadams_framework_1.QadamAuth.CustomAuth({
25
+ description: markdownPropertyDescription,
26
+ required: true,
27
+ props: {
28
+ username: qadams_framework_1.Property.ShortText({
29
+ displayName: 'Username',
30
+ required: true,
31
+ }),
32
+ password: qadams_framework_1.QadamAuth.SecretText({
33
+ displayName: 'Password',
34
+ required: true,
35
+ }),
36
+ website_url: qadams_framework_1.Property.ShortText({
37
+ displayName: 'Website URL',
38
+ required: true,
39
+ description: 'URL of the wordpress url i.e https://www.example-website.com',
40
+ }),
41
+ },
42
+ validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
43
+ const { username, password, website_url } = auth;
44
+ if (!username || !password || !website_url) {
45
+ return {
46
+ valid: false,
47
+ error: 'please fill all the fields [username, password, website_url] ',
48
+ };
49
+ }
50
+ if (!common_1.wordpressCommon.isBaseUrl(website_url.trim())) {
51
+ return {
52
+ valid: false,
53
+ error: 'Please ensure that the website is valid and does not contain any paths, for example, https://example-website.com.',
54
+ };
55
+ }
56
+ const apiEnabled = yield common_1.wordpressCommon.urlExists(website_url.trim() + '/wp-json');
57
+ if (!apiEnabled) {
58
+ return {
59
+ valid: false,
60
+ error: `REST API is not reachable, visit ${website_url.trim()}/wp-json" \n make sure your settings (Settings -> Permalinks) are set to "Post name" (or any option other than "Plain") and disable any security plugins that might block the REST API `,
61
+ };
62
+ }
63
+ try {
64
+ const request = {
65
+ method: qadams_common_1.HttpMethod.GET,
66
+ url: `${website_url}/wp-json/wp/v2/categories`,
67
+ authentication: {
68
+ type: qadams_common_1.AuthenticationType.BASIC,
69
+ username: username,
70
+ password: password,
71
+ },
72
+ };
73
+ yield qadams_common_1.httpClient.sendRequest(request);
74
+ return {
75
+ valid: true,
76
+ };
77
+ }
78
+ catch (e) {
79
+ return {
80
+ valid: false,
81
+ error: 'Credentials are invalid. ' + (e === null || e === void 0 ? void 0 : e.message),
82
+ };
83
+ }
84
+ }),
85
+ });
86
+ exports.wordpress = (0, qadams_framework_1.createQadam)({
87
+ displayName: 'WordPress',
88
+ description: 'Open-source website creation software',
89
+ minimumSupportedRelease: '0.0.0',
90
+ logoUrl: '/assets/qadams/wordpress.png',
91
+ categories: [shared_1.QadamCategory.MARKETING],
92
+ auth: exports.wordpressAuth,
93
+ authors: [
94
+ 'pfernandez98',
95
+ 'Salem-Alaa',
96
+ 'kishanprmr',
97
+ 'MoShizzle',
98
+ 'AbdulTheActivePiecer',
99
+ 'khaledmashaly',
100
+ 'abuaboud',
101
+ ],
102
+ actions: [
103
+ create_post_action_1.createWordPressPost,
104
+ create_page_action_1.createWordPressPage,
105
+ update_post_action_1.updateWordPressPost,
106
+ get_post_action_1.getWordPressPost,
107
+ (0, qadams_common_1.createCustomApiCallAction)({
108
+ baseUrl: (auth) => auth ?
109
+ (auth.props.website_url).trim() + '/wp-json/wp/v2' : '',
110
+ auth: exports.wordpressAuth,
111
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
112
+ return ({
113
+ Authorization: `Basic ${Buffer.from(`${auth.props.username}:${auth.props.password}`).toString('base64')}`,
114
+ });
115
+ }),
116
+ }),
117
+ ],
118
+ triggers: [new_post_trigger_1.wordpressNewPost],
119
+ });
120
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,0DAMgC;AAChC,gEAImC;AACnC,4CAAgD;AAChD,yEAAuE;AACvE,yEAAuE;AACvE,mEAAiE;AACjE,yCAA+C;AAC/C,qEAAkE;AAClE,yEAAuE;AAEvE,MAAM,2BAA2B,GAAG;;;;;;;;;CASnC,CAAC;AAEW,QAAA,aAAa,GAAG,4BAAS,CAAC,UAAU,CAAC;IAChD,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,4BAAS,CAAC,UAAU,CAAC;YAC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,15 @@
1
+ export declare const createWordPressPage: import("@aiqadam/qadams-framework").IAction<import("@aiqadam/qadams-framework").CustomAuthProperty<{
2
+ username: import("@aiqadam/qadams-framework").ShortTextProperty<true>;
3
+ password: import("@aiqadam/qadams-framework").SecretTextProperty<true>;
4
+ website_url: import("@aiqadam/qadams-framework").ShortTextProperty<true>;
5
+ }>, {
6
+ title: import("@aiqadam/qadams-framework").ShortTextProperty<true>;
7
+ content: import("@aiqadam/qadams-framework").LongTextProperty<true>;
8
+ slug: import("@aiqadam/qadams-framework").ShortTextProperty<false>;
9
+ date: import("@aiqadam/qadams-framework").ShortTextProperty<false>;
10
+ status: import("@aiqadam/qadams-framework").StaticDropdownProperty<string, false>;
11
+ excerpt: import("@aiqadam/qadams-framework").LongTextProperty<false>;
12
+ comment_status: import("@aiqadam/qadams-framework").CheckboxProperty<false>;
13
+ ping_status: import("@aiqadam/qadams-framework").CheckboxProperty<false>;
14
+ }>;
15
+ //# sourceMappingURL=create-page.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-page.action.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-page.action.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;EA+F9B,CAAC"}