@dhedge/backend-flatcoin-core 0.1.0 → 0.1.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.
@@ -15,24 +15,29 @@ import { Entity as Entity2 } from "typeorm";
15
15
 
16
16
  // src/entity/flatcoin.price.parent.ts
17
17
  import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
18
+ import { Field, ObjectType } from "@nestjs/graphql";
18
19
  var FlatcoinPriceParent = class {
19
20
  };
20
21
  __decorateClass([
21
22
  PrimaryGeneratedColumn({ name: "id" })
22
23
  ], FlatcoinPriceParent.prototype, "id", 2);
23
24
  __decorateClass([
25
+ Field(),
24
26
  Column({ name: "price_usd", type: "numeric", precision: 30 })
25
27
  ], FlatcoinPriceParent.prototype, "priceUsd", 2);
26
28
  __decorateClass([
29
+ Field(),
27
30
  Column({ name: "price_usd_formatted", type: "decimal", precision: 10, scale: 2 })
28
31
  ], FlatcoinPriceParent.prototype, "priceUsdFormatted", 2);
29
32
  __decorateClass([
33
+ Field(),
30
34
  Column({ name: "timestamp", type: "numeric", precision: 25 })
31
35
  ], FlatcoinPriceParent.prototype, "timestamp", 2);
32
36
  __decorateClass([
33
37
  Column({ name: "block_number", type: "numeric", precision: 25 })
34
38
  ], FlatcoinPriceParent.prototype, "blockNumber", 2);
35
39
  FlatcoinPriceParent = __decorateClass([
40
+ ObjectType(),
36
41
  Entity()
37
42
  ], FlatcoinPriceParent);
