Skip to content

Commit 82e49c2

Browse files
committed
fix(interface): expose 'Endpoint' from PubNub class
1 parent 856ff28 commit 82e49c2

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

dist/web/pubnub.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14719,6 +14719,11 @@
1471914719
* API call status category.
1472014720
*/
1472114721
PubNubCore.CATEGORIES = StatusCategory$1;
14722+
/**
14723+
* Enum with API endpoint groups which can be used with retry policy to set up exclusions (which shouldn't be
14724+
* retried).
14725+
*/
14726+
PubNubCore.Endpoint = Endpoint;
1472214727
/**
1472314728
* Exponential retry policy constructor.
1472414729
*/

dist/web/pubnub.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/pubnub-common.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,11 @@ PubNubCore.OPERATIONS = operations_1.default;
22162216
* API call status category.
22172217
*/
22182218
PubNubCore.CATEGORIES = categories_1.default;
2219+
/**
2220+
* Enum with API endpoint groups which can be used with retry policy to set up exclusions (which shouldn't be
2221+
* retried).
2222+
*/
2223+
PubNubCore.Endpoint = retryPolicy_1.Endpoint;
22192224
/**
22202225
* Exponential retry policy constructor.
22212226
*/

lib/types/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ declare class PubNubCore<
5353
* API call status category.
5454
*/
5555
static CATEGORIES: typeof PubNub.StatusCategory;
56+
/**
57+
* Enum with API endpoint groups which can be used with retry policy to set up exclusions (which shouldn't be
58+
* retried).
59+
*/
60+
static Endpoint: typeof PubNub.Endpoint;
5661
/**
5762
* Exponential retry policy constructor.
5863
*/

src/core/pubnub-common.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import StatusCategory from './constants/categories';
3232

3333
import { createValidationError, PubNubError } from '../errors/pubnub-error';
3434
import { PubNubAPIError } from '../errors/pubnub-api-error';
35-
import { RetryPolicy } from './components/retryPolicy';
35+
import { RetryPolicy, Endpoint } from './components/retryPolicy';
3636

3737
// region Event Engine
3838
import { PresenceEventEngine } from '../event-engine/presence/presence';
@@ -295,6 +295,12 @@ export class PubNubCore<
295295
*/
296296
static CATEGORIES = StatusCategory;
297297

298+
/**
299+
* Enum with API endpoint groups which can be used with retry policy to set up exclusions (which shouldn't be
300+
* retried).
301+
*/
302+
static Endpoint = Endpoint;
303+
298304
/**
299305
* Exponential retry policy constructor.
300306
*/

0 commit comments

Comments
 (0)