@libgot/whatsapp-bridge-sdk 1.0.0
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/README.md +45 -0
- package/api.ts +19 -0
- package/apis/auth-api.ts +274 -0
- package/apis/contacts-api.ts +117 -0
- package/apis/default-api.ts +178 -0
- package/apis/healthchecks-api.ts +179 -0
- package/apis/users-api.ts +405 -0
- package/base.ts +70 -0
- package/configuration.ts +83 -0
- package/git_push.sh +53 -0
- package/index.ts +18 -0
- package/models/api-request-user-update-password-dto.ts +29 -0
- package/models/api-response-auth-dto.ts +29 -0
- package/models/api-response-user-dto.ts +29 -0
- package/models/attributes.ts +36 -0
- package/models/auth-dto.ts +36 -0
- package/models/contacts-response-dto.ts +29 -0
- package/models/data-dto.ts +29 -0
- package/models/data-unauthorized-dto.ts +34 -0
- package/models/index.ts +19 -0
- package/models/inline-response503-info.ts +28 -0
- package/models/inline-response503.ts +51 -0
- package/models/message-dto.ts +22 -0
- package/models/role-dto.ts +43 -0
- package/models/status-dto.ts +36 -0
- package/models/tokens-dto.ts +36 -0
- package/models/unauthorized-dto.ts +29 -0
- package/models/unauthorized-token-dto.ts +34 -0
- package/models/user-detail-dto.ts +57 -0
- package/models/user-update-password-dto.ts +43 -0
- package/models/whatsapp-contact-dto.ts +50 -0
- package/package.json +34 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* whatsapp-bridge Node Api
|
|
5
|
+
* The whatsapp-bridge API description
|
|
6
|
+
*
|
|
7
|
+
* OpenAPI spec version: 0.0.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UnauthorizedTokenDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UnauthorizedTokenDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UnauthorizedTokenDto
|
|
26
|
+
*/
|
|
27
|
+
statusCode: number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UnauthorizedTokenDto
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* whatsapp-bridge Node Api
|
|
5
|
+
* The whatsapp-bridge API description
|
|
6
|
+
*
|
|
7
|
+
* OpenAPI spec version: 0.0.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { RoleDto } from './role-dto';
|
|
16
|
+
import { StatusDto } from './status-dto';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface UserDetailDto
|
|
22
|
+
*/
|
|
23
|
+
export interface UserDetailDto {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UserDetailDto
|
|
28
|
+
* @example 1
|
|
29
|
+
*/
|
|
30
|
+
id: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UserDetailDto
|
|
35
|
+
* @example antonio@comino.com.ar
|
|
36
|
+
*/
|
|
37
|
+
email: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof UserDetailDto
|
|
42
|
+
* @example 2024-11-15T16:15:25.715Z
|
|
43
|
+
*/
|
|
44
|
+
latestLoginAt: string | null;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @type {StatusDto}
|
|
48
|
+
* @memberof UserDetailDto
|
|
49
|
+
*/
|
|
50
|
+
status: StatusDto;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {RoleDto}
|
|
54
|
+
* @memberof UserDetailDto
|
|
55
|
+
*/
|
|
56
|
+
role: RoleDto;
|
|
57
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* whatsapp-bridge Node Api
|
|
5
|
+
* The whatsapp-bridge API description
|
|
6
|
+
*
|
|
7
|
+
* OpenAPI spec version: 0.0.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserUpdatePasswordDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UserUpdatePasswordDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserUpdatePasswordDto
|
|
26
|
+
* @example 15
|
|
27
|
+
*/
|
|
28
|
+
userId: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof UserUpdatePasswordDto
|
|
33
|
+
* @example asfdF123**asdf
|
|
34
|
+
*/
|
|
35
|
+
password: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UserUpdatePasswordDto
|
|
40
|
+
* @example asfdF123**asdf
|
|
41
|
+
*/
|
|
42
|
+
currentPassword: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* whatsapp-bridge Node Api
|
|
5
|
+
* The whatsapp-bridge API description
|
|
6
|
+
*
|
|
7
|
+
* OpenAPI spec version: 0.0.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WhatsappContactDto
|
|
20
|
+
*/
|
|
21
|
+
export interface WhatsappContactDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof WhatsappContactDto
|
|
26
|
+
* @example 23
|
|
27
|
+
*/
|
|
28
|
+
id: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof WhatsappContactDto
|
|
33
|
+
* @example 23
|
|
34
|
+
*/
|
|
35
|
+
phoneNumber: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WhatsappContactDto
|
|
40
|
+
* @example 23
|
|
41
|
+
*/
|
|
42
|
+
pushName: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof WhatsappContactDto
|
|
47
|
+
* @example 23
|
|
48
|
+
*/
|
|
49
|
+
profilePicUrl: Array<string>;
|
|
50
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@libgot/whatsapp-bridge-sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "OpenAPI client for ",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"axios",
|
|
8
|
+
"typescript",
|
|
9
|
+
"openapi-client",
|
|
10
|
+
"openapi-generator"
|
|
11
|
+
],
|
|
12
|
+
"license": "Unlicense",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"typings": "./dist/index.d.ts",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc --outDir dist/",
|
|
17
|
+
"prepublishOnly": "npm run build"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"axios": "^0.21.1"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^12.11.5",
|
|
24
|
+
"typescript": "^3.6.4"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+ssh://git@github.com/World-Tech/whatsapp-bridge-sdk.git"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/World-Tech/whatsapp-bridge-sdk/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/World-Tech/whatsapp-bridge-sdk#readme"
|
|
34
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
"lib": [
|
|
10
|
+
"es6",
|
|
11
|
+
"dom"
|
|
12
|
+
],
|
|
13
|
+
"typeRoots": [
|
|
14
|
+
"node_modules/@types"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"exclude": [
|
|
18
|
+
"dist",
|
|
19
|
+
"node_modules"
|
|
20
|
+
]
|
|
21
|
+
}
|