@openbox/shared-types 0.2.43 → 0.2.45

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.
@@ -0,0 +1,4 @@
1
+ import { GetManyRequest } from '../../../interfaces';
2
+ export type SystemCitiesGetManyRequest = GetManyRequest & {
3
+ state: number;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/system/Cities/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -1,2 +1,4 @@
1
1
  import { SystemCitiesGetSingleResponse } from '../GetSingle/Response';
2
- export type SystemCitiesGetManyResponse = Array<SystemCitiesGetSingleResponse>;
2
+ export type SystemCitiesGetManyResponse = {
3
+ data: Array<SystemCitiesGetSingleResponse>;
4
+ };
@@ -1,2 +1,3 @@
1
+ export * from './GetMany/Request';
1
2
  export * from './GetMany/Response';
2
3
  export * from './GetSingle/Response';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GetMany/Request"), exports);
17
18
  __exportStar(require("./GetMany/Response"), exports);
18
19
  __exportStar(require("./GetSingle/Response"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Cities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Cities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC"}
@@ -1,2 +1,4 @@
1
- import { SystemCountriesGetSingleReponse } from '../GetSingle/Response';
2
- export type SystemCountriesGetManyReponse = Array<SystemCountriesGetSingleReponse>;
1
+ import { SystemCountriesGetSingleResponse } from '../GetSingle/Response';
2
+ export type SystemCountriesGetManyResponse = {
3
+ data: Array<SystemCountriesGetSingleResponse>;
4
+ };
@@ -1,2 +1,2 @@
1
1
  import { SystemCountriesResponse } from '../system.countries.types';
2
- export type SystemCountriesGetSingleReponse = SystemCountriesResponse;
2
+ export type SystemCountriesGetSingleResponse = SystemCountriesResponse;
@@ -0,0 +1,4 @@
1
+ import { GetManyRequest } from '../../../interfaces';
2
+ export type SystemStatesGetManyRequest = GetManyRequest & {
3
+ country: number;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/system/States/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -1,2 +1,4 @@
1
1
  import { SystemStatesGetSingleResponse } from '../GetSingle/Response';
2
- export type SystemStatesGetManyResponse = Array<SystemStatesGetSingleResponse>;
2
+ export type SystemStatesGetManyResponse = {
3
+ data: Array<SystemStatesGetSingleResponse>;
4
+ };
@@ -1,2 +1,3 @@
1
+ export * from './GetMany/Request';
1
2
  export * from './GetMany/Response';
2
3
  export * from './GetSingle/Response';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GetMany/Request"), exports);
17
18
  __exportStar(require("./GetMany/Response"), exports);
18
19
  __exportStar(require("./GetSingle/Response"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/States/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/States/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.43",
3
+ "version": "0.2.45",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,5 @@
1
+ import { GetManyRequest } from '../../../interfaces'
2
+
3
+ export type SystemCitiesGetManyRequest = GetManyRequest & {
4
+ state: number
5
+ }
@@ -1,3 +1,5 @@
1
1
  import { SystemCitiesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export type SystemCitiesGetManyResponse = Array<SystemCitiesGetSingleResponse>
3
+ export type SystemCitiesGetManyResponse = {
4
+ data: Array<SystemCitiesGetSingleResponse>
5
+ }
@@ -1,2 +1,3 @@
1
+ export * from './GetMany/Request'
1
2
  export * from './GetMany/Response'
2
3
  export * from './GetSingle/Response'
@@ -1,3 +1,5 @@
1
- import { SystemCountriesGetSingleReponse } from '../GetSingle/Response'
1
+ import { SystemCountriesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export type SystemCountriesGetManyReponse = Array<SystemCountriesGetSingleReponse>
3
+ export type SystemCountriesGetManyResponse = {
4
+ data: Array<SystemCountriesGetSingleResponse>
5
+ }
@@ -1,3 +1,3 @@
1
1
  import { SystemCountriesResponse } from '../system.countries.types'
2
2
 
3
- export type SystemCountriesGetSingleReponse = SystemCountriesResponse
3
+ export type SystemCountriesGetSingleResponse = SystemCountriesResponse
@@ -0,0 +1,5 @@
1
+ import { GetManyRequest } from '../../../interfaces'
2
+
3
+ export type SystemStatesGetManyRequest = GetManyRequest & {
4
+ country: number
5
+ }
@@ -1,3 +1,5 @@
1
1
  import { SystemStatesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export type SystemStatesGetManyResponse = Array<SystemStatesGetSingleResponse>
3
+ export type SystemStatesGetManyResponse = {
4
+ data: Array<SystemStatesGetSingleResponse>
5
+ }
@@ -1,2 +1,3 @@
1
+ export * from './GetMany/Request'
1
2
  export * from './GetMany/Response'
2
3
  export * from './GetSingle/Response'