@open-wa/wa-automate 4.76.0 → 5.0.0-alpha.2

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 (125) hide show
  1. package/README.md +14 -165
  2. package/dist/cli-runtime-B7_3MM0c.cjs +798 -0
  3. package/dist/cli-runtime-B7_3MM0c.cjs.map +1 -0
  4. package/dist/cli-runtime-CmpYxFCk.d.cts +31 -0
  5. package/dist/cli-runtime-CmpYxFCk.d.cts.map +1 -0
  6. package/dist/cli.cjs +17 -0
  7. package/dist/cli.cjs.map +1 -0
  8. package/dist/cli.d.cts +2 -0
  9. package/dist/index.cjs +224 -0
  10. package/dist/index.cjs.map +1 -0
  11. package/dist/index.d.cts +81 -0
  12. package/dist/index.d.cts.map +1 -0
  13. package/package.json +34 -177
  14. package/CNAME +0 -1
  15. package/_tsconfig.docs.json +0 -140
  16. package/bin/config-schema.json +0 -1
  17. package/bin/oas-type-schemas.json +0 -1
  18. package/bin/server.js +0 -45
  19. package/build/build-config-json-for-bin.ts +0 -56
  20. package/build/generate-oas-types.ts +0 -31
  21. package/dist/api/Client.d.ts +0 -2255
  22. package/dist/api/Client.js +0 -4358
  23. package/dist/api/functions/exposed.enum.d.ts +0 -7
  24. package/dist/api/functions/exposed.enum.js +0 -11
  25. package/dist/api/model/aliases.d.ts +0 -110
  26. package/dist/api/model/aliases.js +0 -3
  27. package/dist/api/model/button.d.ts +0 -24
  28. package/dist/api/model/button.js +0 -2
  29. package/dist/api/model/call.d.ts +0 -51
  30. package/dist/api/model/call.js +0 -18
  31. package/dist/api/model/chat.d.ts +0 -221
  32. package/dist/api/model/chat.js +0 -52
  33. package/dist/api/model/config.d.ts +0 -836
  34. package/dist/api/model/config.js +0 -111
  35. package/dist/api/model/contact.d.ts +0 -143
  36. package/dist/api/model/contact.js +0 -2
  37. package/dist/api/model/errors.d.ts +0 -90
  38. package/dist/api/model/errors.js +0 -117
  39. package/dist/api/model/events.d.ts +0 -120
  40. package/dist/api/model/events.js +0 -127
  41. package/dist/api/model/group-metadata.d.ts +0 -124
  42. package/dist/api/model/group-metadata.js +0 -25
  43. package/dist/api/model/id.d.ts +0 -5
  44. package/dist/api/model/id.js +0 -2
  45. package/dist/api/model/index.d.ts +0 -110
  46. package/dist/api/model/index.js +0 -128
  47. package/dist/api/model/label.d.ts +0 -24
  48. package/dist/api/model/label.js +0 -2
  49. package/dist/api/model/media.d.ts +0 -93
  50. package/dist/api/model/media.js +0 -12
  51. package/dist/api/model/message.d.ts +0 -422
  52. package/dist/api/model/message.js +0 -40
  53. package/dist/api/model/product.d.ts +0 -141
  54. package/dist/api/model/product.js +0 -2
  55. package/dist/api/model/reactions.d.ts +0 -76
  56. package/dist/api/model/reactions.js +0 -2
  57. package/dist/api/model/sessionInfo.d.ts +0 -77
  58. package/dist/api/model/sessionInfo.js +0 -2
  59. package/dist/build/build-postman.d.ts +0 -1
  60. package/dist/build/build-postman.js +0 -262
  61. package/dist/cli/cli-options.d.ts +0 -9
  62. package/dist/cli/cli-options.js +0 -289
  63. package/dist/cli/collections.d.ts +0 -2
  64. package/dist/cli/collections.js +0 -251
  65. package/dist/cli/file-utils.d.ts +0 -1
  66. package/dist/cli/file-utils.js +0 -71
  67. package/dist/cli/index.d.ts +0 -1
  68. package/dist/cli/index.js +0 -231
  69. package/dist/cli/integrations/chatwoot.d.ts +0 -49
  70. package/dist/cli/integrations/chatwoot.js +0 -672
  71. package/dist/cli/integrations/cloudflare.d.ts +0 -6
  72. package/dist/cli/integrations/cloudflare.js +0 -76
  73. package/dist/cli/logo.d.ts +0 -1
  74. package/dist/cli/logo.js +0 -49
  75. package/dist/cli/server.d.ts +0 -24
  76. package/dist/cli/server.js +0 -540
  77. package/dist/cli/setup.d.ts +0 -30
  78. package/dist/cli/setup.js +0 -308
  79. package/dist/config/puppeteer.config.d.ts +0 -11
  80. package/dist/config/puppeteer.config.js +0 -65
  81. package/dist/controllers/auth.d.ts +0 -36
  82. package/dist/controllers/auth.js +0 -322
  83. package/dist/controllers/browser.d.ts +0 -17
  84. package/dist/controllers/browser.js +0 -603
  85. package/dist/controllers/events.d.ts +0 -82
  86. package/dist/controllers/events.js +0 -173
  87. package/dist/controllers/init_patch.d.ts +0 -13
  88. package/dist/controllers/init_patch.js +0 -42
  89. package/dist/controllers/initializer.d.ts +0 -22
  90. package/dist/controllers/initializer.js +0 -511
  91. package/dist/controllers/launch_checks.d.ts +0 -8
  92. package/dist/controllers/launch_checks.js +0 -130
  93. package/dist/controllers/patch_manager.d.ts +0 -37
  94. package/dist/controllers/patch_manager.js +0 -231
  95. package/dist/controllers/popup/index.d.ts +0 -3
  96. package/dist/controllers/popup/index.html +0 -168
  97. package/dist/controllers/popup/index.js +0 -148
  98. package/dist/controllers/script_preloader.d.ts +0 -17
  99. package/dist/controllers/script_preloader.js +0 -88
  100. package/dist/index.d.ts +0 -13
  101. package/dist/index.js +0 -36
  102. package/dist/lib/README.md +0 -5
  103. package/dist/lib/base64.js +0 -1
  104. package/dist/lib/hash.js +0 -1
  105. package/dist/lib/jsSha.min.js +0 -1
  106. package/dist/lib/launch.js +0 -1
  107. package/dist/lib/qr.min.js +0 -1
  108. package/dist/lib/wapi.js +0 -2163
  109. package/dist/logging/custom_transport.d.ts +0 -9
  110. package/dist/logging/custom_transport.js +0 -35
  111. package/dist/logging/logging.d.ts +0 -50
  112. package/dist/logging/logging.js +0 -196
  113. package/dist/structures/Collector.d.ts +0 -202
  114. package/dist/structures/Collector.js +0 -391
  115. package/dist/structures/Dialog.d.ts +0 -55
  116. package/dist/structures/Dialog.js +0 -21
  117. package/dist/structures/MessageCollector.d.ts +0 -78
  118. package/dist/structures/MessageCollector.js +0 -145
  119. package/dist/structures/preProcessors.d.ts +0 -58
  120. package/dist/structures/preProcessors.js +0 -181
  121. package/dist/utils/pid_utils.d.ts +0 -1
  122. package/dist/utils/pid_utils.js +0 -26
  123. package/dist/utils/tools.d.ts +0 -152
  124. package/dist/utils/tools.js +0 -494
  125. package/tos.md +0 -77
