@wscsports/blaze-web-sdk 0.1.70 → 0.1.72
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 +1 -1
- package/publish/index.d.ts +14 -1
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function setDoNotTrack(value: boolean): void;
|
|
2
|
+
export declare function setGeoLocation(value: string): void;
|
|
2
3
|
export declare function setExternalUserId(value: string): void;
|
|
3
4
|
export declare function Initialize(apiKey: string, options?: Omit<IBlazeSDKOptions, "apiKey">): Promise<void>;
|
|
4
5
|
export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
@@ -14,6 +15,7 @@ declare const _default: {
|
|
|
14
15
|
Theme: typeof Theme;
|
|
15
16
|
addDelegateListener: typeof addDelegateListener;
|
|
16
17
|
setDoNotTrack: typeof setDoNotTrack;
|
|
18
|
+
setGeoLocation: typeof setGeoLocation;
|
|
17
19
|
LabelBuilder: typeof LabelBuilder;
|
|
18
20
|
Delegations: typeof Delegation;
|
|
19
21
|
};
|
|
@@ -267,6 +269,9 @@ type ExposedFields = {
|
|
|
267
269
|
export declare const exposedFieldsByAction: ExposedFields;
|
|
268
270
|
|
|
269
271
|
export * from './analytics.constants';
|
|
272
|
+
export * from './iso-country-codes.constants';
|
|
273
|
+
|
|
274
|
+
export declare const CountryCodes: readonly ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"];
|
|
270
275
|
|
|
271
276
|
export declare class Database implements IDatabase {
|
|
272
277
|
private readonly options;
|
|
@@ -339,6 +344,7 @@ export interface IPage {
|
|
|
339
344
|
cta: ICTA;
|
|
340
345
|
hasViewed: boolean;
|
|
341
346
|
ignoreReadStatusForStory: boolean;
|
|
347
|
+
createTime: string;
|
|
342
348
|
}
|
|
343
349
|
|
|
344
350
|
export interface IRendition {
|
|
@@ -488,6 +494,7 @@ export interface IBlazeSDKOptions {
|
|
|
488
494
|
previewMomentUrl?: string;
|
|
489
495
|
doNotTrack?: boolean;
|
|
490
496
|
externalUserId?: string;
|
|
497
|
+
geoLocation?: string;
|
|
491
498
|
}
|
|
492
499
|
|
|
493
500
|
export interface IDatabase {
|
|
@@ -786,6 +793,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
786
793
|
private _sendAnaltyics;
|
|
787
794
|
private _doNotTrack;
|
|
788
795
|
private _externalUserId;
|
|
796
|
+
private _geoLocation;
|
|
789
797
|
protected constructor();
|
|
790
798
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
791
799
|
private _urls;
|
|
@@ -799,6 +807,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
799
807
|
set externalUserId(value: string);
|
|
800
808
|
get doNotTrack(): boolean;
|
|
801
809
|
set doNotTrack(value: boolean);
|
|
810
|
+
get geoLocation(): string;
|
|
811
|
+
set geoLocation(value: string);
|
|
802
812
|
get apiUrl(): string;
|
|
803
813
|
get apiKey(): string;
|
|
804
814
|
get previewUrl(): string;
|
|
@@ -1480,6 +1490,9 @@ export declare function getChipSize(options: ChipSizeOptions): DOMRect;
|
|
|
1480
1490
|
|
|
1481
1491
|
export declare function delay(ms: number): Promise<void>;
|
|
1482
1492
|
|
|
1493
|
+
type CountryCode = typeof CountryCodes[number];
|
|
1494
|
+
export declare function isValidCountryCode(countryCode: string): countryCode is CountryCode;
|
|
1495
|
+
|
|
1483
1496
|
export declare function GuardNullOrEmpty(name: string, value: any): void;
|
|
1484
1497
|
|
|
1485
1498
|
export declare function formatDuration(startDate: Date): string;
|
|
@@ -1504,6 +1517,7 @@ export declare function flattenObject<T extends Record<string, any>>(obj: T): Re
|
|
|
1504
1517
|
|
|
1505
1518
|
export * from './chip.utils';
|
|
1506
1519
|
export * from './common.utils';
|
|
1520
|
+
export * from './country-location.utils';
|
|
1507
1521
|
export * from './guard.utils';
|
|
1508
1522
|
export * from './helper';
|
|
1509
1523
|
export * from './regex.utils';
|
|
@@ -1607,7 +1621,6 @@ export declare class BlazeWidgetLabel {
|
|
|
1607
1621
|
toString(): string;
|
|
1608
1622
|
private static createLabel;
|
|
1609
1623
|
private static validateAndProceed;
|
|
1610
|
-
private static validateNoCommas;
|
|
1611
1624
|
private static isValidLabelFormat;
|
|
1612
1625
|
}
|
|
1613
1626
|
|