chore: initialize dependencies and zca-js project files

This commit is contained in:
Victor Phan
2026-07-17 20:35:17 +07:00
parent caa9717571
commit d36007d989
1551 changed files with 191538 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
'use strict';
class ZaloApiError extends Error {
constructor(message, code) {
super(message);
this.name = "ZcaApiError";
this.code = code || null;
}
}
exports.ZaloApiError = ZaloApiError;
+12
View File
@@ -0,0 +1,12 @@
'use strict';
var ZaloApiError = require('./ZaloApiError.cjs');
class ZaloApiLoginQRAborted extends ZaloApiError.ZaloApiError {
constructor(message = "Operation aborted") {
super(message);
this.name = "ZaloApiLoginQRAborted";
}
}
exports.ZaloApiLoginQRAborted = ZaloApiLoginQRAborted;
+12
View File
@@ -0,0 +1,12 @@
'use strict';
var ZaloApiError = require('./ZaloApiError.cjs');
class ZaloApiLoginQRDeclined extends ZaloApiError.ZaloApiError {
constructor(message = "Login QR request declined") {
super(message);
this.name = "ZaloApiLoginQRDeclined";
}
}
exports.ZaloApiLoginQRDeclined = ZaloApiLoginQRDeclined;
@@ -0,0 +1,12 @@
'use strict';
var ZaloApiError = require('./ZaloApiError.cjs');
class ZaloApiMissingImageMetadataGetter extends ZaloApiError.ZaloApiError {
constructor() {
super("Missing `imageMetadataGetter`. Please provide it in the Zalo object options.");
this.name = "ZaloApiMissingImageMetadataGetter";
}
}
exports.ZaloApiMissingImageMetadataGetter = ZaloApiMissingImageMetadataGetter;