@rpg-engine/shared 0.3.39 → 0.3.42

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.
Files changed (107) hide show
  1. package/README.md +29 -29
  2. package/dist/constants/date.constants.d.ts +2 -2
  3. package/dist/constants/date.constants.js +5 -5
  4. package/dist/constants/npc.constants.d.ts +1 -1
  5. package/dist/constants/npc.constants.js +4 -4
  6. package/dist/constants/socket.constants.d.ts +2 -2
  7. package/dist/constants/socket.constants.js +6 -6
  8. package/dist/constants/world.constants.d.ts +10 -10
  9. package/dist/constants/world.constants.js +13 -13
  10. package/dist/helpers/skillHelpers.d.ts +4 -4
  11. package/dist/helpers/skillHelpers.js +25 -25
  12. package/dist/index.d.ts +39 -39
  13. package/dist/index.js +55 -55
  14. package/dist/libs/GridHelper.d.ts +11 -11
  15. package/dist/libs/GridHelper.js +37 -37
  16. package/dist/libs/MathHelper.d.ts +16 -16
  17. package/dist/libs/MathHelper.js +14 -14
  18. package/dist/libs/SocketHelper.d.ts +2 -2
  19. package/dist/libs/SocketHelper.js +14 -14
  20. package/dist/libs/TextHelper.d.ts +7 -7
  21. package/dist/libs/TextHelper.js +21 -21
  22. package/dist/libs/TypeHelper.d.ts +3 -3
  23. package/dist/libs/TypeHelper.js +16 -16
  24. package/dist/translations/app-rate.lang.json +38 -38
  25. package/dist/translations/assets.lang.json +82 -82
  26. package/dist/translations/auth.lang.json +182 -182
  27. package/dist/translations/email.lang.json +70 -70
  28. package/dist/translations/error.lang.json +18 -18
  29. package/dist/translations/form.lang.json +94 -94
  30. package/dist/translations/global.lang.json +90 -90
  31. package/dist/translations/logs.lang.json +6 -6
  32. package/dist/translations/onboarding.lang.d.ts +10 -10
  33. package/dist/translations/onboarding.lang.js +21 -21
  34. package/dist/translations/onboarding.lang.json +50 -50
  35. package/dist/translations/order.lang.json +90 -90
  36. package/dist/translations/search.lang.json +50 -50
  37. package/dist/translations/settings.lang.json +14 -14
  38. package/dist/translations/tabs.lang.json +22 -22
  39. package/dist/translations/users.lang.json +22 -22
  40. package/dist/translations/validation.lang.json +86 -86
  41. package/dist/types/animation.types.d.ts +16 -16
  42. package/dist/types/animation.types.js +2 -2
  43. package/dist/types/api.types.d.ts +21 -21
  44. package/dist/types/api.types.js +20 -20
  45. package/dist/types/asset.types.d.ts +6 -6
  46. package/dist/types/asset.types.js +2 -2
  47. package/dist/types/auth.types.d.ts +7 -7
  48. package/dist/types/auth.types.js +2 -2
  49. package/dist/types/battle.types.d.ts +35 -35
  50. package/dist/types/battle.types.js +17 -17
  51. package/dist/types/character.types.d.ts +134 -134
  52. package/dist/types/character.types.js +29 -29
  53. package/dist/types/chat.types.d.ts +30 -30
  54. package/dist/types/chat.types.js +14 -14
  55. package/dist/types/device.types.d.ts +24 -24
  56. package/dist/types/device.types.js +7 -7
  57. package/dist/types/entity.types.d.ts +20 -20
  58. package/dist/types/entity.types.js +14 -14
  59. package/dist/types/env.types.d.ts +5 -5
  60. package/dist/types/env.types.js +9 -9
  61. package/dist/types/equipment.types.d.ts +32 -16
  62. package/dist/types/equipment.types.d.ts.map +1 -1
  63. package/dist/types/equipment.types.js +19 -2
  64. package/dist/types/equipment.types.js.map +1 -1
  65. package/dist/types/googleOAuth.types.d.ts +47 -47
  66. package/dist/types/googleOAuth.types.js +2 -2
  67. package/dist/types/item.types.d.ts +157 -156
  68. package/dist/types/item.types.d.ts.map +1 -1
  69. package/dist/types/item.types.js +99 -98
  70. package/dist/types/item.types.js.map +1 -1
  71. package/dist/types/itemContainer.types.d.ts +52 -52
  72. package/dist/types/itemContainer.types.js +2 -2
  73. package/dist/types/maps.types.d.ts +19 -19
  74. package/dist/types/maps.types.js +11 -11
  75. package/dist/types/notification.types.d.ts +14 -14
  76. package/dist/types/notification.types.js +2 -2
  77. package/dist/types/npc.types.d.ts +114 -105
  78. package/dist/types/npc.types.d.ts.map +1 -1
  79. package/dist/types/npc.types.js +35 -35
  80. package/dist/types/npc.types.js.map +1 -1
  81. package/dist/types/pagination.types.d.ts +13 -13
  82. package/dist/types/pagination.types.js +2 -2
  83. package/dist/types/places.types.d.ts +16 -16
  84. package/dist/types/places.types.js +9 -9
  85. package/dist/types/preloadScene.types.d.ts +4 -4
  86. package/dist/types/preloadScene.types.js +7 -7
  87. package/dist/types/resource.types.d.ts +5 -5
  88. package/dist/types/resource.types.js +2 -2
  89. package/dist/types/scene.types.d.ts +8 -8
  90. package/dist/types/scene.types.js +8 -8
  91. package/dist/types/skills.types.d.ts +57 -57
  92. package/dist/types/skills.types.js +22 -22
  93. package/dist/types/socket.types.d.ts +17 -17
  94. package/dist/types/socket.types.js +8 -8
  95. package/dist/types/tiled.types.d.ts +107 -107
  96. package/dist/types/tiled.types.js +13 -13
  97. package/dist/types/translation.types.d.ts +5 -5
  98. package/dist/types/translation.types.js +8 -8
  99. package/dist/types/ui.types.d.ts +8 -8
  100. package/dist/types/ui.types.js +7 -7
  101. package/dist/types/user.types.d.ts +101 -101
  102. package/dist/types/user.types.js +38 -38
  103. package/dist/types/validation.types.d.ts +9 -9
  104. package/dist/types/validation.types.js +2 -2
  105. package/dist/types/view.types.d.ts +14 -14
  106. package/dist/types/view.types.js +7 -7
  107. package/package.json +41 -41
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatSocketEvents = exports.ChatMessageType = void 0;
4
- var ChatMessageType;
5
- (function (ChatMessageType) {
6
- ChatMessageType["Global"] = "Global";
7
- ChatMessageType["Private"] = "Private";
8
- })(ChatMessageType = exports.ChatMessageType || (exports.ChatMessageType = {}));
9
- var ChatSocketEvents;
10
- (function (ChatSocketEvents) {
11
- ChatSocketEvents["GlobalChatMessageCreate"] = "GlobalChatMessageCreate";
12
- ChatSocketEvents["GlobalChatMessageRead"] = "GlobalChatMessageRead";
13
- ChatSocketEvents["PrivateChatMessage"] = "PrivateChatMessage";
14
- })(ChatSocketEvents = exports.ChatSocketEvents || (exports.ChatSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChatSocketEvents = exports.ChatMessageType = void 0;
4
+ var ChatMessageType;
5
+ (function (ChatMessageType) {
6
+ ChatMessageType["Global"] = "Global";
7
+ ChatMessageType["Private"] = "Private";
8
+ })(ChatMessageType = exports.ChatMessageType || (exports.ChatMessageType = {}));
9
+ var ChatSocketEvents;
10
+ (function (ChatSocketEvents) {
11
+ ChatSocketEvents["GlobalChatMessageCreate"] = "GlobalChatMessageCreate";
12
+ ChatSocketEvents["GlobalChatMessageRead"] = "GlobalChatMessageRead";
13
+ ChatSocketEvents["PrivateChatMessage"] = "PrivateChatMessage";
14
+ })(ChatSocketEvents = exports.ChatSocketEvents || (exports.ChatSocketEvents = {}));
15
15
  //# sourceMappingURL=chat.types.js.map
@@ -1,25 +1,25 @@
1
- import { Languages } from "./translation.types";
2
- interface IDeviceDetailedInfo {
3
- isVirtual: boolean;
4
- manufacturer: string;
5
- model: string;
6
- operatingSystem: string;
7
- osVersion: string;
8
- platform: string;
9
- }
10
- export interface IDeviceInfo {
11
- info: IDeviceDetailedInfo | null;
12
- screenOrientation: "landscape" | "portrait" | null;
13
- isAssetScreen: boolean | null;
14
- language: Languages | null;
15
- }
16
- export declare enum DeviceInfoActionTypes {
17
- updateDeviceInfo = "updateDeviceInfo"
18
- }
19
- export interface IDispatchUpdateDeviceInfo {
20
- type: DeviceInfoActionTypes.updateDeviceInfo;
21
- payload: IDeviceInfo;
22
- }
23
- export declare type DeviceAction = IDispatchUpdateDeviceInfo;
24
- export {};
1
+ import { Languages } from "./translation.types";
2
+ interface IDeviceDetailedInfo {
3
+ isVirtual: boolean;
4
+ manufacturer: string;
5
+ model: string;
6
+ operatingSystem: string;
7
+ osVersion: string;
8
+ platform: string;
9
+ }
10
+ export interface IDeviceInfo {
11
+ info: IDeviceDetailedInfo | null;
12
+ screenOrientation: "landscape" | "portrait" | null;
13
+ isAssetScreen: boolean | null;
14
+ language: Languages | null;
15
+ }
16
+ export declare enum DeviceInfoActionTypes {
17
+ updateDeviceInfo = "updateDeviceInfo"
18
+ }
19
+ export interface IDispatchUpdateDeviceInfo {
20
+ type: DeviceInfoActionTypes.updateDeviceInfo;
21
+ payload: IDeviceInfo;
22
+ }
23
+ export declare type DeviceAction = IDispatchUpdateDeviceInfo;
24
+ export {};
25
25
  //# sourceMappingURL=device.types.d.ts.map
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeviceInfoActionTypes = void 0;
4
- var DeviceInfoActionTypes;
5
- (function (DeviceInfoActionTypes) {
6
- DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
7
- })(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceInfoActionTypes = void 0;
4
+ var DeviceInfoActionTypes;
5
+ (function (DeviceInfoActionTypes) {
6
+ DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
7
+ })(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
8
8
  //# sourceMappingURL=device.types.js.map
@@ -1,21 +1,21 @@
1
- export declare enum EntityType {
2
- Character = "Character",
3
- NPC = "NPC"
4
- }
5
- export declare enum EntityAttackType {
6
- Melee = "Melee",
7
- Ranged = "Ranged",
8
- None = "None"
9
- }
10
- export interface IEntitiesInView {
11
- [id: string]: IEntityInViewBasicInfo;
12
- }
13
- export interface IEntityInViewBasicInfo {
14
- id: string;
15
- type?: EntityType;
16
- name?: string;
17
- x?: number;
18
- y?: number;
19
- direction?: string;
20
- }
1
+ export declare enum EntityType {
2
+ Character = "Character",
3
+ NPC = "NPC"
4
+ }
5
+ export declare enum EntityAttackType {
6
+ Melee = "Melee",
7
+ Ranged = "Ranged",
8
+ None = "None"
9
+ }
10
+ export interface IEntitiesInView {
11
+ [id: string]: IEntityInViewBasicInfo;
12
+ }
13
+ export interface IEntityInViewBasicInfo {
14
+ id: string;
15
+ type?: EntityType;
16
+ name?: string;
17
+ x?: number;
18
+ y?: number;
19
+ direction?: string;
20
+ }
21
21
  //# sourceMappingURL=entity.types.d.ts.map
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntityAttackType = exports.EntityType = void 0;
4
- var EntityType;
5
- (function (EntityType) {
6
- EntityType["Character"] = "Character";
7
- EntityType["NPC"] = "NPC";
8
- })(EntityType = exports.EntityType || (exports.EntityType = {}));
9
- var EntityAttackType;
10
- (function (EntityAttackType) {
11
- EntityAttackType["Melee"] = "Melee";
12
- EntityAttackType["Ranged"] = "Ranged";
13
- EntityAttackType["None"] = "None";
14
- })(EntityAttackType = exports.EntityAttackType || (exports.EntityAttackType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityAttackType = exports.EntityType = void 0;
4
+ var EntityType;
5
+ (function (EntityType) {
6
+ EntityType["Character"] = "Character";
7
+ EntityType["NPC"] = "NPC";
8
+ })(EntityType = exports.EntityType || (exports.EntityType = {}));
9
+ var EntityAttackType;
10
+ (function (EntityAttackType) {
11
+ EntityAttackType["Melee"] = "Melee";
12
+ EntityAttackType["Ranged"] = "Ranged";
13
+ EntityAttackType["None"] = "None";
14
+ })(EntityAttackType = exports.EntityAttackType || (exports.EntityAttackType = {}));
15
15
  //# sourceMappingURL=entity.types.js.map
@@ -1,6 +1,6 @@
1
- export declare enum EnvType {
2
- Development = "Development",
3
- Staging = "Staging",
4
- Production = "Production"
5
- }
1
+ export declare enum EnvType {
2
+ Development = "Development",
3
+ Staging = "Staging",
4
+ Production = "Production"
5
+ }
6
6
  //# sourceMappingURL=env.types.d.ts.map
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnvType = void 0;
4
- var EnvType;
5
- (function (EnvType) {
6
- EnvType["Development"] = "Development";
7
- EnvType["Staging"] = "Staging";
8
- EnvType["Production"] = "Production";
9
- })(EnvType = exports.EnvType || (exports.EnvType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnvType = void 0;
4
+ var EnvType;
5
+ (function (EnvType) {
6
+ EnvType["Development"] = "Development";
7
+ EnvType["Staging"] = "Staging";
8
+ EnvType["Production"] = "Production";
9
+ })(EnvType = exports.EnvType || (exports.EnvType = {}));
10
10
  //# sourceMappingURL=env.types.js.map
@@ -1,17 +1,33 @@
1
- import { ICharacter } from "./character.types";
2
- import { IItem } from "./item.types";
3
- import { IResource } from "./resource.types";
4
- export interface IEquipementSet extends IResource {
5
- owner?: ICharacter | string;
6
- head?: IItem | string;
7
- neck?: IItem | string;
8
- leftHand?: IItem | string;
9
- rightHand?: IItem | string;
10
- ring?: IItem | string;
11
- legs?: IItem | string;
12
- boot?: IItem | string;
13
- armor?: IItem | string;
14
- accessory?: IItem | string;
15
- inventory: IItem | string;
16
- }
1
+ import { ICharacter } from "./character.types";
2
+ import { IItem } from "./item.types";
3
+ import { IResource } from "./resource.types";
4
+ export interface IEquipementSet extends IResource {
5
+ owner?: ICharacter | string;
6
+ head?: IItem | string;
7
+ neck?: IItem | string;
8
+ leftHand?: IItem | string;
9
+ rightHand?: IItem | string;
10
+ ring?: IItem | string;
11
+ legs?: IItem | string;
12
+ boot?: IItem | string;
13
+ armor?: IItem | string;
14
+ accessory?: IItem | string;
15
+ inventory: IItem | string;
16
+ }
17
+ export declare enum EquipmentSocketEvents {
18
+ Unequip = "Unequip",
19
+ ContainerOpen = "ContainerOpen",
20
+ ContainerRead = "ContainerRead",
21
+ GetEquipmentInfo = "GetEquipmentInfo",
22
+ ReadEquipmentInfo = "ReadEquipmentInfo",
23
+ EquipmentUpdate = "EquipmentUpdate"
24
+ }
25
+ export interface IEquipmentRead {
26
+ equipment: IEquipementSet;
27
+ }
28
+ interface IStringIndex {
29
+ [key: string]: any;
30
+ }
31
+ export declare const EquipmentSocketEventsDisplayLabels: IStringIndex;
32
+ export {};
17
33
  //# sourceMappingURL=equipment.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"equipment.types.d.ts","sourceRoot":"","sources":["../../src/types/equipment.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B"}
1
+ {"version":3,"file":"equipment.types.d.ts","sourceRoot":"","sources":["../../src/types/equipment.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B;AAED,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,cAAc,CAAC;CAC3B;AAED,UAAU,YAAY;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AACD,eAAO,MAAM,kCAAkC,EAAE,YAMhD,CAAC"}
@@ -1,3 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EquipmentSocketEventsDisplayLabels = exports.EquipmentSocketEvents = void 0;
4
+ var EquipmentSocketEvents;
5
+ (function (EquipmentSocketEvents) {
6
+ EquipmentSocketEvents["Unequip"] = "Unequip";
7
+ EquipmentSocketEvents["ContainerOpen"] = "ContainerOpen";
8
+ EquipmentSocketEvents["ContainerRead"] = "ContainerRead";
9
+ EquipmentSocketEvents["GetEquipmentInfo"] = "GetEquipmentInfo";
10
+ EquipmentSocketEvents["ReadEquipmentInfo"] = "ReadEquipmentInfo";
11
+ EquipmentSocketEvents["EquipmentUpdate"] = "EquipmentUpdate";
12
+ })(EquipmentSocketEvents = exports.EquipmentSocketEvents || (exports.EquipmentSocketEvents = {}));
13
+ exports.EquipmentSocketEventsDisplayLabels = {
14
+ [EquipmentSocketEvents.Unequip]: "Unequip",
15
+ [EquipmentSocketEvents.GetEquipmentInfo]: "Look",
16
+ [EquipmentSocketEvents.ReadEquipmentInfo]: "Inspect",
17
+ [EquipmentSocketEvents.ContainerOpen]: "Open",
18
+ [EquipmentSocketEvents.ContainerRead]: "Read",
19
+ };
3
20
  //# sourceMappingURL=equipment.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"equipment.types.js","sourceRoot":"","sources":["../../src/types/equipment.types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"equipment.types.js","sourceRoot":"","sources":["../../src/types/equipment.types.ts"],"names":[],"mappings":";;;AAkBA,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,wDAA+B,CAAA;IAC/B,wDAA+B,CAAA;IAC/B,8DAAqC,CAAA;IACrC,gEAAuC,CAAA;IACvC,4DAAmC,CAAA;AACrC,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AASY,QAAA,kCAAkC,GAAiB;IAC9D,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,SAAS;IAC1C,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,EAAE,MAAM;IAChD,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,EAAE,SAAS;IACpD,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,MAAM;IAC7C,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,MAAM;CAC9C,CAAC"}
@@ -1,48 +1,48 @@
1
- export interface IGoogleConfig {
2
- clientID: string;
3
- clientSecret: string;
4
- redirectURI: string;
5
- }
6
- export interface IGoogleOAuthUrlResponse {
7
- googleOAuthUrl: string;
8
- }
9
- export interface IGoogleOAuthTokenPayload {
10
- access_token: string;
11
- id_token: string;
12
- expires_in: string;
13
- token_type: string;
14
- refresh_token: string;
15
- }
16
- export interface IGoogleOAuthUserInfoResponse {
17
- id: string;
18
- email: string;
19
- verified_email: boolean;
20
- name: string;
21
- given_name: string;
22
- family_name: string;
23
- picture: string;
24
- locale: string;
25
- }
26
- export interface IGoogleCapacitorOAuthResponse {
27
- email: string;
28
- familyName: string;
29
- givenName: string;
30
- id: string;
31
- imageUrl: string;
32
- name: string;
33
- authentication: IAuthentication;
34
- serverAuthCode: string;
35
- }
36
- export interface IAuthentication {
37
- accessToken: string;
38
- idToken: string;
39
- }
40
- export interface IGoogleOAuthIdTokenResponse extends IGoogleOAuthUserInfoResponse {
41
- iss: string;
42
- sub: string;
43
- azp: string;
44
- aud: string;
45
- iat: string;
46
- exp: string;
47
- }
1
+ export interface IGoogleConfig {
2
+ clientID: string;
3
+ clientSecret: string;
4
+ redirectURI: string;
5
+ }
6
+ export interface IGoogleOAuthUrlResponse {
7
+ googleOAuthUrl: string;
8
+ }
9
+ export interface IGoogleOAuthTokenPayload {
10
+ access_token: string;
11
+ id_token: string;
12
+ expires_in: string;
13
+ token_type: string;
14
+ refresh_token: string;
15
+ }
16
+ export interface IGoogleOAuthUserInfoResponse {
17
+ id: string;
18
+ email: string;
19
+ verified_email: boolean;
20
+ name: string;
21
+ given_name: string;
22
+ family_name: string;
23
+ picture: string;
24
+ locale: string;
25
+ }
26
+ export interface IGoogleCapacitorOAuthResponse {
27
+ email: string;
28
+ familyName: string;
29
+ givenName: string;
30
+ id: string;
31
+ imageUrl: string;
32
+ name: string;
33
+ authentication: IAuthentication;
34
+ serverAuthCode: string;
35
+ }
36
+ export interface IAuthentication {
37
+ accessToken: string;
38
+ idToken: string;
39
+ }
40
+ export interface IGoogleOAuthIdTokenResponse extends IGoogleOAuthUserInfoResponse {
41
+ iss: string;
42
+ sub: string;
43
+ azp: string;
44
+ aud: string;
45
+ iat: string;
46
+ exp: string;
47
+ }
48
48
  //# sourceMappingURL=googleOAuth.types.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=googleOAuth.types.js.map