zalo-toolkit 1.0.3 → 1.0.5

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.
@@ -27,6 +27,7 @@ var setMute = require('./apis/setMute.cjs');
27
27
  var updateAutoDeleteChat = require('./apis/updateAutoDeleteChat.cjs');
28
28
  var updateLang = require('./apis/updateLang.cjs');
29
29
  var updateSettings = require('./apis/updateSettings.cjs');
30
+ var apis = require('./apis.cjs');
30
31
 
31
32
 
32
33
 
@@ -140,3 +141,4 @@ Object.defineProperty(exports, "UpdateSettingsType", {
140
141
  enumerable: true,
141
142
  get: function () { return updateSettings.UpdateSettingsType; }
142
143
  });
144
+ exports.ZaloAPI = apis.ZaloAPI;
package/dist/cjs/zalo.cjs CHANGED
@@ -134,9 +134,10 @@ class Zalo {
134
134
  async getUserInfo(ctx) {
135
135
  return await loginQR.getUserInfo(ctx);
136
136
  }
137
- async listener(api) {
137
+ listener(api) {
138
138
  return new listen.Listener(api);
139
139
  }
140
140
  }
141
141
 
142
+ exports.ZaloAPI = apis.ZaloAPI;
142
143
  exports.Zalo = Zalo;
package/dist/index.d.ts CHANGED
@@ -135,6 +135,9 @@ export type { UploadProductPhotoPayload, UploadProductPhotoResponse } from './ap
135
135
  export type { VotePollResponse } from './apis/votePoll.js';
136
136
  export type { CustomAPICallback, CustomAPIProps } from './apis/custom.js';
137
137
  export type { Listener } from './apis/listen.js';
138
+ export type { ForwardMessageOptions, ForwardMessageRecipient, ForwardMessageType } from './apis/forwardMessage.js';
139
+ export type { ForwardAttachmentOptions } from './apis/forwardAttachment.js';
140
+ export type { FriendRequestType, RecommType } from './apis/getRecommendFriends.js';
138
141
  export { CloseReason } from './models/Listen.js';
139
142
  export { ReviewPendingMemberRequestStatus } from './apis/reviewPendingMemberRequest.js';
140
143
  export { TextStyle, Urgency } from './apis/sendMessage.js';
package/dist/zalo.d.ts CHANGED
@@ -69,5 +69,6 @@ export declare class Zalo {
69
69
  error_code: number;
70
70
  error_message: string;
71
71
  } | undefined>;
72
- listener(api: ZaloAPI): Promise<Listener>;
72
+ listener(api: ZaloAPI): Listener;
73
73
  }
74
+ export { ZaloAPI };
package/dist/zalo.js CHANGED
@@ -112,7 +112,8 @@ export class Zalo {
112
112
  async getUserInfo(ctx) {
113
113
  return await getUserInfo(ctx);
114
114
  }
115
- async listener(api) {
115
+ listener(api) {
116
116
  return new Listener(api);
117
117
  }
118
118
  }
119
+ export { ZaloAPI };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zalo-toolkit",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Unofficial Zalo API for JavaScript",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",