@vetc-miniapp/apis 0.0.27 → 0.0.29

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +99 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -77,6 +77,104 @@ export interface GetStorageOptions {
77
77
  export interface RemoveStorageOptions {
78
78
  key: string;
79
79
  }
80
+ export interface EventProperties {
81
+ userId?: string;
82
+ sdkVersion?: string;
83
+ screenName?: string;
84
+ taxanomy?: string;
85
+ source?: string;
86
+ utmSource?: string;
87
+ utmMedium?: string;
88
+ utmCampaign?: string;
89
+ utmTerm?: string;
90
+ utmContent?: string;
91
+ gclid?: string;
92
+ eGuid?: string;
93
+ campaignId?: string;
94
+ campaignType?: string;
95
+ placement?: string;
96
+ paymentMethod?: string;
97
+ bankCode?: string;
98
+ cardBrand?: string;
99
+ status?: string;
100
+ errorCode?: string;
101
+ failStage?: string;
102
+ feeAmount?: number;
103
+ itemCount?: number;
104
+ tollTxnId?: string;
105
+ plazaId?: string;
106
+ routeId?: string;
107
+ tagId?: string;
108
+ vehiclePlate?: string;
109
+ topupChannel?: string;
110
+ vepPassId?: string;
111
+ parkingLotId?: string;
112
+ durationMonths?: number;
113
+ expiryDate?: string;
114
+ policyId?: string;
115
+ insurer?: string;
116
+ coverageStart?: string;
117
+ coverageEnd?: string;
118
+ provider?: string;
119
+ coverageArea?: string;
120
+ policyStatus?: string;
121
+ policyNoMasked?: string;
122
+ insurerCode?: string;
123
+ fileType?: string;
124
+ poolCode?: string;
125
+ points?: number;
126
+ loyaltyReason?: string;
127
+ referralCode?: string;
128
+ publisherId?: string;
129
+ conversionId?: string;
130
+ commissionAmount?: number;
131
+ threshold?: number;
132
+ runId?: string;
133
+ ekycMethod?: string;
134
+ accountId?: string;
135
+ linkStatus?: string;
136
+ vehicleType?: string;
137
+ isPrimary?: boolean;
138
+ direction?: string;
139
+ counterpartyHash?: string;
140
+ errorType?: string;
141
+ apiName?: string;
142
+ endpoint?: string;
143
+ statusCode?: number;
144
+ timeoutMs?: number;
145
+ errorMessage?: string;
146
+ latencyMs?: number;
147
+ retryCount?: number;
148
+ networkType?: string;
149
+ reason?: string;
150
+ result?: string;
151
+ invoiceStatus?: string;
152
+ entryPoint?: string;
153
+ entryCtaId?: string;
154
+ prevScreen?: string;
155
+ prevEvent?: string;
156
+ deeplinkId?: string;
157
+ msgId?: string;
158
+ actionType?: string;
159
+ actionId?: string;
160
+ currentScreen?: string;
161
+ targetScreen?: string;
162
+ positionIndex?: number;
163
+ value?: any;
164
+ formName?: string;
165
+ fieldCount?: number;
166
+ otpChannel?: string;
167
+ clientTs?: number;
168
+ slaTargetMin?: number;
169
+ etaMin?: number;
170
+ driverEtaSource?: string;
171
+ experimentKey?: string;
172
+ variant?: string;
173
+ subjectId?: string;
174
+ journeyId?: string;
175
+ termsVersion?: string;
176
+ [key: string]: any;
177
+ }
80
178
  export interface MiniAppSDK {
81
179
  confirmBeforeExit(title?: string, message?: string): Promise<IVETCMiniAppResponse>;
82
180
  exitMiniApp(): Promise<IVETCMiniAppResponse>;
@@ -94,7 +192,7 @@ export interface MiniAppSDK {
94
192
  }>>;
95
193
  scanQr(patterns?: string[]): Promise<IVETCMiniAppResponse>;
96
194
  closeScanQr(): Promise<IVETCMiniAppResponse>;
97
- pushEvent(eventName: string, properties?: Record<string, any>): Promise<IVETCMiniAppResponse>;
195
+ pushEvent(eventName: string, properties?: EventProperties): Promise<IVETCMiniAppResponse>;
98
196
  navigate(screen: string, params?: NavigateParams): Promise<IVETCMiniAppResponse>;
99
197
  close(result?: any): Promise<IVETCMiniAppResponse>;
100
198
  openTel(phone: string): Promise<IVETCMiniAppResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vetc-miniapp/apis",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "MiniApp Platform JS SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",