@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
|
@@ -19,6 +19,7 @@ All URIs are relative to *https://v2.api.caraer.com*
|
|
|
19
19
|
|[**revokeConnection**](#revokeconnection) | **DELETE** /api/v2/apps/{appUuid}/installation/connections/{providerOrConnectionId} | Revoke external OAuth connection tokens by connection id or provider name|
|
|
20
20
|
|[**saveUserSettings**](#saveusersettings) | **PUT** /api/v2/apps/{appUuid}/installation/settings/user | Save USER-scoped installation settings for the current user|
|
|
21
21
|
|[**startOAuth**](#startoauth) | **POST** /api/v2/apps/{appUuid}/installation/oauth/{provider}/start | Start external OAuth authorize (returns provider authorize URL)|
|
|
22
|
+
|[**triggerSettingAction**](#triggersettingaction) | **POST** /api/v2/apps/{appUuid}/installation/settings/{fieldName}/trigger | Trigger an ACTION setting without saving settings|
|
|
22
23
|
|
|
23
24
|
# **deleteSecret**
|
|
24
25
|
> DeleteResponseVoid deleteSecret()
|
|
@@ -875,3 +876,61 @@ const { status, data } = await apiInstance.startOAuth(
|
|
|
875
876
|
|
|
876
877
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
877
878
|
|
|
879
|
+
# **triggerSettingAction**
|
|
880
|
+
> ShowResponseMapStringObject triggerSettingAction()
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
### Example
|
|
884
|
+
|
|
885
|
+
```typescript
|
|
886
|
+
import {
|
|
887
|
+
AppInstallationRuntimeApi,
|
|
888
|
+
Configuration
|
|
889
|
+
} from '@caraer/client';
|
|
890
|
+
|
|
891
|
+
const configuration = new Configuration();
|
|
892
|
+
const apiInstance = new AppInstallationRuntimeApi(configuration);
|
|
893
|
+
|
|
894
|
+
let appUuid: string; // (default to undefined)
|
|
895
|
+
let fieldName: string; // (default to undefined)
|
|
896
|
+
|
|
897
|
+
const { status, data } = await apiInstance.triggerSettingAction(
|
|
898
|
+
appUuid,
|
|
899
|
+
fieldName
|
|
900
|
+
);
|
|
901
|
+
```
|
|
902
|
+
|
|
903
|
+
### Parameters
|
|
904
|
+
|
|
905
|
+
|Name | Type | Description | Notes|
|
|
906
|
+
|------------- | ------------- | ------------- | -------------|
|
|
907
|
+
| **appUuid** | [**string**] | | defaults to undefined|
|
|
908
|
+
| **fieldName** | [**string**] | | defaults to undefined|
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
### Return type
|
|
912
|
+
|
|
913
|
+
**ShowResponseMapStringObject**
|
|
914
|
+
|
|
915
|
+
### Authorization
|
|
916
|
+
|
|
917
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
918
|
+
|
|
919
|
+
### HTTP request headers
|
|
920
|
+
|
|
921
|
+
- **Content-Type**: Not defined
|
|
922
|
+
- **Accept**: application/json
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
### HTTP response details
|
|
926
|
+
| Status code | Description | Response headers |
|
|
927
|
+
|-------------|-------------|------------------|
|
|
928
|
+
|**202** | Action started | - |
|
|
929
|
+
|**400** | Bad Request | - |
|
|
930
|
+
|**404** | Not Found | - |
|
|
931
|
+
|**401** | Authentication is required or the token is invalid. | - |
|
|
932
|
+
|**403** | The caller is missing a required role or scope. | - |
|
|
933
|
+
|**500** | An internal server error occurred. | - |
|
|
934
|
+
|
|
935
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
936
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AppSettingActionSource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**serverlessFunctionUuid** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**serverlessFunctionName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**enqueue** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AppSettingActionSource } from '@caraer/client';
|
|
17
|
+
|
|
18
|
+
const instance: AppSettingActionSource = {
|
|
19
|
+
type,
|
|
20
|
+
serverlessFunctionUuid,
|
|
21
|
+
serverlessFunctionName,
|
|
22
|
+
enqueue,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**helpText** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**_options** | [**Array<SettingOption>**](SettingOption.md) | | [optional] [default to undefined]
|
|
14
14
|
**optionsSource** | [**AppSettingOptionsSource**](AppSettingOptionsSource.md) | | [optional] [default to undefined]
|
|
15
|
+
**actionSource** | [**AppSettingActionSource**](AppSettingActionSource.md) | | [optional] [default to undefined]
|
|
15
16
|
**defaultValue** | **any** | | [optional] [default to undefined]
|
|
16
17
|
**hidden** | **boolean** | | [optional] [default to undefined]
|
|
17
18
|
**visibleWhen** | [**Array<AppSettingCondition>**](AppSettingCondition.md) | | [optional] [default to undefined]
|
|
@@ -19,6 +20,7 @@ Name | Type | Description | Notes
|
|
|
19
20
|
**hasValue** | **boolean** | | [optional] [default to undefined]
|
|
20
21
|
**mappingValue** | [**AppSettingFieldMappingStructure**](AppSettingFieldMappingStructure.md) | | [optional] [default to undefined]
|
|
21
22
|
**valueScope** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**action** | **boolean** | | [optional] [default to undefined]
|
|
22
24
|
|
|
23
25
|
## Example
|
|
24
26
|
|
|
@@ -33,6 +35,7 @@ const instance: AppSettingFieldSchema = {
|
|
|
33
35
|
helpText,
|
|
34
36
|
_options,
|
|
35
37
|
optionsSource,
|
|
38
|
+
actionSource,
|
|
36
39
|
defaultValue,
|
|
37
40
|
hidden,
|
|
38
41
|
visibleWhen,
|
|
@@ -40,6 +43,7 @@ const instance: AppSettingFieldSchema = {
|
|
|
40
43
|
hasValue,
|
|
41
44
|
mappingValue,
|
|
42
45
|
valueScope,
|
|
46
|
+
action,
|
|
43
47
|
};
|
|
44
48
|
```
|
|
45
49
|
|
package/docs/Item.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Item
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**body** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**icon** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**actionTitle** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**data** | **{ [key: string]: any | null; }** | | [optional] [default to undefined]
|
|
16
|
+
**sender** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**company** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**readAt** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**sourceAppUuid** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**appLogo** | **string** | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { Item } from '@caraer/client';
|
|
28
|
+
|
|
29
|
+
const instance: Item = {
|
|
30
|
+
id,
|
|
31
|
+
title,
|
|
32
|
+
body,
|
|
33
|
+
type,
|
|
34
|
+
icon,
|
|
35
|
+
actionTitle,
|
|
36
|
+
action,
|
|
37
|
+
data,
|
|
38
|
+
sender,
|
|
39
|
+
company,
|
|
40
|
+
createdAt,
|
|
41
|
+
updatedAt,
|
|
42
|
+
readAt,
|
|
43
|
+
sourceAppUuid,
|
|
44
|
+
appLogo,
|
|
45
|
+
};
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# NotificationInboxDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**notifications** | [**Array<Item>**](Item.md) | | [optional] [default to undefined]
|
|
9
|
+
**unreadCount** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { NotificationInboxDTO } from '@caraer/client';
|
|
15
|
+
|
|
16
|
+
const instance: NotificationInboxDTO = {
|
|
17
|
+
notifications,
|
|
18
|
+
unreadCount,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/NotificationsApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://v2.api.caraer.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**dismissNotification**](#dismissnotification) | **DELETE** /api/v2/notifications/{notificationId} | Dismiss a notification|
|
|
8
|
+
|[**listNotifications**](#listnotifications) | **GET** /api/v2/notifications | List in-app notifications for the logged-in user|
|
|
8
9
|
|[**markAllAsRead**](#markallasread) | **PATCH** /api/v2/notifications/read-all | Mark all notifications as read for the current company|
|
|
9
10
|
|[**markAsRead**](#markasread) | **PATCH** /api/v2/notifications/{notificationId}/read | Mark a notification as read|
|
|
10
11
|
|[**sendNotification**](#sendnotification) | **POST** /api/v2/notifications | Send a notification (app token)|
|
|
@@ -63,6 +64,63 @@ const { status, data } = await apiInstance.dismissNotification(
|
|
|
63
64
|
|
|
64
65
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
66
|
|
|
67
|
+
# **listNotifications**
|
|
68
|
+
> ShowResponseNotificationInboxDTO listNotifications()
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
NotificationsApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from '@caraer/client';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new NotificationsApi(configuration);
|
|
81
|
+
|
|
82
|
+
let company: string; // (optional) (default to undefined)
|
|
83
|
+
let limit: number; // (optional) (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.listNotifications(
|
|
86
|
+
company,
|
|
87
|
+
limit
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **company** | [**string**] | | (optional) defaults to undefined|
|
|
96
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**ShowResponseNotificationInboxDTO**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: Not defined
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | OK | - |
|
|
117
|
+
|**401** | Authentication is required or the token is invalid. | - |
|
|
118
|
+
|**403** | The caller is missing a required role or scope. | - |
|
|
119
|
+
|**404** | The requested resource was not found. | - |
|
|
120
|
+
|**500** | An internal server error occurred. | - |
|
|
121
|
+
|
|
122
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
123
|
+
|
|
66
124
|
# **markAllAsRead**
|
|
67
125
|
> SuccessResponseString markAllAsRead()
|
|
68
126
|
|
package/docs/SettingField.md
CHANGED
|
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**hidden** | **boolean** | | [optional] [default to undefined]
|
|
15
15
|
**disabled** | **boolean** | | [optional] [default to undefined]
|
|
16
16
|
**_options** | [**Array<SettingOption>**](SettingOption.md) | | [optional] [default to undefined]
|
|
17
|
-
**defaultValue** | **any** | | [optional] [default to undefined]
|
|
18
17
|
**value** | **any** | | [optional] [default to undefined]
|
|
18
|
+
**defaultValue** | **any** | | [optional] [default to undefined]
|
|
19
19
|
|
|
20
20
|
## Example
|
|
21
21
|
|
|
@@ -32,8 +32,8 @@ const instance: SettingField = {
|
|
|
32
32
|
hidden,
|
|
33
33
|
disabled,
|
|
34
34
|
_options,
|
|
35
|
-
defaultValue,
|
|
36
35
|
value,
|
|
36
|
+
defaultValue,
|
|
37
37
|
};
|
|
38
38
|
```
|
|
39
39
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ShowResponseNotificationInboxDTO
|
|
2
|
+
|
|
3
|
+
Represents the response for viewing or showing a specific resource.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**message** | **string** | A message detailing the result of the operation. | [optional] [default to undefined]
|
|
10
|
+
**data** | [**NotificationInboxDTO**](NotificationInboxDTO.md) | The data payload of the response, if any. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ShowResponseNotificationInboxDTO } from '@caraer/client';
|
|
16
|
+
|
|
17
|
+
const instance: ShowResponseNotificationInboxDTO = {
|
|
18
|
+
message,
|
|
19
|
+
data,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|