@libgot/whatsapp-bridge-sdk 1.0.32 → 1.0.33
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/.idea/modules.xml +8 -0
- package/.idea/php.xml +19 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/whatsapp-bridge-sdk.iml +11 -0
- package/.swagger-codegen/VERSION +1 -0
- package/.swagger-codegen-ignore +23 -0
- package/README.md +2 -2
- package/apis/chats-api.ts +8 -40
- package/dist/apis/auth-api.js +147 -301
- package/dist/apis/chats-api.d.ts +5 -21
- package/dist/apis/chats-api.js +202 -386
- package/dist/apis/contacts-api.js +104 -216
- package/dist/apis/default-api.js +46 -136
- package/dist/apis/healthchecks-api.js +85 -197
- package/dist/apis/messages-api.js +198 -354
- package/dist/apis/users-api.js +227 -415
- package/dist/base.js +10 -31
- package/dist/configuration.js +3 -5
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/read-message-dto.d.ts +7 -2
- package/models/index.ts +1 -1
- package/models/read-message-dto.ts +8 -2
- package/package.json +1 -1
- package/tsconfig.json +1 -5
package/dist/base.js
CHANGED
|
@@ -12,26 +12,11 @@
|
|
|
12
12
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
16
|
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
32
17
|
// Some imports not used depending on template conditions
|
|
33
18
|
// @ts-ignore
|
|
34
|
-
|
|
19
|
+
const axios_1 = require("axios");
|
|
35
20
|
exports.BASE_PATH = "http://api-whatsapp-bridge.local.libgot.com".replace(/\/+$/, "");
|
|
36
21
|
/**
|
|
37
22
|
*
|
|
@@ -48,10 +33,8 @@ exports.COLLECTION_FORMATS = {
|
|
|
48
33
|
* @export
|
|
49
34
|
* @class BaseAPI
|
|
50
35
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (basePath === void 0) { basePath = exports.BASE_PATH; }
|
|
54
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
36
|
+
class BaseAPI {
|
|
37
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
55
38
|
this.basePath = basePath;
|
|
56
39
|
this.axios = axios;
|
|
57
40
|
if (configuration) {
|
|
@@ -59,8 +42,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
59
42
|
this.basePath = configuration.basePath || this.basePath;
|
|
60
43
|
}
|
|
61
44
|
}
|
|
62
|
-
|
|
63
|
-
}());
|
|
45
|
+
}
|
|
64
46
|
exports.BaseAPI = BaseAPI;
|
|
65
47
|
;
|
|
66
48
|
/**
|
|
@@ -69,14 +51,11 @@ exports.BaseAPI = BaseAPI;
|
|
|
69
51
|
* @class RequiredError
|
|
70
52
|
* @extends {Error}
|
|
71
53
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
_this.name = "RequiredError";
|
|
78
|
-
return _this;
|
|
54
|
+
class RequiredError extends Error {
|
|
55
|
+
constructor(field, msg) {
|
|
56
|
+
super(msg);
|
|
57
|
+
this.field = field;
|
|
58
|
+
this.name = "RequiredError";
|
|
79
59
|
}
|
|
80
|
-
|
|
81
|
-
}(Error));
|
|
60
|
+
}
|
|
82
61
|
exports.RequiredError = RequiredError;
|
package/dist/configuration.js
CHANGED
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Configuration = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (param === void 0) { param = {}; }
|
|
17
|
+
class Configuration {
|
|
18
|
+
constructor(param = {}) {
|
|
20
19
|
this.apiKey = param.apiKey;
|
|
21
20
|
this.username = param.username;
|
|
22
21
|
this.password = param.password;
|
|
@@ -24,6 +23,5 @@ var Configuration = /** @class */ (function () {
|
|
|
24
23
|
this.basePath = param.basePath;
|
|
25
24
|
this.baseOptions = param.baseOptions;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
}());
|
|
26
|
+
}
|
|
29
27
|
exports.Configuration = Configuration;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './api-response-user-dto';
|
|
|
4
4
|
export * from './assign-to-me-dto';
|
|
5
5
|
export * from './attributes';
|
|
6
6
|
export * from './auth-dto';
|
|
7
|
+
export * from './chats-response-dto';
|
|
7
8
|
export * from './component-template-dto';
|
|
8
9
|
export * from './contacts-response-dto';
|
|
9
10
|
export * from './conversation-message-dto';
|
|
@@ -18,7 +19,6 @@ export * from './inline-response503-info';
|
|
|
18
19
|
export * from './key-dto';
|
|
19
20
|
export * from './mark-chat-unread-dto';
|
|
20
21
|
export * from './message-response-dto';
|
|
21
|
-
export * from './pagination-chat-response-dto';
|
|
22
22
|
export * from './parameter-template-dto';
|
|
23
23
|
export * from './read-message-dto';
|
|
24
24
|
export * from './read-message-response-data-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./api-response-user-dto"), exports);
|
|
|
20
20
|
__exportStar(require("./assign-to-me-dto"), exports);
|
|
21
21
|
__exportStar(require("./attributes"), exports);
|
|
22
22
|
__exportStar(require("./auth-dto"), exports);
|
|
23
|
+
__exportStar(require("./chats-response-dto"), exports);
|
|
23
24
|
__exportStar(require("./component-template-dto"), exports);
|
|
24
25
|
__exportStar(require("./contacts-response-dto"), exports);
|
|
25
26
|
__exportStar(require("./conversation-message-dto"), exports);
|
|
@@ -34,7 +35,6 @@ __exportStar(require("./inline-response503-info"), exports);
|
|
|
34
35
|
__exportStar(require("./key-dto"), exports);
|
|
35
36
|
__exportStar(require("./mark-chat-unread-dto"), exports);
|
|
36
37
|
__exportStar(require("./message-response-dto"), exports);
|
|
37
|
-
__exportStar(require("./pagination-chat-response-dto"), exports);
|
|
38
38
|
__exportStar(require("./parameter-template-dto"), exports);
|
|
39
39
|
__exportStar(require("./read-message-dto"), exports);
|
|
40
40
|
__exportStar(require("./read-message-response-data-dto"), exports);
|
|
@@ -20,10 +20,15 @@ export interface ReadMessageDto {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ReadMessageDto
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
branchId: number;
|
|
24
24
|
/**
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @memberof ReadMessageDto
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
chatId?: number;
|
|
29
|
+
/**
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ReadMessageDto
|
|
32
|
+
*/
|
|
33
|
+
cellphone?: number;
|
|
29
34
|
}
|
package/models/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './api-response-user-dto';
|
|
|
4
4
|
export * from './assign-to-me-dto';
|
|
5
5
|
export * from './attributes';
|
|
6
6
|
export * from './auth-dto';
|
|
7
|
+
export * from './chats-response-dto';
|
|
7
8
|
export * from './component-template-dto';
|
|
8
9
|
export * from './contacts-response-dto';
|
|
9
10
|
export * from './conversation-message-dto';
|
|
@@ -18,7 +19,6 @@ export * from './inline-response503-info';
|
|
|
18
19
|
export * from './key-dto';
|
|
19
20
|
export * from './mark-chat-unread-dto';
|
|
20
21
|
export * from './message-response-dto';
|
|
21
|
-
export * from './pagination-chat-response-dto';
|
|
22
22
|
export * from './parameter-template-dto';
|
|
23
23
|
export * from './read-message-dto';
|
|
24
24
|
export * from './read-message-response-data-dto';
|
|
@@ -24,11 +24,17 @@ export interface ReadMessageDto {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReadMessageDto
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
branchId: number;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReadMessageDto
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
chatId?: number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ReadMessageDto
|
|
38
|
+
*/
|
|
39
|
+
cellphone?: number;
|
|
34
40
|
}
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"declaration": true,
|
|
4
|
-
"target": "
|
|
4
|
+
"target": "es6",
|
|
5
5
|
"module": "commonjs",
|
|
6
6
|
"noImplicitAny": true,
|
|
7
7
|
"outDir": "dist",
|
|
8
8
|
"rootDir": ".",
|
|
9
|
-
"lib": [
|
|
10
|
-
"es6",
|
|
11
|
-
"dom"
|
|
12
|
-
],
|
|
13
9
|
"typeRoots": [
|
|
14
10
|
"node_modules/@types"
|
|
15
11
|
]
|