@next-k8s/tickets 1.0.9 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.11](https://github.com/mathiscode/next-k8s-boilerplate/compare/@next-k8s/tickets@1.0.10...@next-k8s/tickets@1.0.11) (2022-07-06)
7
+
8
+ **Note:** Version bump only for package @next-k8s/tickets
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.10](https://github.com/mathiscode/next-k8s-boilerplate/compare/@next-k8s/tickets@1.0.9...@next-k8s/tickets@1.0.10) (2022-07-06)
15
+
16
+ **Note:** Version bump only for package @next-k8s/tickets
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.0.9](https://github.com/mathiscode/next-k8s-boilerplate/compare/@next-k8s/tickets@1.0.8...@next-k8s/tickets@1.0.9) (2022-07-06)
7
23
 
8
24
  **Note:** Version bump only for package @next-k8s/tickets
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@next-k8s/tickets",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "start": "ts-node-dev --transpile-only --exit-child --watch src src/index.ts",
8
8
  "build": "tsc",
9
9
  "test": "jest --no-cache",
10
- "test:watch": "jest --watchAll --no-cache"
10
+ "test:watch": "jest --watchAll --no-cache",
11
+ "docker:build": "docker build -t mathiscode/k8s-boilerplate-service-tickets .",
12
+ "docker:push": "docker push mathiscode/k8s-boilerplate-service-tickets"
11
13
  },
12
14
  "publishConfig": {
13
15
  "access": "public"
@@ -23,7 +25,7 @@
23
25
  ]
24
26
  },
25
27
  "dependencies": {
26
- "@next-k8s/common": "^0.1.23",
28
+ "@next-k8s/common": "^0.1.25",
27
29
  "@types/cookie-session": "^2.0.44",
28
30
  "@types/express": "^4.17.13",
29
31
  "@types/jsonwebtoken": "^8.5.8",
@@ -49,5 +51,5 @@
49
51
  "supertest": "^6.2.3",
50
52
  "ts-jest": "^28.0.4"
51
53
  },
52
- "gitHead": "e28ae26195b5a105e974ff366741832500b17b31"
54
+ "gitHead": "7fc87749fce185fdbc25c93c64eb8439af70910f"
53
55
  }
@@ -1,9 +1,9 @@
1
- import mongoose from 'mongoose'
1
+ import mongoose, { ObjectId } from 'mongoose'
2
2
 
3
3
  interface TicketAttributes {
4
4
  title: String;
5
5
  price: Number;
6
- owner: String;
6
+ owner: ObjectId;
7
7
  createdAt?: Date;
8
8
  updatedAt?: Date;
9
9
  }
@@ -1,5 +1,3 @@
1
- import express, { Request, Response } from 'express'
2
-
3
1
  import getTicket from './get'
4
2
  import findTickets from './find'
5
3
  import createTicket from './create'