@microsoft/webiq 0.1.6 → 0.1.8
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 +1 -35
- package/dist/index.d.mts +209 -2964
- package/dist/index.d.ts +209 -2964
- package/dist/index.js +8 -169
- package/dist/index.mjs +8 -161
- package/package.json +7 -5
package/dist/index.js
CHANGED
|
@@ -307,62 +307,6 @@ var BrowseResource = class {
|
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
|
|
310
|
-
// src/resources/classic.ts
|
|
311
|
-
var ClassicResource = class {
|
|
312
|
-
constructor(transport) {
|
|
313
|
-
this.transport = transport;
|
|
314
|
-
}
|
|
315
|
-
transport;
|
|
316
|
-
/**
|
|
317
|
-
* Perform a classic search returning grouped results across multiple answer types.
|
|
318
|
-
*
|
|
319
|
-
* @param query - Search query string (1-1000 chars)
|
|
320
|
-
* @param options - Search options
|
|
321
|
-
* @returns SearchClassicResponse with querySignals, traceId, and additional answer types
|
|
322
|
-
*/
|
|
323
|
-
async search(query, options) {
|
|
324
|
-
const payload = { query };
|
|
325
|
-
if (options?.language !== void 0) {
|
|
326
|
-
payload.language = options.language;
|
|
327
|
-
}
|
|
328
|
-
if (options?.region !== void 0) {
|
|
329
|
-
payload.region = options.region;
|
|
330
|
-
}
|
|
331
|
-
if (options?.maxAnswerTypes !== void 0) {
|
|
332
|
-
payload.maxAnswerTypes = options.maxAnswerTypes;
|
|
333
|
-
}
|
|
334
|
-
if (options?.location) {
|
|
335
|
-
payload.location = options.location;
|
|
336
|
-
}
|
|
337
|
-
if (options?.maxResultsWeb !== void 0) {
|
|
338
|
-
payload.maxResultsWeb = options.maxResultsWeb;
|
|
339
|
-
}
|
|
340
|
-
if (options?.maxLength !== void 0) {
|
|
341
|
-
payload.maxLength = options.maxLength;
|
|
342
|
-
}
|
|
343
|
-
if (options?.contentFormat !== void 0) {
|
|
344
|
-
payload.contentFormat = options.contentFormat;
|
|
345
|
-
}
|
|
346
|
-
if (options?.freshness !== void 0) {
|
|
347
|
-
payload.freshness = options.freshness;
|
|
348
|
-
}
|
|
349
|
-
if (options?.responseFilter !== void 0) {
|
|
350
|
-
payload.responseFilter = options.responseFilter;
|
|
351
|
-
}
|
|
352
|
-
if (options?.safeSearch !== void 0) {
|
|
353
|
-
payload.safeSearch = options.safeSearch;
|
|
354
|
-
}
|
|
355
|
-
const result = await this.transport.request({
|
|
356
|
-
method: "POST",
|
|
357
|
-
path: "/search/classic",
|
|
358
|
-
json: payload,
|
|
359
|
-
timeout: options?.timeout,
|
|
360
|
-
signal: options?.signal
|
|
361
|
-
});
|
|
362
|
-
return result;
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
|
|
366
310
|
// src/errors.ts
|
|
367
311
|
var WebIQError = class _WebIQError extends Error {
|
|
368
312
|
constructor(message, options) {
|
|
@@ -680,8 +624,6 @@ var WebIQClient = class {
|
|
|
680
624
|
images;
|
|
681
625
|
/** Browse resource */
|
|
682
626
|
browse;
|
|
683
|
-
/** Classic search resource */
|
|
684
|
-
classic;
|
|
685
627
|
_transport;
|
|
686
628
|
_auth;
|
|
687
629
|
constructor(options) {
|
|
@@ -708,7 +650,6 @@ var WebIQClient = class {
|
|
|
708
650
|
this.videos = new VideosResource(this._transport);
|
|
709
651
|
this.images = new ImagesResource(this._transport);
|
|
710
652
|
this.browse = new BrowseResource(this._transport);
|
|
711
|
-
this.classic = new ClassicResource(this._transport);
|
|
712
653
|
}
|
|
713
654
|
/**
|
|
714
655
|
* Close the client and release resources.
|
|
@@ -746,83 +687,6 @@ var ContentTier = /* @__PURE__ */ ((ContentTier2) => {
|
|
|
746
687
|
return ContentTier2;
|
|
747
688
|
})(ContentTier || {});
|
|
748
689
|
|
|
749
|
-
// src/generated-otc/models/CricketGameFormat.ts
|
|
750
|
-
var CricketGameFormat = /* @__PURE__ */ ((CricketGameFormat2) => {
|
|
751
|
-
CricketGameFormat2["UNKNOWN"] = "Unknown";
|
|
752
|
-
CricketGameFormat2["ODI"] = "Odi";
|
|
753
|
-
CricketGameFormat2["TEST"] = "Test";
|
|
754
|
-
CricketGameFormat2["T20"] = "T20";
|
|
755
|
-
return CricketGameFormat2;
|
|
756
|
-
})(CricketGameFormat || {});
|
|
757
|
-
|
|
758
|
-
// src/generated-otc/models/CricketInningType.ts
|
|
759
|
-
var CricketInningType = /* @__PURE__ */ ((CricketInningType2) => {
|
|
760
|
-
CricketInningType2["UNKNOWN"] = "Unknown";
|
|
761
|
-
CricketInningType2["TEST"] = "Test";
|
|
762
|
-
CricketInningType2["LIMITED_OVERS"] = "LimitedOvers";
|
|
763
|
-
CricketInningType2["SUPER_OVER"] = "SuperOver";
|
|
764
|
-
return CricketInningType2;
|
|
765
|
-
})(CricketInningType || {});
|
|
766
|
-
|
|
767
|
-
// src/generated-otc/models/FinanceChartType_V1.ts
|
|
768
|
-
var FinanceChartType_V1 = /* @__PURE__ */ ((FinanceChartType_V12) => {
|
|
769
|
-
FinanceChartType_V12[FinanceChartType_V12["_0"] = 0] = "_0";
|
|
770
|
-
FinanceChartType_V12[FinanceChartType_V12["_5"] = 5] = "_5";
|
|
771
|
-
FinanceChartType_V12[FinanceChartType_V12["_10"] = 10] = "_10";
|
|
772
|
-
FinanceChartType_V12[FinanceChartType_V12["_20"] = 20] = "_20";
|
|
773
|
-
FinanceChartType_V12[FinanceChartType_V12["_30"] = 30] = "_30";
|
|
774
|
-
FinanceChartType_V12[FinanceChartType_V12["_40"] = 40] = "_40";
|
|
775
|
-
return FinanceChartType_V12;
|
|
776
|
-
})(FinanceChartType_V1 || {});
|
|
777
|
-
|
|
778
|
-
// src/generated-otc/models/GameOutcome.ts
|
|
779
|
-
var GameOutcome = /* @__PURE__ */ ((GameOutcome2) => {
|
|
780
|
-
GameOutcome2["UNKNOWN"] = "Unknown";
|
|
781
|
-
GameOutcome2["NO_GAME"] = "NoGame";
|
|
782
|
-
GameOutcome2["WON"] = "Won";
|
|
783
|
-
GameOutcome2["LOST"] = "Lost";
|
|
784
|
-
GameOutcome2["TIED"] = "Tied";
|
|
785
|
-
return GameOutcome2;
|
|
786
|
-
})(GameOutcome || {});
|
|
787
|
-
|
|
788
|
-
// src/generated-otc/models/GameStatus.ts
|
|
789
|
-
var GameStatus = /* @__PURE__ */ ((GameStatus2) => {
|
|
790
|
-
GameStatus2["UNKNOWN"] = "Unknown";
|
|
791
|
-
GameStatus2["PRE_GAME"] = "PreGame";
|
|
792
|
-
GameStatus2["IN_PROGRESS"] = "InProgress";
|
|
793
|
-
GameStatus2["FINAL"] = "Final";
|
|
794
|
-
GameStatus2["POSTPONED"] = "Postponed";
|
|
795
|
-
GameStatus2["DELAYED"] = "Delayed";
|
|
796
|
-
GameStatus2["ABANDONED"] = "Abandoned";
|
|
797
|
-
GameStatus2["CANCELLED"] = "Cancelled";
|
|
798
|
-
GameStatus2["DRINKS"] = "Drinks";
|
|
799
|
-
GameStatus2["DINNER"] = "Dinner";
|
|
800
|
-
GameStatus2["TEA"] = "Tea";
|
|
801
|
-
GameStatus2["LUNCH"] = "Lunch";
|
|
802
|
-
GameStatus2["INNINGS_BREAK"] = "InningsBreak";
|
|
803
|
-
GameStatus2["SUPER_OVER"] = "SuperOver";
|
|
804
|
-
GameStatus2["TOSS"] = "Toss";
|
|
805
|
-
GameStatus2["STUMPS"] = "Stumps";
|
|
806
|
-
GameStatus2["RETIRED"] = "Retired";
|
|
807
|
-
GameStatus2["BYE"] = "Bye";
|
|
808
|
-
GameStatus2["STRATEGIC_TIMEOUT"] = "StrategicTimeout";
|
|
809
|
-
GameStatus2["FORFEITED"] = "Forfeited";
|
|
810
|
-
GameStatus2["UNSCHEDULED"] = "Unscheduled";
|
|
811
|
-
GameStatus2["SUSPENDED"] = "Suspended";
|
|
812
|
-
GameStatus2["QUALIFYING_ONGOING"] = "QualifyingOngoing";
|
|
813
|
-
GameStatus2["QUALIFYING_COMPLETED"] = "QualifyingCompleted";
|
|
814
|
-
return GameStatus2;
|
|
815
|
-
})(GameStatus || {});
|
|
816
|
-
|
|
817
|
-
// src/generated-otc/models/HomeAwayStatusType.ts
|
|
818
|
-
var HomeAwayStatusType = /* @__PURE__ */ ((HomeAwayStatusType2) => {
|
|
819
|
-
HomeAwayStatusType2["UNKNOWN"] = "Unknown";
|
|
820
|
-
HomeAwayStatusType2["HOME"] = "Home";
|
|
821
|
-
HomeAwayStatusType2["AWAY"] = "Away";
|
|
822
|
-
HomeAwayStatusType2["NEUTRAL"] = "Neutral";
|
|
823
|
-
return HomeAwayStatusType2;
|
|
824
|
-
})(HomeAwayStatusType || {});
|
|
825
|
-
|
|
826
690
|
// src/generated-otc/models/ImageAspectRatio.ts
|
|
827
691
|
var ImageAspectRatio = /* @__PURE__ */ ((ImageAspectRatio2) => {
|
|
828
692
|
ImageAspectRatio2["SQUARE"] = "square";
|
|
@@ -862,30 +726,13 @@ var SafeSearch = /* @__PURE__ */ ((SafeSearch2) => {
|
|
|
862
726
|
return SafeSearch2;
|
|
863
727
|
})(SafeSearch || {});
|
|
864
728
|
|
|
865
|
-
// src/generated-otc/models/
|
|
866
|
-
var
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
TennisMatchType2["MIXED_DOUBLES"] = "MixedDoubles";
|
|
873
|
-
return TennisMatchType2;
|
|
874
|
-
})(TennisMatchType || {});
|
|
875
|
-
|
|
876
|
-
// src/generated-otc/models/TennisRound.ts
|
|
877
|
-
var TennisRound = /* @__PURE__ */ ((TennisRound2) => {
|
|
878
|
-
TennisRound2["UNKNOWN"] = "Unknown";
|
|
879
|
-
TennisRound2["FINAL"] = "Final";
|
|
880
|
-
TennisRound2["QUARTERFINAL"] = "Quarterfinal";
|
|
881
|
-
TennisRound2["ROUND_OF128"] = "RoundOf128";
|
|
882
|
-
TennisRound2["ROUND_OF16"] = "RoundOf16";
|
|
883
|
-
TennisRound2["ROUND_OF256"] = "RoundOf256";
|
|
884
|
-
TennisRound2["ROUND_OF32"] = "RoundOf32";
|
|
885
|
-
TennisRound2["ROUND_OF64"] = "RoundOf64";
|
|
886
|
-
TennisRound2["SEMIFINAL"] = "Semifinal";
|
|
887
|
-
return TennisRound2;
|
|
888
|
-
})(TennisRound || {});
|
|
729
|
+
// src/generated-otc/models/SourceQuality.ts
|
|
730
|
+
var SourceQuality = /* @__PURE__ */ ((SourceQuality2) => {
|
|
731
|
+
SourceQuality2["INSUFFICIENT"] = "insufficient";
|
|
732
|
+
SourceQuality2["ADEQUATE"] = "adequate";
|
|
733
|
+
SourceQuality2["PREFERRED"] = "preferred";
|
|
734
|
+
return SourceQuality2;
|
|
735
|
+
})(SourceQuality || {});
|
|
889
736
|
|
|
890
737
|
// src/generated-otc/models/VideoDuration.ts
|
|
891
738
|
var VideoDuration = /* @__PURE__ */ ((VideoDuration2) => {
|
|
@@ -910,18 +757,11 @@ exports.ApiKeyAuth = ApiKeyAuth;
|
|
|
910
757
|
exports.AuthenticationError = AuthenticationError;
|
|
911
758
|
exports.BrowseContentFormat = BrowseContentFormat;
|
|
912
759
|
exports.BrowseResource = BrowseResource;
|
|
913
|
-
exports.ClassicResource = ClassicResource;
|
|
914
760
|
exports.ContentFormat = ContentFormat;
|
|
915
761
|
exports.ContentTier = ContentTier;
|
|
916
|
-
exports.CricketGameFormat = CricketGameFormat;
|
|
917
|
-
exports.CricketInningType = CricketInningType;
|
|
918
762
|
exports.DEFAULT_SCOPE = DEFAULT_SCOPE;
|
|
919
763
|
exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
|
|
920
764
|
exports.EntraIDAuth = EntraIDAuth;
|
|
921
|
-
exports.FinanceChartType_V1 = FinanceChartType_V1;
|
|
922
|
-
exports.GameOutcome = GameOutcome;
|
|
923
|
-
exports.GameStatus = GameStatus;
|
|
924
|
-
exports.HomeAwayStatusType = HomeAwayStatusType;
|
|
925
765
|
exports.HttpTransport = HttpTransport;
|
|
926
766
|
exports.ImageAspectRatio = ImageAspectRatio;
|
|
927
767
|
exports.ImageColor = ImageColor;
|
|
@@ -933,8 +773,7 @@ exports.PermissionDeniedError = PermissionDeniedError;
|
|
|
933
773
|
exports.RateLimitError = RateLimitError;
|
|
934
774
|
exports.RetryPolicy = RetryPolicy;
|
|
935
775
|
exports.SafeSearch = SafeSearch;
|
|
936
|
-
exports.
|
|
937
|
-
exports.TennisRound = TennisRound;
|
|
776
|
+
exports.SourceQuality = SourceQuality;
|
|
938
777
|
exports.VideoDuration = VideoDuration;
|
|
939
778
|
exports.VideoResolution = VideoResolution;
|
|
940
779
|
exports.VideosResource = VideosResource;
|
package/dist/index.mjs
CHANGED
|
@@ -305,62 +305,6 @@ var BrowseResource = class {
|
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
|
|
308
|
-
// src/resources/classic.ts
|
|
309
|
-
var ClassicResource = class {
|
|
310
|
-
constructor(transport) {
|
|
311
|
-
this.transport = transport;
|
|
312
|
-
}
|
|
313
|
-
transport;
|
|
314
|
-
/**
|
|
315
|
-
* Perform a classic search returning grouped results across multiple answer types.
|
|
316
|
-
*
|
|
317
|
-
* @param query - Search query string (1-1000 chars)
|
|
318
|
-
* @param options - Search options
|
|
319
|
-
* @returns SearchClassicResponse with querySignals, traceId, and additional answer types
|
|
320
|
-
*/
|
|
321
|
-
async search(query, options) {
|
|
322
|
-
const payload = { query };
|
|
323
|
-
if (options?.language !== void 0) {
|
|
324
|
-
payload.language = options.language;
|
|
325
|
-
}
|
|
326
|
-
if (options?.region !== void 0) {
|
|
327
|
-
payload.region = options.region;
|
|
328
|
-
}
|
|
329
|
-
if (options?.maxAnswerTypes !== void 0) {
|
|
330
|
-
payload.maxAnswerTypes = options.maxAnswerTypes;
|
|
331
|
-
}
|
|
332
|
-
if (options?.location) {
|
|
333
|
-
payload.location = options.location;
|
|
334
|
-
}
|
|
335
|
-
if (options?.maxResultsWeb !== void 0) {
|
|
336
|
-
payload.maxResultsWeb = options.maxResultsWeb;
|
|
337
|
-
}
|
|
338
|
-
if (options?.maxLength !== void 0) {
|
|
339
|
-
payload.maxLength = options.maxLength;
|
|
340
|
-
}
|
|
341
|
-
if (options?.contentFormat !== void 0) {
|
|
342
|
-
payload.contentFormat = options.contentFormat;
|
|
343
|
-
}
|
|
344
|
-
if (options?.freshness !== void 0) {
|
|
345
|
-
payload.freshness = options.freshness;
|
|
346
|
-
}
|
|
347
|
-
if (options?.responseFilter !== void 0) {
|
|
348
|
-
payload.responseFilter = options.responseFilter;
|
|
349
|
-
}
|
|
350
|
-
if (options?.safeSearch !== void 0) {
|
|
351
|
-
payload.safeSearch = options.safeSearch;
|
|
352
|
-
}
|
|
353
|
-
const result = await this.transport.request({
|
|
354
|
-
method: "POST",
|
|
355
|
-
path: "/search/classic",
|
|
356
|
-
json: payload,
|
|
357
|
-
timeout: options?.timeout,
|
|
358
|
-
signal: options?.signal
|
|
359
|
-
});
|
|
360
|
-
return result;
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
|
-
|
|
364
308
|
// src/errors.ts
|
|
365
309
|
var WebIQError = class _WebIQError extends Error {
|
|
366
310
|
constructor(message, options) {
|
|
@@ -678,8 +622,6 @@ var WebIQClient = class {
|
|
|
678
622
|
images;
|
|
679
623
|
/** Browse resource */
|
|
680
624
|
browse;
|
|
681
|
-
/** Classic search resource */
|
|
682
|
-
classic;
|
|
683
625
|
_transport;
|
|
684
626
|
_auth;
|
|
685
627
|
constructor(options) {
|
|
@@ -706,7 +648,6 @@ var WebIQClient = class {
|
|
|
706
648
|
this.videos = new VideosResource(this._transport);
|
|
707
649
|
this.images = new ImagesResource(this._transport);
|
|
708
650
|
this.browse = new BrowseResource(this._transport);
|
|
709
|
-
this.classic = new ClassicResource(this._transport);
|
|
710
651
|
}
|
|
711
652
|
/**
|
|
712
653
|
* Close the client and release resources.
|
|
@@ -744,83 +685,6 @@ var ContentTier = /* @__PURE__ */ ((ContentTier2) => {
|
|
|
744
685
|
return ContentTier2;
|
|
745
686
|
})(ContentTier || {});
|
|
746
687
|
|
|
747
|
-
// src/generated-otc/models/CricketGameFormat.ts
|
|
748
|
-
var CricketGameFormat = /* @__PURE__ */ ((CricketGameFormat2) => {
|
|
749
|
-
CricketGameFormat2["UNKNOWN"] = "Unknown";
|
|
750
|
-
CricketGameFormat2["ODI"] = "Odi";
|
|
751
|
-
CricketGameFormat2["TEST"] = "Test";
|
|
752
|
-
CricketGameFormat2["T20"] = "T20";
|
|
753
|
-
return CricketGameFormat2;
|
|
754
|
-
})(CricketGameFormat || {});
|
|
755
|
-
|
|
756
|
-
// src/generated-otc/models/CricketInningType.ts
|
|
757
|
-
var CricketInningType = /* @__PURE__ */ ((CricketInningType2) => {
|
|
758
|
-
CricketInningType2["UNKNOWN"] = "Unknown";
|
|
759
|
-
CricketInningType2["TEST"] = "Test";
|
|
760
|
-
CricketInningType2["LIMITED_OVERS"] = "LimitedOvers";
|
|
761
|
-
CricketInningType2["SUPER_OVER"] = "SuperOver";
|
|
762
|
-
return CricketInningType2;
|
|
763
|
-
})(CricketInningType || {});
|
|
764
|
-
|
|
765
|
-
// src/generated-otc/models/FinanceChartType_V1.ts
|
|
766
|
-
var FinanceChartType_V1 = /* @__PURE__ */ ((FinanceChartType_V12) => {
|
|
767
|
-
FinanceChartType_V12[FinanceChartType_V12["_0"] = 0] = "_0";
|
|
768
|
-
FinanceChartType_V12[FinanceChartType_V12["_5"] = 5] = "_5";
|
|
769
|
-
FinanceChartType_V12[FinanceChartType_V12["_10"] = 10] = "_10";
|
|
770
|
-
FinanceChartType_V12[FinanceChartType_V12["_20"] = 20] = "_20";
|
|
771
|
-
FinanceChartType_V12[FinanceChartType_V12["_30"] = 30] = "_30";
|
|
772
|
-
FinanceChartType_V12[FinanceChartType_V12["_40"] = 40] = "_40";
|
|
773
|
-
return FinanceChartType_V12;
|
|
774
|
-
})(FinanceChartType_V1 || {});
|
|
775
|
-
|
|
776
|
-
// src/generated-otc/models/GameOutcome.ts
|
|
777
|
-
var GameOutcome = /* @__PURE__ */ ((GameOutcome2) => {
|
|
778
|
-
GameOutcome2["UNKNOWN"] = "Unknown";
|
|
779
|
-
GameOutcome2["NO_GAME"] = "NoGame";
|
|
780
|
-
GameOutcome2["WON"] = "Won";
|
|
781
|
-
GameOutcome2["LOST"] = "Lost";
|
|
782
|
-
GameOutcome2["TIED"] = "Tied";
|
|
783
|
-
return GameOutcome2;
|
|
784
|
-
})(GameOutcome || {});
|
|
785
|
-
|
|
786
|
-
// src/generated-otc/models/GameStatus.ts
|
|
787
|
-
var GameStatus = /* @__PURE__ */ ((GameStatus2) => {
|
|
788
|
-
GameStatus2["UNKNOWN"] = "Unknown";
|
|
789
|
-
GameStatus2["PRE_GAME"] = "PreGame";
|
|
790
|
-
GameStatus2["IN_PROGRESS"] = "InProgress";
|
|
791
|
-
GameStatus2["FINAL"] = "Final";
|
|
792
|
-
GameStatus2["POSTPONED"] = "Postponed";
|
|
793
|
-
GameStatus2["DELAYED"] = "Delayed";
|
|
794
|
-
GameStatus2["ABANDONED"] = "Abandoned";
|
|
795
|
-
GameStatus2["CANCELLED"] = "Cancelled";
|
|
796
|
-
GameStatus2["DRINKS"] = "Drinks";
|
|
797
|
-
GameStatus2["DINNER"] = "Dinner";
|
|
798
|
-
GameStatus2["TEA"] = "Tea";
|
|
799
|
-
GameStatus2["LUNCH"] = "Lunch";
|
|
800
|
-
GameStatus2["INNINGS_BREAK"] = "InningsBreak";
|
|
801
|
-
GameStatus2["SUPER_OVER"] = "SuperOver";
|
|
802
|
-
GameStatus2["TOSS"] = "Toss";
|
|
803
|
-
GameStatus2["STUMPS"] = "Stumps";
|
|
804
|
-
GameStatus2["RETIRED"] = "Retired";
|
|
805
|
-
GameStatus2["BYE"] = "Bye";
|
|
806
|
-
GameStatus2["STRATEGIC_TIMEOUT"] = "StrategicTimeout";
|
|
807
|
-
GameStatus2["FORFEITED"] = "Forfeited";
|
|
808
|
-
GameStatus2["UNSCHEDULED"] = "Unscheduled";
|
|
809
|
-
GameStatus2["SUSPENDED"] = "Suspended";
|
|
810
|
-
GameStatus2["QUALIFYING_ONGOING"] = "QualifyingOngoing";
|
|
811
|
-
GameStatus2["QUALIFYING_COMPLETED"] = "QualifyingCompleted";
|
|
812
|
-
return GameStatus2;
|
|
813
|
-
})(GameStatus || {});
|
|
814
|
-
|
|
815
|
-
// src/generated-otc/models/HomeAwayStatusType.ts
|
|
816
|
-
var HomeAwayStatusType = /* @__PURE__ */ ((HomeAwayStatusType2) => {
|
|
817
|
-
HomeAwayStatusType2["UNKNOWN"] = "Unknown";
|
|
818
|
-
HomeAwayStatusType2["HOME"] = "Home";
|
|
819
|
-
HomeAwayStatusType2["AWAY"] = "Away";
|
|
820
|
-
HomeAwayStatusType2["NEUTRAL"] = "Neutral";
|
|
821
|
-
return HomeAwayStatusType2;
|
|
822
|
-
})(HomeAwayStatusType || {});
|
|
823
|
-
|
|
824
688
|
// src/generated-otc/models/ImageAspectRatio.ts
|
|
825
689
|
var ImageAspectRatio = /* @__PURE__ */ ((ImageAspectRatio2) => {
|
|
826
690
|
ImageAspectRatio2["SQUARE"] = "square";
|
|
@@ -860,30 +724,13 @@ var SafeSearch = /* @__PURE__ */ ((SafeSearch2) => {
|
|
|
860
724
|
return SafeSearch2;
|
|
861
725
|
})(SafeSearch || {});
|
|
862
726
|
|
|
863
|
-
// src/generated-otc/models/
|
|
864
|
-
var
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
TennisMatchType2["MIXED_DOUBLES"] = "MixedDoubles";
|
|
871
|
-
return TennisMatchType2;
|
|
872
|
-
})(TennisMatchType || {});
|
|
873
|
-
|
|
874
|
-
// src/generated-otc/models/TennisRound.ts
|
|
875
|
-
var TennisRound = /* @__PURE__ */ ((TennisRound2) => {
|
|
876
|
-
TennisRound2["UNKNOWN"] = "Unknown";
|
|
877
|
-
TennisRound2["FINAL"] = "Final";
|
|
878
|
-
TennisRound2["QUARTERFINAL"] = "Quarterfinal";
|
|
879
|
-
TennisRound2["ROUND_OF128"] = "RoundOf128";
|
|
880
|
-
TennisRound2["ROUND_OF16"] = "RoundOf16";
|
|
881
|
-
TennisRound2["ROUND_OF256"] = "RoundOf256";
|
|
882
|
-
TennisRound2["ROUND_OF32"] = "RoundOf32";
|
|
883
|
-
TennisRound2["ROUND_OF64"] = "RoundOf64";
|
|
884
|
-
TennisRound2["SEMIFINAL"] = "Semifinal";
|
|
885
|
-
return TennisRound2;
|
|
886
|
-
})(TennisRound || {});
|
|
727
|
+
// src/generated-otc/models/SourceQuality.ts
|
|
728
|
+
var SourceQuality = /* @__PURE__ */ ((SourceQuality2) => {
|
|
729
|
+
SourceQuality2["INSUFFICIENT"] = "insufficient";
|
|
730
|
+
SourceQuality2["ADEQUATE"] = "adequate";
|
|
731
|
+
SourceQuality2["PREFERRED"] = "preferred";
|
|
732
|
+
return SourceQuality2;
|
|
733
|
+
})(SourceQuality || {});
|
|
887
734
|
|
|
888
735
|
// src/generated-otc/models/VideoDuration.ts
|
|
889
736
|
var VideoDuration = /* @__PURE__ */ ((VideoDuration2) => {
|
|
@@ -902,4 +749,4 @@ var VideoResolution = /* @__PURE__ */ ((VideoResolution2) => {
|
|
|
902
749
|
return VideoResolution2;
|
|
903
750
|
})(VideoResolution || {});
|
|
904
751
|
|
|
905
|
-
export { APIConnectionError, APIStatusError, ApiKeyAuth, AuthenticationError, BrowseContentFormat, BrowseResource,
|
|
752
|
+
export { APIConnectionError, APIStatusError, ApiKeyAuth, AuthenticationError, BrowseContentFormat, BrowseResource, ContentFormat, ContentTier, DEFAULT_SCOPE, DEFAULT_TIMEOUT, EntraIDAuth, HttpTransport, ImageAspectRatio, ImageColor, ImageSize, ImagesResource, LiveCrawlMode, NewsResource, PermissionDeniedError, RateLimitError, RetryPolicy, SafeSearch, SourceQuality, VideoDuration, VideoResolution, VideosResource, WebIQClient, WebIQError, WebResource, createAuth, createClient, createTelemetryEvent, safeCall };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/webiq",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Web IQ API TypeScript SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsup",
|
|
21
21
|
"dev": "tsup --watch",
|
|
22
|
-
"lint": "eslint src
|
|
23
|
-
"lint:fix": "eslint src --
|
|
22
|
+
"lint": "eslint src",
|
|
23
|
+
"lint:fix": "eslint src --fix",
|
|
24
24
|
"format": "prettier --write \"src/**/*.ts\" \"*.md\" \"*.json\" --ignore-path ../../.prettierignore",
|
|
25
25
|
"format:check": "prettier --check \"src/**/*.ts\" \"*.md\" \"*.json\" --ignore-path ../../.prettierignore",
|
|
26
26
|
"typecheck": "tsc --noEmit",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"author": "Microsoft <webiqsdk@microsoft.com>",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": "^22.13.0 || >=24",
|
|
40
40
|
"npm": ">=10"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
@@ -45,9 +45,10 @@
|
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@azure/identity": ">=4.13.1",
|
|
48
|
+
"@eslint/js": "^10.0.1",
|
|
48
49
|
"@types/js-yaml": "^4.0.9",
|
|
49
50
|
"@types/node": "^20.10.0",
|
|
50
|
-
"eslint": "^8.
|
|
51
|
+
"eslint": "^10.8.0",
|
|
51
52
|
"js-yaml": "^5.2.0",
|
|
52
53
|
"openapi-typescript-codegen": "^0.30.0",
|
|
53
54
|
"prettier": "^3.5.3",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"tsup": "^8.0.0",
|
|
56
57
|
"tsx": "^4.21.0",
|
|
57
58
|
"typescript": "^5.3.0",
|
|
59
|
+
"typescript-eslint": "^8.68.0",
|
|
58
60
|
"vitest": "^4.0.18"
|
|
59
61
|
},
|
|
60
62
|
"peerDependencies": {
|