{"id":50397051,"url":"https://github.com/labd/bluestonepim-node-sdk","last_synced_at":"2026-05-30T21:30:45.630Z","repository":{"id":326355923,"uuid":"854484103","full_name":"labd/bluestonepim-node-sdk","owner":"labd","description":"BluestonePIM Node SDK","archived":false,"fork":false,"pushed_at":"2026-03-02T03:09:26.000Z","size":314,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-12T15:41:25.361Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labd.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-09T08:56:49.000Z","updated_at":"2025-11-26T12:07:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/labd/bluestonepim-node-sdk","commit_stats":null,"previous_names":["labd/bluestonepim-node-sdk"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/labd/bluestonepim-node-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-node-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-node-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-node-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-node-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labd","download_url":"https://codeload.github.com/labd/bluestonepim-node-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-node-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33711018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":"2026-05-30T21:30:44.993Z","updated_at":"2026-05-30T21:30:45.625Z","avatar_url":"https://github.com/labd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BluestonePIM SDK\n\nThis SDK provides methods to interact with the BluestonePIM API. It includes methods to retrieve differences in products\nand relations during synchronization operations.\n\n## Installation\n\nTo install the SDK, use npm:\n\n```sh\n# Using npm\nnpm install @labdigital/bluestonepim-sdk\n\n# Using yarn\nyarn add @labdigital/bluestonepim-sdk\n\n# Using pnpm\npnpm add @labdigital/bluestonepim-sdk\n```\n\n## Usage\n\n```typescript\nimport { DifferencesApi, Configuration } from \"@labdigital/bluestonepim-sdk\";\n\nconst config = new Configuration({\n  apiKey: \"your-api-key-here\",\n  basePath: \"https://api.test.bluestonepim.com/v1\",\n});\n\nconst differencesApi = new DifferencesApi(config);\n\nconst requestParameters = {\n  id: \"sync-id\",\n  diffType: \"type\",\n  itemsOnPage: 10,\n  pageNo: 1,\n};\n\nconst productDifferences =\n  await differencesApi.getProductDifferencesOnSyncDeletes(requestParameters);\nconsole.log(productDifferences);\n```\n\n### Retrying requests\n\nThe Bluestone PIM API may return a 429 status code when the rate limit is exceeded. To handle this, you can use the\n`retry` function from the `fetch-retry` package. This function will retry the request a number of times with a delay\nbetween each attempt.\n\n```sh\n# Using npm\nnpm install fetch-retry isomorphic-fetch\n\n# Using yarn\nyarn add fetch-retry isomorphic-fetch\n\n# Using pnpm\npnpm add fetch-retry isomorphic-fetch\n```\n\n```typescript\nconst config = new Configuration({\n  fetchApi: retry(fetch, {\n    retries: 5, //Retry 5 times\n    retryDelay: 1000, //Retry after 1 second\n    retryOn: (attempt: number, error, response: Response | null): boolean =\u003e {\n      // Only retry when 429 is hit, otherwise we continue\n      if (response != null \u0026\u0026 response.status === 429) {\n        logger.debug({\n          msg: \"Retrying Bluestone PIM request\",\n          attempt: attempt,\n          responseStatus: response.status,\n        });\n        return true;\n      }\n      return false;\n    },\n  }),\n  // Your other configuration options\n});\n```\n\n## Development\n\nTo regenerate the SDK, run the following command:\n\n```sh\npnpm run sdk:generate\n```\n\nThis will generate the SDK in the `src` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fbluestonepim-node-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabd%2Fbluestonepim-node-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fbluestonepim-node-sdk/lists"}