@or-sdk/identifiers 0.28.0 → 0.28.1-beta.4282.0
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/package.json +16 -16
- package/src/__tests__/identifiers.spec.ts +2 -2
- package/src/identifiers.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/identifiers",
|
|
3
|
-
"version": "0.28.0",
|
|
3
|
+
"version": "0.28.1-beta.4282.0",
|
|
4
4
|
"description": "OneReach SDK client for Identifiers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -12,8 +12,20 @@
|
|
|
12
12
|
"README.md",
|
|
13
13
|
"CHANGELOG.md"
|
|
14
14
|
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@or-sdk/base": "^0.44.8-beta.4282.0",
|
|
17
|
+
"@or-sdk/sdk-api": "^0.30.1-beta.4282.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"concurrently": "^9.2.0",
|
|
21
|
+
"typescript": "^5.6.2",
|
|
22
|
+
"vitest": "^4.1.10"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
15
27
|
"scripts": {
|
|
16
|
-
"build": "
|
|
28
|
+
"build": "concurrently 'pnpm:build:*(!watch)'",
|
|
17
29
|
"build:cjs": "tsc --project tsconfig.json",
|
|
18
30
|
"build:esm": "tsc --project tsconfig.esm.json",
|
|
19
31
|
"build:types": "tsc --project tsconfig.types.json",
|
|
@@ -26,17 +38,5 @@
|
|
|
26
38
|
"dev": "pnpm build:watch:esm",
|
|
27
39
|
"test": "vitest --run",
|
|
28
40
|
"test:watch": "vitest --watch"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
"@or-sdk/base": "^0.44.7",
|
|
32
|
-
"@or-sdk/sdk-api": "^0.30.0"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"concurrently": "9.0.1",
|
|
36
|
-
"typescript": "5.6.2"
|
|
37
|
-
},
|
|
38
|
-
"publishConfig": {
|
|
39
|
-
"access": "public"
|
|
40
|
-
},
|
|
41
|
-
"gitHead": "6dc62c7c3a3a05b2dfc5a1c7c9bfd4c5e8eb0b99"
|
|
42
|
-
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -32,7 +32,7 @@ describe('identifiers.Identifiers', () => {
|
|
|
32
32
|
} catch (error) {
|
|
33
33
|
const e = error as TokenIsMissedError;
|
|
34
34
|
expect(e.message).toBe(
|
|
35
|
-
new TokenIsMissedError().message
|
|
35
|
+
new TokenIsMissedError().message,
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -64,7 +64,7 @@ describe('identifiers.Identifiers', () => {
|
|
|
64
64
|
} catch (error) {
|
|
65
65
|
const e = error as SdkUrlOrDiscoveryUrlIsMissedError;
|
|
66
66
|
expect(e.message).toBe(
|
|
67
|
-
new SdkUrlOrDiscoveryUrlIsMissedError().message
|
|
67
|
+
new SdkUrlOrDiscoveryUrlIsMissedError().message,
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
});
|
package/src/identifiers.ts
CHANGED
|
@@ -166,7 +166,7 @@ export class Identifiers {
|
|
|
166
166
|
* @return List<ObtainableIdentifier>
|
|
167
167
|
*/
|
|
168
168
|
public async listObtainableIdentifiers(
|
|
169
|
-
params: ObtainableIdentifierRequestParams = {}
|
|
169
|
+
params: ObtainableIdentifierRequestParams = {},
|
|
170
170
|
): Promise<List<ObtainableIdentifier>> {
|
|
171
171
|
const result = await this._sdkApi.makeRequest<ObtainableIdentifier[]>({
|
|
172
172
|
method: 'GET',
|
|
@@ -209,7 +209,7 @@ export class Identifiers {
|
|
|
209
209
|
* ```
|
|
210
210
|
*/
|
|
211
211
|
public async buyIdentifier(
|
|
212
|
-
identifiers: ObtainableIdentifier | ObtainableIdentifier[]
|
|
212
|
+
identifiers: ObtainableIdentifier | ObtainableIdentifier[],
|
|
213
213
|
): Promise<BuyIdentifierResponse> {
|
|
214
214
|
const data = {
|
|
215
215
|
identifiers: Array.isArray(identifiers) ? identifiers : [identifiers],
|
|
@@ -236,7 +236,7 @@ export class Identifiers {
|
|
|
236
236
|
*/
|
|
237
237
|
public async createProvider(
|
|
238
238
|
provider: IdentifierProvider['name'],
|
|
239
|
-
settings: IdentifierProvider['settings'] = {}
|
|
239
|
+
settings: IdentifierProvider['settings'] = {},
|
|
240
240
|
): Promise<void> {
|
|
241
241
|
const data = {
|
|
242
242
|
provider,
|