@caraer/client 2.0.454 → 2.0.456
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/.openapi-generator/FILES +4 -0
- package/api.ts +203 -1
- package/dist/api.d.ts +117 -1
- package/dist/api.js +152 -0
- package/dist/esm/api.d.ts +117 -1
- package/dist/esm/api.js +152 -0
- package/docs/AppInstallationRuntimeApi.md +59 -0
- package/docs/AppSettingActionSource.md +26 -0
- package/docs/AppSettingFieldSchema.md +4 -0
- package/docs/Item.md +48 -0
- package/docs/NotificationInboxDTO.md +22 -0
- package/docs/NotificationsApi.md +58 -0
- package/docs/SettingField.md +2 -2
- package/docs/ShowResponseNotificationInboxDTO.md +23 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -1080,6 +1080,43 @@ const AppInstallationRuntimeApiAxiosParamCreator = function (configuration) {
|
|
|
1080
1080
|
options: localVarRequestOptions,
|
|
1081
1081
|
};
|
|
1082
1082
|
}),
|
|
1083
|
+
/**
|
|
1084
|
+
*
|
|
1085
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
1086
|
+
* @param {string} appUuid
|
|
1087
|
+
* @param {string} fieldName
|
|
1088
|
+
* @param {*} [options] Override http request option.
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
*/
|
|
1091
|
+
triggerSettingAction: (appUuid_1, fieldName_1, ...args_1) => __awaiter(this, [appUuid_1, fieldName_1, ...args_1], void 0, function* (appUuid, fieldName, options = {}) {
|
|
1092
|
+
// verify required parameter 'appUuid' is not null or undefined
|
|
1093
|
+
(0, common_1.assertParamExists)('triggerSettingAction', 'appUuid', appUuid);
|
|
1094
|
+
// verify required parameter 'fieldName' is not null or undefined
|
|
1095
|
+
(0, common_1.assertParamExists)('triggerSettingAction', 'fieldName', fieldName);
|
|
1096
|
+
const localVarPath = `/api/v2/apps/{appUuid}/installation/settings/{fieldName}/trigger`
|
|
1097
|
+
.replace('{appUuid}', encodeURIComponent(String(appUuid)))
|
|
1098
|
+
.replace('{fieldName}', encodeURIComponent(String(fieldName)));
|
|
1099
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1100
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1101
|
+
let baseOptions;
|
|
1102
|
+
if (configuration) {
|
|
1103
|
+
baseOptions = configuration.baseOptions;
|
|
1104
|
+
}
|
|
1105
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1106
|
+
const localVarHeaderParameter = {};
|
|
1107
|
+
const localVarQueryParameter = {};
|
|
1108
|
+
// authentication bearerAuth required
|
|
1109
|
+
// http bearer authentication required
|
|
1110
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1111
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1112
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1114
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1115
|
+
return {
|
|
1116
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1117
|
+
options: localVarRequestOptions,
|
|
1118
|
+
};
|
|
1119
|
+
}),
|
|
1083
1120
|
};
|
|
1084
1121
|
};
|
|
1085
1122
|
exports.AppInstallationRuntimeApiAxiosParamCreator = AppInstallationRuntimeApiAxiosParamCreator;
|
|
@@ -1344,6 +1381,23 @@ const AppInstallationRuntimeApiFp = function (configuration) {
|
|
|
1344
1381
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1345
1382
|
});
|
|
1346
1383
|
},
|
|
1384
|
+
/**
|
|
1385
|
+
*
|
|
1386
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
1387
|
+
* @param {string} appUuid
|
|
1388
|
+
* @param {string} fieldName
|
|
1389
|
+
* @param {*} [options] Override http request option.
|
|
1390
|
+
* @throws {RequiredError}
|
|
1391
|
+
*/
|
|
1392
|
+
triggerSettingAction(appUuid, fieldName, options) {
|
|
1393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1394
|
+
var _a, _b, _c;
|
|
1395
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.triggerSettingAction(appUuid, fieldName, options);
|
|
1396
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1397
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppInstallationRuntimeApi.triggerSettingAction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1398
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1399
|
+
});
|
|
1400
|
+
},
|
|
1347
1401
|
};
|
|
1348
1402
|
};
|
|
1349
1403
|
exports.AppInstallationRuntimeApiFp = AppInstallationRuntimeApiFp;
|
|
@@ -1518,6 +1572,17 @@ const AppInstallationRuntimeApiFactory = function (configuration, basePath, axio
|
|
|
1518
1572
|
startOAuth(appUuid, provider, redirectUri, options) {
|
|
1519
1573
|
return localVarFp.startOAuth(appUuid, provider, redirectUri, options).then((request) => request(axios, basePath));
|
|
1520
1574
|
},
|
|
1575
|
+
/**
|
|
1576
|
+
*
|
|
1577
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
1578
|
+
* @param {string} appUuid
|
|
1579
|
+
* @param {string} fieldName
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
triggerSettingAction(appUuid, fieldName, options) {
|
|
1584
|
+
return localVarFp.triggerSettingAction(appUuid, fieldName, options).then((request) => request(axios, basePath));
|
|
1585
|
+
},
|
|
1521
1586
|
};
|
|
1522
1587
|
};
|
|
1523
1588
|
exports.AppInstallationRuntimeApiFactory = AppInstallationRuntimeApiFactory;
|
|
@@ -1690,6 +1755,17 @@ class AppInstallationRuntimeApi extends base_1.BaseAPI {
|
|
|
1690
1755
|
startOAuth(appUuid, provider, redirectUri, options) {
|
|
1691
1756
|
return (0, exports.AppInstallationRuntimeApiFp)(this.configuration).startOAuth(appUuid, provider, redirectUri, options).then((request) => request(this.axios, this.basePath));
|
|
1692
1757
|
}
|
|
1758
|
+
/**
|
|
1759
|
+
*
|
|
1760
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
1761
|
+
* @param {string} appUuid
|
|
1762
|
+
* @param {string} fieldName
|
|
1763
|
+
* @param {*} [options] Override http request option.
|
|
1764
|
+
* @throws {RequiredError}
|
|
1765
|
+
*/
|
|
1766
|
+
triggerSettingAction(appUuid, fieldName, options) {
|
|
1767
|
+
return (0, exports.AppInstallationRuntimeApiFp)(this.configuration).triggerSettingAction(appUuid, fieldName, options).then((request) => request(this.axios, this.basePath));
|
|
1768
|
+
}
|
|
1693
1769
|
}
|
|
1694
1770
|
exports.AppInstallationRuntimeApi = AppInstallationRuntimeApi;
|
|
1695
1771
|
/**
|
|
@@ -8628,6 +8704,43 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
8628
8704
|
options: localVarRequestOptions,
|
|
8629
8705
|
};
|
|
8630
8706
|
}),
|
|
8707
|
+
/**
|
|
8708
|
+
*
|
|
8709
|
+
* @summary List in-app notifications for the logged-in user
|
|
8710
|
+
* @param {string} [company]
|
|
8711
|
+
* @param {number} [limit]
|
|
8712
|
+
* @param {*} [options] Override http request option.
|
|
8713
|
+
* @throws {RequiredError}
|
|
8714
|
+
*/
|
|
8715
|
+
listNotifications: (company_1, limit_1, ...args_1) => __awaiter(this, [company_1, limit_1, ...args_1], void 0, function* (company, limit, options = {}) {
|
|
8716
|
+
const localVarPath = `/api/v2/notifications`;
|
|
8717
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8718
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8719
|
+
let baseOptions;
|
|
8720
|
+
if (configuration) {
|
|
8721
|
+
baseOptions = configuration.baseOptions;
|
|
8722
|
+
}
|
|
8723
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8724
|
+
const localVarHeaderParameter = {};
|
|
8725
|
+
const localVarQueryParameter = {};
|
|
8726
|
+
// authentication bearerAuth required
|
|
8727
|
+
// http bearer authentication required
|
|
8728
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8729
|
+
if (company !== undefined) {
|
|
8730
|
+
localVarQueryParameter['company'] = company;
|
|
8731
|
+
}
|
|
8732
|
+
if (limit !== undefined) {
|
|
8733
|
+
localVarQueryParameter['limit'] = limit;
|
|
8734
|
+
}
|
|
8735
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
8736
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8738
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8739
|
+
return {
|
|
8740
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8741
|
+
options: localVarRequestOptions,
|
|
8742
|
+
};
|
|
8743
|
+
}),
|
|
8631
8744
|
/**
|
|
8632
8745
|
*
|
|
8633
8746
|
* @summary Mark all notifications as read for the current company
|
|
@@ -8749,6 +8862,23 @@ const NotificationsApiFp = function (configuration) {
|
|
|
8749
8862
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8750
8863
|
});
|
|
8751
8864
|
},
|
|
8865
|
+
/**
|
|
8866
|
+
*
|
|
8867
|
+
* @summary List in-app notifications for the logged-in user
|
|
8868
|
+
* @param {string} [company]
|
|
8869
|
+
* @param {number} [limit]
|
|
8870
|
+
* @param {*} [options] Override http request option.
|
|
8871
|
+
* @throws {RequiredError}
|
|
8872
|
+
*/
|
|
8873
|
+
listNotifications(company, limit, options) {
|
|
8874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8875
|
+
var _a, _b, _c;
|
|
8876
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listNotifications(company, limit, options);
|
|
8877
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8878
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NotificationsApi.listNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8879
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8880
|
+
});
|
|
8881
|
+
},
|
|
8752
8882
|
/**
|
|
8753
8883
|
*
|
|
8754
8884
|
* @summary Mark all notifications as read for the current company
|
|
@@ -8815,6 +8945,17 @@ const NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
|
8815
8945
|
dismissNotification(notificationId, options) {
|
|
8816
8946
|
return localVarFp.dismissNotification(notificationId, options).then((request) => request(axios, basePath));
|
|
8817
8947
|
},
|
|
8948
|
+
/**
|
|
8949
|
+
*
|
|
8950
|
+
* @summary List in-app notifications for the logged-in user
|
|
8951
|
+
* @param {string} [company]
|
|
8952
|
+
* @param {number} [limit]
|
|
8953
|
+
* @param {*} [options] Override http request option.
|
|
8954
|
+
* @throws {RequiredError}
|
|
8955
|
+
*/
|
|
8956
|
+
listNotifications(company, limit, options) {
|
|
8957
|
+
return localVarFp.listNotifications(company, limit, options).then((request) => request(axios, basePath));
|
|
8958
|
+
},
|
|
8818
8959
|
/**
|
|
8819
8960
|
*
|
|
8820
8961
|
* @summary Mark all notifications as read for the current company
|
|
@@ -8861,6 +9002,17 @@ class NotificationsApi extends base_1.BaseAPI {
|
|
|
8861
9002
|
dismissNotification(notificationId, options) {
|
|
8862
9003
|
return (0, exports.NotificationsApiFp)(this.configuration).dismissNotification(notificationId, options).then((request) => request(this.axios, this.basePath));
|
|
8863
9004
|
}
|
|
9005
|
+
/**
|
|
9006
|
+
*
|
|
9007
|
+
* @summary List in-app notifications for the logged-in user
|
|
9008
|
+
* @param {string} [company]
|
|
9009
|
+
* @param {number} [limit]
|
|
9010
|
+
* @param {*} [options] Override http request option.
|
|
9011
|
+
* @throws {RequiredError}
|
|
9012
|
+
*/
|
|
9013
|
+
listNotifications(company, limit, options) {
|
|
9014
|
+
return (0, exports.NotificationsApiFp)(this.configuration).listNotifications(company, limit, options).then((request) => request(this.axios, this.basePath));
|
|
9015
|
+
}
|
|
8864
9016
|
/**
|
|
8865
9017
|
*
|
|
8866
9018
|
* @summary Mark all notifications as read for the current company
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -928,6 +928,12 @@ export interface AppScheduleDTO {
|
|
|
928
928
|
'payloadTemplate'?: string;
|
|
929
929
|
'serverlessFunction'?: ServerlessFunctionRefDTO;
|
|
930
930
|
}
|
|
931
|
+
export interface AppSettingActionSource {
|
|
932
|
+
'type'?: string;
|
|
933
|
+
'serverlessFunctionUuid'?: string;
|
|
934
|
+
'serverlessFunctionName'?: string;
|
|
935
|
+
'enqueue'?: boolean;
|
|
936
|
+
}
|
|
931
937
|
export interface AppSettingCondition {
|
|
932
938
|
'field'?: string;
|
|
933
939
|
'operator'?: string;
|
|
@@ -954,6 +960,7 @@ export interface AppSettingFieldSchema {
|
|
|
954
960
|
'helpText'?: string;
|
|
955
961
|
'options'?: Array<SettingOption>;
|
|
956
962
|
'optionsSource'?: AppSettingOptionsSource;
|
|
963
|
+
'actionSource'?: AppSettingActionSource;
|
|
957
964
|
'defaultValue'?: any;
|
|
958
965
|
'hidden'?: boolean;
|
|
959
966
|
'visibleWhen'?: Array<AppSettingCondition>;
|
|
@@ -961,6 +968,7 @@ export interface AppSettingFieldSchema {
|
|
|
961
968
|
'hasValue'?: boolean;
|
|
962
969
|
'mappingValue'?: AppSettingFieldMappingStructure;
|
|
963
970
|
'valueScope'?: string;
|
|
971
|
+
'action'?: boolean;
|
|
964
972
|
}
|
|
965
973
|
export interface AppSettingOptionsSource {
|
|
966
974
|
'type'?: string;
|
|
@@ -2784,6 +2792,25 @@ export interface InstallAppRequest {
|
|
|
2784
2792
|
[key: string]: AppBarVisibilityEntry;
|
|
2785
2793
|
};
|
|
2786
2794
|
}
|
|
2795
|
+
export interface Item {
|
|
2796
|
+
'id'?: string;
|
|
2797
|
+
'title'?: string;
|
|
2798
|
+
'body'?: string;
|
|
2799
|
+
'type'?: string;
|
|
2800
|
+
'icon'?: string;
|
|
2801
|
+
'actionTitle'?: string;
|
|
2802
|
+
'action'?: string;
|
|
2803
|
+
'data'?: {
|
|
2804
|
+
[key: string]: any | null;
|
|
2805
|
+
};
|
|
2806
|
+
'sender'?: string;
|
|
2807
|
+
'company'?: string;
|
|
2808
|
+
'createdAt'?: string;
|
|
2809
|
+
'updatedAt'?: string;
|
|
2810
|
+
'readAt'?: string;
|
|
2811
|
+
'sourceAppUuid'?: string;
|
|
2812
|
+
'appLogo'?: string;
|
|
2813
|
+
}
|
|
2787
2814
|
/**
|
|
2788
2815
|
* DTO representing a lead score rule
|
|
2789
2816
|
*/
|
|
@@ -3047,6 +3074,10 @@ export interface NotFoundErrorCauseStackTraceInner {
|
|
|
3047
3074
|
'className'?: string;
|
|
3048
3075
|
'nativeMethod'?: boolean;
|
|
3049
3076
|
}
|
|
3077
|
+
export interface NotificationInboxDTO {
|
|
3078
|
+
'notifications'?: Array<Item>;
|
|
3079
|
+
'unreadCount'?: number;
|
|
3080
|
+
}
|
|
3050
3081
|
export interface Number extends PropertyFormat {
|
|
3051
3082
|
}
|
|
3052
3083
|
export interface NumberRange extends PropertyFormat {
|
|
@@ -5191,8 +5222,8 @@ export interface SettingField {
|
|
|
5191
5222
|
'hidden'?: boolean;
|
|
5192
5223
|
'disabled'?: boolean;
|
|
5193
5224
|
'options'?: Array<SettingOption>;
|
|
5194
|
-
'defaultValue'?: any;
|
|
5195
5225
|
'value'?: any;
|
|
5226
|
+
'defaultValue'?: any;
|
|
5196
5227
|
}
|
|
5197
5228
|
export declare const SettingFieldTypeEnum: {
|
|
5198
5229
|
readonly String: "STRING";
|
|
@@ -5529,6 +5560,19 @@ export interface ShowResponseMapStringString {
|
|
|
5529
5560
|
[key: string]: any;
|
|
5530
5561
|
};
|
|
5531
5562
|
}
|
|
5563
|
+
/**
|
|
5564
|
+
* Represents the response for viewing or showing a specific resource.
|
|
5565
|
+
*/
|
|
5566
|
+
export interface ShowResponseNotificationInboxDTO {
|
|
5567
|
+
/**
|
|
5568
|
+
* A message detailing the result of the operation.
|
|
5569
|
+
*/
|
|
5570
|
+
'message'?: string;
|
|
5571
|
+
/**
|
|
5572
|
+
* The data payload of the response, if any.
|
|
5573
|
+
*/
|
|
5574
|
+
'data'?: NotificationInboxDTO;
|
|
5575
|
+
}
|
|
5532
5576
|
/**
|
|
5533
5577
|
* Represents the response for viewing or showing a specific resource.
|
|
5534
5578
|
*/
|
|
@@ -7859,6 +7903,15 @@ export declare const AppInstallationRuntimeApiAxiosParamCreator: (configuration?
|
|
|
7859
7903
|
* @throws {RequiredError}
|
|
7860
7904
|
*/
|
|
7861
7905
|
startOAuth: (appUuid: string, provider: string, redirectUri?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7906
|
+
/**
|
|
7907
|
+
*
|
|
7908
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
7909
|
+
* @param {string} appUuid
|
|
7910
|
+
* @param {string} fieldName
|
|
7911
|
+
* @param {*} [options] Override http request option.
|
|
7912
|
+
* @throws {RequiredError}
|
|
7913
|
+
*/
|
|
7914
|
+
triggerSettingAction: (appUuid: string, fieldName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7862
7915
|
};
|
|
7863
7916
|
/**
|
|
7864
7917
|
* AppInstallationRuntimeApi - functional programming interface
|
|
@@ -8005,6 +8058,15 @@ export declare const AppInstallationRuntimeApiFp: (configuration?: Configuration
|
|
|
8005
8058
|
* @throws {RequiredError}
|
|
8006
8059
|
*/
|
|
8007
8060
|
startOAuth(appUuid: string, provider: string, redirectUri?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppOAuthStartResponseDTO>>;
|
|
8061
|
+
/**
|
|
8062
|
+
*
|
|
8063
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
8064
|
+
* @param {string} appUuid
|
|
8065
|
+
* @param {string} fieldName
|
|
8066
|
+
* @param {*} [options] Override http request option.
|
|
8067
|
+
* @throws {RequiredError}
|
|
8068
|
+
*/
|
|
8069
|
+
triggerSettingAction(appUuid: string, fieldName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>>;
|
|
8008
8070
|
};
|
|
8009
8071
|
/**
|
|
8010
8072
|
* AppInstallationRuntimeApi - factory interface
|
|
@@ -8151,6 +8213,15 @@ export declare const AppInstallationRuntimeApiFactory: (configuration?: Configur
|
|
|
8151
8213
|
* @throws {RequiredError}
|
|
8152
8214
|
*/
|
|
8153
8215
|
startOAuth(appUuid: string, provider: string, redirectUri?: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppOAuthStartResponseDTO>;
|
|
8216
|
+
/**
|
|
8217
|
+
*
|
|
8218
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
8219
|
+
* @param {string} appUuid
|
|
8220
|
+
* @param {string} fieldName
|
|
8221
|
+
* @param {*} [options] Override http request option.
|
|
8222
|
+
* @throws {RequiredError}
|
|
8223
|
+
*/
|
|
8224
|
+
triggerSettingAction(appUuid: string, fieldName: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject>;
|
|
8154
8225
|
};
|
|
8155
8226
|
/**
|
|
8156
8227
|
* AppInstallationRuntimeApi - object-oriented interface
|
|
@@ -8297,6 +8368,15 @@ export declare class AppInstallationRuntimeApi extends BaseAPI {
|
|
|
8297
8368
|
* @throws {RequiredError}
|
|
8298
8369
|
*/
|
|
8299
8370
|
startOAuth(appUuid: string, provider: string, redirectUri?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseAppOAuthStartResponseDTO, any, {}>>;
|
|
8371
|
+
/**
|
|
8372
|
+
*
|
|
8373
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
8374
|
+
* @param {string} appUuid
|
|
8375
|
+
* @param {string} fieldName
|
|
8376
|
+
* @param {*} [options] Override http request option.
|
|
8377
|
+
* @throws {RequiredError}
|
|
8378
|
+
*/
|
|
8379
|
+
triggerSettingAction(appUuid: string, fieldName: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseMapStringObject, any, {}>>;
|
|
8300
8380
|
}
|
|
8301
8381
|
/**
|
|
8302
8382
|
* ApplicationsApi - axios parameter creator
|
|
@@ -11598,6 +11678,15 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
11598
11678
|
* @throws {RequiredError}
|
|
11599
11679
|
*/
|
|
11600
11680
|
dismissNotification: (notificationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11681
|
+
/**
|
|
11682
|
+
*
|
|
11683
|
+
* @summary List in-app notifications for the logged-in user
|
|
11684
|
+
* @param {string} [company]
|
|
11685
|
+
* @param {number} [limit]
|
|
11686
|
+
* @param {*} [options] Override http request option.
|
|
11687
|
+
* @throws {RequiredError}
|
|
11688
|
+
*/
|
|
11689
|
+
listNotifications: (company?: string, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11601
11690
|
/**
|
|
11602
11691
|
*
|
|
11603
11692
|
* @summary Mark all notifications as read for the current company
|
|
@@ -11634,6 +11723,15 @@ export declare const NotificationsApiFp: (configuration?: Configuration) => {
|
|
|
11634
11723
|
* @throws {RequiredError}
|
|
11635
11724
|
*/
|
|
11636
11725
|
dismissNotification(notificationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseString>>;
|
|
11726
|
+
/**
|
|
11727
|
+
*
|
|
11728
|
+
* @summary List in-app notifications for the logged-in user
|
|
11729
|
+
* @param {string} [company]
|
|
11730
|
+
* @param {number} [limit]
|
|
11731
|
+
* @param {*} [options] Override http request option.
|
|
11732
|
+
* @throws {RequiredError}
|
|
11733
|
+
*/
|
|
11734
|
+
listNotifications(company?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseNotificationInboxDTO>>;
|
|
11637
11735
|
/**
|
|
11638
11736
|
*
|
|
11639
11737
|
* @summary Mark all notifications as read for the current company
|
|
@@ -11670,6 +11768,15 @@ export declare const NotificationsApiFactory: (configuration?: Configuration, ba
|
|
|
11670
11768
|
* @throws {RequiredError}
|
|
11671
11769
|
*/
|
|
11672
11770
|
dismissNotification(notificationId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteResponseString>;
|
|
11771
|
+
/**
|
|
11772
|
+
*
|
|
11773
|
+
* @summary List in-app notifications for the logged-in user
|
|
11774
|
+
* @param {string} [company]
|
|
11775
|
+
* @param {number} [limit]
|
|
11776
|
+
* @param {*} [options] Override http request option.
|
|
11777
|
+
* @throws {RequiredError}
|
|
11778
|
+
*/
|
|
11779
|
+
listNotifications(company?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseNotificationInboxDTO>;
|
|
11673
11780
|
/**
|
|
11674
11781
|
*
|
|
11675
11782
|
* @summary Mark all notifications as read for the current company
|
|
@@ -11706,6 +11813,15 @@ export declare class NotificationsApi extends BaseAPI {
|
|
|
11706
11813
|
* @throws {RequiredError}
|
|
11707
11814
|
*/
|
|
11708
11815
|
dismissNotification(notificationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseString, any, {}>>;
|
|
11816
|
+
/**
|
|
11817
|
+
*
|
|
11818
|
+
* @summary List in-app notifications for the logged-in user
|
|
11819
|
+
* @param {string} [company]
|
|
11820
|
+
* @param {number} [limit]
|
|
11821
|
+
* @param {*} [options] Override http request option.
|
|
11822
|
+
* @throws {RequiredError}
|
|
11823
|
+
*/
|
|
11824
|
+
listNotifications(company?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseNotificationInboxDTO, any, {}>>;
|
|
11709
11825
|
/**
|
|
11710
11826
|
*
|
|
11711
11827
|
* @summary Mark all notifications as read for the current company
|
package/dist/esm/api.js
CHANGED
|
@@ -1067,6 +1067,43 @@ export const AppInstallationRuntimeApiAxiosParamCreator = function (configuratio
|
|
|
1067
1067
|
options: localVarRequestOptions,
|
|
1068
1068
|
};
|
|
1069
1069
|
}),
|
|
1070
|
+
/**
|
|
1071
|
+
*
|
|
1072
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
1073
|
+
* @param {string} appUuid
|
|
1074
|
+
* @param {string} fieldName
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
triggerSettingAction: (appUuid_1, fieldName_1, ...args_1) => __awaiter(this, [appUuid_1, fieldName_1, ...args_1], void 0, function* (appUuid, fieldName, options = {}) {
|
|
1079
|
+
// verify required parameter 'appUuid' is not null or undefined
|
|
1080
|
+
assertParamExists('triggerSettingAction', 'appUuid', appUuid);
|
|
1081
|
+
// verify required parameter 'fieldName' is not null or undefined
|
|
1082
|
+
assertParamExists('triggerSettingAction', 'fieldName', fieldName);
|
|
1083
|
+
const localVarPath = `/api/v2/apps/{appUuid}/installation/settings/{fieldName}/trigger`
|
|
1084
|
+
.replace('{appUuid}', encodeURIComponent(String(appUuid)))
|
|
1085
|
+
.replace('{fieldName}', encodeURIComponent(String(fieldName)));
|
|
1086
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1087
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1088
|
+
let baseOptions;
|
|
1089
|
+
if (configuration) {
|
|
1090
|
+
baseOptions = configuration.baseOptions;
|
|
1091
|
+
}
|
|
1092
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1093
|
+
const localVarHeaderParameter = {};
|
|
1094
|
+
const localVarQueryParameter = {};
|
|
1095
|
+
// authentication bearerAuth required
|
|
1096
|
+
// http bearer authentication required
|
|
1097
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1098
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1099
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1101
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1102
|
+
return {
|
|
1103
|
+
url: toPathString(localVarUrlObj),
|
|
1104
|
+
options: localVarRequestOptions,
|
|
1105
|
+
};
|
|
1106
|
+
}),
|
|
1070
1107
|
};
|
|
1071
1108
|
};
|
|
1072
1109
|
/**
|
|
@@ -1330,6 +1367,23 @@ export const AppInstallationRuntimeApiFp = function (configuration) {
|
|
|
1330
1367
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1331
1368
|
});
|
|
1332
1369
|
},
|
|
1370
|
+
/**
|
|
1371
|
+
*
|
|
1372
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
1373
|
+
* @param {string} appUuid
|
|
1374
|
+
* @param {string} fieldName
|
|
1375
|
+
* @param {*} [options] Override http request option.
|
|
1376
|
+
* @throws {RequiredError}
|
|
1377
|
+
*/
|
|
1378
|
+
triggerSettingAction(appUuid, fieldName, options) {
|
|
1379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1380
|
+
var _a, _b, _c;
|
|
1381
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.triggerSettingAction(appUuid, fieldName, options);
|
|
1382
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1383
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppInstallationRuntimeApi.triggerSettingAction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1384
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1385
|
+
});
|
|
1386
|
+
},
|
|
1333
1387
|
};
|
|
1334
1388
|
};
|
|
1335
1389
|
/**
|
|
@@ -1503,6 +1557,17 @@ export const AppInstallationRuntimeApiFactory = function (configuration, basePat
|
|
|
1503
1557
|
startOAuth(appUuid, provider, redirectUri, options) {
|
|
1504
1558
|
return localVarFp.startOAuth(appUuid, provider, redirectUri, options).then((request) => request(axios, basePath));
|
|
1505
1559
|
},
|
|
1560
|
+
/**
|
|
1561
|
+
*
|
|
1562
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
1563
|
+
* @param {string} appUuid
|
|
1564
|
+
* @param {string} fieldName
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
*/
|
|
1568
|
+
triggerSettingAction(appUuid, fieldName, options) {
|
|
1569
|
+
return localVarFp.triggerSettingAction(appUuid, fieldName, options).then((request) => request(axios, basePath));
|
|
1570
|
+
},
|
|
1506
1571
|
};
|
|
1507
1572
|
};
|
|
1508
1573
|
/**
|
|
@@ -1674,6 +1739,17 @@ export class AppInstallationRuntimeApi extends BaseAPI {
|
|
|
1674
1739
|
startOAuth(appUuid, provider, redirectUri, options) {
|
|
1675
1740
|
return AppInstallationRuntimeApiFp(this.configuration).startOAuth(appUuid, provider, redirectUri, options).then((request) => request(this.axios, this.basePath));
|
|
1676
1741
|
}
|
|
1742
|
+
/**
|
|
1743
|
+
*
|
|
1744
|
+
* @summary Trigger an ACTION setting without saving settings
|
|
1745
|
+
* @param {string} appUuid
|
|
1746
|
+
* @param {string} fieldName
|
|
1747
|
+
* @param {*} [options] Override http request option.
|
|
1748
|
+
* @throws {RequiredError}
|
|
1749
|
+
*/
|
|
1750
|
+
triggerSettingAction(appUuid, fieldName, options) {
|
|
1751
|
+
return AppInstallationRuntimeApiFp(this.configuration).triggerSettingAction(appUuid, fieldName, options).then((request) => request(this.axios, this.basePath));
|
|
1752
|
+
}
|
|
1677
1753
|
}
|
|
1678
1754
|
/**
|
|
1679
1755
|
* ApplicationsApi - axios parameter creator
|
|
@@ -8567,6 +8643,43 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
8567
8643
|
options: localVarRequestOptions,
|
|
8568
8644
|
};
|
|
8569
8645
|
}),
|
|
8646
|
+
/**
|
|
8647
|
+
*
|
|
8648
|
+
* @summary List in-app notifications for the logged-in user
|
|
8649
|
+
* @param {string} [company]
|
|
8650
|
+
* @param {number} [limit]
|
|
8651
|
+
* @param {*} [options] Override http request option.
|
|
8652
|
+
* @throws {RequiredError}
|
|
8653
|
+
*/
|
|
8654
|
+
listNotifications: (company_1, limit_1, ...args_1) => __awaiter(this, [company_1, limit_1, ...args_1], void 0, function* (company, limit, options = {}) {
|
|
8655
|
+
const localVarPath = `/api/v2/notifications`;
|
|
8656
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8657
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8658
|
+
let baseOptions;
|
|
8659
|
+
if (configuration) {
|
|
8660
|
+
baseOptions = configuration.baseOptions;
|
|
8661
|
+
}
|
|
8662
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8663
|
+
const localVarHeaderParameter = {};
|
|
8664
|
+
const localVarQueryParameter = {};
|
|
8665
|
+
// authentication bearerAuth required
|
|
8666
|
+
// http bearer authentication required
|
|
8667
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8668
|
+
if (company !== undefined) {
|
|
8669
|
+
localVarQueryParameter['company'] = company;
|
|
8670
|
+
}
|
|
8671
|
+
if (limit !== undefined) {
|
|
8672
|
+
localVarQueryParameter['limit'] = limit;
|
|
8673
|
+
}
|
|
8674
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
8675
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8676
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8677
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8678
|
+
return {
|
|
8679
|
+
url: toPathString(localVarUrlObj),
|
|
8680
|
+
options: localVarRequestOptions,
|
|
8681
|
+
};
|
|
8682
|
+
}),
|
|
8570
8683
|
/**
|
|
8571
8684
|
*
|
|
8572
8685
|
* @summary Mark all notifications as read for the current company
|
|
@@ -8687,6 +8800,23 @@ export const NotificationsApiFp = function (configuration) {
|
|
|
8687
8800
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8688
8801
|
});
|
|
8689
8802
|
},
|
|
8803
|
+
/**
|
|
8804
|
+
*
|
|
8805
|
+
* @summary List in-app notifications for the logged-in user
|
|
8806
|
+
* @param {string} [company]
|
|
8807
|
+
* @param {number} [limit]
|
|
8808
|
+
* @param {*} [options] Override http request option.
|
|
8809
|
+
* @throws {RequiredError}
|
|
8810
|
+
*/
|
|
8811
|
+
listNotifications(company, limit, options) {
|
|
8812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8813
|
+
var _a, _b, _c;
|
|
8814
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listNotifications(company, limit, options);
|
|
8815
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8816
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['NotificationsApi.listNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8817
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8818
|
+
});
|
|
8819
|
+
},
|
|
8690
8820
|
/**
|
|
8691
8821
|
*
|
|
8692
8822
|
* @summary Mark all notifications as read for the current company
|
|
@@ -8752,6 +8882,17 @@ export const NotificationsApiFactory = function (configuration, basePath, axios)
|
|
|
8752
8882
|
dismissNotification(notificationId, options) {
|
|
8753
8883
|
return localVarFp.dismissNotification(notificationId, options).then((request) => request(axios, basePath));
|
|
8754
8884
|
},
|
|
8885
|
+
/**
|
|
8886
|
+
*
|
|
8887
|
+
* @summary List in-app notifications for the logged-in user
|
|
8888
|
+
* @param {string} [company]
|
|
8889
|
+
* @param {number} [limit]
|
|
8890
|
+
* @param {*} [options] Override http request option.
|
|
8891
|
+
* @throws {RequiredError}
|
|
8892
|
+
*/
|
|
8893
|
+
listNotifications(company, limit, options) {
|
|
8894
|
+
return localVarFp.listNotifications(company, limit, options).then((request) => request(axios, basePath));
|
|
8895
|
+
},
|
|
8755
8896
|
/**
|
|
8756
8897
|
*
|
|
8757
8898
|
* @summary Mark all notifications as read for the current company
|
|
@@ -8797,6 +8938,17 @@ export class NotificationsApi extends BaseAPI {
|
|
|
8797
8938
|
dismissNotification(notificationId, options) {
|
|
8798
8939
|
return NotificationsApiFp(this.configuration).dismissNotification(notificationId, options).then((request) => request(this.axios, this.basePath));
|
|
8799
8940
|
}
|
|
8941
|
+
/**
|
|
8942
|
+
*
|
|
8943
|
+
* @summary List in-app notifications for the logged-in user
|
|
8944
|
+
* @param {string} [company]
|
|
8945
|
+
* @param {number} [limit]
|
|
8946
|
+
* @param {*} [options] Override http request option.
|
|
8947
|
+
* @throws {RequiredError}
|
|
8948
|
+
*/
|
|
8949
|
+
listNotifications(company, limit, options) {
|
|
8950
|
+
return NotificationsApiFp(this.configuration).listNotifications(company, limit, options).then((request) => request(this.axios, this.basePath));
|
|
8951
|
+
}
|
|
8800
8952
|
/**
|
|
8801
8953
|
*
|
|
8802
8954
|
* @summary Mark all notifications as read for the current company
|