ntk-cms-api 1.0.397 → 1.0.401
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/bundles/ntk-cms-api.umd.js +120 -6
- package/bundles/ntk-cms-api.umd.js.map +1 -1
- package/bundles/ntk-cms-api.umd.min.js +1 -1
- package/bundles/ntk-cms-api.umd.min.js.map +1 -1
- package/esm2015/lib/models/dto/api-telegram/_export.js +2 -3
- package/esm2015/lib/models/dto/api-telegram/apiTelegramSendMessageTodoModel.js +3 -0
- package/esm2015/lib/models/entity/api-telegram/apiTelegramBotConfigModel.js +1 -1
- package/esm2015/lib/models/entity/ticketing/ticketingAnswerModel.js +1 -1
- package/esm2015/lib/models/enums/_export.js +2 -1
- package/esm2015/lib/models/enums/api-telegram/_export.js +2 -2
- package/esm2015/lib/models/enums/api-telegram/enumParseMode.js +19 -0
- package/esm2015/lib/models/enums/enumDayOfWeek.js +32 -0
- package/esm2015/lib/service/api-telegram/_export.js +2 -1
- package/esm2015/lib/service/api-telegram/apiTelegramBotConfig.service.js +75 -0
- package/esm2015/lib/service/api-telegram/apiTelegramLogInput.service.js +1 -1
- package/esm2015/lib/service/api-telegram/apiTelegramLogOutput.service.js +1 -1
- package/esm2015/lib/service/api-telegram/apiTelegramMemberInfo.service.js +1 -1
- package/esm2015/lib/service/api-telegram/apiTelegramReceivedFile.service.js +1 -1
- package/esm2015/lib/service/api-telegram/apiTelegramUploadedFile.service.js +1 -1
- package/fesm2015/ntk-cms-api.js +106 -4
- package/fesm2015/ntk-cms-api.js.map +1 -1
- package/lib/models/dto/api-telegram/_export.d.ts +1 -1
- package/lib/models/dto/api-telegram/apiTelegramSendMessageTodoModel.d.ts +34 -0
- package/lib/models/entity/api-telegram/apiTelegramBotConfigModel.d.ts +3 -1
- package/lib/models/entity/ticketing/ticketingAnswerModel.d.ts +1 -1
- package/lib/models/enums/_export.d.ts +1 -0
- package/lib/models/enums/api-telegram/_export.d.ts +1 -0
- package/lib/models/enums/api-telegram/enumParseMode.d.ts +5 -0
- package/lib/models/enums/enumDayOfWeek.d.ts +9 -0
- package/lib/service/api-telegram/_export.d.ts +1 -0
- package/lib/service/api-telegram/apiTelegramBotConfig.service.d.ts +17 -0
- package/ntk-cms-api.metadata.json +1 -1
- package/package.json +1 -1
- package/esm2015/lib/models/dto/api-telegram/applicationSendMessageModel.js +0 -3
- package/lib/models/dto/api-telegram/applicationSendMessageModel.d.ts +0 -2
|
@@ -632,6 +632,37 @@
|
|
|
632
632
|
EnumApiReceiveMethod[EnumApiReceiveMethod["Get"] = 2] = "Get";
|
|
633
633
|
})(exports.EnumApiReceiveMethod || (exports.EnumApiReceiveMethod = {}));
|
|
634
634
|
|
|
635
|
+
(function (EnumDayOfWeek) {
|
|
636
|
+
//
|
|
637
|
+
// Summary:
|
|
638
|
+
// Indicates Friday.
|
|
639
|
+
EnumDayOfWeek[EnumDayOfWeek["Friday"] = 5] = "Friday";
|
|
640
|
+
//
|
|
641
|
+
// Summary:
|
|
642
|
+
// Indicates Monday.
|
|
643
|
+
EnumDayOfWeek[EnumDayOfWeek["Monday"] = 1] = "Monday";
|
|
644
|
+
//
|
|
645
|
+
// Summary:
|
|
646
|
+
// Indicates Saturday.
|
|
647
|
+
EnumDayOfWeek[EnumDayOfWeek["Saturday"] = 6] = "Saturday";
|
|
648
|
+
//
|
|
649
|
+
// Summary:
|
|
650
|
+
// Indicates Sunday.
|
|
651
|
+
EnumDayOfWeek[EnumDayOfWeek["Sunday"] = 0] = "Sunday";
|
|
652
|
+
//
|
|
653
|
+
// Summary:
|
|
654
|
+
// Indicates Thursday.
|
|
655
|
+
EnumDayOfWeek[EnumDayOfWeek["Thursday"] = 4] = "Thursday";
|
|
656
|
+
//
|
|
657
|
+
// Summary:
|
|
658
|
+
// Indicates Tuesday.
|
|
659
|
+
EnumDayOfWeek[EnumDayOfWeek["Tuesday"] = 2] = "Tuesday";
|
|
660
|
+
//
|
|
661
|
+
// Summary:
|
|
662
|
+
// Indicates Wednesday.
|
|
663
|
+
EnumDayOfWeek[EnumDayOfWeek["Wednesday"] = 3] = "Wednesday";
|
|
664
|
+
})(exports.EnumDayOfWeek || (exports.EnumDayOfWeek = {}));
|
|
665
|
+
|
|
635
666
|
(function (EnumClauseType) {
|
|
636
667
|
EnumClauseType[EnumClauseType["Or"] = 1] = "Or";
|
|
637
668
|
EnumClauseType[EnumClauseType["And"] = 2] = "And";
|
|
@@ -4957,6 +4988,90 @@
|
|
|
4957
4988
|
{ type: i0.Injectable }
|
|
4958
4989
|
];
|
|
4959
4990
|
|
|
4991
|
+
var ApiTelegramBotConfigService = /** @class */ (function (_super) {
|
|
4992
|
+
__extends(ApiTelegramBotConfigService, _super);
|
|
4993
|
+
function ApiTelegramBotConfigService() {
|
|
4994
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4995
|
+
}
|
|
4996
|
+
ApiTelegramBotConfigService.prototype.getModuleCotrolerUrl = function () {
|
|
4997
|
+
return 'ApiTelegramBotConfig';
|
|
4998
|
+
};
|
|
4999
|
+
ApiTelegramBotConfigService.prototype.ServiceSendMessage = function (model) {
|
|
5000
|
+
var _this = this;
|
|
5001
|
+
return this.http
|
|
5002
|
+
.post(this.getBaseUrl() + this.getModuleCotrolerUrl() + '/SendMessage', model, { headers: this.getHeaders(), })
|
|
5003
|
+
.pipe(operators.retry(this.configApiRetry),
|
|
5004
|
+
// catchError(this.handleError)
|
|
5005
|
+
operators.map(function (ret) {
|
|
5006
|
+
return _this.errorExceptionResultBaseCheck(ret);
|
|
5007
|
+
}));
|
|
5008
|
+
};
|
|
5009
|
+
ApiTelegramBotConfigService.prototype.ServiceGetUpdatesAsync = function (id) {
|
|
5010
|
+
var _this = this;
|
|
5011
|
+
return this.http
|
|
5012
|
+
.get(this.getBaseUrl() + this.getModuleCotrolerUrl() + '/GetUpdatesAsync/' + id, { headers: this.getHeaders(), })
|
|
5013
|
+
.pipe(operators.retry(this.configApiRetry),
|
|
5014
|
+
// catchError(this.handleError)
|
|
5015
|
+
operators.map(function (ret) {
|
|
5016
|
+
return _this.errorExceptionResultCheck(ret);
|
|
5017
|
+
}));
|
|
5018
|
+
};
|
|
5019
|
+
ApiTelegramBotConfigService.prototype.ServiceGetUpdatesAsyncLast = function (id) {
|
|
5020
|
+
var _this = this;
|
|
5021
|
+
return this.http
|
|
5022
|
+
.get(this.getBaseUrl() + this.getModuleCotrolerUrl() + '/GetUpdatesAsyncLast/' + id, { headers: this.getHeaders(), })
|
|
5023
|
+
.pipe(operators.retry(this.configApiRetry),
|
|
5024
|
+
// catchError(this.handleError)
|
|
5025
|
+
operators.map(function (ret) {
|
|
5026
|
+
return _this.errorExceptionResultCheck(ret);
|
|
5027
|
+
}));
|
|
5028
|
+
};
|
|
5029
|
+
ApiTelegramBotConfigService.prototype.ServiceGetMeAsync = function (id) {
|
|
5030
|
+
var _this = this;
|
|
5031
|
+
return this.http
|
|
5032
|
+
.get(this.getBaseUrl() + this.getModuleCotrolerUrl() + '/GetMeAsync/' + id, { headers: this.getHeaders(), })
|
|
5033
|
+
.pipe(operators.retry(this.configApiRetry),
|
|
5034
|
+
// catchError(this.handleError)
|
|
5035
|
+
operators.map(function (ret) {
|
|
5036
|
+
return _this.errorExceptionResultCheck(ret);
|
|
5037
|
+
}));
|
|
5038
|
+
};
|
|
5039
|
+
ApiTelegramBotConfigService.prototype.ServiceSetWebhookAsync = function (id) {
|
|
5040
|
+
var _this = this;
|
|
5041
|
+
return this.http
|
|
5042
|
+
.get(this.getBaseUrl() + this.getModuleCotrolerUrl() + '/SetWebhookAsync/' + id, { headers: this.getHeaders(), })
|
|
5043
|
+
.pipe(operators.retry(this.configApiRetry),
|
|
5044
|
+
// catchError(this.handleError)
|
|
5045
|
+
operators.map(function (ret) {
|
|
5046
|
+
return _this.errorExceptionResultCheck(ret);
|
|
5047
|
+
}));
|
|
5048
|
+
};
|
|
5049
|
+
ApiTelegramBotConfigService.prototype.ServiceSetWebhookAsyncEmpty = function (id) {
|
|
5050
|
+
var _this = this;
|
|
5051
|
+
return this.http
|
|
5052
|
+
.get(this.getBaseUrl() + this.getModuleCotrolerUrl() + '/SetWebhookAsyncEmpty/' + id, { headers: this.getHeaders(), })
|
|
5053
|
+
.pipe(operators.retry(this.configApiRetry),
|
|
5054
|
+
// catchError(this.handleError)
|
|
5055
|
+
operators.map(function (ret) {
|
|
5056
|
+
return _this.errorExceptionResultCheck(ret);
|
|
5057
|
+
}));
|
|
5058
|
+
};
|
|
5059
|
+
ApiTelegramBotConfigService.prototype.ServiceSetAllWebhookUpdate = function () {
|
|
5060
|
+
var _this = this;
|
|
5061
|
+
return this.http
|
|
5062
|
+
.get(this.getBaseUrl() + this.getModuleCotrolerUrl() + '/SetAllWebhookUpdate/', { headers: this.getHeaders(), })
|
|
5063
|
+
.pipe(operators.retry(this.configApiRetry),
|
|
5064
|
+
// catchError(this.handleError)
|
|
5065
|
+
operators.map(function (ret) {
|
|
5066
|
+
return _this.errorExceptionResultCheck(ret);
|
|
5067
|
+
}));
|
|
5068
|
+
};
|
|
5069
|
+
return ApiTelegramBotConfigService;
|
|
5070
|
+
}(ApiCmsServerBase));
|
|
5071
|
+
ApiTelegramBotConfigService.decorators = [
|
|
5072
|
+
{ type: i0.Injectable }
|
|
5073
|
+
];
|
|
5074
|
+
|
|
4960
5075
|
var ApiTelegramEnumService = /** @class */ (function (_super) {
|
|
4961
5076
|
__extends(ApiTelegramEnumService, _super);
|
|
4962
5077
|
function ApiTelegramEnumService() {
|
|
@@ -5154,10 +5269,10 @@
|
|
|
5154
5269
|
return ApiTelegramSessionModel;
|
|
5155
5270
|
}(BaseModuleEntity));
|
|
5156
5271
|
|
|
5157
|
-
var
|
|
5158
|
-
function
|
|
5272
|
+
var ApiTelegramSendMessageTodoModel = /** @class */ (function () {
|
|
5273
|
+
function ApiTelegramSendMessageTodoModel() {
|
|
5159
5274
|
}
|
|
5160
|
-
return
|
|
5275
|
+
return ApiTelegramSendMessageTodoModel;
|
|
5161
5276
|
}());
|
|
5162
5277
|
|
|
5163
5278
|
var ApiTelegramRenderInfoModel = /** @class */ (function () {
|
|
@@ -5166,7 +5281,6 @@
|
|
|
5166
5281
|
return ApiTelegramRenderInfoModel;
|
|
5167
5282
|
}());
|
|
5168
5283
|
|
|
5169
|
-
// export * from './articleCommentModel';
|
|
5170
5284
|
// export * from './articleContentModel';
|
|
5171
5285
|
// export * from './articleContentOtherInfoModel';
|
|
5172
5286
|
// export * from './articleContentSimilarModel';
|
|
@@ -5393,7 +5507,6 @@
|
|
|
5393
5507
|
EnumBulkMessageType[EnumBulkMessageType["SentToAllGroupsMembers"] = 3] = "SentToAllGroupsMembers";
|
|
5394
5508
|
})(exports.EnumBulkMessageType || (exports.EnumBulkMessageType = {}));
|
|
5395
5509
|
|
|
5396
|
-
// export * from './articleContentSimilarModel';
|
|
5397
5510
|
// export * from './articleContentTagModel';
|
|
5398
5511
|
// export * from './articleContentCategoryModel';
|
|
5399
5512
|
|
|
@@ -12061,6 +12174,7 @@
|
|
|
12061
12174
|
exports.AccessModel = AccessModel;
|
|
12062
12175
|
exports.ApiServerBase = ApiServerBase;
|
|
12063
12176
|
exports.ApiTelegramBotConfigModel = ApiTelegramBotConfigModel;
|
|
12177
|
+
exports.ApiTelegramBotConfigService = ApiTelegramBotConfigService;
|
|
12064
12178
|
exports.ApiTelegramConfigurationService = ApiTelegramConfigurationService;
|
|
12065
12179
|
exports.ApiTelegramEnumService = ApiTelegramEnumService;
|
|
12066
12180
|
exports.ApiTelegramLogInputModel = ApiTelegramLogInputModel;
|
|
@@ -12076,6 +12190,7 @@
|
|
|
12076
12190
|
exports.ApiTelegramReceivedFileModel = ApiTelegramReceivedFileModel;
|
|
12077
12191
|
exports.ApiTelegramReceivedFileService = ApiTelegramReceivedFileService;
|
|
12078
12192
|
exports.ApiTelegramRenderInfoModel = ApiTelegramRenderInfoModel;
|
|
12193
|
+
exports.ApiTelegramSendMessageTodoModel = ApiTelegramSendMessageTodoModel;
|
|
12079
12194
|
exports.ApiTelegramSessionModel = ApiTelegramSessionModel;
|
|
12080
12195
|
exports.ApiTelegramUploadedFileModel = ApiTelegramUploadedFileModel;
|
|
12081
12196
|
exports.ApiTelegramUploadedFileService = ApiTelegramUploadedFileService;
|
|
@@ -12100,7 +12215,6 @@
|
|
|
12100
12215
|
exports.ApplicationModuleConfigSiteAccessValuesModel = ApplicationModuleConfigSiteAccessValuesModel;
|
|
12101
12216
|
exports.ApplicationModuleConfigSiteValuesModel = ApplicationModuleConfigSiteValuesModel;
|
|
12102
12217
|
exports.ApplicationModuleSiteStorageValuesModel = ApplicationModuleSiteStorageValuesModel;
|
|
12103
|
-
exports.ApplicationSendMessageModel = ApplicationSendMessageModel;
|
|
12104
12218
|
exports.ApplicationSourceModel = ApplicationSourceModel;
|
|
12105
12219
|
exports.ApplicationSourceService = ApplicationSourceService;
|
|
12106
12220
|
exports.ApplicationSourceSiteCategoryModel = ApplicationSourceSiteCategoryModel;
|