ch-chat-api-typescript-axios 1.4.4 → 1.4.6
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/dist/api/{migration-api.d.ts → migrations-api.d.ts} +14 -14
- package/dist/api/{migration-api.js → migrations-api.js} +27 -27
- package/dist/api/migrations-api.js.map +1 -0
- package/dist/api/{chat-api.d.ts → sessions-api.d.ts} +374 -307
- package/dist/api/{chat-api.js → sessions-api.js} +296 -214
- package/dist/api/sessions-api.js.map +1 -0
- package/dist/api/whats-apps-api.d.ts +95 -0
- package/dist/api/whats-apps-api.js +146 -0
- package/dist/api/whats-apps-api.js.map +1 -0
- package/dist/api.d.ts +3 -2
- package/dist/api.js +3 -2
- package/dist/api.js.map +1 -1
- package/dist/models/{api-v1-chat-tenant-id-sessions-get401-response-errors.d.ts → api-v1-chat-migrations-post401-response-errors.d.ts} +3 -3
- package/dist/models/{api-v1-chat-tenant-id-sessions-get401-response.js → api-v1-chat-migrations-post401-response-errors.js} +1 -1
- package/dist/models/api-v1-chat-migrations-post401-response-errors.js.map +1 -0
- package/dist/models/{api-v1-chat-tenant-id-sessions-get401-response.d.ts → api-v1-chat-migrations-post401-response.d.ts} +10 -10
- package/dist/models/{api-v1-chat-tenant-id-sessions-get401-response-errors.js → api-v1-chat-migrations-post401-response.js} +1 -1
- package/dist/models/api-v1-chat-migrations-post401-response.js.map +1 -0
- package/dist/models/chat-message.d.ts +7 -0
- package/dist/models/chat-send-marketing-template-message-command.d.ts +63 -0
- package/dist/models/chat-send-marketing-template-message-command.js +16 -0
- package/dist/models/chat-send-marketing-template-message-command.js.map +1 -0
- package/dist/models/chat-send-template-message-command.d.ts +38 -0
- package/dist/models/chat-send-template-message-command.js +16 -0
- package/dist/models/chat-send-template-message-command.js.map +1 -0
- package/dist/models/chat-session-model.d.ts +7 -12
- package/dist/models/create-chat-session-command.d.ts +3 -8
- package/dist/models/index.d.ts +19 -2
- package/dist/models/index.js +19 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/platform-metadata.d.ts +25 -0
- package/dist/models/platform-metadata.js +16 -0
- package/dist/models/platform-metadata.js.map +1 -0
- package/dist/models/recipient-users.d.ts +30 -0
- package/dist/models/recipient-users.js +16 -0
- package/dist/models/recipient-users.js.map +1 -0
- package/dist/models/template-component-inner-parameter-curreny.d.ts +36 -0
- package/dist/models/template-component-inner-parameter-curreny.js +16 -0
- package/dist/models/template-component-inner-parameter-curreny.js.map +1 -0
- package/dist/models/template-component-inner-parameter-date-time.d.ts +24 -0
- package/dist/models/template-component-inner-parameter-date-time.js +16 -0
- package/dist/models/template-component-inner-parameter-date-time.js.map +1 -0
- package/dist/models/template-component-inner-parameter-document.d.ts +30 -0
- package/dist/models/template-component-inner-parameter-document.js +16 -0
- package/dist/models/template-component-inner-parameter-document.js.map +1 -0
- package/dist/models/template-component-inner-parameter-image.d.ts +24 -0
- package/dist/models/template-component-inner-parameter-image.js +16 -0
- package/dist/models/template-component-inner-parameter-image.js.map +1 -0
- package/dist/models/template-component-inner-parameter-type.d.ts +25 -0
- package/dist/models/template-component-inner-parameter-type.js +30 -0
- package/dist/models/template-component-inner-parameter-type.js.map +1 -0
- package/dist/models/template-component-inner-parameter-video.d.ts +24 -0
- package/dist/models/template-component-inner-parameter-video.js +16 -0
- package/dist/models/template-component-inner-parameter-video.js.map +1 -0
- package/dist/models/template-component-inner-parameter.d.ts +66 -0
- package/dist/models/template-component-inner-parameter.js +16 -0
- package/dist/models/template-component-inner-parameter.js.map +1 -0
- package/dist/models/template-component-type.d.ts +22 -0
- package/dist/models/template-component-type.js +27 -0
- package/dist/models/template-component-type.js.map +1 -0
- package/dist/models/template-component.d.ts +45 -0
- package/dist/models/template-component.js +16 -0
- package/dist/models/template-component.js.map +1 -0
- package/dist/models/template-message-model.d.ts +38 -0
- package/dist/models/template-message-model.js +16 -0
- package/dist/models/template-message-model.js.map +1 -0
- package/dist/models/template-sub-component-type.d.ts +22 -0
- package/dist/models/template-sub-component-type.js +27 -0
- package/dist/models/template-sub-component-type.js.map +1 -0
- package/dist/models/whats-app-language-code.d.ts +130 -0
- package/dist/models/whats-app-language-code.js +135 -0
- package/dist/models/whats-app-language-code.js.map +1 -0
- package/dist/models/whats-app-metadata.d.ts +42 -0
- package/dist/models/whats-app-metadata.js +16 -0
- package/dist/models/whats-app-metadata.js.map +1 -0
- package/package.json +1 -1
- package/dist/api/chat-api.js.map +0 -1
- package/dist/api/migration-api.js.map +0 -1
- package/dist/models/api-v1-chat-tenant-id-sessions-get401-response-errors.js.map +0 -1
- package/dist/models/api-v1-chat-tenant-id-sessions-get401-response.js.map +0 -1
|
@@ -13,53 +13,53 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* MigrationsApi - axios parameter creator
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const MigrationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @param {*} [options] Override http request option.
|
|
23
23
|
* @throws {RequiredError}
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
apiV1ChatMigrationsPost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* MigrationsApi - functional programming interface
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const MigrationsApiFp: (configuration?: Configuration) => {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
apiV1ChatMigrationsPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* MigrationsApi - factory interface
|
|
41
41
|
* @export
|
|
42
42
|
*/
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const MigrationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
47
47
|
* @throws {RequiredError}
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
apiV1ChatMigrationsPost(options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* MigrationsApi - object-oriented interface
|
|
53
53
|
* @export
|
|
54
|
-
* @class
|
|
54
|
+
* @class MigrationsApi
|
|
55
55
|
* @extends {BaseAPI}
|
|
56
56
|
*/
|
|
57
|
-
export declare class
|
|
57
|
+
export declare class MigrationsApi extends BaseAPI {
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @param {*} [options] Override http request option.
|
|
61
61
|
* @throws {RequiredError}
|
|
62
|
-
* @memberof
|
|
62
|
+
* @memberof MigrationsApi
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
apiV1ChatMigrationsPost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
65
65
|
}
|
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
28
|
+
exports.MigrationsApi = exports.MigrationsApiFactory = exports.MigrationsApiFp = exports.MigrationsApiAxiosParamCreator = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -33,18 +33,18 @@ const common_1 = require("../common");
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const base_1 = require("../base");
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* MigrationsApi - axios parameter creator
|
|
37
37
|
* @export
|
|
38
38
|
*/
|
|
39
|
-
const
|
|
39
|
+
const MigrationsApiAxiosParamCreator = function (configuration) {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
|
-
|
|
47
|
-
const localVarPath = `/api/v1/
|
|
46
|
+
apiV1ChatMigrationsPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
47
|
+
const localVarPath = `/api/v1/chat/migrations`;
|
|
48
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
49
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50
50
|
let baseOptions;
|
|
@@ -67,65 +67,65 @@ const MigrationApiAxiosParamCreator = function (configuration) {
|
|
|
67
67
|
}),
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
exports.
|
|
70
|
+
exports.MigrationsApiAxiosParamCreator = MigrationsApiAxiosParamCreator;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* MigrationsApi - functional programming interface
|
|
73
73
|
* @export
|
|
74
74
|
*/
|
|
75
|
-
const
|
|
76
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
75
|
+
const MigrationsApiFp = function (configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = (0, exports.MigrationsApiAxiosParamCreator)(configuration);
|
|
77
77
|
return {
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @param {*} [options] Override http request option.
|
|
81
81
|
* @throws {RequiredError}
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
apiV1ChatMigrationsPost(options) {
|
|
84
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
var _a, _b, _c;
|
|
86
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
86
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatMigrationsPost(options);
|
|
87
87
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
88
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
88
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MigrationsApi.apiV1ChatMigrationsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
89
89
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
90
90
|
});
|
|
91
91
|
},
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
exports.
|
|
94
|
+
exports.MigrationsApiFp = MigrationsApiFp;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* MigrationsApi - factory interface
|
|
97
97
|
* @export
|
|
98
98
|
*/
|
|
99
|
-
const
|
|
100
|
-
const localVarFp = (0, exports.
|
|
99
|
+
const MigrationsApiFactory = function (configuration, basePath, axios) {
|
|
100
|
+
const localVarFp = (0, exports.MigrationsApiFp)(configuration);
|
|
101
101
|
return {
|
|
102
102
|
/**
|
|
103
103
|
*
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
|
|
108
|
-
return localVarFp.
|
|
107
|
+
apiV1ChatMigrationsPost(options) {
|
|
108
|
+
return localVarFp.apiV1ChatMigrationsPost(options).then((request) => request(axios, basePath));
|
|
109
109
|
},
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
-
exports.
|
|
112
|
+
exports.MigrationsApiFactory = MigrationsApiFactory;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* MigrationsApi - object-oriented interface
|
|
115
115
|
* @export
|
|
116
|
-
* @class
|
|
116
|
+
* @class MigrationsApi
|
|
117
117
|
* @extends {BaseAPI}
|
|
118
118
|
*/
|
|
119
|
-
class
|
|
119
|
+
class MigrationsApi extends base_1.BaseAPI {
|
|
120
120
|
/**
|
|
121
121
|
*
|
|
122
122
|
* @param {*} [options] Override http request option.
|
|
123
123
|
* @throws {RequiredError}
|
|
124
|
-
* @memberof
|
|
124
|
+
* @memberof MigrationsApi
|
|
125
125
|
*/
|
|
126
|
-
|
|
127
|
-
return (0, exports.
|
|
126
|
+
apiV1ChatMigrationsPost(options) {
|
|
127
|
+
return (0, exports.MigrationsApiFp)(this.configuration).apiV1ChatMigrationsPost(options).then((request) => request(this.axios, this.basePath));
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
exports.
|
|
131
|
-
//# sourceMappingURL=
|
|
130
|
+
exports.MigrationsApi = MigrationsApi;
|
|
131
|
+
//# sourceMappingURL=migrations-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations-api.js","sourceRoot":"","sources":["../../src/api/migrations-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;AAKH,kDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,8BAA8B,GAAG,UAAU,aAA6B;IACjF,OAAO;QACH;;;;WAIG;QACH,uBAAuB,EAAE,YAAkE,EAAE,iDAA7D,UAAiC,EAAE;YAC/D,MAAM,YAAY,GAAG,yBAAyB,CAAC;YAC/C,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAA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