ch-admin-api-client-typescript 5.86.0 → 5.87.2
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/lib/api/notifications-api.d.ts +12 -3
- package/lib/api/notifications-api.d.ts.map +1 -1
- package/lib/api/notifications-api.js +15 -9
- package/lib/models/notification-code.d.ts +2 -0
- package/lib/models/notification-code.d.ts.map +1 -1
- package/lib/models/notification-code.js +2 -0
- package/package.json +1 -1
|
@@ -45,6 +45,7 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
45
45
|
*
|
|
46
46
|
* @summary Get all notification user. (Auth policies: RequireDefaultAdminAppRole)
|
|
47
47
|
* @param {string} [hospitalId]
|
|
48
|
+
* @param {string} [userId]
|
|
48
49
|
* @param {Array<string>} [roles]
|
|
49
50
|
* @param {boolean} [showHidden]
|
|
50
51
|
* @param {number} [page]
|
|
@@ -53,7 +54,7 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
53
54
|
* @param {*} [options] Override http request option.
|
|
54
55
|
* @throws {RequiredError}
|
|
55
56
|
*/
|
|
56
|
-
apiV1NotificationsUsersGet: (hospitalId?: string, roles?: Array<string>, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
apiV1NotificationsUsersGet: (hospitalId?: string, userId?: string, roles?: Array<string>, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
58
|
};
|
|
58
59
|
/**
|
|
59
60
|
* NotificationsApi - functional programming interface
|
|
@@ -84,6 +85,7 @@ export declare const NotificationsApiFp: (configuration?: Configuration) => {
|
|
|
84
85
|
*
|
|
85
86
|
* @summary Get all notification user. (Auth policies: RequireDefaultAdminAppRole)
|
|
86
87
|
* @param {string} [hospitalId]
|
|
88
|
+
* @param {string} [userId]
|
|
87
89
|
* @param {Array<string>} [roles]
|
|
88
90
|
* @param {boolean} [showHidden]
|
|
89
91
|
* @param {number} [page]
|
|
@@ -92,7 +94,7 @@ export declare const NotificationsApiFp: (configuration?: Configuration) => {
|
|
|
92
94
|
* @param {*} [options] Override http request option.
|
|
93
95
|
* @throws {RequiredError}
|
|
94
96
|
*/
|
|
95
|
-
apiV1NotificationsUsersGet(hospitalId?: string, roles?: Array<string>, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationUsersModel>>;
|
|
97
|
+
apiV1NotificationsUsersGet(hospitalId?: string, userId?: string, roles?: Array<string>, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationUsersModel>>;
|
|
96
98
|
};
|
|
97
99
|
/**
|
|
98
100
|
* NotificationsApi - factory interface
|
|
@@ -123,6 +125,7 @@ export declare const NotificationsApiFactory: (configuration?: Configuration, ba
|
|
|
123
125
|
*
|
|
124
126
|
* @summary Get all notification user. (Auth policies: RequireDefaultAdminAppRole)
|
|
125
127
|
* @param {string} [hospitalId]
|
|
128
|
+
* @param {string} [userId]
|
|
126
129
|
* @param {Array<string>} [roles]
|
|
127
130
|
* @param {boolean} [showHidden]
|
|
128
131
|
* @param {number} [page]
|
|
@@ -131,7 +134,7 @@ export declare const NotificationsApiFactory: (configuration?: Configuration, ba
|
|
|
131
134
|
* @param {*} [options] Override http request option.
|
|
132
135
|
* @throws {RequiredError}
|
|
133
136
|
*/
|
|
134
|
-
apiV1NotificationsUsersGet(hospitalId?: string, roles?: Array<string>, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<NotificationUsersModel>;
|
|
137
|
+
apiV1NotificationsUsersGet(hospitalId?: string, userId?: string, roles?: Array<string>, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<NotificationUsersModel>;
|
|
135
138
|
};
|
|
136
139
|
/**
|
|
137
140
|
* Request parameters for apiV1NotificationsCheckPost operation in NotificationsApi.
|
|
@@ -195,6 +198,12 @@ export interface NotificationsApiApiV1NotificationsUsersGetRequest {
|
|
|
195
198
|
* @memberof NotificationsApiApiV1NotificationsUsersGet
|
|
196
199
|
*/
|
|
197
200
|
readonly hospitalId?: string;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @type {string}
|
|
204
|
+
* @memberof NotificationsApiApiV1NotificationsUsersGet
|
|
205
|
+
*/
|
|
206
|
+
readonly userId?: string;
|
|
198
207
|
/**
|
|
199
208
|
*
|
|
200
209
|
* @type {Array<string>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-api.d.ts","sourceRoot":"","sources":["../../src/api/notifications-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,iCAAiC,mBAA6B,aAAa;IAEhF;;;;;;OAMG;8DAC6D,yBAAyB,YAAW,kBAAkB,KAAQ,OAAO,CAAC,WAAW,CAAC;IA+BlJ;;;;;;;;;;OAUG;+CAC8C,gBAAgB,oBAAoB,OAAO,SAAS,MAAM,UAAU,MAAM,kBAAkB,IAAI,YAAW,kBAAkB,KAAQ,OAAO,CAAC,WAAW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eAAe,CAAC,EAAE,OAAO,CAAA;IAElC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAAA;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,iDAAiD;IAC9D;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IAExB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAE7B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAAA;CAChC;AAED;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,OAAO;IACzC;;;;;;;OAOG;IACI,2BAA2B,CAAC,iBAAiB,GAAE,kDAAuD,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI3I;;;;;;;OAOG;IACI,qBAAqB,CAAC,iBAAiB,GAAE,4CAAiD,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI/H;;;;;;;OAOG;IACI,0BAA0B,CAAC,iBAAiB,GAAE,iDAAsD,EAAE,OAAO,CAAC,EAAE,kBAAkB;CAG5I"}
|
|
@@ -216,6 +216,7 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
216
216
|
*
|
|
217
217
|
* @summary Get all notification user. (Auth policies: RequireDefaultAdminAppRole)
|
|
218
218
|
* @param {string} [hospitalId]
|
|
219
|
+
* @param {string} [userId]
|
|
219
220
|
* @param {Array<string>} [roles]
|
|
220
221
|
* @param {boolean} [showHidden]
|
|
221
222
|
* @param {number} [page]
|
|
@@ -224,12 +225,12 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
224
225
|
* @param {*} [options] Override http request option.
|
|
225
226
|
* @throws {RequiredError}
|
|
226
227
|
*/
|
|
227
|
-
apiV1NotificationsUsersGet: function (hospitalId_1, roles_1, showHidden_1, page_1, limit_1, lastRetrieved_1) {
|
|
228
|
+
apiV1NotificationsUsersGet: function (hospitalId_1, userId_1, roles_1, showHidden_1, page_1, limit_1, lastRetrieved_1) {
|
|
228
229
|
var args_1 = [];
|
|
229
|
-
for (var _i =
|
|
230
|
-
args_1[_i -
|
|
230
|
+
for (var _i = 7; _i < arguments.length; _i++) {
|
|
231
|
+
args_1[_i - 7] = arguments[_i];
|
|
231
232
|
}
|
|
232
|
-
return __awaiter(_this, __spreadArray([hospitalId_1, roles_1, showHidden_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (hospitalId, roles, showHidden, page, limit, lastRetrieved, options) {
|
|
233
|
+
return __awaiter(_this, __spreadArray([hospitalId_1, userId_1, roles_1, showHidden_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (hospitalId, userId, roles, showHidden, page, limit, lastRetrieved, options) {
|
|
233
234
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
234
235
|
if (options === void 0) { options = {}; }
|
|
235
236
|
return __generator(this, function (_a) {
|
|
@@ -253,6 +254,9 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
253
254
|
if (hospitalId !== undefined) {
|
|
254
255
|
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
255
256
|
}
|
|
257
|
+
if (userId !== undefined) {
|
|
258
|
+
localVarQueryParameter['userId'] = userId;
|
|
259
|
+
}
|
|
256
260
|
if (roles) {
|
|
257
261
|
localVarQueryParameter['roles'] = roles;
|
|
258
262
|
}
|
|
@@ -339,6 +343,7 @@ var NotificationsApiFp = function (configuration) {
|
|
|
339
343
|
*
|
|
340
344
|
* @summary Get all notification user. (Auth policies: RequireDefaultAdminAppRole)
|
|
341
345
|
* @param {string} [hospitalId]
|
|
346
|
+
* @param {string} [userId]
|
|
342
347
|
* @param {Array<string>} [roles]
|
|
343
348
|
* @param {boolean} [showHidden]
|
|
344
349
|
* @param {number} [page]
|
|
@@ -347,12 +352,12 @@ var NotificationsApiFp = function (configuration) {
|
|
|
347
352
|
* @param {*} [options] Override http request option.
|
|
348
353
|
* @throws {RequiredError}
|
|
349
354
|
*/
|
|
350
|
-
apiV1NotificationsUsersGet: function (hospitalId, roles, showHidden, page, limit, lastRetrieved, options) {
|
|
355
|
+
apiV1NotificationsUsersGet: function (hospitalId, userId, roles, showHidden, page, limit, lastRetrieved, options) {
|
|
351
356
|
return __awaiter(this, void 0, void 0, function () {
|
|
352
357
|
var localVarAxiosArgs;
|
|
353
358
|
return __generator(this, function (_a) {
|
|
354
359
|
switch (_a.label) {
|
|
355
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsUsersGet(hospitalId, roles, showHidden, page, limit, lastRetrieved, options)];
|
|
360
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsUsersGet(hospitalId, userId, roles, showHidden, page, limit, lastRetrieved, options)];
|
|
356
361
|
case 1:
|
|
357
362
|
localVarAxiosArgs = _a.sent();
|
|
358
363
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -398,6 +403,7 @@ var NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
|
398
403
|
*
|
|
399
404
|
* @summary Get all notification user. (Auth policies: RequireDefaultAdminAppRole)
|
|
400
405
|
* @param {string} [hospitalId]
|
|
406
|
+
* @param {string} [userId]
|
|
401
407
|
* @param {Array<string>} [roles]
|
|
402
408
|
* @param {boolean} [showHidden]
|
|
403
409
|
* @param {number} [page]
|
|
@@ -406,8 +412,8 @@ var NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
|
406
412
|
* @param {*} [options] Override http request option.
|
|
407
413
|
* @throws {RequiredError}
|
|
408
414
|
*/
|
|
409
|
-
apiV1NotificationsUsersGet: function (hospitalId, roles, showHidden, page, limit, lastRetrieved, options) {
|
|
410
|
-
return localVarFp.apiV1NotificationsUsersGet(hospitalId, roles, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
415
|
+
apiV1NotificationsUsersGet: function (hospitalId, userId, roles, showHidden, page, limit, lastRetrieved, options) {
|
|
416
|
+
return localVarFp.apiV1NotificationsUsersGet(hospitalId, userId, roles, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
411
417
|
},
|
|
412
418
|
};
|
|
413
419
|
};
|
|
@@ -460,7 +466,7 @@ var NotificationsApi = /** @class */ (function (_super) {
|
|
|
460
466
|
NotificationsApi.prototype.apiV1NotificationsUsersGet = function (requestParameters, options) {
|
|
461
467
|
var _this = this;
|
|
462
468
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
463
|
-
return (0, exports.NotificationsApiFp)(this.configuration).apiV1NotificationsUsersGet(requestParameters.hospitalId, requestParameters.roles, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
469
|
+
return (0, exports.NotificationsApiFp)(this.configuration).apiV1NotificationsUsersGet(requestParameters.hospitalId, requestParameters.userId, requestParameters.roles, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
464
470
|
};
|
|
465
471
|
return NotificationsApi;
|
|
466
472
|
}(base_1.BaseAPI));
|
|
@@ -62,6 +62,8 @@ export declare const NotificationCode: {
|
|
|
62
62
|
readonly CheckedChatSession: "CheckedChatSession";
|
|
63
63
|
readonly RecreateChatSession: "RecreateChatSession";
|
|
64
64
|
readonly UnassignedNotification: "UnassignedNotification";
|
|
65
|
+
readonly AssignedNotification: "AssignedNotification";
|
|
66
|
+
readonly AutoAgentRemoval: "AutoAgentRemoval";
|
|
65
67
|
readonly ForceSignOut: "ForceSignOut";
|
|
66
68
|
};
|
|
67
69
|
export type NotificationCode = typeof NotificationCode[keyof typeof NotificationCode];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-code.d.ts","sourceRoot":"","sources":["../../src/models/notification-code.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"notification-code.d.ts","sourceRoot":"","sources":["../../src/models/notification-code.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -67,5 +67,7 @@ exports.NotificationCode = {
|
|
|
67
67
|
CheckedChatSession: 'CheckedChatSession',
|
|
68
68
|
RecreateChatSession: 'RecreateChatSession',
|
|
69
69
|
UnassignedNotification: 'UnassignedNotification',
|
|
70
|
+
AssignedNotification: 'AssignedNotification',
|
|
71
|
+
AutoAgentRemoval: 'AutoAgentRemoval',
|
|
70
72
|
ForceSignOut: 'ForceSignOut'
|
|
71
73
|
};
|