Skip to content

Commit 69a6459

Browse files
committed
refactored service names
1 parent 8b799b8 commit 69a6459

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mycore/js-common",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"exports": {
55
"./i18n": "./src/i18n/index.ts",
66
"./access-key": "./src/access-key/index.ts",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ const buildSearchParams = (options?: GetAccessKeysOptions): string => {
5656
const API_PATH = 'api/v2/access-keys';
5757

5858
/**
59-
* Service for managing access keys.
59+
* Client for managing access keys.
6060
*/
61-
export class AccessKeyService {
61+
export class AccessKeyApiClient {
6262
/**
63-
* Creates an instance of `AccessKeyService`.
63+
* Creates an instance of `AccessKeyApiClient`.
6464
* @param baseUrl - The base Url to make requests.
6565
* @param authStrategy - Optional authentication strategy function.
6666
*/

src/access-key/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
* @module accessKey
33
*/
44

5-
export * from './access-key.service';
5+
export * from './access-key.client';
66
export * from './types';

src/i18n/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
* @module i18n
33
*/
44

5-
export * from './lang.service';
5+
export * from './lang.client';
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
const API_PATH = 'rsc/locale';
55

66
/**
7-
* Service for handling language-related operations.
7+
* Client for handling language-related operations.
88
*/
9-
export class LangService {
9+
export class LangApiClient {
1010
/**
11-
* Creates an instance of `LangService`.
11+
* Creates an instance of `LangApiClient`.
1212
* @param baseUrl - The base URL or URL object.
1313
*/
1414
constructor(private baseUrl: string | URL) {

src/orcid/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @module orcid
33
*/
44

5-
export * from './orcid-user.service';
6-
export * from './orcid-work.service';
5+
export * from './orcid-user.client';
6+
export * from './orcid-work.client';
77
export * from './orcid-auth.utils';
88
export * from './types';
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AuthStrategy } from '../auth/types.ts';
2-
import { handleError, ensureOk } from '../utils/http';
2+
import { handleError, ensureOk } from '../utils/http/index.ts';
33
import { OrcidUserSettings, OrcidUserStatus } from './types.ts';
44

55
/**
@@ -8,11 +8,11 @@ import { OrcidUserSettings, OrcidUserStatus } from './types.ts';
88
const API_PATH = 'api/orcid/v1/';
99

1010
/**
11-
* Service for interacting with ORCID user status and settings.
11+
* Client for interacting with ORCID user status and settings.
1212
*/
13-
export class OrcidUserService {
13+
export class OrcidUserApiClient {
1414
/**
15-
* Creates an instance of `OrcidUserService`.
15+
* Creates an instance of `OrcidUserApiClient`.
1616
* @param baseUrl - The base Url to make requests.
1717
* @param authStrategy - Optional authentication strategy function.
1818
*/
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { OrcidWorkStatus } from './types';
88
const API_PATH = 'api/orcid/v1/';
99

1010
/**
11-
* A service for interacting with ORCID works, including fetching work status and exporting objects.
11+
* A client for interacting with ORCID works, including fetching work status and exporting objects.
1212
*
13-
* This service allows you to fetch the status of a work by its `objectId` and ORCID, and to export
13+
* This client allows you to fetch the status of a work by its `objectId` and ORCID, and to export
1414
* works to ORCID. It can operate in both "member" and "public" modes.
1515
*/
16-
export class OrcidWorkService {
16+
export class OrcidWorkApiClient {
1717
/**
18-
* Creates an instance of `OrcidWorkService`.
18+
* Creates an instance of `OrcidWorkApiClient`.
1919
* @param baseUrl - The base Url to make requests.
2020
* @param authStrategy - Optional authentication strategy function.
2121
*/

src/utils/cache/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
*/
44

55
export * from './types.ts';
6-
export * from './memory-cache.service.ts';
7-
export * from './storage-cache.service.ts';
6+
export * from './memory-cache.ts';
7+
export * from './storage-cache.ts';

0 commit comments

Comments
 (0)