@duvdu-v1/duvdu 1.1.293 → 1.1.295

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.
@@ -58,6 +58,7 @@ export interface IcopyrightContract {
58
58
  lng: number;
59
59
  };
60
60
  address: string;
61
+ ticketNumber: string;
61
62
  totalPrice: number;
62
63
  deadline: Date;
63
64
  startDate: Date;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CopyrightContracts = exports.RequestedDeadlineStatus = exports.SubmitFilesStatus = exports.CopyrightContractStatus = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
+ const all_contracts_model_1 = require("./all-contracts.model");
5
6
  const model_names_1 = require("../types/model-names");
6
7
  var CopyrightContractStatus;
7
8
  (function (CopyrightContractStatus) {
@@ -32,6 +33,7 @@ exports.CopyrightContracts = (0, mongoose_1.model)(model_names_1.MODELS.copyrigh
32
33
  sp: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
33
34
  project: { type: mongoose_1.Schema.Types.ObjectId, ref: 'rentals' },
34
35
  details: { type: String, default: null },
36
+ ticketNumber: { type: String, default: all_contracts_model_1.generateTicketNumber, unique: true, sparse: true },
35
37
  attachments: [String],
36
38
  location: { lat: Number, lng: Number },
37
39
  address: { type: String, default: null },
@@ -46,6 +46,7 @@ export interface IcopyrightsBooking {
46
46
  };
47
47
  state: BookingState;
48
48
  paymentSession: string;
49
+ ticketNumber: string;
49
50
  }
50
51
  export declare const CopyrightsBooking: import("mongoose").Model<IcopyrightsBooking, {}, {}, {}, import("mongoose").Document<unknown, {}, IcopyrightsBooking> & IcopyrightsBooking & {
51
52
  _id: Types.ObjectId;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CopyrightsBooking = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
+ const all_contracts_model_1 = require("./all-contracts.model");
5
6
  const booking_states_1 = require("../types/booking-states");
6
7
  const model_names_1 = require("../types/model-names");
7
8
  exports.CopyrightsBooking = (0, mongoose_1.model)(model_names_1.MODELS.copyrightsBooking, new mongoose_1.Schema({
@@ -10,6 +11,7 @@ exports.CopyrightsBooking = (0, mongoose_1.model)(model_names_1.MODELS.copyright
10
11
  project: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user, required: true },
11
12
  jobDetails: { type: String, default: null },
12
13
  deadline: { type: Date, required: true },
14
+ ticketNumber: { type: String, default: all_contracts_model_1.generateTicketNumber, unique: true, sparse: true },
13
15
  totalPrice: { type: Number, required: true },
14
16
  address: { type: String, default: null },
15
17
  location: { lat: { type: String, required: true }, lng: { type: String, required: true } },
@@ -28,6 +28,7 @@ import { Iuser } from '../types/User';
28
28
  export interface IcopyRights {
29
29
  id: string;
30
30
  user: Types.ObjectId | Iuser;
31
+ ticketNumber: string;
31
32
  category: Types.ObjectId | Icategory;
32
33
  price: number;
33
34
  duration: {
@@ -2,12 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CopyRights = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
+ const all_contracts_model_1 = require("./all-contracts.model");
5
6
  const cycles_1 = require("../types/cycles");
6
7
  const model_names_1 = require("../types/model-names");
7
8
  exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new mongoose_1.Schema({
8
9
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
9
10
  category: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.category },
10
11
  price: { type: Number, default: 0 },
12
+ ticketNumber: { type: String, default: all_contracts_model_1.generateTicketNumber, unique: true, sparse: true },
11
13
  duration: { value: Number, unit: String },
12
14
  address: { type: String, default: null },
13
15
  searchKeywords: [String],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.293",
3
+ "version": "1.1.295",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [