@or-sdk/identifiers 0.27.11-beta.4276.0 → 0.27.11-beta.4290.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. |
@@ -1,152 +1,19 @@
1
1
  import { List } from '@or-sdk/base';
2
2
  import { BuyIdentifierResponse, Identifier, IdentifierGroup, IdentifierProvider, IdentifiersConfig, IdentifierTrigger, ObtainableIdentifier, ObtainableIdentifierRequestParams, SingleIdentifier } from './types';
3
- /**
4
- * Identifiers SDK API. Mainly used for Identifiers Manager application(since v3)
5
- * Depends on {@link SdkApi}, their configuration and initialisation
6
- *
7
- * @see https://gitlab.internal.onereach.io/onereach/voice/identifiers-manager
8
- */
9
3
  export declare class Identifiers {
10
4
  private readonly _sdkApi;
11
- /**
12
- * Identifiers SDK client creation. Including {@link SdkApi} dependency
13
- *
14
- * @param config SDK configuration {@link IdentifiersConfig}
15
- * @throws TokenIsMissedError if required configuration parameter token is missed
16
- * @throws SdkUrlOrDiscoveryUrlIsMissedError if one of required configuration
17
- * parameter is missed : sdkUrl or discoveryUrl
18
- */
19
5
  constructor(config: IdentifiersConfig);
20
- /**
21
- * Service initialisation. Including dependencies.
22
- * Required to call depending on context of usage(already initialised {@link SdkApi})
23
- */
24
6
  init(): Promise<void>;
25
- /**
26
- * Load list of identifiers
27
- *
28
- * @example
29
- * ```typescript
30
- * const identifierList = await identifiers.listIdentifiers();
31
- * ```
32
- * @async
33
- * @return List<SingleIdentifier>
34
- */
35
7
  listIdentifiers(): Promise<List<SingleIdentifier>>;
36
- /**
37
- * List identifier groups
38
- *
39
- * @example
40
- * ```typescript
41
- * const identifierGroupList = await identifiers.listIdentifierGroups();
42
- * ```
43
- * @async
44
- * @return List<IdentifierGroup>
45
- *
46
- */
47
8
  listIdentifierGroups(): Promise<List<IdentifierGroup>>;
48
- /**
49
- * Get identifier by identifier id
50
- *
51
- * @example
52
- * ```typescript
53
- * const identifier = await identifiers.getIdentifier('identifier-id');
54
- * ```
55
- * @param id identifier id
56
- * @async
57
- * @return SingleIdentifier
58
- */
59
9
  getIdentifier(id: Identifier['id']): Promise<SingleIdentifier>;
60
- /**
61
- * Get identifier group
62
- *
63
- * @example
64
- * ```typescript
65
- * const identifierGroup = await identifiers.getIdentifierGroup('identifier-group-id');
66
- * ```
67
- * @param id identifier id
68
- * @async
69
- * @return IdentifierGroup
70
- */
71
10
  getIdentifierGroup(id: Identifier['id']): Promise<IdentifierGroup>;
72
- /**
73
- * List obtainable identifiers
74
- *
75
- * @example
76
- * ```typescript
77
- * const obtainableIdentifiers = await identifiers.listObtainableIdentifiers({
78
- * country: 'US',
79
- * type: 'local',
80
- * limit: 30,
81
- * pattern: 'pattern',
82
- * patternType: 'starts',
83
- * capabilities: ['voice','sms','mms'],
84
- * });
85
- * ```
86
- * @param params obtainable identifiers request params {@link ObtainableIdentifierRequestParams}
87
- * @async
88
- * @return List<ObtainableIdentifier>
89
- */
90
11
  listObtainableIdentifiers(params?: ObtainableIdentifierRequestParams): Promise<List<ObtainableIdentifier>>;
91
- /**
92
- * Remove identifiers
93
- * @example
94
- * ```typescript
95
- * await identifiers.releaseIdentifier('identifier-id');
96
- * ```
97
- * @param id identifier id to remove
98
- * @async
99
- */
100
12
  releaseIdentifier(id: Identifier['id']): Promise<void>;
101
- /**
102
- * Buy identifiers
103
- * ```typescript
104
- * const identifiers = await identifiers.buyIdentifier([ { provider: 'providerName', phoneNumber: 'phoneNumber' } ]);
105
- * ```
106
- */
107
13
  buyIdentifier(identifiers: ObtainableIdentifier | ObtainableIdentifier[]): Promise<BuyIdentifierResponse>;
108
- /**
109
- * Create internal OneReach provider
110
- *
111
- * @example
112
- * ```typescript
113
- * await identifiers.createProvider('providerName', { settingKey: 'settingValue' });
114
- * ```
115
- * @async
116
- * @param provider unique providers name to create
117
- * @param settings provider settings {@link IdentifierProviderSettings }
118
- */
119
14
  createProvider(provider: IdentifierProvider['name'], settings?: IdentifierProvider['settings']): Promise<void>;
120
- /**
121
- * List providers
122
- * @example
123
- * ```typescript
124
- * const providers = await identifiers.listProviders();
125
- * ```
126
- * @async
127
- * @return IdentifierProvider[]
128
- */
129
15
  listProviders(): Promise<IdentifierProvider[]>;
130
- /**
131
- * Delete provider
132
- * ```typescript
133
- * await identifiers.deleteProvider('providerName');
134
- * ```
135
- * @async
136
- * @param provider provider name to delete
137
- */
138
16
  deleteProvider(provider: IdentifierProvider['name']): Promise<void>;
139
- /**
140
- * Load list of identifier gateway triggers by identifier list.
141
- * Excludes grouped identifiers(triggered by groups)
142
- * ```typescript
143
- * const identifierList = await identifiers.listIdentifiers();
144
- * const identifierTriggers = await identifiers.listIdentifiersTriggers(identifierList);
145
- * ```
146
- * @async
147
- * @param identifiers identifier list to check {@link List<SingleIdentifier>}
148
- * @return List<IdentifierTrigger>
149
- */
150
17
  listIdentifiersTriggers(identifiers: List<SingleIdentifier>): Promise<List<IdentifierTrigger>>;
151
18
  private _fetchIdentifiers;
152
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"identifiers.d.ts","sourceRoot":"","sources":["../../src/identifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,MAAM,cAAc,CAAC;AAI9C,OAAO,EACL,qBAAqB,EACrB,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EAEjB,oBAAoB,EACpB,iCAAiC,EACjC,gBAAgB,EAGjB,MAAM,SAAS,CAAC;AAQjB;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,CAAC;IAuBH,aAAa,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAoB9C,cAAc,CAAC,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBnE,uBAAuB,CAAC,WAAW,EAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAiB7F,iBAAiB;CAchC"}
@@ -1,22 +1,8 @@
1
1
  import { Token } from '@or-sdk/base';
2
2
  export type IdentifiersConfig = {
3
- /**
4
- * Auth token
5
- * @type Token
6
- */
7
3
  token: Token;
8
- /**
9
- * OneReach SDK API URL<br/>
10
- * @example "https://sdkapi.qa.api.onereach.ai"
11
- */
12
4
  sdkUrl?: string;
13
- /**
14
- * Url of OneReach service discovery api
15
- */
16
5
  discoveryUrl?: string;
17
- /**
18
- * Account ID for cross-account requests (super admin only)
19
- */
20
6
  accountId?: string;
21
7
  };
22
8
  export type Type = 'local' | 'tollfree' | 'mobile';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC;AAEjD,MAAM,MAAM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,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,0BAA0B,CAAC;CACtC,CAAC"}
@@ -1,6 +1,3 @@
1
- /**
2
- * @internal
3
- */
4
1
  export { default as extractIdentifierProvidersResponse } from './extractIdentifierProvidersResponse';
5
2
  export { default as getGroupIdentifiers } from './getGroupIdentifiers';
6
3
  export { default as getSingleIdentifiers } from './getSingleIdentifiers';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
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.4290.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.4290.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
+ });