@or-sdk/identifiers 0.27.11-beta.4276.0 → 0.27.11-beta.4281.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/README.md CHANGED
@@ -1,23 +1,9 @@
1
- # `@or-sdk/identifiers`
2
-
3
- OneReach SDK client for Identifiers.
4
-
5
- ## When to use
6
-
7
- - Use this package when integrating with the Identifiers capability on the OneReach platform.
8
- - Use its typed client and exported models instead of hand-writing requests to that service.
9
-
10
- ## When not to use
11
-
12
- - Do not use it for a different platform capability; choose the dedicated `@or-sdk/*` package instead.
13
- - Do not use it for generic third-party HTTP calls.
14
-
15
- ## Installation
1
+ ## Installation:
16
2
  ```
17
3
  $ npm i @or-sdk/identifiers
18
4
  ```
19
5
 
20
- ## Usage
6
+ ## Usage:
21
7
  ```typescript
22
8
  import { Identifiers } from '@or-sdk/identifiers'
23
9
 
@@ -33,45 +19,3 @@ const identifiers = new Identifiers({
33
19
  discoveryUrl: 'http://example.discovery/endpoint'
34
20
  });
35
21
  ```
36
-
37
- ## Configuration
38
-
39
- - Prefer `sdkUrl` when the service URL is known; it avoids a discovery request.
40
- - Use `discoveryUrl` only when the service URL is not available.
41
- - Provide `token` as a bearer-token string or getter where supported.
42
-
43
- ## Common pitfalls
44
-
45
- - Keep the client token current when it can expire; a token getter is preferable where the constructor accepts one.
46
- - Treat the generated TypeScript types as the authoritative contract for optional parameters and response shapes.
47
-
48
- ## Method map
49
-
50
- | Method | Purpose |
51
- |---|---|
52
- | `init(...)` | See the exported TypeScript signature for parameters and result. |
53
- | `listIdentifiers(...)` | See the exported TypeScript signature for parameters and result. |
54
- | `listIdentifierGroups(...)` | See the exported TypeScript signature for parameters and result. |
55
- | `getIdentifier(...)` | See the exported TypeScript signature for parameters and result. |
56
- | `getIdentifierGroup(...)` | See the exported TypeScript signature for parameters and result. |
57
- | `listObtainableIdentifiers(...)` | See the exported TypeScript signature for parameters and result. |
58
- | `releaseIdentifier(...)` | See the exported TypeScript signature for parameters and result. |
59
- | `buyIdentifier(...)` | See the exported TypeScript signature for parameters and result. |
60
- | `createProvider(...)` | See the exported TypeScript signature for parameters and result. |
61
- | `listProviders(...)` | See the exported TypeScript signature for parameters and result. |
62
- | `deleteProvider(...)` | See the exported TypeScript signature for parameters and result. |
63
-
64
- ## More detail
65
-
66
- Full signatures and exported types are available in `src/` and `dist/types/`.
67
-
68
-
69
- ## Additional API reference
70
-
71
- Methods below were missing from the package guide. Signatures and return types are taken directly from the exported source API.
72
-
73
- ### `Identifiers`
74
-
75
- | Method | Returns | Purpose |
76
- |---|---|---|
77
- | `listIdentifiersTriggers(identifiers: List<SingleIdentifier>)` | `Promise<List<IdentifierTrigger>>` | Load list of identifier gateway triggers by identifier list. |
package/package.json CHANGED
@@ -1,17 +1,10 @@
1
1
  {
2
2
  "name": "@or-sdk/identifiers",
3
- "version": "0.27.11-beta.4276.0",
4
- "description": "OneReach SDK client for Identifiers",
3
+ "version": "0.27.11-beta.4281.0",
5
4
  "license": "Apache-2.0",
6
5
  "main": "dist/cjs/index.js",
7
6
  "module": "dist/esm/index.js",
8
7
  "types": "dist/types/index.d.ts",
9
- "files": [
10
- "dist",
11
- "src",
12
- "README.md",
13
- "CHANGELOG.md"
14
- ],
15
8
  "scripts": {
16
9
  "build": "pnpm clean && concurrently 'pnpm:build:*(!watch)'",
17
10
  "build:cjs": "tsc --project tsconfig.json",
@@ -29,7 +22,7 @@
29
22
  },
30
23
  "dependencies": {
31
24
  "@or-sdk/base": "^0.44.7",
32
- "@or-sdk/sdk-api": "^0.29.6-beta.4276.0"
25
+ "@or-sdk/sdk-api": "^0.29.6-beta.4281.0"
33
26
  },
34
27
  "devDependencies": {
35
28
  "concurrently": "9.0.1",
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "./src"
5
+ },
6
+ "exclude": [
7
+ "./src/__tests__"
8
+ ]
9
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.esm.json",
3
+ "compilerOptions": {
4
+ "declarationDir": "./dist/types",
5
+ "declaration": true
6
+ }
7
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist/esm",
5
+ "declarationDir": "./dist/types",
6
+ "module": "ES6",
7
+ "target": "es6",
8
+ "declaration": true,
9
+ "declarationMap": true
10
+ }
11
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "./tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist/cjs"
5
+ }
6
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist/types",
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "emitDeclarationOnly": true,
8
+ "removeComments": false
9
+ }
10
+ }
@@ -0,0 +1,25 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ reporters: ['junit', 'default'],
6
+ outputFile: 'test-results/junit.xml',
7
+ include: ['src/**/*.{test,spec}.ts'],
8
+ exclude: ['dist/**'],
9
+ coverage: {
10
+ reporter: ['text', 'json', 'html', 'cobertura', 'text-summary'],
11
+ clean: true,
12
+ include: [
13
+ 'src/**',
14
+ ],
15
+ exclude: [
16
+ 'src/types.ts',
17
+ '**/*.spec.ts',
18
+ ],
19
+ },
20
+ globals: true,
21
+ environment: 'node',
22
+ clearMocks: true,
23
+ watch: false,
24
+ },
25
+ });