@jetthai/cuora 1.1.392 → 1.1.393-dev-1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.393-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.393...v1.1.393-dev-1) (2025-10-23)
6
+
7
+ ### [1.1.393](https://github.com/jetthai/cuora-module/compare/v1.1.392...v1.1.393) (2025-10-17)
8
+
5
9
  ### [1.1.392](https://github.com/jetthai/cuora-module/compare/v1.1.391...v1.1.392) (2025-10-17)
6
10
 
7
11
  ### [1.1.391](https://github.com/jetthai/cuora-module/compare/v1.1.390...v1.1.391) (2025-10-15)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.392",
3
+ "version": "1.1.393-dev-1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -0,0 +1,7 @@
1
+ export default {
2
+ bindingStatus: () => ({ url: 'account-binding/status', method: 'get' }),
3
+ applyBinding: (data) => ({ url: 'account-binding/bind', method: 'post', params: data }),
4
+ bindingVerification: (data) => ({ url: 'account-binding/acknowledge', method: 'post', params: data }),
5
+ bindThirdParty: (data) => ({ url: 'account-binding/bind-third-party', method: 'GET', params: data }),
6
+ bindPassword: (data) => ({ url: 'account-binding/bind-password', method: 'POST', params: data }),
7
+ }
package/src/api/common.js CHANGED
@@ -7,4 +7,9 @@ export default {
7
7
  getNavbar: ({ appSecret } = {}) => ({ url: 'getNavbarSetting', params: { appSecret }, method: 'get', isPublic: true }),
8
8
  getDefaultAffiliateCode: ({ appSecret }) => ({ url: 'getAffiliateCode', params: { appSecret }, method: 'get', isPublic: true }),
9
9
  getSiteInfoConfig: ({ appSecret, config }) => ({ url: 'get-site-config', method: 'get', params: { appSecret, config }, isPublic: true }),
10
+ sendPixel: ({ appSecret, eventId, fbc, fbp, event }) => ({
11
+ url: 'pixel',
12
+ method: 'post',
13
+ params: { appSecret, eventId, fbc, fbp, event },
14
+ }),
10
15
  }
package/src/api/index.js CHANGED
@@ -7,5 +7,6 @@ import payment from './payment.js'
7
7
  import user from './user.js'
8
8
  import form from './form.js'
9
9
  import ranking from './ranking.js'
10
+ import account from './account.js'
10
11
 
11
- export default { activity, auth, common, game, mailbox, payment, user, form, ranking }
12
+ export default { activity, auth, common, game, mailbox, payment, user, form, ranking, account }
@@ -162,6 +162,9 @@ export default function (request) {
162
162
  branchCode: null,
163
163
  accountNumber: null,
164
164
  pixType: null,
165
+ firstNameLocale: null,
166
+ lastNameLocale: null,
167
+ holderName: null,
165
168
  }
166
169
  }),
167
170
  },
@@ -55,7 +55,7 @@ export default function (request) {
55
55
  },
56
56
  },
57
57
  fetching: {
58
- entry: ['setUA', 'setAgent', 'setPixel', 'setKPixel'],
58
+ entry: ['setUA', 'setAgent', 'setPixel', 'setKPixel', 'setFbclid'],
59
59
  invoke: {
60
60
  src: 'fetchConfig',
61
61
  onDone: [
@@ -237,6 +237,18 @@ export default function (request) {
237
237
  isMobile: userAgent?.device?.type,
238
238
  }
239
239
  }),
240
+ setFbclid: assign(() => {
241
+ const urlParams = new URLSearchParams(window.location.search)
242
+ const fbclid = urlParams.get('fbclid') || ''
243
+ if (fbclid !== '') {
244
+ const timestamp = Date.now()
245
+ const cookieRecord = 'fb.1.' + timestamp + '.' + fbclid
246
+ document.cookie = `_fbc=${cookieRecord}; path=/; max-age=${60 * 60 * 24 * 7}`
247
+ }
248
+ return {
249
+ fbclid,
250
+ }
251
+ }),
240
252
  setPixel: assign(() => {
241
253
  let urlParams = new URLSearchParams(window.location.search)
242
254
  const pix = urlParams.get('pix') || storage.get('pix') || ''
@@ -140,6 +140,14 @@ const supportVersion2List = [
140
140
  'game/list/v3/gameInfo',
141
141
  'payment/v2/uploadCommonSlip',
142
142
  'game/history/options',
143
+ // 09/30
144
+ 'pixel',
145
+ // 10/09
146
+ 'account-binding/status',
147
+ 'account-binding/bind',
148
+ 'account-binding/acknowledge',
149
+ 'account-binding/bind-third-party',
150
+ 'account-binding/bind-password',
143
151
  ]
144
152
 
145
153
  function isValid(value) {