@rpg-engine/shared 0.10.0 → 0.10.2

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 (36) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/characterCustomizationTypes.d.ts +13 -0
  6. package/dist/types/characterCustomizationTypes.d.ts.map +1 -0
  7. package/dist/types/characterCustomizationTypes.js +9 -0
  8. package/dist/types/characterCustomizationTypes.js.map +1 -0
  9. package/dist/types/characterSkin.types.d.ts +23 -0
  10. package/dist/types/characterSkin.types.d.ts.map +1 -0
  11. package/dist/types/characterSkin.types.js +9 -0
  12. package/dist/types/characterSkin.types.js.map +1 -0
  13. package/dist/types/dailyTasks.types.d.ts +492 -0
  14. package/dist/types/dailyTasks.types.d.ts.map +1 -0
  15. package/dist/types/dailyTasks.types.js +315 -0
  16. package/dist/types/dailyTasks.types.js.map +1 -0
  17. package/dist/types/item.types.d.ts +2 -0
  18. package/dist/types/item.types.d.ts.map +1 -1
  19. package/dist/types/item.types.js.map +1 -1
  20. package/dist/types/npc.types.d.ts +4 -0
  21. package/dist/types/npc.types.d.ts.map +1 -1
  22. package/dist/types/npc.types.js +1 -0
  23. package/dist/types/npc.types.js.map +1 -1
  24. package/dist/types/payment.types.d.ts +9 -0
  25. package/dist/types/payment.types.d.ts.map +1 -0
  26. package/dist/types/payment.types.js +13 -0
  27. package/dist/types/payment.types.js.map +1 -0
  28. package/dist/types/purchase.types.d.ts +29 -0
  29. package/dist/types/purchase.types.d.ts.map +1 -0
  30. package/dist/types/purchase.types.js +12 -0
  31. package/dist/types/purchase.types.js.map +1 -0
  32. package/dist/types/store.types.d.ts +43 -0
  33. package/dist/types/store.types.d.ts.map +1 -0
  34. package/dist/types/store.types.js +9 -0
  35. package/dist/types/store.types.js.map +1 -0
  36. package/package.json +1 -1
@@ -0,0 +1,43 @@
1
+ import { IItem } from "./item.types";
2
+ import { UserAccountTypes } from "./premiumAccount.types";
3
+ import { IPurchase } from "./purchase.types";
4
+ export declare enum MetadataType {
5
+ None = "None",
6
+ CharacterSkin = "CharacterSkin"
7
+ }
8
+ export interface IStoreItem extends Omit<IItem, 'canSell'> {
9
+ price: number;
10
+ requiredAccountType?: UserAccountTypes[];
11
+ key: string;
12
+ name: string;
13
+ texturePath: string;
14
+ metadataType?: MetadataType;
15
+ metadataConfig?: Record<string, any>;
16
+ }
17
+ export interface ICartItem {
18
+ item: IStoreItem;
19
+ quantity: number;
20
+ }
21
+ export interface IItemPack {
22
+ key: string;
23
+ title: string;
24
+ description: string;
25
+ priceUSD: number;
26
+ image: {
27
+ src: string;
28
+ default?: string;
29
+ };
30
+ }
31
+ export interface IStoreProps {
32
+ items: IStoreItem[];
33
+ packs?: IItemPack[];
34
+ atlasJSON: Record<string, any>;
35
+ atlasIMG: string;
36
+ onPurchase: (purchase: IPurchase) => void;
37
+ userAccountType: UserAccountTypes;
38
+ loading?: boolean;
39
+ error?: string;
40
+ initialSearchQuery?: string;
41
+ onClose?: () => void;
42
+ }
43
+ //# sourceMappingURL=store.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.types.d.ts","sourceRoot":"","sources":["../../src/types/store.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,aAAa,kBAAkB;CAEhC;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,IAAI,CAAC;IAC1C,eAAe,EAAE,gBAAgB,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MetadataType = void 0;
4
+ var MetadataType;
5
+ (function (MetadataType) {
6
+ MetadataType["None"] = "None";
7
+ MetadataType["CharacterSkin"] = "CharacterSkin";
8
+ })(MetadataType = exports.MetadataType || (exports.MetadataType = {}));
9
+ //# sourceMappingURL=store.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.types.js","sourceRoot":"","sources":["../../src/types/store.types.ts"],"names":[],"mappings":";;;AAIA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+CAA+B,CAAA;AAEjC,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/shared",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "Types shared across our API and client",
5
5
  "author": "Definya Team",
6
6
  "homepage": "",