mezon-js 2.9.85 → 2.9.86

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -2489,19 +2489,21 @@ export interface ApiListOnboardingResponse {
2489
2489
  }
2490
2490
 
2491
2491
  /** */
2492
- export interface ApiAnswer {
2492
+ export interface OnboardingAnswer {
2493
2493
  //
2494
- answer?: string;
2494
+ emoji?: string;
2495
2495
  //
2496
2496
  description?: string;
2497
2497
  //
2498
2498
  title?: string;
2499
+ //
2500
+ image_url?: string;
2499
2501
  }
2500
2502
 
2501
2503
  /** */
2502
2504
  export interface ApiOnboardingContent {
2503
2505
  //
2504
- answers?: Array<ApiAnswer>;
2506
+ answers?: Array<OnboardingAnswer>;
2505
2507
  //
2506
2508
  channel_id?: string;
2507
2509
  //
@@ -2512,12 +2514,14 @@ export interface ApiOnboardingContent {
2512
2514
  task_type?: number;
2513
2515
  //
2514
2516
  title?: string;
2517
+ //
2518
+ image_url?: string;
2515
2519
  }
2516
2520
 
2517
2521
  /** */
2518
2522
  export interface MezonUpdateOnboardingBody {
2519
2523
  //
2520
- answers?: Array<ApiAnswer>;
2524
+ answers?: Array<OnboardingAnswer>;
2521
2525
  //
2522
2526
  channel_id?: string;
2523
2527
  //
@@ -2528,6 +2532,8 @@ export interface MezonUpdateOnboardingBody {
2528
2532
  task_type?: number;
2529
2533
  //
2530
2534
  title?: string;
2535
+ //
2536
+ image_url?: string;
2531
2537
  }
2532
2538
 
2533
2539
  /** */
@@ -2541,7 +2547,7 @@ export interface ApiCreateOnboardingRequest {
2541
2547
  /** */
2542
2548
  export interface ApiOnboardingItem {
2543
2549
  //
2544
- answers?: Array<ApiAnswer>;
2550
+ answers?: Array<OnboardingAnswer>;
2545
2551
  //
2546
2552
  channel_id?: string;
2547
2553
  //
@@ -2560,6 +2566,8 @@ export interface ApiOnboardingItem {
2560
2566
  title?: string;
2561
2567
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
2562
2568
  update_time?: string;
2569
+ //
2570
+ image_url?: string;
2563
2571
  }
2564
2572
 
2565
2573
  /** */
package/client.ts CHANGED
@@ -4653,7 +4653,7 @@ export class Client {
4653
4653
  //**update onboarding step by id */
4654
4654
  async updateOnboardingStepByClanId(
4655
4655
  session: Session,
4656
- id: string,
4656
+ clan_id: string,
4657
4657
  request: MezonUpdateOnboardingStepByClanIdBody
4658
4658
  ) {
4659
4659
  if (
@@ -4665,7 +4665,7 @@ export class Client {
4665
4665
  }
4666
4666
 
4667
4667
  return this.apiClient
4668
- .updateOnboardingStepByClanId(session.token, id, request)
4668
+ .updateOnboardingStepByClanId(session.token, clan_id, request)
4669
4669
  .then((response: any) => {
4670
4670
  return response !== undefined;
4671
4671
  });
package/dist/api.gen.d.ts CHANGED
@@ -1448,28 +1448,31 @@ export interface ApiListOnboardingResponse {
1448
1448
  list_onboarding?: Array<ApiOnboardingItem>;
1449
1449
  }
1450
1450
  /** */
1451
- export interface ApiAnswer {
1452
- answer?: string;
1451
+ export interface OnboardingAnswer {
1452
+ emoji?: string;
1453
1453
  description?: string;
1454
1454
  title?: string;
1455
+ image_url?: string;
1455
1456
  }
1456
1457
  /** */
1457
1458
  export interface ApiOnboardingContent {
1458
- answers?: Array<ApiAnswer>;
1459
+ answers?: Array<OnboardingAnswer>;
1459
1460
  channel_id?: string;
1460
1461
  content?: string;
1461
1462
  guide_type?: number;
1462
1463
  task_type?: number;
1463
1464
  title?: string;
1465
+ image_url?: string;
1464
1466
  }
1465
1467
  /** */
1466
1468
  export interface MezonUpdateOnboardingBody {
1467
- answers?: Array<ApiAnswer>;
1469
+ answers?: Array<OnboardingAnswer>;
1468
1470
  channel_id?: string;
1469
1471
  clan_id?: string;
1470
1472
  content?: string;
1471
1473
  task_type?: number;
1472
1474
  title?: string;
1475
+ image_url?: string;
1473
1476
  }
1474
1477
  /** */
1475
1478
  export interface ApiCreateOnboardingRequest {
@@ -1478,7 +1481,7 @@ export interface ApiCreateOnboardingRequest {
1478
1481
  }
1479
1482
  /** */
1480
1483
  export interface ApiOnboardingItem {
1481
- answers?: Array<ApiAnswer>;
1484
+ answers?: Array<OnboardingAnswer>;
1482
1485
  channel_id?: string;
1483
1486
  clan_id?: string;
1484
1487
  content?: string;
@@ -1488,6 +1491,7 @@ export interface ApiOnboardingItem {
1488
1491
  task_type?: number;
1489
1492
  title?: string;
1490
1493
  update_time?: string;
1494
+ image_url?: string;
1491
1495
  }
1492
1496
  /** */
1493
1497
  export interface MezonUpdateClanWebhookByIdBody {
package/dist/client.d.ts CHANGED
@@ -624,7 +624,7 @@ export declare class Client {
624
624
  deleteClanWebhookById(session: Session, id: string, clan_id: string): Promise<boolean>;
625
625
  updateClanWebhookById(session: Session, id: string, request: MezonUpdateClanWebhookByIdBody): Promise<boolean>;
626
626
  listOnboardingStep(session: Session, clan_id?: string, limit?: number, page?: number): Promise<ApiListOnboardingStepResponse>;
627
- updateOnboardingStepByClanId(session: Session, id: string, request: MezonUpdateOnboardingStepByClanIdBody): Promise<boolean>;
627
+ updateOnboardingStepByClanId(session: Session, clan_id: string, request: MezonUpdateOnboardingStepByClanIdBody): Promise<boolean>;
628
628
  updateUserStatus(session: Session, request: ApiUserStatusUpdate): Promise<boolean>;
629
629
  getUserStatus(session: Session): Promise<ApiUserStatus>;
630
630
  }
@@ -10185,12 +10185,12 @@ var Client = class {
10185
10185
  });
10186
10186
  }
10187
10187
  //**update onboarding step by id */
10188
- updateOnboardingStepByClanId(session, id, request) {
10188
+ updateOnboardingStepByClanId(session, clan_id, request) {
10189
10189
  return __async(this, null, function* () {
10190
10190
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10191
10191
  yield this.sessionRefresh(session);
10192
10192
  }
10193
- return this.apiClient.updateOnboardingStepByClanId(session.token, id, request).then((response) => {
10193
+ return this.apiClient.updateOnboardingStepByClanId(session.token, clan_id, request).then((response) => {
10194
10194
  return response !== void 0;
10195
10195
  });
10196
10196
  });
@@ -10155,12 +10155,12 @@ var Client = class {
10155
10155
  });
10156
10156
  }
10157
10157
  //**update onboarding step by id */
10158
- updateOnboardingStepByClanId(session, id, request) {
10158
+ updateOnboardingStepByClanId(session, clan_id, request) {
10159
10159
  return __async(this, null, function* () {
10160
10160
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10161
10161
  yield this.sessionRefresh(session);
10162
10162
  }
10163
- return this.apiClient.updateOnboardingStepByClanId(session.token, id, request).then((response) => {
10163
+ return this.apiClient.updateOnboardingStepByClanId(session.token, clan_id, request).then((response) => {
10164
10164
  return response !== void 0;
10165
10165
  });
10166
10166
  });
package/dist/socket.d.ts CHANGED
@@ -30,6 +30,7 @@ export interface Presence {
30
30
  /** The status of the user */
31
31
  status: string;
32
32
  is_mobile: boolean;
33
+ metadata: string;
33
34
  }
34
35
  /** A response from a channel join operation. */
35
36
  export interface Channel {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.85",
4
+ "version": "2.9.86",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -50,8 +50,10 @@ export interface Presence {
50
50
  node: string;
51
51
  /** The status of the user */
52
52
  status: string;
53
- //
53
+ // User Mobile
54
54
  is_mobile: boolean;
55
+ // Metadata
56
+ metadata: string;
55
57
  }
56
58
 
57
59
  /** A response from a channel join operation. */
@@ -1176,7 +1178,6 @@ export interface Socket {
1176
1178
  caller_id: string
1177
1179
  ) => Promise<WebrtcSignalingFwd>;
1178
1180
 
1179
-
1180
1181
  onmessagebuttonclicked: (event: MessageButtonClicked) => void;
1181
1182
 
1182
1183
  onmessagedropdownboxselected: (event: DropdownBoxSelected) => void;
@@ -2241,7 +2242,7 @@ export class DefaultSocket implements Socket {
2241
2242
  selectbox_id: selectbox_id,
2242
2243
  sender_id: sender_id,
2243
2244
  user_id: user_id,
2244
- value: value
2245
+ value: value,
2245
2246
  },
2246
2247
  });
2247
2248
  return response.dropdown_box_selected;