@@ -1,111 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LicenseType = exports.QRQuality = exports.OnError = exports.NotificationLanguage = exports.DIRECTORY_STRATEGY = exports.CLOUD_PROVIDERS = exports.QRFormat = void 0;
4
- /**
5
- * The different types of qr code output.
6
- */
7
- var QRFormat;
8
- (function (QRFormat) {
9
- QRFormat["PNG"] = "png";
10
- QRFormat["JPEG"] = "jpeg";
11
- QRFormat["WEBM"] = "webm";
12
- })(QRFormat = exports.QRFormat || (exports.QRFormat = {}));
13
- var CLOUD_PROVIDERS;
14
- (function (CLOUD_PROVIDERS) {
15
- CLOUD_PROVIDERS["GCP"] = "GCP";
16
- CLOUD_PROVIDERS["WASABI"] = "WASABI";
17
- CLOUD_PROVIDERS["AWS"] = "AWS";
18
- CLOUD_PROVIDERS["CONTABO"] = "CONTABO";
19
- CLOUD_PROVIDERS["DO"] = "DO";
20
- CLOUD_PROVIDERS["MINIO"] = "MINIO";
21
- })(CLOUD_PROVIDERS = exports.CLOUD_PROVIDERS || (exports.CLOUD_PROVIDERS = {}));
22
- var DIRECTORY_STRATEGY;
23
- (function (DIRECTORY_STRATEGY) {
24
- /**
25
- * E.g `/2021-08-16/`
26
- */
27
- DIRECTORY_STRATEGY["DATE"] = "DATE";
28
- /**
29
- * E.g `/447123456789/`
30
- */
31
- DIRECTORY_STRATEGY["CHAT"] = "CHAT";
32
- /**
33
- * E.g `/447123456789/2021-08-16/`
34
- */
35
- DIRECTORY_STRATEGY["CHAT_DATE"] = "CHAT_DATE";
36
- /**
37
- * E.g `/2021-08-16/447123456789/`
38
- */
39
- DIRECTORY_STRATEGY["DATE_CHAT"] = "DATE_CHAT";
40
- })(DIRECTORY_STRATEGY = exports.DIRECTORY_STRATEGY || (exports.DIRECTORY_STRATEGY = {}));
41
- /**
42
- * The available languages for the host security notification
43
- */
44
- var NotificationLanguage;
45
- (function (NotificationLanguage) {
46
- NotificationLanguage["PTBR"] = "pt-br";
47
- NotificationLanguage["ENGB"] = "en-gb";
48
- NotificationLanguage["DEDE"] = "de-de";
49
- NotificationLanguage["IDID"] = "id-id";
50
- NotificationLanguage["ITIT"] = "it-it";
51
- NotificationLanguage["NLNL"] = "nl-nl";
52
- NotificationLanguage["ES"] = "es";
53
- })(NotificationLanguage = exports.NotificationLanguage || (exports.NotificationLanguage = {}));
54
- var OnError;
55
- (function (OnError) {
56
- /**
57
- * Return it as a string
58
- */
59
- OnError["AS_STRING"] = "AS_STRING";
60
- /**
61
- * Do not log anything, just return `false`
62
- */
63
- OnError["RETURN_FALSE"] = "RETURN_FALSE";
64
- /**
65
- * throw the error
66
- */
67
- OnError["THROW"] = "THROW";
68
- /**
69
- * Log the error and return false
70
- */
71
- OnError["LOG_AND_FALSE"] = "LOG_AND_FALSE";
72
- /**
73
- * Log the error AND return the string
74
- */
75
- OnError["LOG_AND_STRING"] = "LOG_AND_STRING";
76
- /**
77
- * Return the error object
78
- */
79
- OnError["RETURN_ERROR"] = "RETURN_ERROR";
80
- /**
81
- * Do nothing.
82
- */
83
- OnError["NOTHING"] = "NOTHING";
84
- })(OnError = exports.OnError || (exports.OnError = {}));
85
- /**
86
- * The set values of quality you can set for the quality of the qr code output. Ten being the highest quality.
87
- */
88
- var QRQuality;
89
- (function (QRQuality) {
90
- QRQuality[QRQuality["ONE"] = 0.1] = "ONE";
91
- QRQuality[QRQuality["TWO"] = 0.2] = "TWO";
92
- QRQuality[QRQuality["THREE"] = 0.3] = "THREE";
93
- QRQuality[QRQuality["FOUR"] = 0.4] = "FOUR";
94
- QRQuality[QRQuality["FIVE"] = 0.5] = "FIVE";
95
- QRQuality[QRQuality["SIX"] = 0.6] = "SIX";
96
- QRQuality[QRQuality["SEVEN"] = 0.7] = "SEVEN";
97
- QRQuality[QRQuality["EIGHT"] = 0.8] = "EIGHT";
98
- QRQuality[QRQuality["NINE"] = 0.9] = "NINE";
99
- QRQuality[QRQuality["TEN"] = 1] = "TEN";
100
- })(QRQuality = exports.QRQuality || (exports.QRQuality = {}));
101
- var LicenseType;
102
- (function (LicenseType) {
103
- LicenseType["CUSTOM"] = "CUSTOM";
104
- LicenseType["B2B_RESTRICTED_VOLUME_LICENSE"] = "B2B_RESTRICTED_VOLUME_LICENSE";
105
- LicenseType["INSIDER"] = "Insiders Program";
106
- LicenseType["TEXT_STORY"] = "Text Story License Key";
107
- LicenseType["IMAGE_STORY"] = "Image Story License Key";
108
- LicenseType["VIDEO_STORY"] = "Video Story License Key";
109
- LicenseType["PREMIUM"] = "Premium License Key";
110
- LicenseType["NONE"] = "NONE";
111
- })(LicenseType = exports.LicenseType || (exports.LicenseType = {}));
@@ -1,143 +0,0 @@
1
- import { ContactId } from './aliases';
2
- import { Id } from './id';
3
- import { Message } from './message';
4
- export interface NumberCheck {
5
- id: Id;
6
- status: 200 | 404;
7
- isBusiness: boolean;
8
- canReceiveMessage: boolean;
9
- numberExists: boolean;
10
- }
11
- export interface BizCategory {
12
- id: string;
13
- localized_display_name: string;
14
- }
15
- export interface BizProfileOptions {
16
- commerceExperience: "catalog" | "none" | "shop";
17
- cartEnabled: boolean;
18
- }
19
- export interface BusinessHours {
20
- config: {
21
- [day in "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun"]: {
22
- mode: "specific_hours" | "open_24h" | "appointment_only";
23
- hours: number[][];
24
- };
25
- };
26
- timezone: string;
27
- }
28
- export interface BusinessProfile {
29
- /**
30
- * The Contact ID of the business
31
- */
32
- id: ContactId;
33
- /**
34
- * Some special string that identifies the business (?)
35
- */
36
- tag: string;
37
- /**
38
- * The business description
39
- */
40
- description: string;
41
- /**
42
- * The business' categories
43
- */
44
- categories: BizCategory[];
45
- /**
46
- * The business' profile options
47
- */
48
- profileOptions: BizProfileOptions;
49
- /**
50
- * The business' email address
51
- */
52
- email: string;
53
- /**
54
- * Array of strings that represent the business' websites
55
- */
56
- website: string[];
57
- /**
58
- * The operating hours of the business
59
- */
60
- businessHours: BusinessHours;
61
- /**
62
- * The status of the business' catalog
63
- */
64
- catalogStatus: "catalog_exists" | string;
65
- /**
66
- * The address of the business
67
- */
68
- address: string;
69
- /**
70
- * The facebook page of the business
71
- */
72
- fbPage: any;
73
- /**
74
- * The instagram profile of the business
75
- */
76
- igProfessional: any;
77
- isProfileLinked: boolean;
78
- coverPhoto: {
79
- /**
80
- * The id of the cover photo
81
- */
82
- id: string;
83
- /**
84
- * The URL of the cover photo. It might download as an .enc but just change the extension to .jpg
85
- */
86
- url: string;
87
- };
88
- /**
89
- * The latitude of the business location if set
90
- */
91
- latitude: number;
92
- /**
93
- * The longitude of the business location if set
94
- */
95
- longitude: number;
96
- }
97
- export interface Contact {
98
- formattedName: string;
99
- id: ContactId;
100
- isBusiness: boolean;
101
- /**
102
- * Most likely true when the account has a green tick. See `verifiedLevel` also.
103
- */
104
- isEnterprise: boolean;
105
- isMe: boolean;
106
- isMyContact: boolean;
107
- isPSA: boolean;
108
- isUser: boolean;
109
- isWAContact: boolean;
110
- labels: string[];
111
- msgs: Message[];
112
- name: string;
113
- plaintextDisabled: boolean;
114
- profilePicThumbObj: {
115
- eurl: string;
116
- id: Id;
117
- img: string;
118
- imgFull: string;
119
- raw: string;
120
- tag: string;
121
- };
122
- pushname: string;
123
- shortName: string;
124
- statusMute: boolean;
125
- type: string;
126
- /**
127
- * 0 = not verified
128
- * 2 = verified (most likely represents a blue tick)
129
- */
130
- verifiedLevel: number;
131
- /**
132
- * The business account name verified by WA.
133
- */
134
- verifiedName: string;
135
- isOnline?: boolean;
136
- lastSeen?: number;
137
- /**
138
- * If the contact is a business, the business information will be added to the contact object.
139
- *
140
- * In some circumstances this will be out of date or lacking certain fields. In those cases you have to use `client.getBusinessProfile`
141
- */
142
- businessProfile?: BusinessProfile;
143
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,90 +0,0 @@
1
- export declare class PageEvaluationTimeout extends Error {
2
- constructor(...args: any[]);
3
- }
4
- export declare class SessionExpiredError extends Error {
5
- constructor();
6
- }
7
- /**
8
- * Enum of error names specific to this library
9
- */
10
- export declare enum ERROR_NAME {
11
- /**
12
- * The sticker file exceeds the maximum 1MB limit
13
- */
14
- STICKER_TOO_LARGE = "STICKER_TOO_LARGE",
15
- /**
16
- * An expected URL is missing
17
- */
18
- MISSING_URL = "MISSING_URL",
19
- /**
20
- * The puppeteer page has been closed or the client has lost the connection with the page. This can happen if your computer/server has gone to sleep and waken up. Please restart your session.
21
- */
22
- PAGE_CLOSED = "PAGE_CLOSED",
23
- /**
24
- * The client state is preventing the command from completing.
25
- */
26
- STATE_ERROR = "STATE_ERROR",
27
- /**
28
- * The message is not a media message.
29
- */
30
- NOT_MEDIA = "NOT_MEDIA",
31
- /**
32
- * Expected media is missing.
33
- */
34
- MEDIA_MISSING = "MEDIA_MISSING",
35
- /**
36
- * The attempt to decrypt a sticker message has failed.
37
- */
38
- STICKER_NOT_DECRYPTED = "STICKER_NOT_DECRYPTED",
39
- /**
40
- * File was not found at given path.
41
- */
42
- FILE_NOT_FOUND = "FILE_NOT_FOUND",
43
- /**
44
- * The sticker metadata parameter is wrong.
45
- */
46
- BAD_STICKER_METADATA = "BAD_STICKER_METADATA",
47
- /**
48
- * Unable to send text
49
- */
50
- SENDTEXT_FAILURE = "SENDTEXT_FAILURE",
51
- /**
52
- * Label does not exist
53
- */
54
- INVALID_LABEL = "INVALID_LABEL"
55
- }
56
- /**
57
- * A simple custom error class that takes the first parameter as the name using the [[ERROR_NAME]] enum
58
- */
59
- export declare class CustomError extends Error {
60
- constructor(name: ERROR_NAME, message?: string, ...params: any[]);
61
- }
62
- /**
63
- * Add Participants Status Code Enum
64
- */
65
- export declare enum AddParticipantErrorStatusCode {
66
- /**
67
- * Participant could not be added to group because they are already in the group
68
- */
69
- ALREADY_IN_GROUP = 409,
70
- /**
71
- * Participant could not be added to group because their privacy settings do not allow you to add them.
72
- */
73
- PRIVACY_SETTINGS = 403,
74
- /**
75
- * Participant could not be added to group because they recently left.
76
- */
77
- RECENTLY_LEFT = 408,
78
- /**
79
- * Participant could not be added to group because the group is full
80
- */
81
- GROUP_FULL = 500
82
- }
83
- export declare class AddParticipantError extends Error {
84
- data: {
85
- [contactId: string]: number;
86
- };
87
- constructor(message: string, data?: {
88
- [contactId: string]: number;
89
- });
90
- }
@@ -1,117 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddParticipantError = exports.AddParticipantErrorStatusCode = exports.CustomError = exports.ERROR_NAME = exports.SessionExpiredError = exports.PageEvaluationTimeout = void 0;
4
- class PageEvaluationTimeout extends Error {
5
- constructor(...args) {
6
- super(...args);
7
- if (Error.captureStackTrace) {
8
- Error.captureStackTrace(this, PageEvaluationTimeout);
9
- }
10
- this.name = 'PageEvaluationTimeout';
11
- this.message =
12
- 'The method call was timed out but it may have been successfull in the WA session. It is just no longer holding up the process';
13
- }
14
- }
15
- exports.PageEvaluationTimeout = PageEvaluationTimeout;
16
- class SessionExpiredError extends Error {
17
- constructor() {
18
- super("This session has been deauthenticated!"); // (1)
19
- this.name = "SessionExpiredError"; // (2)
20
- }
21
- }
22
- exports.SessionExpiredError = SessionExpiredError;
23
- /**
24
- * Enum of error names specific to this library
25
- */
26
- var ERROR_NAME;
27
- (function (ERROR_NAME) {
28
- /**
29
- * The sticker file exceeds the maximum 1MB limit
30
- */
31
- ERROR_NAME["STICKER_TOO_LARGE"] = "STICKER_TOO_LARGE";
32
- /**
33
- * An expected URL is missing
34
- */
35
- ERROR_NAME["MISSING_URL"] = "MISSING_URL";
36
- /**
37
- * The puppeteer page has been closed or the client has lost the connection with the page. This can happen if your computer/server has gone to sleep and waken up. Please restart your session.
38
- */
39
- ERROR_NAME["PAGE_CLOSED"] = "PAGE_CLOSED";
40
- /**
41
- * The client state is preventing the command from completing.
42
- */
43
- ERROR_NAME["STATE_ERROR"] = "STATE_ERROR";
44
- /**
45
- * The message is not a media message.
46
- */
47
- ERROR_NAME["NOT_MEDIA"] = "NOT_MEDIA";
48
- /**
49
- * Expected media is missing.
50
- */
51
- ERROR_NAME["MEDIA_MISSING"] = "MEDIA_MISSING";
52
- /**
53
- * The attempt to decrypt a sticker message has failed.
54
- */
55
- ERROR_NAME["STICKER_NOT_DECRYPTED"] = "STICKER_NOT_DECRYPTED";
56
- /**
57
- * File was not found at given path.
58
- */
59
- ERROR_NAME["FILE_NOT_FOUND"] = "FILE_NOT_FOUND";
60
- /**
61
- * The sticker metadata parameter is wrong.
62
- */
63
- ERROR_NAME["BAD_STICKER_METADATA"] = "BAD_STICKER_METADATA";
64
- /**
65
- * Unable to send text
66
- */
67
- ERROR_NAME["SENDTEXT_FAILURE"] = "SENDTEXT_FAILURE";
68
- /**
69
- * Label does not exist
70
- */
71
- ERROR_NAME["INVALID_LABEL"] = "INVALID_LABEL";
72
- })(ERROR_NAME = exports.ERROR_NAME || (exports.ERROR_NAME = {}));
73
- /**
74
- * A simple custom error class that takes the first parameter as the name using the [[ERROR_NAME]] enum
75
- */
76
- class CustomError extends Error {
77
- constructor(name, message, ...params) {
78
- super(...[
79
- message,
80
- ...params
81
- ]);
82
- this.name = name;
83
- this.message = message;
84
- }
85
- }
86
- exports.CustomError = CustomError;
87
- /**
88
- * Add Participants Status Code Enum
89
- */
90
- var AddParticipantErrorStatusCode;
91
- (function (AddParticipantErrorStatusCode) {
92
- /**
93
- * Participant could not be added to group because they are already in the group
94
- */
95
- AddParticipantErrorStatusCode[AddParticipantErrorStatusCode["ALREADY_IN_GROUP"] = 409] = "ALREADY_IN_GROUP";
96
- /**
97
- * Participant could not be added to group because their privacy settings do not allow you to add them.
98
- */
99
- AddParticipantErrorStatusCode[AddParticipantErrorStatusCode["PRIVACY_SETTINGS"] = 403] = "PRIVACY_SETTINGS";
100
- /**
101
- * Participant could not be added to group because they recently left.
102
- */
103
- AddParticipantErrorStatusCode[AddParticipantErrorStatusCode["RECENTLY_LEFT"] = 408] = "RECENTLY_LEFT";
104
- /**
105
- * Participant could not be added to group because the group is full
106
- */
107
- AddParticipantErrorStatusCode[AddParticipantErrorStatusCode["GROUP_FULL"] = 500] = "GROUP_FULL";
108
- })(AddParticipantErrorStatusCode = exports.AddParticipantErrorStatusCode || (exports.AddParticipantErrorStatusCode = {}));
109
- class AddParticipantError extends Error {
110
- constructor(message, data) {
111
- super();
112
- this.name = "ADD_PARTICIPANTS_ERROR";
113
- this.message = message;
114
- this.data = data;
115
- }
116
- }
117
- exports.AddParticipantError = AddParticipantError;
@@ -1,120 +0,0 @@
1
- /**
2
- * An enum of all the "simple listeners". A simple listener is a listener that just takes one parameter which is the callback function to handle the event.
3
- */
4
- export declare enum SimpleListener {
5
- /**
6
- * Represents [[onMessage]]
7
- */
8
- Message = "onMessage",
9
- /**
10
- * Represents [[onAnyMessage]]
11
- */
12
- AnyMessage = "onAnyMessage",
13
- /**
14
- * Represents [[onMessageDeleted]]
15
- */
16
- MessageDeleted = "onMessageDeleted",
17
- /**
18
- * Represents [[onAck]]
19
- */
20
- Ack = "onAck",
21
- /**
22
- * Represents [[onAddedToGroup]]
23
- */
24
- AddedToGroup = "onAddedToGroup",
25
- /**
26
- * Represents [[onChatDeleted]]
27
- */
28
- ChatDeleted = "onChatDeleted",
29
- /**
30
- * Represents [[onBattery]]
31
- */
32
- Battery = "onBattery",
33
- /**
34
- * Represents [[onChatOpened]]
35
- */
36
- ChatOpened = "onChatOpened",
37
- /**
38
- * Represents [[onIncomingCall]]
39
- */
40
- IncomingCall = "onIncomingCall",
41
- /**
42
- * Represents [[onIncomingCall]]
43
- */
44
- CallState = "onCallState",
45
- /**
46
- * Represents [[onGlobalParticipantsChanged]]
47
- */
48
- GlobalParticipantsChanged = "onGlobalParticipantsChanged",
49
- /**
50
- * Represents [[onGroupApprovalRequest]]
51
- */
52
- GroupApprovalRequest = "onGroupApprovalRequest",
53
- /**
54
- * Represents [[onChatState]]
55
- */
56
- ChatState = "onChatState",
57
- /**
58
- * Represents [[onLogout]]
59
- */
60
- Logout = "onLogout",
61
- /**
62
- * Represents [[onPlugged]]
63
- */
64
- Plugged = "onPlugged",
65
- /**
66
- * Represents [[onStateChanged]]
67
- */
68
- StateChanged = "onStateChanged",
69
- /**
70
- * Represents [[onButton]]
71
- */
72
- Button = "onButton",
73
- /**
74
- * Represents [[onButton]]
75
- */
76
- PollVote = "onPollVote",
77
- /**
78
- * Represents [[onBroadcast]]
79
- */
80
- Broadcast = "onBroadcast",
81
- /**
82
- * Represents [[onLabel]]
83
- */
84
- Label = "onLabel",
85
- /**
86
- * Requires licence
87
- * Represents [[onStory]]
88
- */
89
- Story = "onStory",
90
- /**
91
- * Requires licence
92
- * Represents [[onRemovedFromGroup]]
93
- */
94
- RemovedFromGroup = "onRemovedFromGroup",
95
- /**
96
- * Requires licence
97
- * Represents [[onContactAdded]]
98
- */
99
- ContactAdded = "onContactAdded",
100
- /**
101
- * Requires licence
102
- * Represents [[onContactAdded]]
103
- */
104
- Order = "onOrder",
105
- /**
106
- * Requires licence
107
- * Represents [[onNewProduct]]
108
- */
109
- NewProduct = "onNewProduct",
110
- /**
111
- * Requires licence
112
- * Represents [[onReaction]]
113
- */
114
- Reaction = "onReaction",
115
- /**
116
- * Requires licence
117
- * Represents [[onGroupChange]]
118
- */
119
- GroupChange = "onGroupChange"
120
- }