{"id":24540799,"url":"https://github.com/code-gio/siteflow-js","last_synced_at":"2026-02-12T13:06:26.719Z","repository":{"id":250416800,"uuid":"834417980","full_name":"code-gio/siteflow-js","owner":"code-gio","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-27T09:27:12.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T16:17:11.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-gio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-27T07:53:25.000Z","updated_at":"2024-07-27T09:27:09.000Z","dependencies_parsed_at":"2025-07-16T23:26:52.988Z","dependency_job_id":"d4cff95d-9f48-4e43-baac-ace9853c1efb","html_url":"https://github.com/code-gio/siteflow-js","commit_stats":null,"previous_names":["code-gio/siteflow-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/code-gio/siteflow-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-gio%2Fsiteflow-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-gio%2Fsiteflow-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-gio%2Fsiteflow-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-gio%2Fsiteflow-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-gio","download_url":"https://codeload.github.com/code-gio/siteflow-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-gio%2Fsiteflow-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273218417,"owners_count":25065913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-22T18:14:56.482Z","updated_at":"2026-02-12T13:06:21.676Z","avatar_url":"https://github.com/code-gio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbody\u003e\n  \u003ch1\u003eSiteflow HP API Client\u003c/h1\u003e\n\n  \u003cp\u003eA TypeScript library for interacting with the Siteflow HP API.\u003c/p\u003e\n\n  \u003ch2\u003eInstallation\u003c/h2\u003e\n\n  \u003cpre\u003e\u003ccode\u003enpm install siteflow-hp-client\u003c/code\u003e\u003c/pre\u003e\n\n  \u003ch2\u003eUsage\u003c/h2\u003e\n\n  \u003ch3\u003eInitializing the client\u003c/h3\u003e\n\n  \u003cpre\u003e\u003ccode class=\"language-javascript\"\u003e\nimport SiteflowClient from 'siteflow-hp-client';\n\nconst config = {\n  token: 'your-api-token',\n  secret: 'your-api-secret',\n  baseUrl: 'https://api.siteflow.com' // Optional, defaults to production URL\n};\n\nconst options = {\n  retries: 3,\n  retryDelay: 1000,\n  retryCondition: (error) =\u003e error.response \u0026\u0026 error.response.status \u003e= 500,\n  serviceUser: true,\n  accountId: 'your-account-id',\n  routingRule: 'custom-routing-rule'\n};\n\nconst client = new SiteflowClient(config, options);\n  \u003c/code\u003e\u003c/pre\u003e\n\n  \u003ch3\u003eMaking API calls\u003c/h3\u003e\n\n  \u003ch4\u003eOrders\u003c/h4\u003e\n\n  \u003cpre\u003e\u003ccode class=\"language-javascript\"\u003e\n// Get all orders\nconst orders = await client.order.getAll();\n\n// Get a specific order\nconst order = await client.order.get('order-id');\n\n// Create a new order\nconst newOrder = {\n  // Order details\n};\nconst createdOrder = await client.order.create(newOrder);\n\n// Validate an order\nconst validationResult = await client.order.validate(newOrder);\n\n// Cancel an order\nawait client.order.cancel('source-account-name', 'source-order-id');\n  \u003c/code\u003e\u003c/pre\u003e\n\n  \u003ch2\u003eAPI Reference\u003c/h2\u003e\n\n  \u003ch3\u003eSiteflowClient\u003c/h3\u003e\n\n  \u003cp\u003eThe main client class for interacting with the Siteflow HP API.\u003c/p\u003e\n\n  \u003ch4\u003eConstructor\u003c/h4\u003e\n\n  \u003cpre\u003e\u003ccode class=\"language-javascript\"\u003e\nconstructor(config: SiteflowConfig, options?: ClientOptions)\n  \u003c/code\u003e\u003c/pre\u003e\n\n  \u003cp\u003eParameters:\u003c/p\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ccode\u003econfig\u003c/code\u003e: Configuration object containing API credentials\n      \u003cul\u003e\n        \u003cli\u003e\u003ccode\u003etoken\u003c/code\u003e: Your API token\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003esecret\u003c/code\u003e: Your API secret\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003ebaseUrl\u003c/code\u003e: (Optional) API base URL\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ccode\u003eoptions\u003c/code\u003e: (Optional) Client options\n      \u003cul\u003e\n        \u003cli\u003e\u003ccode\u003eretries\u003c/code\u003e: Number of retry attempts for failed requests\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003eretryDelay\u003c/code\u003e: Delay between retry attempts (in milliseconds)\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003eretryCondition\u003c/code\u003e: Function to determine if a request should be retried\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003eserviceUser\u003c/code\u003e: Boolean indicating if the client is a service user\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003eaccountId\u003c/code\u003e: Account ID for the request\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003eroutingRule\u003c/code\u003e: Custom routing rule for the request\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n  \u003c/ul\u003e\n\n  \u003ch3\u003eOrder Methods\u003c/h3\u003e\n\n  \u003cul\u003e\n    \u003cli\u003e\u003ccode\u003egetAll()\u003c/code\u003e: Retrieve all orders\u003c/li\u003e\n    \u003cli\u003e\u003ccode\u003eget(id: string)\u003c/code\u003e: Retrieve a specific order by ID\u003c/li\u003e\n    \u003cli\u003e\u003ccode\u003ecreate(order: Order)\u003c/code\u003e: Create a new order\u003c/li\u003e\n    \u003cli\u003e\u003ccode\u003evalidate(order: Order)\u003c/code\u003e: Validate an order\u003c/li\u003e\n    \u003cli\u003e\u003ccode\u003ecancel(sourceAccountName: string, sourceOrderId: string)\u003c/code\u003e: Cancel an order\u003c/li\u003e\n  \u003c/ul\u003e\n\n  \u003ch2\u003eError Handling\u003c/h2\u003e\n\n  \u003cp\u003eThe library uses a custom error handling mechanism. Errors thrown by the API will be wrapped in a \u003ccode\u003eSiteflowError\u003c/code\u003e class, which includes additional information about the request and response.\u003c/p\u003e\n\n  \u003ch2\u003eContributing\u003c/h2\u003e\n\n  \u003cp\u003eContributions are welcome! Please feel free to submit a Pull Request.\u003c/p\u003e\n\n  \u003ch2\u003eLicense\u003c/h2\u003e\n\n  \u003cp\u003eThis project is licensed under the MIT License.\u003c/p\u003e\n\u003c/body\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-gio%2Fsiteflow-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-gio%2Fsiteflow-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-gio%2Fsiteflow-js/lists"}