@content-island/api-client 0.3.0 → 0.3.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/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Project, Content } from '@content-island/b2b-api-model';
2
- import { QueryParams } from './model';
2
+ import { QueryParams } from './model.js';
3
3
  export interface Options {
4
4
  accessToken: string;
5
5
  domain?: string;
package/dist/helpers.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { QueryParams } from './model';
1
+ import { QueryParams } from './model.js';
2
2
  export declare const formatQuery: (queryParams: QueryParams) => string;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export type { Project, Content, Field, FieldType, Resource, ApiLookup } from '@content-island/b2b-api-model';
2
- export * from './client';
3
- export * from './mappers';
2
+ export { createClient } from './client.js';
3
+ export type { ApiClient, Options } from './client.js';
4
+ export { mapFieldListToModel } from './mappers.js';
package/dist/model.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { ALLOWED_QUERIES } from './constants';
1
+ import { ALLOWED_QUERIES } from './constants.js';
2
2
  export type QueryParams = Partial<typeof ALLOWED_QUERIES>;
package/dist/urls.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { QueryParams } from './model';
1
+ import { QueryParams } from './model.js';
2
2
  export declare const API_URLS: {
3
3
  PROYECT: string;
4
4
  CONTENT_LIST: (queryParam: QueryParams) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@content-island/api-client",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Content Island - REST API Client",
5
5
  "private": false,
6
6
  "author": "Lemoncode",
@@ -28,7 +28,7 @@
28
28
  "test:watch": "vitest -c ./config/test/config.ts"
29
29
  },
30
30
  "dependencies": {
31
- "@content-island/b2b-api-model": "^0.2.0"
31
+ "@content-island/b2b-api-model": "^0.2.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "dotenv": "^16.3.1",