@7365admin1/core 3.50.2-staging.223 → 3.50.2-staging.224

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.
package/dist/index.d.ts CHANGED
@@ -5464,6 +5464,15 @@ type TPatrolEmail = {
5464
5464
  * absolute URL here — see `validate-pdf-url.ts` in the API package.
5465
5465
  */
5466
5466
  sourceUrl?: string;
5467
+ /**
5468
+ * Which client asked for the send. Audit data, in the same vocabulary the
5469
+ * patrol log and incident report rows use.
5470
+ *
5471
+ * Deliberately **not** what `send` branches on — the presence of an uploaded
5472
+ * file is. A caller who mislabels this gets a mislabelled audit row, not a
5473
+ * different code path.
5474
+ */
5475
+ platform?: "web" | "mobile";
5467
5476
  status?: "sent" | "failed" | "deleted";
5468
5477
  /**
5469
5478
  * Set when this record was created by resending an earlier one.
@@ -5512,6 +5521,7 @@ declare function MPatrolEmail(value: TPatrolEmail): {
5512
5521
  url?: string | undefined;
5513
5522
  } | null;
5514
5523
  sourceUrl: string;
5524
+ platform: "web" | "mobile";
5515
5525
  status: "deleted" | "failed" | "sent";
5516
5526
  sourceEmail: string | ObjectId | null;
5517
5527
  createdBy: {
@@ -5545,9 +5555,15 @@ declare function usePatrolEmailRepo(): {
5545
5555
  url?: string | undefined;
5546
5556
  } | undefined;
5547
5557
  sourceUrl?: string | undefined;
5558
+ platform?: "web" | "mobile" | undefined;
5548
5559
  status?: "deleted" | "failed" | "sent" | undefined;
5549
5560
  sourceEmail?: string | ObjectId | null | undefined;
5550
- createdBy: TPatrolEmailCreatedBy;
5561
+ createdBy: TPatrolEmailCreatedBy; /**
5562
+ * How many sends this person has started since `since`.
5563
+ *
5564
+ * Served by the `{ "createdBy._id": 1, createdAt: -1 }` index. Soft-deleted
5565
+ * rows still count: deleting the record is not a way to buy more sends.
5566
+ */
5551
5567
  createdAt?: string | undefined;
5552
5568
  updatedAt?: string | undefined;
5553
5569
  deletedAt?: string | undefined;
@@ -5612,12 +5628,14 @@ declare function renderPagePdf({ url, title, cookieHeader, appKey, landscape, ti
5612
5628
  }): Promise<Uint8Array>;
5613
5629
 
5614
5630
  declare function usePatrolEmailService(): {
5615
- send: ({ site, subject, recipients, logs, url, createdBy, cookieHeader, appKey, }: {
5631
+ send: ({ site, subject, recipients, logs, url, pdfFile, platform, createdBy, cookieHeader, appKey, }: {
5616
5632
  site: string;
5617
5633
  subject: string;
5618
5634
  recipients: string[];
5619
5635
  logs: string[];
5620
- url: string;
5636
+ url?: string | undefined;
5637
+ pdfFile?: string | undefined;
5638
+ platform?: "web" | "mobile" | undefined;
5621
5639
  createdBy: TPatrolEmailCreatedBy;
5622
5640
  cookieHeader?: string | undefined;
5623
5641
  appKey?: "PROPERTY" | "SECURITY" | "HYGIENE" | "MECHANICAL_ELECTRICAL" | "PEST_CONTROL" | "LANDSCAPING" | "POOL_MAINTENANCE" | undefined;
@@ -5625,7 +5643,7 @@ declare function usePatrolEmailService(): {
5625
5643
  _id: ObjectId | undefined;
5626
5644
  pdf: {
5627
5645
  file: string;
5628
- filename: string;
5646
+ filename: any;
5629
5647
  url: string;
5630
5648
  };
5631
5649
  status: "sent";
@@ -5636,6 +5654,7 @@ declare function usePatrolEmailService(): {
5636
5654
  logs: TPatrolEmailLogRef[];
5637
5655
  logCount: number;
5638
5656
  sourceUrl?: string | undefined;
5657
+ platform?: "web" | "mobile" | undefined;
5639
5658
  sourceEmail?: string | ObjectId | null | undefined;
5640
5659
  createdBy: TPatrolEmailCreatedBy;
5641
5660
  createdAt?: string | undefined;
@@ -5658,6 +5677,7 @@ declare function usePatrolEmailService(): {
5658
5677
  logs: TPatrolEmailLogRef[];
5659
5678
  logCount: number;
5660
5679
  sourceUrl?: string | undefined;
5680
+ platform?: "web" | "mobile" | undefined;
5661
5681
  sourceEmail?: string | ObjectId | null | undefined;
5662
5682
  createdBy: TPatrolEmailCreatedBy;
5663
5683
  createdAt?: string | undefined;