@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
package/configuration.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
export interface ConfigurationParameters {
|
|
16
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
17
|
+
username?: string;
|
|
18
|
+
password?: string;
|
|
19
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
20
|
+
basePath?: string;
|
|
21
|
+
baseOptions?: any;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class Configuration {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* parameter for apiKey security
|
|
28
|
+
*
|
|
29
|
+
* @param name security name
|
|
30
|
+
* @memberof Configuration
|
|
31
|
+
*/
|
|
32
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* parameter for basic security
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Configuration
|
|
39
|
+
*/
|
|
40
|
+
username?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* parameter for basic security
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
password?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* parameter for oauth2 security
|
|
52
|
+
*
|
|
53
|
+
* @param name security name
|
|
54
|
+
* @param scopes oauth2 scope
|
|
55
|
+
* @memberof Configuration
|
|
56
|
+
*/
|
|
57
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* override base path
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Configuration
|
|
64
|
+
*/
|
|
65
|
+
basePath?: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* base options for axios calls
|
|
69
|
+
*
|
|
70
|
+
* @type {any}
|
|
71
|
+
* @memberof Configuration
|
|
72
|
+
*/
|
|
73
|
+
baseOptions?: any;
|
|
74
|
+
|
|
75
|
+
constructor(param: ConfigurationParameters = {}) {
|
|
76
|
+
this.apiKey = param.apiKey;
|
|
77
|
+
this.username = param.username;
|
|
78
|
+
this.password = param.password;
|
|
79
|
+
this.accessToken = param.accessToken;
|
|
80
|
+
this.basePath = param.basePath;
|
|
81
|
+
this.baseOptions = param.baseOptions;
|
|
82
|
+
}
|
|
83
|
+
}
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh hugomario swagger-petstore-perl "minor update"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
|
|
10
|
+
if [ "$git_user_id" = "" ]; then
|
|
11
|
+
git_user_id="GIT_USER_ID"
|
|
12
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
if [ "$git_repo_id" = "" ]; then
|
|
16
|
+
git_repo_id="GIT_REPO_ID"
|
|
17
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
if [ "$release_note" = "" ]; then
|
|
21
|
+
release_note="Minor update"
|
|
22
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
# Initialize the local directory as a Git repository
|
|
26
|
+
git init
|
|
27
|
+
|
|
28
|
+
# Adds the files in the local repository and stages them for commit.
|
|
29
|
+
git add .
|
|
30
|
+
|
|
31
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
32
|
+
git commit -m "$release_note"
|
|
33
|
+
|
|
34
|
+
# Sets the new remote
|
|
35
|
+
git_remote=`git remote`
|
|
36
|
+
echo $GIT_TOKEN
|
|
37
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
38
|
+
|
|
39
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
40
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
41
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
|
42
|
+
else
|
|
43
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
|
44
|
+
fi
|
|
45
|
+
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
git pull origin master
|
|
49
|
+
|
|
50
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
51
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
|
52
|
+
git push origin master 2>&1 | grep -v 'To https'
|
|
53
|
+
|
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export * from "./api";
|
|
16
|
+
export * from "./configuration";
|
|
17
|
+
export * from "./models";
|
|
18
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { Attributes } from './attributes';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ApiRequestUserUpdatePasswordDto
|
|
21
|
+
*/
|
|
22
|
+
export interface ApiRequestUserUpdatePasswordDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {Attributes}
|
|
26
|
+
* @memberof ApiRequestUserUpdatePasswordDto
|
|
27
|
+
*/
|
|
28
|
+
data: Attributes;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { DataDto } from './data-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ApiResponseAuthDto
|
|
21
|
+
*/
|
|
22
|
+
export interface ApiResponseAuthDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {DataDto}
|
|
26
|
+
* @memberof ApiResponseAuthDto
|
|
27
|
+
*/
|
|
28
|
+
data: DataDto;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { UserDetailDto } from './user-detail-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ApiResponseUserDto
|
|
21
|
+
*/
|
|
22
|
+
export interface ApiResponseUserDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {UserDetailDto}
|
|
26
|
+
* @memberof ApiResponseUserDto
|
|
27
|
+
*/
|
|
28
|
+
data: UserDetailDto;
|
|
29
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { UserUpdatePasswordDto } from './user-update-password-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface Attributes
|
|
21
|
+
*/
|
|
22
|
+
export interface Attributes {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof Attributes
|
|
27
|
+
* @example User
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @type {UserUpdatePasswordDto}
|
|
33
|
+
* @memberof Attributes
|
|
34
|
+
*/
|
|
35
|
+
attributes: UserUpdatePasswordDto;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 AuthDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuthDto
|
|
26
|
+
* @example test@libgot.com
|
|
27
|
+
*/
|
|
28
|
+
username: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AuthDto
|
|
33
|
+
* @example 123456
|
|
34
|
+
*/
|
|
35
|
+
password: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { WhatsappContactDto } from './whatsapp-contact-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ContactsResponseDTO
|
|
21
|
+
*/
|
|
22
|
+
export interface ContactsResponseDTO {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {Array<WhatsappContactDto>}
|
|
26
|
+
* @memberof ContactsResponseDTO
|
|
27
|
+
*/
|
|
28
|
+
data: Array<WhatsappContactDto>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { TokensDto } from './tokens-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface DataDto
|
|
21
|
+
*/
|
|
22
|
+
export interface DataDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {TokensDto}
|
|
26
|
+
* @memberof DataDto
|
|
27
|
+
*/
|
|
28
|
+
tokens: TokensDto;
|
|
29
|
+
}
|
|
@@ -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 DataUnauthorizedDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DataUnauthorizedDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof DataUnauthorizedDto
|
|
26
|
+
*/
|
|
27
|
+
password: Array<string> | null;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof DataUnauthorizedDto
|
|
32
|
+
*/
|
|
33
|
+
email: Array<string> | null;
|
|
34
|
+
}
|
package/models/index.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './api-request-user-update-password-dto';
|
|
2
|
+
export * from './api-response-auth-dto';
|
|
3
|
+
export * from './api-response-user-dto';
|
|
4
|
+
export * from './attributes';
|
|
5
|
+
export * from './auth-dto';
|
|
6
|
+
export * from './contacts-response-dto';
|
|
7
|
+
export * from './data-dto';
|
|
8
|
+
export * from './data-unauthorized-dto';
|
|
9
|
+
export * from './inline-response503';
|
|
10
|
+
export * from './inline-response503-info';
|
|
11
|
+
export * from './message-dto';
|
|
12
|
+
export * from './role-dto';
|
|
13
|
+
export * from './status-dto';
|
|
14
|
+
export * from './tokens-dto';
|
|
15
|
+
export * from './unauthorized-dto';
|
|
16
|
+
export * from './unauthorized-token-dto';
|
|
17
|
+
export * from './user-detail-dto';
|
|
18
|
+
export * from './user-update-password-dto';
|
|
19
|
+
export * from './whatsapp-contact-dto';
|
|
@@ -0,0 +1,28 @@
|
|
|
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 InlineResponse503Info
|
|
20
|
+
*/
|
|
21
|
+
export interface InlineResponse503Info {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InlineResponse503Info
|
|
26
|
+
*/
|
|
27
|
+
status: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { InlineResponse503Info } from './inline-response503-info';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InlineResponse503
|
|
21
|
+
*/
|
|
22
|
+
export interface InlineResponse503 {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InlineResponse503
|
|
27
|
+
* @example error
|
|
28
|
+
*/
|
|
29
|
+
status?: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @type {{ [key: string]: InlineResponse503Info; }}
|
|
33
|
+
* @memberof InlineResponse503
|
|
34
|
+
* @example {"database":{"status":"up"}}
|
|
35
|
+
*/
|
|
36
|
+
info?: { [key: string]: InlineResponse503Info; } | null;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {{ [key: string]: InlineResponse503Info; }}
|
|
40
|
+
* @memberof InlineResponse503
|
|
41
|
+
* @example {"redis":{"status":"down","message":"Could not connect"}}
|
|
42
|
+
*/
|
|
43
|
+
error?: { [key: string]: InlineResponse503Info; } | null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @type {{ [key: string]: InlineResponse503Info; }}
|
|
47
|
+
* @memberof InlineResponse503
|
|
48
|
+
* @example {"database":{"status":"up"},"redis":{"status":"down","message":"Could not connect"}}
|
|
49
|
+
*/
|
|
50
|
+
details?: { [key: string]: InlineResponse503Info; };
|
|
51
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 MessageDto
|
|
20
|
+
*/
|
|
21
|
+
export interface MessageDto {
|
|
22
|
+
}
|
|
@@ -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 RoleDto
|
|
20
|
+
*/
|
|
21
|
+
export interface RoleDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof RoleDto
|
|
26
|
+
* @example 1
|
|
27
|
+
*/
|
|
28
|
+
id: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RoleDto
|
|
33
|
+
* @example Admin
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RoleDto
|
|
40
|
+
* @example admin
|
|
41
|
+
*/
|
|
42
|
+
key: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 StatusDto
|
|
20
|
+
*/
|
|
21
|
+
export interface StatusDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof StatusDto
|
|
26
|
+
* @example 1
|
|
27
|
+
*/
|
|
28
|
+
id: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof StatusDto
|
|
33
|
+
* @example active
|
|
34
|
+
*/
|
|
35
|
+
status: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 TokensDto
|
|
20
|
+
*/
|
|
21
|
+
export interface TokensDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TokensDto
|
|
26
|
+
* @example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEsImlhdCI6MTY3NjYwNTE3MywiZXhwIjoxNjc2NjA2MDczfQ.3WXwRPwFSf6jJQ_4WdWvUKSKiqjxLs1VoMHDQoEYfpU
|
|
27
|
+
*/
|
|
28
|
+
accessToken: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof TokensDto
|
|
33
|
+
* @example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEsImlhdCI6MTY3NjYwNTE3MywiZXhwIjoxNjc3MjA5OTczfQ._Hp6fTQEkttkgurDFKEV-luTtno_ocHyMiz04J4V1g0
|
|
34
|
+
*/
|
|
35
|
+
refreshToken: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { DataUnauthorizedDto } from './data-unauthorized-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface UnauthorizedDto
|
|
21
|
+
*/
|
|
22
|
+
export interface UnauthorizedDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {DataUnauthorizedDto}
|
|
26
|
+
* @memberof UnauthorizedDto
|
|
27
|
+
*/
|
|
28
|
+
data: DataUnauthorizedDto;
|
|
29
|
+
}
|