@tiquo/dom-package 1.3.1 → 1.3.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.
package/README.md CHANGED
@@ -174,7 +174,7 @@ const completedOrders = await auth.getOrders({ status: 'completed' });
174
174
  **Options:**
175
175
  - `limit` - Number of orders to return (max 100, default 50)
176
176
  - `cursor` - Order ID to start after (for pagination)
177
- - `status` - Filter by status: `draft`, `pending`, `confirmed`, `processing`, `completed`, `cancelled`, `refunded`, `open_tab`
177
+ - `status` - Filter by status: `draft`, `pending`, `processing`, `completed`, `cancelled`, `refunded`, `open_tab`
178
178
 
179
179
  **Returns:**
180
180
  - `orders` - Array of order objects with items, totals, and status
package/dist/index.d.mts CHANGED
@@ -325,7 +325,7 @@ interface TiquoOrderItem {
325
325
  interface TiquoOrder {
326
326
  id: string;
327
327
  orderNumber: string;
328
- status: 'draft' | 'pending' | 'confirmed' | 'processing' | 'completed' | 'cancelled' | 'refunded' | 'open_tab';
328
+ status: 'draft' | 'pending' | 'processing' | 'completed' | 'cancelled' | 'refunded' | 'open_tab';
329
329
  paymentStatus: 'pending' | 'paid' | 'partial' | 'refunded' | 'partially_refunded' | 'failed' | 'cancelled';
330
330
  total: number;
331
331
  subtotal: number;
package/dist/index.d.ts CHANGED
@@ -325,7 +325,7 @@ interface TiquoOrderItem {
325
325
  interface TiquoOrder {
326
326
  id: string;
327
327
  orderNumber: string;
328
- status: 'draft' | 'pending' | 'confirmed' | 'processing' | 'completed' | 'cancelled' | 'refunded' | 'open_tab';
328
+ status: 'draft' | 'pending' | 'processing' | 'completed' | 'cancelled' | 'refunded' | 'open_tab';
329
329
  paymentStatus: 'pending' | 'paid' | 'partial' | 'refunded' | 'partially_refunded' | 'failed' | 'cancelled';
330
330
  total: number;
331
331
  subtotal: number;
package/dist/index.js CHANGED
@@ -650,6 +650,33 @@ function buildPhone(countryCode, nationalNumber) {
650
650
  }
651
651
 
652
652
  // src/index.ts
653
+ var _brandingPrinted = false;
654
+ function printTiquoBranding() {
655
+ if (_brandingPrinted) return;
656
+ if (typeof window === "undefined" || typeof console === "undefined") return;
657
+ _brandingPrinted = true;
658
+ try {
659
+ const art = [
660
+ " _ _ ",
661
+ "| |_(_) __ _ _ _ ___ ",
662
+ "| __| |/ _` | | | |/ _ \\ ",
663
+ "| |_| | (_| | |_| | (_) |",
664
+ " \\__|_|\\__, |\\__,_|\\___/ ",
665
+ " |_| "
666
+ ].join("\n");
667
+ console.log(
668
+ `%c${art}`,
669
+ "color:#6d28d9;font-weight:bold;font-size:12px;font-family:monospace"
670
+ );
671
+ console.log(
672
+ "%cLearn more at %chttps://tiquo.co",
673
+ "color:#6d28d9;font-size:11px",
674
+ "color:#6d28d9;font-size:11px;text-decoration:underline"
675
+ );
676
+ } catch {
677
+ }
678
+ }
679
+ printTiquoBranding();
653
680
  var TiquoAuthError = class extends Error {
654
681
  constructor(message, code, statusCode) {
655
682
  super(message);
@@ -688,6 +715,7 @@ var TiquoAuth = class {
688
715
  // Multi-tab sync
689
716
  this.broadcastChannel = null;
690
717
  this.isProcessingTabSync = false;
718
+ printTiquoBranding();
691
719
  if (!config.publicKey) {
692
720
  throw new TiquoAuthError("publicKey is required", "MISSING_PUBLIC_KEY");
693
721
  }
package/dist/index.mjs CHANGED
@@ -614,6 +614,33 @@ function buildPhone(countryCode, nationalNumber) {
614
614
  }
615
615
 
616
616
  // src/index.ts
617
+ var _brandingPrinted = false;
618
+ function printTiquoBranding() {
619
+ if (_brandingPrinted) return;
620
+ if (typeof window === "undefined" || typeof console === "undefined") return;
621
+ _brandingPrinted = true;
622
+ try {
623
+ const art = [
624
+ " _ _ ",
625
+ "| |_(_) __ _ _ _ ___ ",
626
+ "| __| |/ _` | | | |/ _ \\ ",
627
+ "| |_| | (_| | |_| | (_) |",
628
+ " \\__|_|\\__, |\\__,_|\\___/ ",
629
+ " |_| "
630
+ ].join("\n");
631
+ console.log(
632
+ `%c${art}`,
633
+ "color:#6d28d9;font-weight:bold;font-size:12px;font-family:monospace"
634
+ );
635
+ console.log(
636
+ "%cLearn more at %chttps://tiquo.co",
637
+ "color:#6d28d9;font-size:11px",
638
+ "color:#6d28d9;font-size:11px;text-decoration:underline"
639
+ );
640
+ } catch {
641
+ }
642
+ }
643
+ printTiquoBranding();
617
644
  var TiquoAuthError = class extends Error {
618
645
  constructor(message, code, statusCode) {
619
646
  super(message);
@@ -652,6 +679,7 @@ var TiquoAuth = class {
652
679
  // Multi-tab sync
653
680
  this.broadcastChannel = null;
654
681
  this.isProcessingTabSync = false;
682
+ printTiquoBranding();
655
683
  if (!config.publicKey) {
656
684
  throw new TiquoAuthError("publicKey is required", "MISSING_PUBLIC_KEY");
657
685
  }
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@tiquo/dom-package",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Tiquo SDK for third-party websites - authentication, customer profiles, orders, bookings, and enquiries",
5
+ "sideEffects": true,
5
6
  "publishConfig": {
6
7
  "access": "restricted"
7
8
  },