@paypay/mini-app-js-sdk 2.70.0 → 2.73.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.
@@ -1,5 +1,5 @@
1
1
  import { PPFetchResult } from '../utils/fetch';
2
- import { OrderType, CashBackDetailResponse, ConsultResponse, GetPaymentMethodsResponse, MakePaymentResponse, PaymentBody, PaymentObject, PaymentQuery, SendAgePayload, SendAgeResponse } from '../types/makePayment';
2
+ import { OrderType, CashBackDetailResponse, ConsultResponse, GetPaymentMethodsResponse, GetPostPaymentAnimationsResponse, GetScratchCardCashbackInfoResponse, MakePaymentResponse, PaymentBody, PaymentObject, PaymentQuery, PostScratchCardResponse, SendAgePayload, SendAgeResponse, GetScratchCardCashbackInfoPayload } from '../types/makePayment';
3
3
  export declare const getPaymentMethods2: (params: {
4
4
  merchant?: string;
5
5
  type: string;
@@ -16,3 +16,22 @@ export declare const getConsult: ({ merchant, amount, productType, metaData, ord
16
16
  export declare const makePayment: (queryParams: PaymentQuery, body: PaymentBody, isAuthorization: boolean) => Promise<PPFetchResult<MakePaymentResponse>>;
17
17
  export declare const getCashBackDetails: (paymentId: string, orderType?: OrderType) => Promise<PPFetchResult<CashBackDetailResponse, Record<string, unknown>>>;
18
18
  export declare const sendAge: (payload: SendAgePayload) => Promise<PPFetchResult<SendAgeResponse, Record<string, unknown>>>;
19
+ export declare const getPostPaymentAnimations: (params: {
20
+ orderId: string;
21
+ orderType: OrderType;
22
+ }) => Promise<PPFetchResult<GetPostPaymentAnimationsResponse>>;
23
+ export declare const postScratchCard: (params: {
24
+ cardId: string;
25
+ }) => Promise<PPFetchResult<PostScratchCardResponse>>;
26
+ export declare const getScratchCardCashbackInfo: (params: {
27
+ cardId: string;
28
+ orderType?: OrderType;
29
+ }) => Promise<PPFetchResult<GetScratchCardCashbackInfoResponse>>;
30
+ export declare function scratchCardAndFetchCashback(params: {
31
+ cardId: string;
32
+ orderType?: OrderType;
33
+ }): Promise<GetScratchCardCashbackInfoPayload | null>;
34
+ export declare function scratchCardAndFetchCashbackWithDelay(params: {
35
+ cardId: string;
36
+ orderType?: OrderType;
37
+ }): Promise<GetScratchCardCashbackInfoPayload | null>;
@@ -37,6 +37,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
37
37
  };
38
38
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
39
  animationEnd: () => true;
40
+ animationLoaded: () => true;
40
41
  dataLoadFail: () => true;
41
42
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
43
  loop: {
@@ -74,6 +75,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
74
75
  };
75
76
  }>> & Readonly<{
76
77
  onAnimationEnd?: (() => any) | undefined;
78
+ onAnimationLoaded?: (() => any) | undefined;
77
79
  onDataLoadFail?: (() => any) | undefined;
78
80
  }>, {
79
81
  path: string;
@@ -2,6 +2,7 @@ export declare const img_iconBalanceError: string;
2
2
  export declare const img_animationDone: string;
3
3
  export declare const img_merchant: string;
4
4
  export declare const img_cashback: string;
5
+ export declare const img_infoMono: string;
5
6
  export declare const img_iconCopy: string;
6
7
  export declare const img_iconError: string;
7
8
  export declare const img_iconOpenApp: string;
@@ -56,8 +57,12 @@ export declare const img_iconPpcdBlue: string;
56
57
  export declare const img_iconPpcdLavender: string;
57
58
  export declare const img_kyc: string;
58
59
  export declare const img_ppCredit: string;
60
+ export declare const img_discover: string;
59
61
  export declare const qr_kyc: string;
60
62
  export declare const qr_topup: string;
61
63
  export declare const img_iconEmail: string;
62
64
  export declare const img_iconGV: string;
63
65
  export declare const img_iconTopup: string;
66
+ export declare const img_payLaterTwoTone: string;
67
+ export declare const img_paypayPointColorful: string;
68
+ export declare const img_smcc: string;
@@ -8,7 +8,6 @@ declare const _default: {
8
8
  change: string;
9
9
  close: string;
10
10
  noCashBack: string;
11
- transactionId: string;
12
11
  ppPointGuideMessage: string;
13
12
  };
14
13
  duplicate: {
@@ -52,15 +51,6 @@ declare const _default: {
52
51
  return: string;
53
52
  lowBalanceToTopUpErrorMessage: string;
54
53
  };
55
- cashbackList: {
56
- pointCalendar: string;
57
- close: string;
58
- condition: string;
59
- };
60
- newOffersBanner: {
61
- title: string;
62
- description: string;
63
- };
64
54
  ekyc: {
65
55
  title: string;
66
56
  link: string;
@@ -273,7 +263,6 @@ declare const _default: {
273
263
  change: string;
274
264
  close: string;
275
265
  noCashBack: string;
276
- transactionId: string;
277
266
  ppPointGuideMessage: string;
278
267
  };
279
268
  duplicate: {
@@ -317,15 +306,6 @@ declare const _default: {
317
306
  return: string;
318
307
  lowBalanceToTopUpErrorMessage: string;
319
308
  };
320
- cashbackList: {
321
- pointCalendar: string;
322
- close: string;
323
- condition: string;
324
- };
325
- newOffersBanner: {
326
- title: string;
327
- description: string;
328
- };
329
309
  ekyc: {
330
310
  title: string;
331
311
  link: string;
@@ -7,7 +7,6 @@ declare const _default: {
7
7
  change: string;
8
8
  close: string;
9
9
  noCashBack: string;
10
- transactionId: string;
11
10
  ppPointGuideMessage: string;
12
11
  };
13
12
  duplicate: {
@@ -51,15 +50,6 @@ declare const _default: {
51
50
  return: string;
52
51
  lowBalanceToTopUpErrorMessage: string;
53
52
  };
54
- cashbackList: {
55
- pointCalendar: string;
56
- close: string;
57
- condition: string;
58
- };
59
- newOffersBanner: {
60
- title: string;
61
- description: string;
62
- };
63
53
  ekyc: {
64
54
  title: string;
65
55
  link: string;
@@ -1,15 +1,23 @@
1
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
2
2
  import { SdkType } from '../types';
3
- export interface InitClientParams extends NativeParams<InitResult> {
3
+ interface InitClientParamsWithoutOtel extends NativeParams<InitResult> {
4
4
  clientId: string;
5
5
  env?: PPEnvType;
6
6
  mode?: string;
7
7
  debugMode?: boolean;
8
8
  useLocalStorage?: boolean;
9
9
  disableBackgroundScrollLock?: boolean;
10
- pageName?: string;
11
- otelEndpoint?: string;
12
10
  }
11
+ interface InitOtelParams {
12
+ pageName: string;
13
+ otelEndpoint: string;
14
+ serviceName: string;
15
+ serviceVersion: string;
16
+ }
17
+ declare type InitClientParamsForbidOtel = InitClientParamsWithoutOtel & {
18
+ [K in keyof InitOtelParams]?: never;
19
+ };
20
+ export declare type InitClientParams = InitClientParamsForbidOtel | (InitClientParamsWithoutOtel & InitOtelParams);
13
21
  export interface InitParams extends NativeParams<InitResult> {
14
22
  clientId: string;
15
23
  env?: PPEnvType;
@@ -26,6 +34,8 @@ export interface InitParams extends NativeParams<InitResult> {
26
34
  pageName?: string;
27
35
  clientPageLoadStartTime?: number;
28
36
  otelEndpoint?: string;
37
+ serviceName?: string;
38
+ serviceVersion?: string;
29
39
  }
30
40
  export declare const PPEnv: {
31
41
  readonly staging: "staging";
@@ -48,3 +58,4 @@ export declare const InitStatusCode: {
48
58
  readonly authorizationNeeded: "AUTHORIZATION_NEEDED";
49
59
  };
50
60
  export declare type InitStatusCodeType = (typeof InitStatusCode)[keyof typeof InitStatusCode];
61
+ export {};
@@ -342,6 +342,26 @@ export declare type GetPaymentMethodsResponse = ResponseBase & {
342
342
  };
343
343
  };
344
344
  };
345
+ export declare type UsageInfoStyleInfo = {
346
+ color: string;
347
+ text: string;
348
+ };
349
+ export declare type UsageInfo = {
350
+ description: string;
351
+ styleInfo: UsageInfoStyleInfo;
352
+ };
353
+ export declare type PaymentAmountInfo = {
354
+ label: string;
355
+ amount: number;
356
+ currencyText: string;
357
+ };
358
+ export declare type ToastMessage = {
359
+ title: string;
360
+ description?: string;
361
+ backgroundColor?: string;
362
+ textColor?: string;
363
+ messageType?: string;
364
+ };
345
365
  export declare type PaymentResult = {
346
366
  requestedAt: number;
347
367
  storeId: string;
@@ -355,6 +375,72 @@ export declare type PaymentResult = {
355
375
  status: 'COMPLETED' | 'AUTHORIZED';
356
376
  paymentId: string;
357
377
  expiresAt: number;
378
+ usageInfo?: UsageInfo;
379
+ amountInfo?: PaymentAmountInfo[];
380
+ toastMessages?: ToastMessage[];
381
+ displayMethodInfoList?: DisplayMethodInfo[];
382
+ };
383
+ export declare type DisplayMethodType = PaymentMethodNameType | 'YMONEY_BALANCE' | 'MERCHANT' | 'GIFT_CARD' | 'PAY_LATER' | 'PAY_LATER_CC' | 'GIFT_VOUCHER' | 'EXTERNAL_PPPC' | 'PAYROLL_BANK' | 'PAYROLL_INTERMEDIATE_WALLET' | 'POINT' | 'HC_WALLET' | 'PPBK_PAYMENT' | 'TOPUP_NOW' | 'SC_WALLET' | 'SC_CREDIT' | 'EXTERNAL_SC_CREDIT';
384
+ export declare type DisplayMethodInfo = {
385
+ paymentMethodId?: number;
386
+ paymentMethodIdString?: string;
387
+ paymentMethodType: DisplayMethodType;
388
+ paymentMethodTitle?: string | null;
389
+ paymentMethodDescription?: string | null;
390
+ paymentMethodLabel?: string | null;
391
+ creditCardInfo?: DisplayCreditCardInfo | null;
392
+ walletInfo?: unknown;
393
+ moneyBalanceInfo?: unknown;
394
+ moneyBankInfo?: DisplayMoneyBankInfo | null;
395
+ merchantMethodInfo?: {
396
+ merchantName: string;
397
+ } | null;
398
+ giftCardMethodInfo?: {
399
+ last4codes?: string | null;
400
+ } | null;
401
+ sbidCarrierBillingMethodInfo?: unknown;
402
+ payLaterInfo?: unknown;
403
+ payLaterCcInfo?: DisplayCardMethodInfo | null;
404
+ gvMethodInfo?: {
405
+ displayName: string;
406
+ } | null;
407
+ payrollMethodInfo?: {
408
+ displayName: string;
409
+ } | null;
410
+ ppcdMethodInfo?: DisplayCardMethodInfo | null;
411
+ pointInfo?: {
412
+ displayName: string;
413
+ } | null;
414
+ superCardMethodInfo?: DisplayCardMethodInfo & {
415
+ mode?: string | null;
416
+ modeDescription?: string | null;
417
+ };
418
+ };
419
+ export declare type DisplayCreditCardInfo = {
420
+ brand?: string | null;
421
+ last4digits?: string | null;
422
+ ccType?: string | null;
423
+ cardName?: string | null;
424
+ isAvailableForDirectPayment?: boolean | null;
425
+ };
426
+ export declare type DisplayCardMethodInfo = {
427
+ brand?: string | null;
428
+ rank?: PayPayCardType | string | null;
429
+ faceCode?: string | null;
430
+ last4digits?: string | null;
431
+ cardName?: string | null;
432
+ repaymentType?: string | null;
433
+ repaymentTypeEnum?: string | null;
434
+ userType?: string | null;
435
+ };
436
+ export declare type DisplayMoneyBankInfo = {
437
+ bankImageUrl?: string | null;
438
+ bankName: string;
439
+ bankCode?: string | null;
440
+ bankAccountNumber?: string | null;
441
+ bankBranchName?: string | null;
442
+ bankBranchCode?: string | null;
443
+ bankAccountType?: string | null;
358
444
  };
359
445
  export declare type MakePaymentResponse = ResponseBase & {
360
446
  signed: {
@@ -415,6 +501,10 @@ interface CashBackDetailHelpLink {
415
501
  url: string;
416
502
  googleAnalyticsInfo: unknown;
417
503
  }
504
+ interface CashbackDescriptionLink {
505
+ text: string;
506
+ link: string;
507
+ }
418
508
  export interface CashBackDetailItem {
419
509
  campaignId: string;
420
510
  bannerId: string | null;
@@ -429,6 +519,7 @@ export interface CashBackDetailItem {
429
519
  status: string;
430
520
  isMeti: boolean;
431
521
  deeplinkUrl: string | null;
522
+ campaignLabel: string | null;
432
523
  googleAnalyticsInfo: unknown;
433
524
  }
434
525
  interface CouponCashbackDetail {
@@ -441,6 +532,7 @@ interface CouponCashbackDetail {
441
532
  interface CashBackDetail {
442
533
  cashBackDetailListDescription: string | null;
443
534
  cashBackDetailHelpLink: CashBackDetailHelpLink | null;
535
+ cashbackDescriptionLink: CashbackDescriptionLink | null;
444
536
  cashBackDetailList: Array<CashBackDetailItem>;
445
537
  googleAnalyticsInfo: unknown;
446
538
  }
@@ -456,10 +548,20 @@ export interface CashBackComponent {
456
548
  couponCashbackDetail: CouponCashbackDetail;
457
549
  cashBackDetail: CashBackDetail;
458
550
  }
551
+ export declare const RewardCards: {
552
+ readonly SCRATCH_CARD: "SCRATCH_CARD";
553
+ readonly DEFAULT: "DEFAULT";
554
+ readonly STEP: "STEP";
555
+ readonly STAMP_CARD: "STAMP_CARD";
556
+ readonly COUPON: "COUPON";
557
+ readonly TIME_SPECIFIC: "TIME_SPECIFIC";
558
+ readonly JUMBO: "JUMBO";
559
+ };
560
+ export declare type RewardCardType = (typeof RewardCards)[keyof typeof RewardCards];
459
561
  export interface AnimationCard {
460
562
  cardId: string;
461
563
  campaignId: string | null;
462
- cardType: string;
564
+ cardType: RewardCardType;
463
565
  animationUrl: string;
464
566
  amount: number | null;
465
567
  soundUrl: string | null;
@@ -469,6 +571,112 @@ export interface AnimationCard {
469
571
  showAgeConfirmFlag?: boolean | null;
470
572
  backgroundColor: string | null;
471
573
  }
574
+ export declare const ScratchCardStatus: {
575
+ readonly CREATED: "CREATED";
576
+ readonly USED: "USED";
577
+ readonly EXPIRED: "EXPIRED";
578
+ readonly CANCELLED: "CANCELLED";
579
+ };
580
+ export declare type ScratchCardStatusValue = (typeof ScratchCardStatus)[keyof typeof ScratchCardStatus];
581
+ export interface UnscratchedDetails {
582
+ title: string;
583
+ description: string;
584
+ }
585
+ export interface ScratchSuccessDetails {
586
+ title?: string;
587
+ cashBackAmount?: number;
588
+ cashBackAmountCurrency?: string;
589
+ balloonText?: string;
590
+ }
591
+ export interface ScratchFailedDetails {
592
+ title: string;
593
+ }
594
+ export interface ScratchCardDetail {
595
+ initialBackgroundLottieFileUrl: string;
596
+ scratchingLottieFileUrl?: string;
597
+ scratchingSoundUrl?: string;
598
+ status: ScratchCardStatusValue;
599
+ deepLink?: string;
600
+ unscratchedDetails?: UnscratchedDetails;
601
+ successDetails?: ScratchSuccessDetails;
602
+ failedDetails?: ScratchFailedDetails;
603
+ }
604
+ export interface DefaultCardDetails {
605
+ lottieFileUrl: string;
606
+ title?: string;
607
+ description?: string;
608
+ deepLink?: string;
609
+ }
610
+ export interface StepCardDetails {
611
+ lottieFileUrl: string;
612
+ title?: string;
613
+ description?: string;
614
+ deepLink?: string;
615
+ }
616
+ export interface DetailAnimationCard {
617
+ cardType: RewardCardType;
618
+ campaignId?: string;
619
+ orderId: string;
620
+ cardId: string;
621
+ backgroundColor?: string;
622
+ fallbackImageUrl?: string;
623
+ scratchCardDetails?: ScratchCardDetail;
624
+ defaultCardDetails?: DefaultCardDetails;
625
+ stepCardDetails?: StepCardDetails;
626
+ }
627
+ export interface GetPostPaymentAnimationsData {
628
+ detailAnimationCardList: DetailAnimationCard[];
629
+ responseValidTill?: number;
630
+ }
631
+ export declare type GetPostPaymentAnimationsResponse = ResponseBase & {
632
+ unsigned: {
633
+ data: GetPostPaymentAnimationsData;
634
+ responseValidTill?: number;
635
+ };
636
+ };
637
+ export interface BffResponseHeader {
638
+ resultCode: string;
639
+ resultMessage: string;
640
+ }
641
+ export interface ScratchFailedAnimationInfo {
642
+ lottieFileUrl: string;
643
+ status: ScratchCardStatusValue;
644
+ failedDetails?: ScratchFailedDetails;
645
+ }
646
+ export interface PostScratchCardPayload {
647
+ isSuccess: boolean;
648
+ scratchFailedAnimationInfo?: ScratchFailedAnimationInfo | null;
649
+ }
650
+ export interface PostScratchCardData {
651
+ header: BffResponseHeader;
652
+ payload: PostScratchCardPayload;
653
+ responseValidTill?: number;
654
+ }
655
+ export declare type PostScratchCardResponse = ResponseBase & {
656
+ unsigned: {
657
+ data: PostScratchCardData;
658
+ responseValidTill?: number;
659
+ };
660
+ };
661
+ export interface GetScratchCardCashbackInfoPayload {
662
+ lottieFileUrl: string;
663
+ soundUrl?: string;
664
+ deepLink?: string;
665
+ status: ScratchCardStatusValue;
666
+ successDetails?: ScratchSuccessDetails;
667
+ failedDetails?: ScratchFailedDetails;
668
+ }
669
+ export interface GetScratchCardCashbackInfoData {
670
+ header: BffResponseHeader;
671
+ payload: GetScratchCardCashbackInfoPayload;
672
+ responseValidTill?: number;
673
+ }
674
+ export declare type GetScratchCardCashbackInfoResponse = ResponseBase & {
675
+ unsigned: {
676
+ data: GetScratchCardCashbackInfoData;
677
+ responseValidTill?: number;
678
+ };
679
+ };
472
680
  export interface StackAnimationCardInfo {
473
681
  totalAnimationCards: number;
474
682
  animationCardList: Array<AnimationCard>;
package/dist/types.d.ts CHANGED
@@ -4,9 +4,19 @@ import { NativeParams, NativeResponse } from './jsbridge-core/jsbridge';
4
4
  import { MiniAppErrorType } from './model/miniAppError';
5
5
  import { OrderType } from './types/makePayment';
6
6
  import { ErrorCodesType, PPFunctionNameType, PPUtilFunctionNameType } from './constants';
7
+ interface UserAgentData {
8
+ platform: string;
9
+ getHighEntropyValues: (hints: string[]) => Promise<{
10
+ platformVersion?: string;
11
+ }>;
12
+ }
7
13
  declare global {
8
- type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
14
+ type Optional<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
15
+ type PartialRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
9
16
  type ObjectValues<T> = T[keyof T];
17
+ interface Navigator {
18
+ readonly userAgentData?: UserAgentData;
19
+ }
10
20
  }
11
21
  export declare type MiniAppResult = Record<string, unknown>;
12
22
  export interface MiniAppErrorResultType {
@@ -11,7 +11,6 @@ interface EventParams {
11
11
  event_label2?: string | number;
12
12
  merchant_id?: string;
13
13
  order_type?: string;
14
- user_agent?: string;
15
14
  client_url?: string;
16
15
  hashed_ott?: string;
17
16
  has_rt?: string;
@@ -1,6 +1,6 @@
1
1
  import { ErrorCodesType } from '../constants';
2
2
  import { UIComponentsErrorButton } from '../model/uiComponents';
3
- import { ErrorSheetButton, PaymentLabelType, SmartPayParams } from '../types';
3
+ import { ErrorSheetButton, Locale, PaymentLabelType, SmartPayParams } from '../types';
4
4
  import { FontSize } from '../types/getPlatformInformation';
5
5
  import { InitParams } from '../types/init';
6
6
  import { BankInfo, CreditCardInfo, InfoBanner, MakePaymentParams, OrderType, PayLaterCCInfo, PayPayCardFaceCode, PaymentMethod, SbidBankInfo } from '../types/makePayment';
@@ -42,7 +42,7 @@ export declare enum MiniAppRuntime {
42
42
  }
43
43
  export declare function getRuntime(): MiniAppRuntime;
44
44
  export declare function isPayPayMiniApp(): boolean;
45
- export declare function getAndroidVersion(): number | null;
45
+ export declare function getAndroidVersion(): Promise<number | null>;
46
46
  export declare function getAppVersion(): string | null;
47
47
  export declare function semVerCompare(a: string, b: string): boolean;
48
48
  export declare function checkVersion(minVersion: string): boolean;
@@ -99,4 +99,6 @@ export declare function isValidUrl(urlChallenge: string): boolean;
99
99
  export declare function calculateTopMargin(navigationStyle: string, statusBarHeight: number, navBarHeight: number): number;
100
100
  export declare function getWindowByName(frames: Window, windowName: string): Window | undefined;
101
101
  export declare function isPaymentMethodDisabled(paymentMethod: PaymentMethod, ignoreMaintenanceFlag?: boolean): boolean;
102
+ export declare function to2DigitString(value: number | string): string;
103
+ export declare function getDateStringFromTimeStamp(timestamp: number, language: Locale): string;
102
104
  export {};
@@ -1,2 +1 @@
1
- export declare function isIP(hostName: string): boolean;
2
1
  export declare function isLocalIP(hostName: string): boolean;
@@ -1,4 +1,5 @@
1
- import { InitOpenTelemetryParams, LogPageNavParams, LogPerfParams } from './types';
2
- export declare function initOpenTelemetry(params: InitOpenTelemetryParams): void;
1
+ import { LogPageNavParams, LogPerfParams } from './types';
2
+ import { InitParams } from '../../types/init';
3
+ export declare function initOpenTelemetryWhenEnabled(initParams: InitParams): void;
3
4
  export declare function logPageNav(params: LogPageNavParams): void;
4
5
  export declare function logPerf(params: LogPerfParams): void;
@@ -1,5 +1,5 @@
1
1
  import { InitOpenTelemetryParams, LogPageNavParams, LogPerfParams } from './types';
2
- export declare function initOpenTelemetry({ clientId, otelEndpoint, pageName, clientPageLoadStartTime: _clientPageLoadStartTime, clientPageUrl, environmentName, }: InitOpenTelemetryParams): void;
2
+ export declare function initOpenTelemetry({ clientId, otelEndpoint, pageName, clientPageLoadStartTime: _clientPageLoadStartTime, clientPageUrl, environmentName, serviceName, serviceVersion, }: InitOpenTelemetryParams): void;
3
3
  export declare function removeEventListeners(): void;
4
4
  export declare function logPageNav({ startTime, pageName, url, navigationType, }: LogPageNavParams): void;
5
5
  export declare function logPerf({ type, startTime, endTime, featureName, }: LogPerfParams): void;
@@ -1,10 +1,12 @@
1
1
  export interface InitOpenTelemetryParams {
2
2
  clientId: string;
3
3
  pageName: string;
4
- otelEndpoint?: string;
4
+ otelEndpoint: string;
5
5
  clientPageLoadStartTime: number;
6
6
  clientPageUrl: string;
7
7
  environmentName: string;
8
+ serviceName?: string;
9
+ serviceVersion?: string;
8
10
  }
9
11
  export interface LogPageNavParams {
10
12
  startTime: number;