38
43
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/entity/flatcoin.price.one.day.ts","../../src/entity/flatcoin.price.parent.ts","../../src/entity/flatcoin.price.one.month.ts","../../src/entity/flatcoin.price.one.week.ts","../../src/entity/flatcoin.price.one.year.ts","../../src/entity/flatcoin.price.ts"],"sourcesContent":["import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1d' })\nexport class FlatcoinPriceOneDay extends FlatcoinPriceParent {}\n","import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';\n\n@Entity()\nexport abstract class FlatcoinPriceParent {\n @PrimaryGeneratedColumn({ name: 'id' })\n id: number;\n\n @Column({ name: 'price_usd', type: 'numeric', precision: 30 })\n priceUsd: string;\n\n @Column({ name: 'price_usd_formatted', type: 'decimal', precision: 10, scale: 2 })\n priceUsdFormatted: number;\n\n @Column({ name: 'timestamp', type: 'numeric', precision: 25 })\n timestamp: number;\n\n @Column({ name: 'block_number', type: 'numeric', precision: 25 })\n blockNumber: number;\n}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1m' })\nexport class FlatcoinPriceOneMonth extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1w' })\nexport class FlatcoinPriceOneWeek extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1y' })\nexport class FlatcoinPriceOneYear extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices' })\nexport class FlatcoinPrice extends FlatcoinPriceParent {}\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAS,UAAAA,eAAc;;;ACAvB,SAAS,QAAQ,wBAAwB,cAAc;AAGhD,IAAe,sBAAf,MAAmC;AAe1C;AAbE;AAAA,EADC,uBAAuB,EAAE,MAAM,KAAK,CAAC;AAAA,GADlB,oBAEpB;AAGA;AAAA,EADC,OAAO,EAAE,MAAM,aAAa,MAAM,WAAW,WAAW,GAAG,CAAC;AAAA,GAJzC,oBAKpB;AAGA;AAAA,EADC,OAAO,EAAE,MAAM,uBAAuB,MAAM,WAAW,WAAW,IAAI,OAAO,EAAE,CAAC;AAAA,GAP7D,oBAQpB;AAGA;AAAA,EADC,OAAO,EAAE,MAAM,aAAa,MAAM,WAAW,WAAW,GAAG,CAAC;AAAA,GAVzC,oBAWpB;AAGA;AAAA,EADC,OAAO,EAAE,MAAM,gBAAgB,MAAM,WAAW,WAAW,GAAG,CAAC;AAAA,GAb5C,oBAcpB;AAdoB,sBAAf;AAAA,EADN,OAAO;AAAA,GACc;;;ADCf,IAAM,sBAAN,cAAkC,oBAAoB;AAAC;AAAjD,sBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,qBAAqB,CAAC;AAAA,GACzB;;;AEJb,SAAS,UAAAC,eAAc;AAIhB,IAAM,wBAAN,cAAoC,oBAAoB;AAAC;AAAnD,wBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,qBAAqB,CAAC;AAAA,GACzB;;;ACJb,SAAS,UAAAC,eAAc;AAIhB,IAAM,uBAAN,cAAmC,oBAAoB;AAAC;AAAlD,uBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,qBAAqB,CAAC;AAAA,GACzB;;;ACJb,SAAS,UAAAC,eAAc;AAIhB,IAAM,uBAAN,cAAmC,oBAAoB;AAAC;AAAlD,uBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,qBAAqB,CAAC;AAAA,GACzB;;;ACJb,SAAS,UAAAC,eAAc;AAIhB,IAAM,gBAAN,cAA4B,oBAAoB;AAAC;AAA3C,gBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,kBAAkB,CAAC;AAAA,GACtB;","names":["Entity","Entity","Entity","Entity","Entity","Entity","Entity","Entity","Entity","Entity"]}
1
+ {"version":3,"sources":["../../src/entity/flatcoin.price.one.day.ts","../../src/entity/flatcoin.price.parent.ts","../../src/entity/flatcoin.price.one.month.ts","../../src/entity/flatcoin.price.one.week.ts","../../src/entity/flatcoin.price.one.year.ts","../../src/entity/flatcoin.price.ts"],"sourcesContent":["import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1d' })\nexport class FlatcoinPriceOneDay extends FlatcoinPriceParent {}\n","import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';\nimport { Field, ObjectType } from '@nestjs/graphql';\n\n@ObjectType()\n@Entity()\nexport abstract class FlatcoinPriceParent {\n @PrimaryGeneratedColumn({ name: 'id' })\n id: number;\n\n @Field()\n @Column({ name: 'price_usd', type: 'numeric', precision: 30 })\n priceUsd: string;\n\n @Field()\n @Column({ name: 'price_usd_formatted', type: 'decimal', precision: 10, scale: 2 })\n priceUsdFormatted: number;\n\n @Field()\n @Column({ name: 'timestamp', type: 'numeric', precision: 25 })\n timestamp: number;\n\n @Column({ name: 'block_number', type: 'numeric', precision: 25 })\n blockNumber: number;\n}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1m' })\nexport class FlatcoinPriceOneMonth extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1w' })\nexport class FlatcoinPriceOneWeek extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1y' })\nexport class FlatcoinPriceOneYear extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices' })\nexport class FlatcoinPrice extends FlatcoinPriceParent {}\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAS,UAAAA,eAAc;;;ACAvB,SAAS,QAAQ,wBAAwB,cAAc;AACvD,SAAS,OAAO,kBAAkB;AAI3B,IAAe,sBAAf,MAAmC;AAkB1C;AAhBE;AAAA,EADC,uBAAuB,EAAE,MAAM,KAAK,CAAC;AAAA,GADlB,oBAEpB;AAIA;AAAA,EAFC,MAAM;AAAA,EACN,OAAO,EAAE,MAA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
  "name": "@dhedge/backend-flatcoin-core",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Backend Flatcoin Core",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,14 +21,16 @@
21
21
  "/dist"
22
22
  ],
23
23
  "sideEffects": false,
24
- "peerDependencies": {
25
- "typeorm": "^0.3.17"
26
- },
24
+ "peerDependencies": {},
27
25
  "peerDependenciesMeta": {
28
26
  "typescript": {
29
27
  "optional": true
30
28
  }
31
29
  },
30
+ "dependencies": {
31
+ "typeorm": "^0.3.17",
32
+ "@nestjs/graphql": "^12.0.9"
33
+ },
32
34
  "devDependencies": {
33
35
  "@types/dedent": "^0.7.0",
34
36
  "@types/fs-extra": "^11.0.1",