@or-sdk/discovery 1.11.2-beta.4097.0 → 1.11.2
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/CHANGELOG.md +8 -0
- package/dist/types/Discovery.d.ts +0 -74
- package/dist/types/Discovery.d.ts.map +1 -1
- package/dist/types/types.d.ts +0 -6
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +0 -3
- package/dist/types/utils/index.d.ts.map +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.11.2](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/discovery@1.11.1...@or-sdk/discovery@1.11.2) (2026-04-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @or-sdk/discovery
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.11.1](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/discovery@1.11.0...@or-sdk/discovery@1.11.1) (2026-02-25)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @or-sdk/discovery
|
|
@@ -3,92 +3,18 @@ import { DiscoveryConfig, ListServicesPayload, ListServicesByCategoryPayload, Se
|
|
|
3
3
|
export declare class Discovery extends Base {
|
|
4
4
|
private readonly route;
|
|
5
5
|
constructor({ token, discoveryUrl }: DiscoveryConfig);
|
|
6
|
-
/**
|
|
7
|
-
* Get services list
|
|
8
|
-
* ```typescript
|
|
9
|
-
* const result = await discovery.listServices({ type: 'type', feature: 'feature' });
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
6
|
listServices({ type, feature, invalidate }?: ListServicesPayload): Promise<List<ServiceResponse>>;
|
|
13
|
-
/**
|
|
14
|
-
* Get services list by category
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const result = await discovery.listServices({ type: 'type', feature: 'feature' });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
7
|
listServicesByCategory({ category, feature }: ListServicesByCategoryPayload): Promise<List<ServiceResponse>>;
|
|
20
|
-
/**
|
|
21
|
-
* Get service url
|
|
22
|
-
* ```typescript
|
|
23
|
-
* const result = await discovery.getServiceUrl('serviceName');
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
8
|
getServiceUrl(serviceKey: string): Promise<string>;
|
|
27
|
-
/**
|
|
28
|
-
* Delete service
|
|
29
|
-
* ```typescript
|
|
30
|
-
* await discovery.deleteService('serviceKey');
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
9
|
deleteService(serviceKey: string): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Creates or updates service
|
|
36
|
-
* ```typescript
|
|
37
|
-
* await discovery.createOrUpdateService({
|
|
38
|
-
* serviceKey: "some-service",
|
|
39
|
-
* version: "1.0.0",
|
|
40
|
-
* type: "ui",
|
|
41
|
-
* url: "https://api.example.com/users",
|
|
42
|
-
* translations: {
|
|
43
|
-
* en: { label: "Some Service" },
|
|
44
|
-
* },
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
10
|
createOrUpdateService(service: ServiceCreateOrUpdatePayload): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Hide service
|
|
51
|
-
* ```typescript
|
|
52
|
-
* await discovery.hideService('serviceKey');
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
11
|
hideService(serviceKey: string): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* Unhide service
|
|
58
|
-
* ```typescript
|
|
59
|
-
* await discovery.unhideService('serviceKey');
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
12
|
revealService(serviceKey: string): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Get multiple service urls
|
|
65
|
-
* ```typescript
|
|
66
|
-
* const result = await discovery.getServiceUrls(['serviceName']);
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
13
|
getServiceUrls(serviceKeys: string[], feature?: string): Promise<(ServiceResponse | null)[]>;
|
|
70
|
-
/**
|
|
71
|
-
* Get environment
|
|
72
|
-
* ```typescript
|
|
73
|
-
* const result = await discovery.getEnv();
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
14
|
getEnv(): Promise<{
|
|
77
15
|
env: string;
|
|
78
16
|
}>;
|
|
79
|
-
/**
|
|
80
|
-
* Get providersAccountId
|
|
81
|
-
* ```typescript
|
|
82
|
-
* const providersAccountId = await discovery.getProvidersAccountId();
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
17
|
getProvidersAccountId(): Promise<string>;
|
|
86
|
-
/**
|
|
87
|
-
* Get currentAccountId
|
|
88
|
-
* ```typescript
|
|
89
|
-
* const currentAccountId = await discovery.getCurrentAccountId();
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
18
|
getCurrentAccountId(): Promise<string>;
|
|
93
19
|
}
|
|
94
20
|
//# sourceMappingURL=Discovery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Discovery.d.ts","sourceRoot":"","sources":["../../src/Discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAA+C,MAAM,cAAc,CAAC;AAEvF,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,6BAA6B,EAC7B,eAAe,EACf,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AAEjB,qBAAa,SAAU,SAAQ,IAAI;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoB;gBAE9B,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"Discovery.d.ts","sourceRoot":"","sources":["../../src/Discovery.ts"],"names":[],"mappings":"AAAA,OAAO,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
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,MAAM,eAAe,GAAG;
|
|
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,eAAe,GAAG;IAI5B,KAAK,CAAC,EAAE,KAAK,CAAC;IAKd,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAC;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,OAAO,GAAG;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAGF,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/discovery",
|
|
3
|
-
"version": "1.11.2
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dev": "pnpm build:watch:esm"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@or-sdk/base": "^0.44.1
|
|
21
|
+
"@or-sdk/base": "^0.44.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"concurrently": "9.0.1",
|
|
@@ -26,5 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"gitHead": "86de10f6cf0ed69410c43aacc6ea678d3d5fa717"
|
|
30
31
|
}
|