@driveflux/config 1.4.1 → 1.4.3

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
- adminKey: string;
38
37
  searchKey: string;
38
+ adminKey: string;
39
39
  knowledgeBaseIndex: string;
40
40
  }, {
41
41
  appId: string;
42
- adminKey: string;
43
42
  searchKey: string;
43
+ adminKey: string;
44
44
  knowledgeBaseIndex: string;
45
45
  }>;
46
46
  upload: z.ZodObject<{
@@ -147,6 +147,7 @@ export declare const ConfigValidation: z.ZodObject<{
147
147
  comingServicesChannelId: z.ZodString | z.ZodOptional<z.ZodString>;
148
148
  engineeringRequestsChannel: z.ZodString | z.ZodOptional<z.ZodString>;
149
149
  esmsChannelId: z.ZodString | z.ZodOptional<z.ZodString>;
150
+ excessMileageChannelId: z.ZodString | z.ZodOptional<z.ZodString>;
150
151
  }, "strip", z.ZodTypeAny, {
151
152
  token?: string | undefined;
152
153
  signingSecret?: string | undefined;
@@ -162,6 +163,7 @@ export declare const ConfigValidation: z.ZodObject<{
162
163
  comingServicesChannelId?: string | undefined;
163
164
  engineeringRequestsChannel?: string | undefined;
164
165
  esmsChannelId?: string | undefined;
166
+ excessMileageChannelId?: string | undefined;
165
167
  }, {
166
168
  token?: string | undefined;
167
169
  signingSecret?: string | undefined;
@@ -177,6 +179,7 @@ export declare const ConfigValidation: z.ZodObject<{
177
179
  comingServicesChannelId?: string | undefined;
178
180
  engineeringRequestsChannel?: string | undefined;
179
181
  esmsChannelId?: string | undefined;
182
+ excessMileageChannelId?: string | undefined;
180
183
  }>;
181
184
  noStaticGenerating: z.ZodBoolean;
182
185
  notion: z.ZodObject<{
@@ -367,6 +370,19 @@ export declare const ConfigValidation: z.ZodObject<{
367
370
  from: string;
368
371
  } | undefined;
369
372
  }>;
373
+ kv: z.ZodObject<{
374
+ url: z.ZodString;
375
+ token: z.ZodString;
376
+ apiUrl: z.ZodString;
377
+ }, "strip", z.ZodTypeAny, {
378
+ apiUrl: string;
379
+ url: string;
380
+ token: string;
381
+ }, {
382
+ apiUrl: string;
383
+ url: string;
384
+ token: string;
385
+ }>;
370
386
  sendSMSOutsideOfProd: z.ZodOptional<z.ZodBoolean>;
371
387
  vercel: z.ZodOptional<z.ZodObject<{
372
388
  cronSecret: z.ZodOptional<z.ZodString>;
@@ -377,10 +393,35 @@ export declare const ConfigValidation: z.ZodObject<{
377
393
  }>>;
378
394
  }, "strip", z.ZodTypeAny, {
379
395
  appUrl: string;
380
- prodAppUrl: string;
381
396
  apiUrl: string;
382
397
  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
+ };
383
411
  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;
384
425
  tax: number;
385
426
  baseCurrency: "MYR";
386
427
  dbUrl: string;
@@ -389,12 +430,6 @@ export declare const ConfigValidation: z.ZodObject<{
389
430
  password?: string | undefined;
390
431
  templateId?: string | undefined;
391
432
  };
392
- algolia: {
393
- appId: string;
394
- adminKey: string;
395
- searchKey: string;
396
- knowledgeBaseIndex: string;
397
- };
398
433
  upload: {
399
434
  awsKey: string;
400
435
  awsSecret: string;
@@ -405,14 +440,6 @@ export declare const ConfigValidation: z.ZodObject<{
405
440
  secret?: string | undefined;
406
441
  debug?: boolean | undefined;
407
442
  };
408
- stripe: {
409
- secretKey: string;
410
- apiVersion: string;
411
- webhook: {
412
- connectAccountKey: string;
413
- accountKey: string;
414
- };
415
- };
416
443
  vonage: {
417
444
  apiKey?: string | undefined;
418
445
  apiSecret?: string | undefined;
@@ -436,8 +463,8 @@ export declare const ConfigValidation: z.ZodObject<{
436
463
  comingServicesChannelId?: string | undefined;
437
464
  engineeringRequestsChannel?: string | undefined;
438
465
  esmsChannelId?: string | undefined;
466
+ excessMileageChannelId?: string | undefined;
439
467
  };
440
- noStaticGenerating: boolean;
441
468
  notion: {
442
469
  secret: string;
443
470
  brandsLandingPagesDatabaseId: string;
@@ -460,11 +487,6 @@ export declare const ConfigValidation: z.ZodObject<{
460
487
  postalCode: string;
461
488
  };
462
489
  };
463
- graphCms: {
464
- devAuthToken: string;
465
- prodAuthToken: string;
466
- projectApi: string;
467
- };
468
490
  html2pdfKey: string;
469
491
  search: {
470
492
  noIdOptimization: boolean;
@@ -504,10 +526,35 @@ export declare const ConfigValidation: z.ZodObject<{
504
526
  } | undefined;
505
527
  }, {
506
528
  appUrl: string;
507
- prodAppUrl: string;
508
529
  apiUrl: string;
509
530
  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
+ };
510
544
  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;
511
558
  tax: number;
512
559
  baseCurrency: "MYR";
513
560
  dbUrl: string;
@@ -516,12 +563,6 @@ export declare const ConfigValidation: z.ZodObject<{
516
563
  password?: string | undefined;
517
564
  templateId?: string | undefined;
518
565
  };
519
- algolia: {
520
- appId: string;
521
- adminKey: string;
522
- searchKey: string;
523
- knowledgeBaseIndex: string;
524
- };
525
566
  upload: {
526
567
  awsKey: string;
527
568
  awsSecret: string;
@@ -532,14 +573,6 @@ export declare const ConfigValidation: z.ZodObject<{
532
573
  secret?: string | undefined;
533
574
  debug?: boolean | undefined;
534
575
  };
535
- stripe: {
536
- secretKey: string;
537
- apiVersion: string;
538
- webhook: {
539
- connectAccountKey: string;
540
- accountKey: string;
541
- };
542
- };
543
576
  vonage: {
544
577
  apiKey?: string | undefined;
545
578
  apiSecret?: string | undefined;
@@ -563,8 +596,8 @@ export declare const ConfigValidation: z.ZodObject<{
563
596
  comingServicesChannelId?: string | undefined;
564
597
  engineeringRequestsChannel?: string | undefined;
565
598
  esmsChannelId?: string | undefined;
599
+ excessMileageChannelId?: string | undefined;
566
600
  };
567
- noStaticGenerating: boolean;
568
601
  notion: {
569
602
  secret: string;
570
603
  brandsLandingPagesDatabaseId: string;
@@ -587,11 +620,6 @@ export declare const ConfigValidation: z.ZodObject<{
587
620
  postalCode: string;
588
621
  };
589
622
  };
590
- graphCms: {
591
- devAuthToken: string;
592
- prodAuthToken: string;
593
- projectApi: string;
594
- };
595
623
  html2pdfKey: string;
596
624
  search: {
597
625
  noIdOptimization: boolean;
@@ -632,10 +660,35 @@ export declare const ConfigValidation: z.ZodObject<{
632
660
  }>;
633
661
  export declare const resetConfig: () => {
634
662
  appUrl: string;
635
- prodAppUrl: string;
636
663
  apiUrl: string;
637
664
  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
+ };
638
678
  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;
639
692
  tax: number;
640
693
  baseCurrency: "MYR";
641
694
  dbUrl: string;
@@ -644,12 +697,6 @@ export declare const resetConfig: () => {
644
697
  password?: string | undefined;
645
698
  templateId?: string | undefined;
646
699
  };
647
- algolia: {
648
- appId: string;
649
- adminKey: string;
650
- searchKey: string;
651
- knowledgeBaseIndex: string;
652
- };
653
700
  upload: {
654
701
  awsKey: string;
655
702
  awsSecret: string;
@@ -660,14 +707,6 @@ export declare const resetConfig: () => {
660
707
  secret?: string | undefined;
661
708
  debug?: boolean | undefined;
662
709
  };
663
- stripe: {
664
- secretKey: string;
665
- apiVersion: string;
666
- webhook: {
667
- connectAccountKey: string;
668
- accountKey: string;
669
- };
670
- };
671
710
  vonage: {
672
711
  apiKey?: string | undefined;
673
712
  apiSecret?: string | undefined;
@@ -691,8 +730,8 @@ export declare const resetConfig: () => {
691
730
  comingServicesChannelId?: string | undefined;
692
731
  engineeringRequestsChannel?: string | undefined;
693
732
  esmsChannelId?: string | undefined;
733
+ excessMileageChannelId?: string | undefined;
694
734
  };
695
- noStaticGenerating: boolean;
696
735
  notion: {
697
736
  secret: string;
698
737
  brandsLandingPagesDatabaseId: string;
@@ -715,11 +754,6 @@ export declare const resetConfig: () => {
715
754
  postalCode: string;
716
755
  };
717
756
  };
718
- graphCms: {
719
- devAuthToken: string;
720
- prodAuthToken: string;
721
- projectApi: string;
722
- };
723
757
  html2pdfKey: string;
724
758
  search: {
725
759
  noIdOptimization: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,CAAC,MAAM,CAAC;IACd,IAAI,qBAAqB,EAAE,MAAM,CAAA;CACjC;AAED,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC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ED,eAAO,IAAI,MAAM,EAAE,MAAgD,CAAA;AAEnE,eAAO,MAAM,SAAS,GAAI,GAAG,SAAS,MAAM,MAAM,OAC5C,GAAG,SACD,MAAM,CAAC,GAAG,CAAC,SAGlB,CAAA"}
package/dist/backend.js CHANGED
@@ -79,7 +79,8 @@ export var ConfigValidation = z.object({
79
79
  issuesChannelId: requiredStringIfProdValidation,
80
80
  comingServicesChannelId: requiredStringIfProdValidation,
81
81
  engineeringRequestsChannel: requiredStringIfProdValidation,
82
- esmsChannelId: requiredStringIfProdValidation
82
+ esmsChannelId: requiredStringIfProdValidation,
83
+ excessMileageChannelId: requiredStringIfProdValidation
83
84
  }),
84
85
  noStaticGenerating: z.boolean(),
85
86
  notion: z.object({
@@ -137,6 +138,11 @@ export var ConfigValidation = z.object({
137
138
  from: z.string()
138
139
  }).optional()
139
140
  }),
141
+ kv: z.object({
142
+ url: z.string(),
143
+ token: z.string(),
144
+ apiUrl: z.string()
145
+ }),
140
146
  sendSMSOutsideOfProd: z.boolean().optional(),
141
147
  vercel: z.object({
142
148
  cronSecret: z.string().optional()
@@ -208,7 +214,8 @@ var getConfig = function() {
208
214
  issuesChannelId: process.env.SLACK_ISSUES_CHANNEL,
209
215
  comingServicesChannelId: process.env.SLACK_COMING_SERVICES_CHANNEL,
210
216
  engineeringRequestsChannel: process.env.SLACK_ENGINEERING_REQUESTS_CHANNEL,
211
- esmsChannelId: process.env.SLACK_ESMS_CHANNEL
217
+ esmsChannelId: process.env.SLACK_ESMS_CHANNEL,
218
+ excessMileageChannelId: process.env.SLACK_EXCESS_MILEAGE_CHANNEL
212
219
  },
213
220
  noStaticGenerating: process.env.NO_STATIC_GENERATING === 'true',
214
221
  notion: {
@@ -273,6 +280,11 @@ var getConfig = function() {
273
280
  sendSMSOutsideOfProd: process.env.SEND_SMS_OUTSIDE_OF_PROD === 'true',
274
281
  vercel: {
275
282
  cronSecret: process.env.CRON_SECRET
283
+ },
284
+ kv: {
285
+ url: process.env.KV_URL,
286
+ token: process.env.KV_REST_API_TOKEN,
287
+ apiUrl: process.env.KV_REST_API_URL
276
288
  }
277
289
  };
278
290
  };
@@ -45,97 +45,125 @@ export declare const ConfigValidation: z.ZodObject<{
45
45
  appId: z.ZodString;
46
46
  searchKey: z.ZodString;
47
47
  }, "strip", z.ZodTypeAny, {
48
+ vehicleIndexName: string;
48
49
  appId: string;
49
50
  searchKey: string;
50
- vehicleIndexName: string;
51
51
  }, {
52
+ vehicleIndexName: string;
52
53
  appId: string;
53
54
  searchKey: string;
54
- vehicleIndexName: string;
55
+ }>;
56
+ kv: z.ZodObject<{
57
+ url: z.ZodString;
58
+ token: z.ZodString;
59
+ apiUrl: z.ZodString;
60
+ }, "strip", z.ZodTypeAny, {
61
+ apiUrl: string;
62
+ url: string;
63
+ token: string;
64
+ }, {
65
+ apiUrl: string;
66
+ url: string;
67
+ token: string;
55
68
  }>;
56
69
  }, "strip", z.ZodTypeAny, {
57
70
  appUrl: string;
58
- appEnv: string;
59
71
  apiUrl: string;
72
+ taxRate: number;
60
73
  reservationFee: number;
61
- isProd: boolean;
62
- algolia: {
63
- appId: string;
64
- searchKey: string;
65
- vehicleIndexName: string;
66
- };
74
+ currency: string;
67
75
  stripe: {
68
76
  publishableKey: string;
69
77
  connectClientId: string;
70
78
  };
71
- noStaticGenerating: boolean;
79
+ secureCookies: boolean;
80
+ appEnv: string;
72
81
  graphCms: {
73
82
  devAuthToken: string;
74
83
  prodAuthToken: string;
75
84
  projectApi: string;
76
85
  };
77
- secureCookies: boolean;
78
- taxRate: number;
79
- currency: string;
86
+ isProd: boolean;
87
+ noStaticGenerating: boolean;
80
88
  metaPixelId: string;
81
89
  waNumber: string;
90
+ algolia: {
91
+ vehicleIndexName: string;
92
+ appId: string;
93
+ searchKey: string;
94
+ };
95
+ kv: {
96
+ apiUrl: string;
97
+ url: string;
98
+ token: string;
99
+ };
82
100
  gtmCode?: string | undefined;
83
101
  gtmCodeOld?: string | undefined;
84
102
  }, {
85
103
  appUrl: string;
86
- appEnv: string;
87
104
  apiUrl: string;
105
+ taxRate: number;
88
106
  reservationFee: number;
89
- isProd: boolean;
90
- algolia: {
91
- appId: string;
92
- searchKey: string;
93
- vehicleIndexName: string;
94
- };
107
+ currency: string;
95
108
  stripe: {
96
109
  publishableKey: string;
97
110
  connectClientId: string;
98
111
  };
99
- noStaticGenerating: boolean;
112
+ secureCookies: boolean;
113
+ appEnv: string;
100
114
  graphCms: {
101
115
  devAuthToken: string;
102
116
  prodAuthToken: string;
103
117
  projectApi: string;
104
118
  };
105
- secureCookies: boolean;
106
- taxRate: number;
107
- currency: string;
119
+ isProd: boolean;
120
+ noStaticGenerating: boolean;
108
121
  metaPixelId: string;
109
122
  waNumber: string;
123
+ algolia: {
124
+ vehicleIndexName: string;
125
+ appId: string;
126
+ searchKey: string;
127
+ };
128
+ kv: {
129
+ apiUrl: string;
130
+ url: string;
131
+ token: string;
132
+ };
110
133
  gtmCode?: string | undefined;
111
134
  gtmCodeOld?: string | undefined;
112
135
  }>;
113
136
  export declare const resetConfig: () => {
114
137
  appUrl: string;
115
- appEnv: string;
116
138
  apiUrl: string;
139
+ taxRate: number;
117
140
  reservationFee: number;
118
- isProd: boolean;
119
- algolia: {
120
- appId: string;
121
- searchKey: string;
122
- vehicleIndexName: string;
123
- };
141
+ currency: string;
124
142
  stripe: {
125
143
  publishableKey: string;
126
144
  connectClientId: string;
127
145
  };
128
- noStaticGenerating: boolean;
146
+ secureCookies: boolean;
147
+ appEnv: string;
129
148
  graphCms: {
130
149
  devAuthToken: string;
131
150
  prodAuthToken: string;
132
151
  projectApi: string;
133
152
  };
134
- secureCookies: boolean;
135
- taxRate: number;
136
- currency: string;
153
+ isProd: boolean;
154
+ noStaticGenerating: boolean;
137
155
  metaPixelId: string;
138
156
  waNumber: string;
157
+ algolia: {
158
+ vehicleIndexName: string;
159
+ appId: string;
160
+ searchKey: string;
161
+ };
162
+ kv: {
163
+ apiUrl: string;
164
+ url: string;
165
+ token: string;
166
+ };
139
167
  gtmCode?: string | undefined;
140
168
  gtmCodeOld?: string | undefined;
141
169
  };
@@ -1 +1 @@
1
- {"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../src/frontend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,CAAC,MAAM,CAAC;IACd,IAAI,sBAAsB,EAAE,MAAM,CAAA;CAClC;AAED,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAErD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B3B,CAAA;AAuCF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA;AAED,eAAO,IAAI,MAAM,EAAE,MAAiD,CAAA;AAEpE,eAAO,MAAM,SAAS,GAAI,GAAG,SAAS,MAAM,MAAM,OAC5C,GAAG,SACD,MAAM,CAAC,GAAG,CAAC,SAGlB,CAAA"}
1
+ {"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../src/frontend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,CAAC,MAAM,CAAC;IACd,IAAI,sBAAsB,EAAE,MAAM,CAAA;CAClC;AAED,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAErD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiC3B,CAAA;AA4CF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA;AAED,eAAO,IAAI,MAAM,EAAE,MAAiD,CAAA;AAEpE,eAAO,MAAM,SAAS,GAAI,GAAG,SAAS,MAAM,MAAM,OAC5C,GAAG,SACD,MAAM,CAAC,GAAG,CAAC,SAGlB,CAAA"}
package/dist/frontend.js CHANGED
@@ -27,6 +27,11 @@ export var ConfigValidation = z.object({
27
27
  vehicleIndexName: z.string(),
28
28
  appId: z.string(),
29
29
  searchKey: z.string()
30
+ }),
31
+ kv: z.object({
32
+ url: z.string(),
33
+ token: z.string(),
34
+ apiUrl: z.string()
30
35
  })
31
36
  });
32
37
  /**
@@ -61,6 +66,11 @@ export var ConfigValidation = z.object({
61
66
  vehicleIndexName: process.env.ALGOLIA_VEHICLE_INDEX_NAME || 'vehicles',
62
67
  appId: process.env.ALGOLIA_APP_ID,
63
68
  searchKey: process.env.ALGOLIA_SEARCH_KEY
69
+ },
70
+ kv: {
71
+ url: process.env.KV_URL,
72
+ token: process.env.KV_REST_API_TOKEN,
73
+ apiUrl: process.env.KV_REST_API_URL
64
74
  }
65
75
  };
66
76
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/config",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./backend": {