@rpg-engine/shared 0.0.6 → 0.0.7

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/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from "./types/device.types";
8
8
  export * from "./types/env.types";
9
9
  export * from "./types/googleOAuth.types";
10
10
  export * from "./types/maps.types";
11
+ export * from "./types/pagination.types";
11
12
  export * from "./types/places.types";
12
13
  export * from "./types/player.types";
13
14
  export * from "./types/preloadScene.types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ __exportStar(require("./types/device.types"), exports);
20
20
  __exportStar(require("./types/env.types"), exports);
21
21
  __exportStar(require("./types/googleOAuth.types"), exports);
22
22
  __exportStar(require("./types/maps.types"), exports);
23
+ __exportStar(require("./types/pagination.types"), exports);
23
24
  __exportStar(require("./types/places.types"), exports);
24
25
  __exportStar(require("./types/player.types"), exports);
25
26
  __exportStar(require("./types/preloadScene.types"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
@@ -0,0 +1,14 @@
1
+ export interface IPaginationResponse<T> {
2
+ docs: T[];
3
+ totalDocs: number;
4
+ offset: number;
5
+ limit: number;
6
+ totalPages: number;
7
+ page: number;
8
+ pagingCounter: number;
9
+ hasPrevPage: boolean;
10
+ hasNextPage: boolean;
11
+ prevPage: number | null;
12
+ nextPage: number | null;
13
+ }
14
+ //# sourceMappingURL=pagination.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.types.d.ts","sourceRoot":"","sources":["../../src/types/pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pagination.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.types.js","sourceRoot":"","sources":["../../src/types/pagination.types.ts"],"names":[],"mappings":""}
@@ -3,4 +3,15 @@ export declare enum Countries {
3
3
  Brazil = "Brazil",
4
4
  Global = "Global"
5
5
  }
6
+ export interface ICountry {
7
+ name: string;
8
+ code: string;
9
+ }
10
+ export interface ICountryCity {
11
+ country: {
12
+ name: string;
13
+ code: string;
14
+ };
15
+ cities: string[];
16
+ }
6
17
  //# sourceMappingURL=places.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"places.types.d.ts","sourceRoot":"","sources":["../../src/types/places.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,EAAE,OAAO;IACT,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
1
+ {"version":3,"file":"places.types.d.ts","sourceRoot":"","sources":["../../src/types/places.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,EAAE,OAAO;IACT,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/shared",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "> TODO: description",
5
5
  "author": "Joao Paulo Furtado <joaopaulofurtado@live.com>",
6
6
  "homepage": "",