@ibiliaze/global-vars 1.76.0 → 1.78.0

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.
@@ -1,4 +1,3 @@
1
- import { Types } from 'mongoose';
2
1
  export type ISODateString = string;
3
2
  export interface SeatBase<Id, TDate> {
4
3
  _id?: Id;
@@ -417,23 +416,23 @@ export interface JobBase<Id, TDate> {
417
416
  }
418
417
  export interface AgendaJob<Id, TDate> {
419
418
  attrs: {
420
- _id: Types.ObjectId;
419
+ _id: Id;
421
420
  data: AgendaJobData<Id, TDate>;
422
421
  };
423
422
  }
424
423
  export interface AgendaJobData<Id, TDate> {
425
- id?: Id;
424
+ id?: string | undefined;
426
425
  type: 'emailCampaign' | 'paymentReminder' | 'eventReminder';
427
426
  paymentReminder?: {
428
- quoteId: Types.ObjectId;
427
+ quoteId: Id;
429
428
  quoteRef: string;
430
429
  to: string;
431
430
  subject: string;
432
431
  name: string;
433
432
  } & PaymentBase;
434
433
  emailCampaign?: {
435
- campaignId: Types.ObjectId;
436
- groupId: Types.ObjectId;
434
+ campaignId: Id;
435
+ groupId: Id;
437
436
  } & CampaignStageBase<Id>;
438
437
  eventReminder?: {
439
438
  reminder: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.76.0",
3
+ "version": "1.78.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -21,14 +21,13 @@
21
21
  "scripts": {
22
22
  "build": "tsc",
23
23
  "pub": "npm publish --access public",
24
- "git": "git add .; git commit -m 'changes'; git tag -a v1.76.0 -m 'v1.76.0'; git push origin v1.76.0; git push",
24
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.78.0 -m 'v1.78.0'; git push origin v1.78.0; git push",
25
25
  "push": "npm run build; npm run git; npm run pub"
26
26
  },
27
27
  "author": "Ibi Hasanli",
28
28
  "license": "ISC",
29
29
  "devDependencies": {
30
30
  "@tabler/icons-react": "^3.35.0",
31
- "mongoose": "^8.19.3",
32
31
  "typescript": "^5.0.0"
33
32
  }
34
33
  }