@driveflux/config 1.4.3 → 1.4.5

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/backend.d.ts CHANGED
@@ -34,13 +34,13 @@ export declare const ConfigValidation: z.ZodObject<{
34
34
  knowledgeBaseIndex: z.ZodString;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  appId: string;
37
- searchKey: string;
38
37
  adminKey: string;
38
+ searchKey: string;
39
39
  knowledgeBaseIndex: string;
40
40
  }, {
41
41
  appId: string;
42
- searchKey: string;
43
42
  adminKey: string;
43
+ searchKey: string;
44
44
  knowledgeBaseIndex: string;
45
45
  }>;
46
46
  upload: z.ZodObject<{
@@ -376,12 +376,12 @@ export declare const ConfigValidation: z.ZodObject<{
376
376
  apiUrl: z.ZodString;
377
377
  }, "strip", z.ZodTypeAny, {
378
378
  apiUrl: string;
379
- url: string;
380
379
  token: string;
380
+ url: string;
381
381
  }, {
382
382
  apiUrl: string;
383
- url: string;
384
383
  token: string;
384
+ url: string;
385
385
  }>;
386
386
  sendSMSOutsideOfProd: z.ZodOptional<z.ZodBoolean>;
387
387
  vercel: z.ZodOptional<z.ZodObject<{
@@ -393,35 +393,10 @@ export declare const ConfigValidation: z.ZodObject<{
393
393
  }>>;
394
394
  }, "strip", z.ZodTypeAny, {
395
395
  appUrl: string;
396
+ prodAppUrl: string;
396
397
  apiUrl: string;
397
398
  reservationFee: number;
398
- stripe: {
399
- secretKey: string;
400
- apiVersion: string;
401
- webhook: {
402
- connectAccountKey: string;
403
- accountKey: string;
404
- };
405
- };
406
- graphCms: {
407
- devAuthToken: string;
408
- prodAuthToken: string;
409
- projectApi: string;
410
- };
411
399
  isProd: boolean;
412
- noStaticGenerating: boolean;
413
- algolia: {
414
- appId: string;
415
- searchKey: string;
416
- adminKey: string;
417
- knowledgeBaseIndex: string;
418
- };
419
- kv: {
420
- apiUrl: string;
421
- url: string;
422
- token: string;
423
- };
424
- prodAppUrl: string;
425
400
  tax: number;
426
401
  baseCurrency: "MYR";
427
402
  dbUrl: string;
@@ -430,6 +405,12 @@ export declare const ConfigValidation: z.ZodObject<{
430
405
  password?: string | undefined;
431
406
  templateId?: string | undefined;
432
407
  };
408
+ algolia: {
409
+ appId: string;
410
+ adminKey: string;
411
+ searchKey: string;
412
+ knowledgeBaseIndex: string;
413
+ };
433
414
  upload: {
434
415
  awsKey: string;
435
416
  awsSecret: string;
@@ -440,6 +421,14 @@ export declare const ConfigValidation: z.ZodObject<{
440
421
  secret?: string | undefined;
441
422
  debug?: boolean | undefined;
442
423
  };
424
+ stripe: {
425
+ secretKey: string;
426
+ apiVersion: string;
427
+ webhook: {
428
+ connectAccountKey: string;
429
+ accountKey: string;
430
+ };
431
+ };
443
432
  vonage: {
444
433
  apiKey?: string | undefined;
445
434
  apiSecret?: string | undefined;
@@ -465,6 +454,7 @@ export declare const ConfigValidation: z.ZodObject<{
465
454
  esmsChannelId?: string | undefined;
466
455
  excessMileageChannelId?: string | undefined;
467
456
  };
457
+ noStaticGenerating: boolean;
468
458
  notion: {
469
459
  secret: string;
470
460
  brandsLandingPagesDatabaseId: string;
@@ -487,6 +477,11 @@ export declare const ConfigValidation: z.ZodObject<{
487
477
  postalCode: string;
488
478
  };
489
479
  };
480
+ graphCms: {
481
+ devAuthToken: string;
482
+ prodAuthToken: string;
483
+ projectApi: string;
484
+ };
490
485
  html2pdfKey: string;
491
486
  search: {
492
487
  noIdOptimization: boolean;
@@ -512,6 +507,11 @@ export declare const ConfigValidation: z.ZodObject<{
512
507
  from: string;
513
508
  } | undefined;
514
509
  };
510
+ kv: {
511
+ apiUrl: string;
512
+ token: string;
513
+ url: string;
514
+ };
515
515
  appEnv?: string | undefined;
516
516
  tunnelUrl?: string | undefined;
517
517
  twilio?: {
@@ -526,35 +526,10 @@ export declare const ConfigValidation: z.ZodObject<{
526
526
  } | undefined;
527
527
  }, {
528
528
  appUrl: string;
529
+ prodAppUrl: string;
529
530
  apiUrl: string;
530
531
  reservationFee: number;
531
- stripe: {
532
- secretKey: string;
533
- apiVersion: string;
534
- webhook: {
535
- connectAccountKey: string;
536
- accountKey: string;
537
- };
538
- };
539
- graphCms: {
540
- devAuthToken: string;
541
- prodAuthToken: string;
542
- projectApi: string;
543
- };
544
532
  isProd: boolean;
545
- noStaticGenerating: boolean;
546
- algolia: {
547
- appId: string;
548
- searchKey: string;
549
- adminKey: string;
550
- knowledgeBaseIndex: string;
551
- };
552
- kv: {
553
- apiUrl: string;
554
- url: string;
555
- token: string;
556
- };
557
- prodAppUrl: string;
558
533
  tax: number;
559
534
  baseCurrency: "MYR";
560
535
  dbUrl: string;
@@ -563,6 +538,12 @@ export declare const ConfigValidation: z.ZodObject<{
563
538
  password?: string | undefined;
564
539
  templateId?: string | undefined;
565
540
  };
541
+ algolia: {
542
+ appId: string;
543
+ adminKey: string;
544
+ searchKey: string;
545
+ knowledgeBaseIndex: string;
546
+ };
566
547
  upload: {
567
548
  awsKey: string;
568
549
  awsSecret: string;
@@ -573,6 +554,14 @@ export declare const ConfigValidation: z.ZodObject<{
573
554
  secret?: string | undefined;
574
555
  debug?: boolean | undefined;
575
556
  };
557
+ stripe: {
558
+ secretKey: string;
559
+ apiVersion: string;
560
+ webhook: {
561
+ connectAccountKey: string;
562
+ accountKey: string;
563
+ };
564
+ };
576
565
  vonage: {
577
566
  apiKey?: string | undefined;
578
567
  apiSecret?: string | undefined;
@@ -598,6 +587,7 @@ export declare const ConfigValidation: z.ZodObject<{
598
587
  esmsChannelId?: string | undefined;
599
588
  excessMileageChannelId?: string | undefined;
600
589
  };
590
+ noStaticGenerating: boolean;
601
591
  notion: {
602
592
  secret: string;
603
593
  brandsLandingPagesDatabaseId: string;
@@ -620,6 +610,11 @@ export declare const ConfigValidation: z.ZodObject<{
620
610
  postalCode: string;
621
611
  };
622
612
  };
613
+ graphCms: {
614
+ devAuthToken: string;
615
+ prodAuthToken: string;
616
+ projectApi: string;
617
+ };
623
618
  html2pdfKey: string;
624
619
  search: {
625
620
  noIdOptimization: boolean;
@@ -645,6 +640,11 @@ export declare const ConfigValidation: z.ZodObject<{
645
640
  from: string;
646
641
  } | undefined;
647
642
  };
643
+ kv: {
644
+ apiUrl: string;
645
+ token: string;
646
+ url: string;
647
+ };
648
648
  appEnv?: string | undefined;
649
649
  tunnelUrl?: string | undefined;
650
650
  twilio?: {
@@ -660,35 +660,10 @@ export declare const ConfigValidation: z.ZodObject<{
660
660
  }>;
661
661
  export declare const resetConfig: () => {
662
662
  appUrl: string;
663
+ prodAppUrl: string;
663
664
  apiUrl: string;
664
665
  reservationFee: number;
665
- stripe: {
666
- secretKey: string;
667
- apiVersion: string;
668
- webhook: {
669
- connectAccountKey: string;
670
- accountKey: string;
671
- };
672
- };
673
- graphCms: {
674
- devAuthToken: string;
675
- prodAuthToken: string;
676
- projectApi: string;
677
- };
678
666
  isProd: boolean;
679
- noStaticGenerating: boolean;
680
- algolia: {
681
- appId: string;
682
- searchKey: string;
683
- adminKey: string;
684
- knowledgeBaseIndex: string;
685
- };
686
- kv: {
687
- apiUrl: string;
688
- url: string;
689
- token: string;
690
- };
691
- prodAppUrl: string;
692
667
  tax: number;
693
668
  baseCurrency: "MYR";
694
669
  dbUrl: string;
@@ -697,6 +672,12 @@ export declare const resetConfig: () => {
697
672
  password?: string | undefined;
698
673
  templateId?: string | undefined;
699
674
  };
675
+ algolia: {
676
+ appId: string;
677
+ adminKey: string;
678
+ searchKey: string;
679
+ knowledgeBaseIndex: string;
680
+ };
700
681
  upload: {
701
682
  awsKey: string;
702
683
  awsSecret: string;
@@ -707,6 +688,14 @@ export declare const resetConfig: () => {
707
688
  secret?: string | undefined;
708
689
  debug?: boolean | undefined;
709
690
  };
691
+ stripe: {
692
+ secretKey: string;
693
+ apiVersion: string;
694
+ webhook: {
695
+ connectAccountKey: string;
696
+ accountKey: string;
697
+ };
698
+ };
710
699
  vonage: {
711
700
  apiKey?: string | undefined;
712
701
  apiSecret?: string | undefined;
@@ -732,6 +721,7 @@ export declare const resetConfig: () => {
732
721
  esmsChannelId?: string | undefined;
733
722
  excessMileageChannelId?: string | undefined;
734
723
  };
724
+ noStaticGenerating: boolean;
735
725
  notion: {
736
726
  secret: string;
737
727
  brandsLandingPagesDatabaseId: string;
@@ -754,6 +744,11 @@ export declare const resetConfig: () => {
754
744
  postalCode: string;
755
745
  };
756
746
  };
747
+ graphCms: {
748
+ devAuthToken: string;
749
+ prodAuthToken: string;
750
+ projectApi: string;
751
+ };
757
752
  html2pdfKey: string;
758
753
  search: {
759
754
  noIdOptimization: boolean;
@@ -779,6 +774,11 @@ export declare const resetConfig: () => {
779
774
  from: string;
780
775
  } | undefined;
781
776
  };
777
+ kv: {
778
+ apiUrl: string;
779
+ token: string;
780
+ url: string;
781
+ };
782
782
  appEnv?: string | undefined;
783
783
  tunnelUrl?: string | undefined;
784
784
  twilio?: {
@@ -45,13 +45,13 @@ export declare const ConfigValidation: z.ZodObject<{
45
45
  appId: z.ZodString;
46
46
  searchKey: z.ZodString;
47
47
  }, "strip", z.ZodTypeAny, {
48
- vehicleIndexName: string;
49
48
  appId: string;
50
49
  searchKey: string;
51
- }, {
52
50
  vehicleIndexName: string;
51
+ }, {
53
52
  appId: string;
54
53
  searchKey: string;
54
+ vehicleIndexName: string;
55
55
  }>;
56
56
  kv: z.ZodObject<{
57
57
  url: z.ZodString;
@@ -59,111 +59,111 @@ export declare const ConfigValidation: z.ZodObject<{
59
59
  apiUrl: z.ZodString;
60
60
  }, "strip", z.ZodTypeAny, {
61
61
  apiUrl: string;
62
- url: string;
63
62
  token: string;
63
+ url: string;
64
64
  }, {
65
65
  apiUrl: string;
66
- url: string;
67
66
  token: string;
67
+ url: string;
68
68
  }>;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  appUrl: string;
71
+ appEnv: string;
71
72
  apiUrl: string;
72
- taxRate: number;
73
73
  reservationFee: number;
74
- currency: string;
74
+ isProd: boolean;
75
+ algolia: {
76
+ appId: string;
77
+ searchKey: string;
78
+ vehicleIndexName: string;
79
+ };
75
80
  stripe: {
76
81
  publishableKey: string;
77
82
  connectClientId: string;
78
83
  };
79
- secureCookies: boolean;
80
- appEnv: string;
84
+ noStaticGenerating: boolean;
81
85
  graphCms: {
82
86
  devAuthToken: string;
83
87
  prodAuthToken: string;
84
88
  projectApi: string;
85
89
  };
86
- isProd: boolean;
87
- noStaticGenerating: boolean;
88
- metaPixelId: string;
89
- waNumber: string;
90
- algolia: {
91
- vehicleIndexName: string;
92
- appId: string;
93
- searchKey: string;
94
- };
90
+ secureCookies: boolean;
95
91
  kv: {
96
92
  apiUrl: string;
97
- url: string;
98
93
  token: string;
94
+ url: string;
99
95
  };
96
+ taxRate: number;
97
+ currency: string;
98
+ metaPixelId: string;
99
+ waNumber: string;
100
100
  gtmCode?: string | undefined;
101
101
  gtmCodeOld?: string | undefined;
102
102
  }, {
103
103
  appUrl: string;
104
+ appEnv: string;
104
105
  apiUrl: string;
105
- taxRate: number;
106
106
  reservationFee: number;
107
- currency: string;
107
+ isProd: boolean;
108
+ algolia: {
109
+ appId: string;
110
+ searchKey: string;
111
+ vehicleIndexName: string;
112
+ };
108
113
  stripe: {
109
114
  publishableKey: string;
110
115
  connectClientId: string;
111
116
  };
112
- secureCookies: boolean;
113
- appEnv: string;
117
+ noStaticGenerating: boolean;
114
118
  graphCms: {
115
119
  devAuthToken: string;
116
120
  prodAuthToken: string;
117
121
  projectApi: string;
118
122
  };
119
- isProd: boolean;
120
- noStaticGenerating: boolean;
121
- metaPixelId: string;
122
- waNumber: string;
123
- algolia: {
124
- vehicleIndexName: string;
125
- appId: string;
126
- searchKey: string;
127
- };
123
+ secureCookies: boolean;
128
124
  kv: {
129
125
  apiUrl: string;
130
- url: string;
131
126
  token: string;
127
+ url: string;
132
128
  };
129
+ taxRate: number;
130
+ currency: string;
131
+ metaPixelId: string;
132
+ waNumber: string;
133
133
  gtmCode?: string | undefined;
134
134
  gtmCodeOld?: string | undefined;
135
135
  }>;
136
136
  export declare const resetConfig: () => {
137
137
  appUrl: string;
138
+ appEnv: string;
138
139
  apiUrl: string;
139
- taxRate: number;
140
140
  reservationFee: number;
141
- currency: string;
141
+ isProd: boolean;
142
+ algolia: {
143
+ appId: string;
144
+ searchKey: string;
145
+ vehicleIndexName: string;
146
+ };
142
147
  stripe: {
143
148
  publishableKey: string;
144
149
  connectClientId: string;
145
150
  };
146
- secureCookies: boolean;
147
- appEnv: string;
151
+ noStaticGenerating: boolean;
148
152
  graphCms: {
149
153
  devAuthToken: string;
150
154
  prodAuthToken: string;
151
155
  projectApi: string;
152
156
  };
153
- isProd: boolean;
154
- noStaticGenerating: boolean;
155
- metaPixelId: string;
156
- waNumber: string;
157
- algolia: {
158
- vehicleIndexName: string;
159
- appId: string;
160
- searchKey: string;
161
- };
157
+ secureCookies: boolean;
162
158
  kv: {
163
159
  apiUrl: string;
164
- url: string;
165
160
  token: string;
161
+ url: string;
166
162
  };
163
+ taxRate: number;
164
+ currency: string;
165
+ metaPixelId: string;
166
+ waNumber: string;
167
167
  gtmCode?: string | undefined;
168
168
  gtmCodeOld?: string | undefined;
169
169
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/config",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./backend": {
@@ -20,7 +20,7 @@
20
20
  "dist"
21
21
  ],
22
22
  "dependencies": {
23
- "@driveflux/singleton": "1.3.0",
23
+ "@driveflux/singleton": "1.4.0",
24
24
  "zod": "^3.23.8"
25
25
  },
26
26
  "devDependencies": {