@bprotsyk/aso-core 2.0.40 → 2.0.41

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.
@@ -67,7 +67,7 @@ export interface INamecheapBuyRequest extends Document {
67
67
  }
68
68
  export interface INamecheapBuyResult {
69
69
  succeed: {
70
- [key: string]: string;
70
+ [key: string]: number;
71
71
  };
72
72
  failed: {
73
73
  [key: string]: string;
@@ -77,7 +77,7 @@ export interface INamecheapBuyResult {
77
77
  export declare const NamecheapBuyRequestSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
78
78
  domains: {
79
79
  name?: string | undefined;
80
- price?: string | undefined;
80
+ price?: number | undefined;
81
81
  available?: boolean | undefined;
82
82
  }[];
83
83
  id?: string | undefined;
@@ -5,7 +5,7 @@ const mongoose_1 = require("mongoose");
5
5
  exports.NamecheapBuyRequestSchema = new mongoose_1.Schema({
6
6
  domains: [{
7
7
  name: String,
8
- price: String,
8
+ price: Number,
9
9
  available: Boolean
10
10
  }],
11
11
  ip: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.0.40",
3
+ "version": "2.0.41",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -46,7 +46,7 @@ export interface INamecheapBuyRequest extends Document {
46
46
  }
47
47
 
48
48
  export interface INamecheapBuyResult {
49
- succeed: { [key: string]: string },
49
+ succeed: { [key: string]: number },
50
50
  failed: { [key: string]: string },
51
51
  paidTotal: number
52
52
  }
@@ -54,7 +54,7 @@ export interface INamecheapBuyResult {
54
54
  export const NamecheapBuyRequestSchema = new Schema({
55
55
  domains: [{
56
56
  name: String,
57
- price: String,
57
+ price: Number,
58
58
  available: Boolean
59
59
  }],
60
60
  ip: String,
package/src/index.ts CHANGED
@@ -30,4 +30,4 @@ export { IKeitaroStream } from "./keitaro/keitaro-stream"
30
30
  export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./general/cloudflare-domain"
31
31
  export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse, getDomainTargetByIp } from "./general/domain"
32
32
  export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema, INamecheapGetDomainsResult, INamecheapBuyResult } from "./general/namecheap-domain"
33
- export {ServerUtil} from "./utils/server-util";
33
+ export { ServerUtil } from "./utils/server-util"