@orlikfy/api-interfaces 6.1.7 → 6.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/dist/api.d.ts +75 -0
- package/dist/api.js +8 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1668,6 +1668,23 @@ export interface paths {
|
|
|
1668
1668
|
patch?: never;
|
|
1669
1669
|
trace?: never;
|
|
1670
1670
|
};
|
|
1671
|
+
"/auth/check-auth-method": {
|
|
1672
|
+
parameters: {
|
|
1673
|
+
query?: never;
|
|
1674
|
+
header?: never;
|
|
1675
|
+
path?: never;
|
|
1676
|
+
cookie?: never;
|
|
1677
|
+
};
|
|
1678
|
+
get?: never;
|
|
1679
|
+
put?: never;
|
|
1680
|
+
/** checkAuthMethod */
|
|
1681
|
+
post: operations["checkAuthMethod"];
|
|
1682
|
+
delete?: never;
|
|
1683
|
+
options?: never;
|
|
1684
|
+
head?: never;
|
|
1685
|
+
patch?: never;
|
|
1686
|
+
trace?: never;
|
|
1687
|
+
};
|
|
1671
1688
|
"/hosted-games/{hostedGameId}/reassign/create-reassign-token": {
|
|
1672
1689
|
parameters: {
|
|
1673
1690
|
query?: never;
|
|
@@ -3410,6 +3427,17 @@ export interface components {
|
|
|
3410
3427
|
coordinates: components["schemas"]["CoordinatesDto"];
|
|
3411
3428
|
region: components["schemas"]["RegionDto"] | null;
|
|
3412
3429
|
};
|
|
3430
|
+
CheckAuthMethodDto: {
|
|
3431
|
+
/** @example user@example.com */
|
|
3432
|
+
email: string;
|
|
3433
|
+
};
|
|
3434
|
+
/** @enum {string} */
|
|
3435
|
+
AuthProvider: AuthProvider;
|
|
3436
|
+
CheckAuthMethodResponseDto: {
|
|
3437
|
+
exists: boolean;
|
|
3438
|
+
isRegisteredInApp: boolean;
|
|
3439
|
+
authProviders: components["schemas"]["AuthProvider"][];
|
|
3440
|
+
};
|
|
3413
3441
|
CreateReassignTokenResponseDto: {
|
|
3414
3442
|
token: string;
|
|
3415
3443
|
frontendURL: string;
|
|
@@ -3625,6 +3653,8 @@ export type UserRankDto = components['schemas']['UserRankDto'];
|
|
|
3625
3653
|
export type UsersTopRankDto = components['schemas']['UsersTopRankDto'];
|
|
3626
3654
|
export type UpdateUserLocationDto = components['schemas']['UpdateUserLocationDto'];
|
|
3627
3655
|
export type UserLocationDto = components['schemas']['UserLocationDto'];
|
|
3656
|
+
export type CheckAuthMethodDto = components['schemas']['CheckAuthMethodDto'];
|
|
3657
|
+
export type CheckAuthMethodResponseDto = components['schemas']['CheckAuthMethodResponseDto'];
|
|
3628
3658
|
export type CreateReassignTokenResponseDto = components['schemas']['CreateReassignTokenResponseDto'];
|
|
3629
3659
|
export type InactiveUsersNotificationResponseDto = components['schemas']['InactiveUsersNotificationResponseDto'];
|
|
3630
3660
|
export type ActivityHistoryEntryDto = components['schemas']['ActivityHistoryEntryDto'];
|
|
@@ -7639,6 +7669,45 @@ export interface operations {
|
|
|
7639
7669
|
};
|
|
7640
7670
|
};
|
|
7641
7671
|
};
|
|
7672
|
+
checkAuthMethod: {
|
|
7673
|
+
parameters: {
|
|
7674
|
+
query?: never;
|
|
7675
|
+
header?: {
|
|
7676
|
+
/** @description Request trace id for logs */
|
|
7677
|
+
"x-trace-request-id"?: string;
|
|
7678
|
+
/** @description Session trace id for logs */
|
|
7679
|
+
"x-trace-session-id"?: string;
|
|
7680
|
+
/** @description IANA Timezone */
|
|
7681
|
+
"x-timezone"?: string;
|
|
7682
|
+
};
|
|
7683
|
+
path?: never;
|
|
7684
|
+
cookie?: never;
|
|
7685
|
+
};
|
|
7686
|
+
requestBody: {
|
|
7687
|
+
content: {
|
|
7688
|
+
"application/json": components["schemas"]["CheckAuthMethodDto"];
|
|
7689
|
+
};
|
|
7690
|
+
};
|
|
7691
|
+
responses: {
|
|
7692
|
+
200: {
|
|
7693
|
+
headers: {
|
|
7694
|
+
[name: string]: unknown;
|
|
7695
|
+
};
|
|
7696
|
+
content: {
|
|
7697
|
+
"application/json": components["schemas"]["CheckAuthMethodResponseDto"];
|
|
7698
|
+
};
|
|
7699
|
+
};
|
|
7700
|
+
/** @description Application Error */
|
|
7701
|
+
500: {
|
|
7702
|
+
headers: {
|
|
7703
|
+
[name: string]: unknown;
|
|
7704
|
+
};
|
|
7705
|
+
content: {
|
|
7706
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7707
|
+
};
|
|
7708
|
+
};
|
|
7709
|
+
};
|
|
7710
|
+
};
|
|
7642
7711
|
generateReassignToken: {
|
|
7643
7712
|
parameters: {
|
|
7644
7713
|
query?: never;
|
|
@@ -8174,6 +8243,11 @@ export declare enum AppTrophyType {
|
|
|
8174
8243
|
PLAYER_COMMENT_HELPFUL_10 = "PLAYER_COMMENT_HELPFUL_10",
|
|
8175
8244
|
PLAYER_COMMENT_SPRINTER_10 = "PLAYER_COMMENT_SPRINTER_10"
|
|
8176
8245
|
}
|
|
8246
|
+
export declare enum AuthProvider {
|
|
8247
|
+
EMAIL_PASSWORD = "EMAIL_PASSWORD",
|
|
8248
|
+
GOOGLE = "GOOGLE",
|
|
8249
|
+
APPLE = "APPLE"
|
|
8250
|
+
}
|
|
8177
8251
|
export declare enum ApiPaths {
|
|
8178
8252
|
getHello = "/hello",
|
|
8179
8253
|
getError = "/error",
|
|
@@ -8284,6 +8358,7 @@ export declare enum ApiPaths {
|
|
|
8284
8358
|
getUserRank = "/user/{userId}/activity-rank",
|
|
8285
8359
|
getUsersTopRank = "/activity-rank/top",
|
|
8286
8360
|
updateUserLocation = "/users/location",
|
|
8361
|
+
checkAuthMethod = "/auth/check-auth-method",
|
|
8287
8362
|
generateReassignToken = "/hosted-games/{hostedGameId}/reassign/create-reassign-token",
|
|
8288
8363
|
reassignGameByToken = "/hosted-games/{hostedGameId}/reassign/{reassignToken}",
|
|
8289
8364
|
triggerInactiveUsersNotification = "/action-push/inactive-users-since-registered-notification",
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Do not make direct changes to the file.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ApiPaths = exports.AppTrophyType = exports.CommentTypeEnum = exports.MemberRole = exports.GameVisibility = exports.AdminGameTypeFilter = exports.UserRoleEnum = exports.ArrivalType = exports.NotificationTypes = exports.CustomNotificationType = exports.ChatChannelType = exports.NotificationType = exports.PenaltyReason = exports.PenaltyType = exports.AppGameLevel = exports.AppLanguage = exports.AppProfileType = exports.Weekday = exports.GameLevelEnum = exports.AppGameLocationType = exports.AppPreferredPlayerPosition = exports.UserParticipationStatus = exports.Level = exports.PaymentTypes = exports.PriceCurrency = exports.Visibility = exports.KnownException = void 0;
|
|
7
|
+
exports.ApiPaths = exports.AuthProvider = exports.AppTrophyType = exports.CommentTypeEnum = exports.MemberRole = exports.GameVisibility = exports.AdminGameTypeFilter = exports.UserRoleEnum = exports.ArrivalType = exports.NotificationTypes = exports.CustomNotificationType = exports.ChatChannelType = exports.NotificationType = exports.PenaltyReason = exports.PenaltyType = exports.AppGameLevel = exports.AppLanguage = exports.AppProfileType = exports.Weekday = exports.GameLevelEnum = exports.AppGameLocationType = exports.AppPreferredPlayerPosition = exports.UserParticipationStatus = exports.Level = exports.PaymentTypes = exports.PriceCurrency = exports.Visibility = exports.KnownException = void 0;
|
|
8
8
|
var KnownException;
|
|
9
9
|
(function (KnownException) {
|
|
10
10
|
KnownException["UserBanned"] = "UserBanned";
|
|
@@ -282,6 +282,12 @@ var AppTrophyType;
|
|
|
282
282
|
AppTrophyType["PLAYER_COMMENT_HELPFUL_10"] = "PLAYER_COMMENT_HELPFUL_10";
|
|
283
283
|
AppTrophyType["PLAYER_COMMENT_SPRINTER_10"] = "PLAYER_COMMENT_SPRINTER_10";
|
|
284
284
|
})(AppTrophyType || (exports.AppTrophyType = AppTrophyType = {}));
|
|
285
|
+
var AuthProvider;
|
|
286
|
+
(function (AuthProvider) {
|
|
287
|
+
AuthProvider["EMAIL_PASSWORD"] = "EMAIL_PASSWORD";
|
|
288
|
+
AuthProvider["GOOGLE"] = "GOOGLE";
|
|
289
|
+
AuthProvider["APPLE"] = "APPLE";
|
|
290
|
+
})(AuthProvider || (exports.AuthProvider = AuthProvider = {}));
|
|
285
291
|
var ApiPaths;
|
|
286
292
|
(function (ApiPaths) {
|
|
287
293
|
ApiPaths["getHello"] = "/hello";
|
|
@@ -393,6 +399,7 @@ var ApiPaths;
|
|
|
393
399
|
ApiPaths["getUserRank"] = "/user/{userId}/activity-rank";
|
|
394
400
|
ApiPaths["getUsersTopRank"] = "/activity-rank/top";
|
|
395
401
|
ApiPaths["updateUserLocation"] = "/users/location";
|
|
402
|
+
ApiPaths["checkAuthMethod"] = "/auth/check-auth-method";
|
|
396
403
|
ApiPaths["generateReassignToken"] = "/hosted-games/{hostedGameId}/reassign/create-reassign-token";
|
|
397
404
|
ApiPaths["reassignGameByToken"] = "/hosted-games/{hostedGameId}/reassign/{reassignToken}";
|
|
398
405
|
ApiPaths["triggerInactiveUsersNotification"] = "/action-push/inactive-users-since-registered-notification";
|