@rebilly/api 0.0.0 → 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.
@@ -0,0 +1,5 @@
1
+ export { createStorefrontClient, type StorefrontClient, type StorefrontClientOptions, } from './create-storefront-client.ts';
2
+ export { apiServerUrl, type ClientOptions, type StorefrontCredentials, } from './api-client-options.ts';
3
+ export * from './runtime/factory.ts';
4
+ export type * from './storefront-client.ts';
5
+ export { OPERATIONS } from './storefront-client.ts';
@@ -0,0 +1,7 @@
1
+ import { ApiError, TimeoutError } from "./runtime/errors.js";
2
+ import { defaultRetryOn } from "./runtime/retry.js";
3
+ import { createClient } from "./runtime/factory.js";
4
+ import { apiServerUrl } from "./api-client-options.js";
5
+ import { OPERATIONS } from "./storefront-client.js";
6
+ import { createStorefrontClient } from "./create-storefront-client.js";
7
+ export { ApiError, OPERATIONS, TimeoutError, apiServerUrl, createClient, createStorefrontClient, defaultRetryOn };
package/package.json CHANGED
@@ -1,11 +1,41 @@
1
1
  {
2
2
  "name": "@rebilly/api",
3
- "version": "0.0.0",
4
- "description": "Placeholder so that npm trusted publishing can be configured. The real package is released from https://github.com/Rebilly/rebilly (frontend/libs/rebilly-api).",
5
- "license": "MIT",
6
- "repository": "https://github.com/Rebilly/rebilly",
3
+ "version": "0.1.1",
4
+ "description": "Rebilly Core and Storefront API clients generated from the OpenAPI definitions",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "files": [
8
+ "dist",
9
+ "CHANGELOG.md"
10
+ ],
11
+ "exports": {
12
+ "./core": {
13
+ "types": "./dist/core.d.ts",
14
+ "import": "./dist/core.js"
15
+ },
16
+ "./storefront": {
17
+ "types": "./dist/storefront.d.ts",
18
+ "import": "./dist/storefront.js"
19
+ }
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/Rebilly/rebilly"
24
+ },
7
25
  "author": "Rebilly",
26
+ "license": "MIT",
8
27
  "publishConfig": {
9
28
  "access": "public"
29
+ },
30
+ "devDependencies": {
31
+ "@rebilly/eslint-config": "*",
32
+ "typescript": "^6.0.3",
33
+ "vite": "^8.3.3",
34
+ "vite-plugin-dts": "^4.5.0"
35
+ },
36
+ "scripts": {
37
+ "build": "vite build",
38
+ "type:check": "tsc --noEmit",
39
+ "test:unit": "node --test src/*.test.ts"
10
40
  }
11
- }
41
+ }