@libgot/whatsapp-bridge-sdk 1.0.38-rc.3 → 1.0.39
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/.nvmrc +1 -0
- package/README.md +2 -2
- package/apis/flows-api.ts +0 -71
- package/dist/apis/flows-api.d.ts +0 -29
- package/dist/apis/flows-api.js +0 -75
- package/dist/models/conversation-message-dto.d.ts +6 -0
- package/dist/models/whatsapp-chat-dto.d.ts +6 -0
- package/models/conversation-message-dto.ts +7 -0
- package/models/whatsapp-chat-dto.ts +7 -0
- package/package.json +2 -2
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lts/*
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.
|
|
1
|
+
## @1.0.39
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @libgot/whatsapp-bridge-sdk@1.0.
|
|
39
|
+
npm install @libgot/whatsapp-bridge-sdk@1.0.39 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/flows-api.ts
CHANGED
|
@@ -95,45 +95,6 @@ export const FlowsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
95
95
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
96
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
97
97
|
|
|
98
|
-
return {
|
|
99
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
100
|
-
options: localVarRequestOptions,
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @param {number} leadId
|
|
106
|
-
* @param {*} [options] Override http request option.
|
|
107
|
-
* @throws {RequiredError}
|
|
108
|
-
*/
|
|
109
|
-
flowsControllerHandleGet2: async (leadId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
110
|
-
// verify required parameter 'leadId' is not null or undefined
|
|
111
|
-
if (leadId === null || leadId === undefined) {
|
|
112
|
-
throw new RequiredError('leadId','Required parameter leadId was null or undefined when calling flowsControllerHandleGet2.');
|
|
113
|
-
}
|
|
114
|
-
const localVarPath = `/api/flows/getOffer/{leadId}`
|
|
115
|
-
.replace(`{${"leadId"}}`, encodeURIComponent(String(leadId)));
|
|
116
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
-
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
118
|
-
let baseOptions;
|
|
119
|
-
if (configuration) {
|
|
120
|
-
baseOptions = configuration.baseOptions;
|
|
121
|
-
}
|
|
122
|
-
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
123
|
-
const localVarHeaderParameter = {} as any;
|
|
124
|
-
const localVarQueryParameter = {} as any;
|
|
125
|
-
|
|
126
|
-
const query = new URLSearchParams(localVarUrlObj.search);
|
|
127
|
-
for (const key in localVarQueryParameter) {
|
|
128
|
-
query.set(key, localVarQueryParameter[key]);
|
|
129
|
-
}
|
|
130
|
-
for (const key in options.params) {
|
|
131
|
-
query.set(key, options.params[key]);
|
|
132
|
-
}
|
|
133
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
134
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
136
|
-
|
|
137
98
|
return {
|
|
138
99
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
139
100
|
options: localVarRequestOptions,
|
|
@@ -173,19 +134,6 @@ export const FlowsApiFp = function(configuration?: Configuration) {
|
|
|
173
134
|
return axios.request(axiosRequestArgs);
|
|
174
135
|
};
|
|
175
136
|
},
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
* @param {number} leadId
|
|
179
|
-
* @param {*} [options] Override http request option.
|
|
180
|
-
* @throws {RequiredError}
|
|
181
|
-
*/
|
|
182
|
-
async flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
183
|
-
const localVarAxiosArgs = await FlowsApiAxiosParamCreator(configuration).flowsControllerHandleGet2(leadId, options);
|
|
184
|
-
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
185
|
-
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
186
|
-
return axios.request(axiosRequestArgs);
|
|
187
|
-
};
|
|
188
|
-
},
|
|
189
137
|
}
|
|
190
138
|
};
|
|
191
139
|
|
|
@@ -212,15 +160,6 @@ export const FlowsApiFactory = function (configuration?: Configuration, basePath
|
|
|
212
160
|
async flowsControllerHandleGet(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
213
161
|
return FlowsApiFp(configuration).flowsControllerHandleGet(options).then((request) => request(axios, basePath));
|
|
214
162
|
},
|
|
215
|
-
/**
|
|
216
|
-
*
|
|
217
|
-
* @param {number} leadId
|
|
218
|
-
* @param {*} [options] Override http request option.
|
|
219
|
-
* @throws {RequiredError}
|
|
220
|
-
*/
|
|
221
|
-
async flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
222
|
-
return FlowsApiFp(configuration).flowsControllerHandleGet2(leadId, options).then((request) => request(axios, basePath));
|
|
223
|
-
},
|
|
224
163
|
};
|
|
225
164
|
};
|
|
226
165
|
|
|
@@ -250,14 +189,4 @@ export class FlowsApi extends BaseAPI {
|
|
|
250
189
|
public async flowsControllerHandleGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
251
190
|
return FlowsApiFp(this.configuration).flowsControllerHandleGet(options).then((request) => request(this.axios, this.basePath));
|
|
252
191
|
}
|
|
253
|
-
/**
|
|
254
|
-
*
|
|
255
|
-
* @param {number} leadId
|
|
256
|
-
* @param {*} [options] Override http request option.
|
|
257
|
-
* @throws {RequiredError}
|
|
258
|
-
* @memberof FlowsApi
|
|
259
|
-
*/
|
|
260
|
-
public async flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
261
|
-
return FlowsApiFp(this.configuration).flowsControllerHandleGet2(leadId, options).then((request) => request(this.axios, this.basePath));
|
|
262
|
-
}
|
|
263
192
|
}
|
package/dist/apis/flows-api.d.ts
CHANGED
|
@@ -32,13 +32,6 @@ export declare const FlowsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
34
|
flowsControllerHandleGet: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param {number} leadId
|
|
38
|
-
* @param {*} [options] Override http request option.
|
|
39
|
-
* @throws {RequiredError}
|
|
40
|
-
*/
|
|
41
|
-
flowsControllerHandleGet2: (leadId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
35
|
};
|
|
43
36
|
/**
|
|
44
37
|
* FlowsApi - functional programming interface
|
|
@@ -58,13 +51,6 @@ export declare const FlowsApiFp: (configuration?: Configuration) => {
|
|
|
58
51
|
* @throws {RequiredError}
|
|
59
52
|
*/
|
|
60
53
|
flowsControllerHandleGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @param {number} leadId
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
|
|
68
54
|
};
|
|
69
55
|
/**
|
|
70
56
|
* FlowsApi - factory interface
|
|
@@ -84,13 +70,6 @@ export declare const FlowsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
84
70
|
* @throws {RequiredError}
|
|
85
71
|
*/
|
|
86
72
|
flowsControllerHandleGet(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @param {number} leadId
|
|
90
|
-
* @param {*} [options] Override http request option.
|
|
91
|
-
* @throws {RequiredError}
|
|
92
|
-
*/
|
|
93
|
-
flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
94
73
|
};
|
|
95
74
|
/**
|
|
96
75
|
* FlowsApi - object-oriented interface
|
|
@@ -114,12 +93,4 @@ export declare class FlowsApi extends BaseAPI {
|
|
|
114
93
|
* @memberof FlowsApi
|
|
115
94
|
*/
|
|
116
95
|
flowsControllerHandleGet(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @param {number} leadId
|
|
120
|
-
* @param {*} [options] Override http request option.
|
|
121
|
-
* @throws {RequiredError}
|
|
122
|
-
* @memberof FlowsApi
|
|
123
|
-
*/
|
|
124
|
-
flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
125
96
|
}
|
package/dist/apis/flows-api.js
CHANGED
|
@@ -103,43 +103,6 @@ const FlowsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
options: localVarRequestOptions,
|
|
104
104
|
};
|
|
105
105
|
}),
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @param {number} leadId
|
|
109
|
-
* @param {*} [options] Override http request option.
|
|
110
|
-
* @throws {RequiredError}
|
|
111
|
-
*/
|
|
112
|
-
flowsControllerHandleGet2: (leadId_1, ...args_1) => __awaiter(this, [leadId_1, ...args_1], void 0, function* (leadId, options = {}) {
|
|
113
|
-
// verify required parameter 'leadId' is not null or undefined
|
|
114
|
-
if (leadId === null || leadId === undefined) {
|
|
115
|
-
throw new base_1.RequiredError('leadId', 'Required parameter leadId was null or undefined when calling flowsControllerHandleGet2.');
|
|
116
|
-
}
|
|
117
|
-
const localVarPath = `/api/flows/getOffer/{leadId}`
|
|
118
|
-
.replace(`{${"leadId"}}`, encodeURIComponent(String(leadId)));
|
|
119
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
|
-
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
121
|
-
let baseOptions;
|
|
122
|
-
if (configuration) {
|
|
123
|
-
baseOptions = configuration.baseOptions;
|
|
124
|
-
}
|
|
125
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
126
|
-
const localVarHeaderParameter = {};
|
|
127
|
-
const localVarQueryParameter = {};
|
|
128
|
-
const query = new URLSearchParams(localVarUrlObj.search);
|
|
129
|
-
for (const key in localVarQueryParameter) {
|
|
130
|
-
query.set(key, localVarQueryParameter[key]);
|
|
131
|
-
}
|
|
132
|
-
for (const key in options.params) {
|
|
133
|
-
query.set(key, options.params[key]);
|
|
134
|
-
}
|
|
135
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
136
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
-
return {
|
|
139
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
140
|
-
options: localVarRequestOptions,
|
|
141
|
-
};
|
|
142
|
-
}),
|
|
143
106
|
};
|
|
144
107
|
};
|
|
145
108
|
exports.FlowsApiAxiosParamCreator = FlowsApiAxiosParamCreator;
|
|
@@ -178,21 +141,6 @@ const FlowsApiFp = function (configuration) {
|
|
|
178
141
|
};
|
|
179
142
|
});
|
|
180
143
|
},
|
|
181
|
-
/**
|
|
182
|
-
*
|
|
183
|
-
* @param {number} leadId
|
|
184
|
-
* @param {*} [options] Override http request option.
|
|
185
|
-
* @throws {RequiredError}
|
|
186
|
-
*/
|
|
187
|
-
flowsControllerHandleGet2(leadId, options) {
|
|
188
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
const localVarAxiosArgs = yield (0, exports.FlowsApiAxiosParamCreator)(configuration).flowsControllerHandleGet2(leadId, options);
|
|
190
|
-
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
191
|
-
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
192
|
-
return axios.request(axiosRequestArgs);
|
|
193
|
-
};
|
|
194
|
-
});
|
|
195
|
-
},
|
|
196
144
|
};
|
|
197
145
|
};
|
|
198
146
|
exports.FlowsApiFp = FlowsApiFp;
|
|
@@ -223,17 +171,6 @@ const FlowsApiFactory = function (configuration, basePath, axios) {
|
|
|
223
171
|
return (0, exports.FlowsApiFp)(configuration).flowsControllerHandleGet(options).then((request) => request(axios, basePath));
|
|
224
172
|
});
|
|
225
173
|
},
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @param {number} leadId
|
|
229
|
-
* @param {*} [options] Override http request option.
|
|
230
|
-
* @throws {RequiredError}
|
|
231
|
-
*/
|
|
232
|
-
flowsControllerHandleGet2(leadId, options) {
|
|
233
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
return (0, exports.FlowsApiFp)(configuration).flowsControllerHandleGet2(leadId, options).then((request) => request(axios, basePath));
|
|
235
|
-
});
|
|
236
|
-
},
|
|
237
174
|
};
|
|
238
175
|
};
|
|
239
176
|
exports.FlowsApiFactory = FlowsApiFactory;
|
|
@@ -267,17 +204,5 @@ class FlowsApi extends base_1.BaseAPI {
|
|
|
267
204
|
return (0, exports.FlowsApiFp)(this.configuration).flowsControllerHandleGet(options).then((request) => request(this.axios, this.basePath));
|
|
268
205
|
});
|
|
269
206
|
}
|
|
270
|
-
/**
|
|
271
|
-
*
|
|
272
|
-
* @param {number} leadId
|
|
273
|
-
* @param {*} [options] Override http request option.
|
|
274
|
-
* @throws {RequiredError}
|
|
275
|
-
* @memberof FlowsApi
|
|
276
|
-
*/
|
|
277
|
-
flowsControllerHandleGet2(leadId, options) {
|
|
278
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
-
return (0, exports.FlowsApiFp)(this.configuration).flowsControllerHandleGet2(leadId, options).then((request) => request(this.axios, this.basePath));
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
207
|
}
|
|
283
208
|
exports.FlowsApi = FlowsApi;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libgot/whatsapp-bridge-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "OpenAPI client for ",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"prepublishOnly": "npm run build"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"axios": "^1.
|
|
20
|
+
"axios": "^1.13.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^12.11.5",
|