@caraer/client 2.0.347
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 +189 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +5 -0
- package/LICENSE +21 -0
- package/README.md +25 -0
- package/api.ts +21719 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +12770 -0
- package/dist/api.js +15923 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +12770 -0
- package/dist/esm/api.js +15835 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AccessGrantTargetDTO.md +25 -0
- package/docs/AppBarDTO.md +55 -0
- package/docs/AppBarIframeSessionRequest.md +29 -0
- package/docs/AppBarIframeSessionValidateRequest.md +21 -0
- package/docs/AppBarIframeSessionsApi.md +119 -0
- package/docs/AppBarTriggerRequest.md +31 -0
- package/docs/AppBarVisibilityEntry.md +22 -0
- package/docs/AppBarsApi.md +130 -0
- package/docs/AppDTO.md +101 -0
- package/docs/AppDetailsDTO.md +63 -0
- package/docs/AppPricingDTO.md +55 -0
- package/docs/AppPublishDTO.md +51 -0
- package/docs/AppRequest.md +21 -0
- package/docs/AppSettingFieldMappingStructure.md +22 -0
- package/docs/AppSettingFieldMappingStructureItem.md +32 -0
- package/docs/AppSettingFieldSchema.md +40 -0
- package/docs/AppSettingOptionsSource.md +28 -0
- package/docs/AppTierDTO.md +49 -0
- package/docs/ApplicationsApi.md +1422 -0
- package/docs/AutomationsApi.md +54 -0
- package/docs/BillingSettingsDTO.md +51 -0
- package/docs/CaraerErrorType.md +24 -0
- package/docs/CaraerObjectDTO.md +65 -0
- package/docs/CompanyApi.md +538 -0
- package/docs/CompanyDTO.md +47 -0
- package/docs/CompanyDetailsDTO.md +75 -0
- package/docs/CopyPropertiesToObjectRequest.md +20 -0
- package/docs/CopyPropertyToEnvironmentsRequest.md +28 -0
- package/docs/CreateCompanyRequest.md +29 -0
- package/docs/CreateOrUpdateEnvironmentRequest.md +22 -0
- package/docs/CreatePrivateAppRequest.md +27 -0
- package/docs/CreateResponse.md +23 -0
- package/docs/CreateResponseSignedUrlResultDTO.md +23 -0
- package/docs/CreateSignedUrlRequest.md +20 -0
- package/docs/Currency.md +18 -0
- package/docs/CurrencyRange.md +18 -0
- package/docs/CursorLocation.md +25 -0
- package/docs/CustomFontDTO.md +22 -0
- package/docs/Date.md +18 -0
- package/docs/DeleteResponse.md +23 -0
- package/docs/DeleteResponseString.md +23 -0
- package/docs/DigitalIdentityDTO.md +115 -0
- package/docs/Duration.md +18 -0
- package/docs/Email.md +18 -0
- package/docs/EngagementBatchRequest.md +24 -0
- package/docs/ErrorResponse.md +31 -0
- package/docs/FeedDTO.md +66 -0
- package/docs/FeedsApi.md +58 -0
- package/docs/File.md +18 -0
- package/docs/FileManagementApi.md +228 -0
- package/docs/FilledProperty.md +28 -0
- package/docs/Filter.md +21 -0
- package/docs/FilterApi.md +286 -0
- package/docs/FilterGroup.md +21 -0
- package/docs/FilterItem.md +33 -0
- package/docs/FontVariantDTO.md +24 -0
- package/docs/FormDTO.md +59 -0
- package/docs/FormItemDTO.md +31 -0
- package/docs/FormRelationDTO.md +31 -0
- package/docs/FormWithAiPromptDTO.md +61 -0
- package/docs/FormsApi.md +864 -0
- package/docs/GridItemDTO.md +31 -0
- package/docs/GridItemSettingsDTO.md +49 -0
- package/docs/HasAppDTO.md +37 -0
- package/docs/InstallAppRequest.md +29 -0
- package/docs/Leadscore.md +37 -0
- package/docs/LinkedProperty.md +20 -0
- package/docs/LoadAppSettingOptionsRequest.md +27 -0
- package/docs/LoginRequest.md +22 -0
- package/docs/MappingDTO.md +50 -0
- package/docs/MappingItemDTO.md +46 -0
- package/docs/ModuleApi.md +561 -0
- package/docs/MorphRecordRequest.md +21 -0
- package/docs/MultiLine.md +18 -0
- package/docs/MultiSelect.md +18 -0
- package/docs/MultiValueMapStringString.md +22 -0
- package/docs/NotFoundError.md +42 -0
- package/docs/NotFoundErrorCause.md +24 -0
- package/docs/NotFoundErrorCauseStackTraceInner.md +34 -0
- package/docs/NotificationsApi.md +211 -0
- package/docs/Number.md +18 -0
- package/docs/NumberRange.md +18 -0
- package/docs/ObjectAccessGrantCandidatesDTO.md +25 -0
- package/docs/ObjectAccessGrantRequestDTO.md +25 -0
- package/docs/ObjectAccessGrantSectionDTO.md +25 -0
- package/docs/ObjectsApi.md +878 -0
- package/docs/PageContentDTO.md +73 -0
- package/docs/PageContentSettingsDTO.md +111 -0
- package/docs/PageContentStylingDTO.md +26 -0
- package/docs/PaginationResponse.md +31 -0
- package/docs/PaginationResponsePreviewDTO.md +31 -0
- package/docs/PaginationResponseWebpageAccessGrantDTO.md +31 -0
- package/docs/Phone.md +18 -0
- package/docs/PreviewDTO.md +77 -0
- package/docs/PreviewItemDTO.md +43 -0
- package/docs/PreviewItemSettingsDTO.md +43 -0
- package/docs/PreviewRelatedObjectDTO.md +23 -0
- package/docs/PropertyApi.md +803 -0
- package/docs/PropertyDTO.md +77 -0
- package/docs/PropertyDTOFormat.md +35 -0
- package/docs/PropertyFormat.md +32 -0
- package/docs/PropertyOption.md +30 -0
- package/docs/PublicUserDTO.md +36 -0
- package/docs/Record.md +48 -0
- package/docs/RecordDTO.md +45 -0
- package/docs/RecordRelationRequestDTO.md +33 -0
- package/docs/RecordsApi.md +948 -0
- package/docs/Reference.md +26 -0
- package/docs/RegisterRequest.md +26 -0
- package/docs/RelationDTO.md +47 -0
- package/docs/RelationsApi.md +627 -0
- package/docs/ResetPasswordRequest.md +24 -0
- package/docs/RestoreResponse.md +23 -0
- package/docs/RestoreResponseCaraerObjectDTO.md +23 -0
- package/docs/RestoreResponseSavedFilterDTO.md +23 -0
- package/docs/RestoreResponseTeamDTO.md +23 -0
- package/docs/RestoreResponseViewDTO.md +23 -0
- package/docs/ReviewRequest.md +25 -0
- package/docs/SavePropertyDTO.md +71 -0
- package/docs/SavedFilterDTO.md +45 -0
- package/docs/SendNotificationRequest.md +35 -0
- package/docs/ServerlessFunctionDTO.md +45 -0
- package/docs/ServerlessFunctionsApi.md +298 -0
- package/docs/SettingField.md +40 -0
- package/docs/SettingOption.md +24 -0
- package/docs/ShowItem.md +35 -0
- package/docs/ShowResponse.md +23 -0
- package/docs/ShowResponseObjectAccessGrantCandidatesDTO.md +23 -0
- package/docs/ShowResponseWebpageProtectionInfoDTO.md +23 -0
- package/docs/SignedUrlResultDTO.md +27 -0
- package/docs/SimplePublicCompanyDTO.md +69 -0
- package/docs/SingleCheckbox.md +18 -0
- package/docs/SingleLine.md +18 -0
- package/docs/SingleSelect.md +18 -0
- package/docs/SortItem.md +27 -0
- package/docs/SseEmitter.md +20 -0
- package/docs/Structure.md +18 -0
- package/docs/StyleSetDTO.md +502 -0
- package/docs/SubscribeWebhookDTO.md +79 -0
- package/docs/SuccessResponse.md +23 -0
- package/docs/SuccessResponseString.md +23 -0
- package/docs/SuccessResponseVoid.md +23 -0
- package/docs/SyncApi.md +344 -0
- package/docs/SyncDTO.md +40 -0
- package/docs/Tag.md +18 -0
- package/docs/Team.md +52 -0
- package/docs/TeamDTO.md +48 -0
- package/docs/TemplateWebpageDTO.md +69 -0
- package/docs/TestServerlessFunctionRequest.md +25 -0
- package/docs/TestWebhookRequest.md +27 -0
- package/docs/TrackingEventRequest.md +72 -0
- package/docs/TrackingSessionUpsertRequest.md +22 -0
- package/docs/TraitsApi.md +236 -0
- package/docs/Tuple2LongLong.md +22 -0
- package/docs/UpdateLifecyclePropertiesDTO.md +21 -0
- package/docs/UpdateResponse.md +23 -0
- package/docs/Url.md +18 -0
- package/docs/UsedInResult.md +22 -0
- package/docs/UserRecordResponseDTO.md +47 -0
- package/docs/UserWithCursorLocationDTO.md +33 -0
- package/docs/ValidationError.md +36 -0
- package/docs/ViewDTO.md +72 -0
- package/docs/ViewShareRequest.md +24 -0
- package/docs/ViewsApi.md +412 -0
- package/docs/WebMenuDTO.md +53 -0
- package/docs/WebMenuItem.md +26 -0
- package/docs/WebMenusApi.md +336 -0
- package/docs/WebpageAccessGrantDTO.md +51 -0
- package/docs/WebpageDTO.md +69 -0
- package/docs/WebpageEditingStatusDTO.md +25 -0
- package/docs/WebpageOptionsDTO.md +41 -0
- package/docs/WebpageProtectionInfoDTO.md +27 -0
- package/docs/WebpagePublicRecordDTO.md +25 -0
- package/docs/WebpageUnlockRequest.md +20 -0
- package/docs/WebpagesApi.md +2009 -0
- package/docs/WebsiteSettingsDTO.md +321 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +37 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# RestoreResponseSavedFilterDTO
|
|
2
|
+
|
|
3
|
+
Represents the response returned when a restore operation is performed successfully.
|
|
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** | [**SavedFilterDTO**](SavedFilterDTO.md) | The data payload of the response, if any. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RestoreResponseSavedFilterDTO } from '@caraer/client';
|
|
16
|
+
|
|
17
|
+
const instance: RestoreResponseSavedFilterDTO = {
|
|
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)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# RestoreResponseTeamDTO
|
|
2
|
+
|
|
3
|
+
Represents the response returned when a restore operation is performed successfully.
|
|
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** | [**TeamDTO**](TeamDTO.md) | The data payload of the response, if any. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RestoreResponseTeamDTO } from '@caraer/client';
|
|
16
|
+
|
|
17
|
+
const instance: RestoreResponseTeamDTO = {
|
|
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)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# RestoreResponseViewDTO
|
|
2
|
+
|
|
3
|
+
Represents the response returned when a restore operation is performed successfully.
|
|
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** | [**ViewDTO**](ViewDTO.md) | The data payload of the response, if any. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RestoreResponseViewDTO } from '@caraer/client';
|
|
16
|
+
|
|
17
|
+
const instance: RestoreResponseViewDTO = {
|
|
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)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ReviewRequest
|
|
2
|
+
|
|
3
|
+
Review request with feedback, reviewer notes, and publish state
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**feedback** | **string** | Feedback shown to the developer. | [optional] [default to undefined]
|
|
10
|
+
**reviewerNotes** | **string** | Internal notes for reviewers (not shown to the developer). | [optional] [default to undefined]
|
|
11
|
+
**publishState** | **string** | Publish state after review: APPROVED, REJECTED, CHANGES_REQUESTED. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReviewRequest } from '@caraer/client';
|
|
17
|
+
|
|
18
|
+
const instance: ReviewRequest = {
|
|
19
|
+
feedback,
|
|
20
|
+
reviewerNotes,
|
|
21
|
+
publishState,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,71 @@
|
|
|
1
|
+
# SavePropertyDTO
|
|
2
|
+
|
|
3
|
+
DTO representing a property to be saved
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uuid** | **string** | Unique identifier for the entity | [default to undefined]
|
|
10
|
+
**name** | **string** | The internal name of the property | [optional] [default to undefined]
|
|
11
|
+
**label** | **string** | The display label of the property | [optional] [default to undefined]
|
|
12
|
+
**createdAt** | **number** | Unix timestamp when the entity was created | [optional] [default to undefined]
|
|
13
|
+
**createdBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who created the entity | [optional] [default to undefined]
|
|
14
|
+
**updatedAt** | **number** | Unix timestamp when the entity was last updated | [optional] [default to undefined]
|
|
15
|
+
**updatedBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who last updated the entity | [optional] [default to undefined]
|
|
16
|
+
**deletedAt** | **number** | Unix timestamp when the entity was deleted (null if not deleted) | [optional] [default to undefined]
|
|
17
|
+
**deletedBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who deleted the entity | [optional] [default to undefined]
|
|
18
|
+
**index** | **number** | Index number for ordering entities | [optional] [default to undefined]
|
|
19
|
+
**description** | **string** | A brief description of the property | [optional] [default to undefined]
|
|
20
|
+
**type** | **string** | The data type of the property | [optional] [default to undefined]
|
|
21
|
+
**_options** | [**Array<PropertyOption>**](PropertyOption.md) | List of available options for the property | [optional] [default to undefined]
|
|
22
|
+
**group** | **string** | The group to which this property belongs | [optional] [default to undefined]
|
|
23
|
+
**format** | **string** | Property format type | [optional] [default to undefined]
|
|
24
|
+
**rules** | **Array<string>** | Collection of rules applied to the property | [optional] [default to undefined]
|
|
25
|
+
**hidden** | **boolean** | Indicates if the property is hidden by default | [optional] [default to undefined]
|
|
26
|
+
**lifecycleActive** | **boolean** | When true, property value changes are tracked as lifecycle records | [optional] [default to undefined]
|
|
27
|
+
**nonPublic** | **boolean** | Indicates if the property is not accessible publicly | [optional] [default to undefined]
|
|
28
|
+
**indexed** | **boolean** | Indicates if the property is indexed | [optional] [default to undefined]
|
|
29
|
+
**formatSettings** | **{ [key: string]: any | null; }** | Settings to configure the format of the property | [optional] [default to undefined]
|
|
30
|
+
**immutable** | **boolean** | Indicates if the property is immutable | [optional] [default to undefined]
|
|
31
|
+
**editable** | **boolean** | Indicates if the property can be edited | [optional] [default to undefined]
|
|
32
|
+
**icon** | **string** | The icon associated with the property | [optional] [default to undefined]
|
|
33
|
+
**webpagePublic** | **boolean** | Indicates if the property is webpage public | [optional] [default to undefined]
|
|
34
|
+
**embeddable** | **boolean** | Indicates if the property is embeddable | [optional] [default to undefined]
|
|
35
|
+
|
|
36
|
+
## Example
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { SavePropertyDTO } from '@caraer/client';
|
|
40
|
+
|
|
41
|
+
const instance: SavePropertyDTO = {
|
|
42
|
+
uuid,
|
|
43
|
+
name,
|
|
44
|
+
label,
|
|
45
|
+
createdAt,
|
|
46
|
+
createdBy,
|
|
47
|
+
updatedAt,
|
|
48
|
+
updatedBy,
|
|
49
|
+
deletedAt,
|
|
50
|
+
deletedBy,
|
|
51
|
+
index,
|
|
52
|
+
description,
|
|
53
|
+
type,
|
|
54
|
+
_options,
|
|
55
|
+
group,
|
|
56
|
+
format,
|
|
57
|
+
rules,
|
|
58
|
+
hidden,
|
|
59
|
+
lifecycleActive,
|
|
60
|
+
nonPublic,
|
|
61
|
+
indexed,
|
|
62
|
+
formatSettings,
|
|
63
|
+
immutable,
|
|
64
|
+
editable,
|
|
65
|
+
icon,
|
|
66
|
+
webpagePublic,
|
|
67
|
+
embeddable,
|
|
68
|
+
};
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
[[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,45 @@
|
|
|
1
|
+
# SavedFilterDTO
|
|
2
|
+
|
|
3
|
+
Data transfer object representing a saved filter configuration
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uuid** | **string** | Unique identifier for the entity | [default to undefined]
|
|
10
|
+
**name** | **string** | The name identifier of the saved filter | [default to undefined]
|
|
11
|
+
**label** | **string** | Display label for the saved filter | [optional] [default to undefined]
|
|
12
|
+
**createdAt** | **number** | Unix timestamp when the entity was created | [optional] [default to undefined]
|
|
13
|
+
**createdBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who created the entity | [optional] [default to undefined]
|
|
14
|
+
**updatedAt** | **number** | Unix timestamp when the entity was last updated | [optional] [default to undefined]
|
|
15
|
+
**updatedBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who last updated the entity | [optional] [default to undefined]
|
|
16
|
+
**deletedAt** | **number** | Unix timestamp when the entity was deleted (null if not deleted) | [optional] [default to undefined]
|
|
17
|
+
**deletedBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who deleted the entity | [optional] [default to undefined]
|
|
18
|
+
**index** | **number** | Index number for ordering entities | [optional] [default to undefined]
|
|
19
|
+
**description** | **string** | Description of what this saved filter is used for | [optional] [default to undefined]
|
|
20
|
+
**mainObject** | **string** | The main object for the saved filter | [optional] [default to undefined]
|
|
21
|
+
**filter** | [**Filter**](Filter.md) | The filter definition used when querying records | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { SavedFilterDTO } from '@caraer/client';
|
|
27
|
+
|
|
28
|
+
const instance: SavedFilterDTO = {
|
|
29
|
+
uuid,
|
|
30
|
+
name,
|
|
31
|
+
label,
|
|
32
|
+
createdAt,
|
|
33
|
+
createdBy,
|
|
34
|
+
updatedAt,
|
|
35
|
+
updatedBy,
|
|
36
|
+
deletedAt,
|
|
37
|
+
deletedBy,
|
|
38
|
+
index,
|
|
39
|
+
description,
|
|
40
|
+
mainObject,
|
|
41
|
+
filter,
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[[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,35 @@
|
|
|
1
|
+
# SendNotificationRequest
|
|
2
|
+
|
|
3
|
+
Request body for sending an in-app notification to a user
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**targetUserUuid** | **string** | UUID of the user who should receive the notification | [default to undefined]
|
|
10
|
+
**title** | **string** | Notification title | [default to undefined]
|
|
11
|
+
**body** | **string** | Notification body (supports Markdown for links) | [default to undefined]
|
|
12
|
+
**type** | **string** | Notification type identifier | [optional] [default to undefined]
|
|
13
|
+
**icon** | **string** | Optional icon identifier | [optional] [default to undefined]
|
|
14
|
+
**action** | **string** | Optional structured action identifier | [optional] [default to undefined]
|
|
15
|
+
**actionTitle** | **string** | Optional label for the action button | [optional] [default to undefined]
|
|
16
|
+
**data** | **{ [key: string]: any | null; }** | Optional action payload | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { SendNotificationRequest } from '@caraer/client';
|
|
22
|
+
|
|
23
|
+
const instance: SendNotificationRequest = {
|
|
24
|
+
targetUserUuid,
|
|
25
|
+
title,
|
|
26
|
+
body,
|
|
27
|
+
type,
|
|
28
|
+
icon,
|
|
29
|
+
action,
|
|
30
|
+
actionTitle,
|
|
31
|
+
data,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[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,45 @@
|
|
|
1
|
+
# ServerlessFunctionDTO
|
|
2
|
+
|
|
3
|
+
Data transfer object for a serverless function (runtime and code) owned by an app
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uuid** | **string** | Unique identifier for the entity | [default to undefined]
|
|
10
|
+
**name** | **string** | The name of the entity | [default to undefined]
|
|
11
|
+
**label** | **string** | Display label for the entity, can be different from name | [optional] [default to undefined]
|
|
12
|
+
**createdAt** | **number** | Unix timestamp when the entity was created | [optional] [default to undefined]
|
|
13
|
+
**createdBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who created the entity | [optional] [default to undefined]
|
|
14
|
+
**updatedAt** | **number** | Unix timestamp when the entity was last updated | [optional] [default to undefined]
|
|
15
|
+
**updatedBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who last updated the entity | [optional] [default to undefined]
|
|
16
|
+
**deletedAt** | **number** | Unix timestamp when the entity was deleted (null if not deleted) | [optional] [default to undefined]
|
|
17
|
+
**deletedBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who deleted the entity | [optional] [default to undefined]
|
|
18
|
+
**index** | **number** | Index number for ordering entities | [optional] [default to undefined]
|
|
19
|
+
**runtime** | **string** | Runtime identifier (e.g. javascript, python) | [optional] [default to undefined]
|
|
20
|
+
**code** | **string** | Function source code | [optional] [default to undefined]
|
|
21
|
+
**description** | **string** | Optional description of the serverless function | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { ServerlessFunctionDTO } from '@caraer/client';
|
|
27
|
+
|
|
28
|
+
const instance: ServerlessFunctionDTO = {
|
|
29
|
+
uuid,
|
|
30
|
+
name,
|
|
31
|
+
label,
|
|
32
|
+
createdAt,
|
|
33
|
+
createdBy,
|
|
34
|
+
updatedAt,
|
|
35
|
+
updatedBy,
|
|
36
|
+
deletedAt,
|
|
37
|
+
deletedBy,
|
|
38
|
+
index,
|
|
39
|
+
runtime,
|
|
40
|
+
code,
|
|
41
|
+
description,
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[[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,298 @@
|
|
|
1
|
+
# ServerlessFunctionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**create1**](#create1) | **POST** /api/v2/apps/{appUuid}/serverless-functions | Create a serverless function|
|
|
8
|
+
|[**index2**](#index2) | **POST** /api/v2/apps/{appUuid}/serverless-functions/index | List serverless functions for an app|
|
|
9
|
+
|[**show**](#show) | **GET** /api/v2/apps/{appUuid}/serverless-functions/{uuid} | Get a serverless function|
|
|
10
|
+
|[**testServerlessFunction**](#testserverlessfunction) | **POST** /api/v2/apps/{appUuid}/serverless-functions/{uuid}/test | Test a serverless function|
|
|
11
|
+
|[**update1**](#update1) | **PUT** /api/v2/apps/{appUuid}/serverless-functions/{uuid} | Update a serverless function|
|
|
12
|
+
|
|
13
|
+
# **create1**
|
|
14
|
+
> CreateResponse create1(serverlessFunctionDTO)
|
|
15
|
+
|
|
16
|
+
Creates a new serverless function attached to the specified app.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
ServerlessFunctionsApi,
|
|
23
|
+
Configuration,
|
|
24
|
+
ServerlessFunctionDTO
|
|
25
|
+
} from '@caraer/client';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new ServerlessFunctionsApi(configuration);
|
|
29
|
+
|
|
30
|
+
let appUuid: string; //UUID of the app to attach the serverless function to (default to undefined)
|
|
31
|
+
let serverlessFunctionDTO: ServerlessFunctionDTO; //Serverless function payload (runtime and code)
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.create1(
|
|
34
|
+
appUuid,
|
|
35
|
+
serverlessFunctionDTO
|
|
36
|
+
);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
|Name | Type | Description | Notes|
|
|
42
|
+
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **serverlessFunctionDTO** | **ServerlessFunctionDTO**| Serverless function payload (runtime and code) | |
|
|
44
|
+
| **appUuid** | [**string**] | UUID of the app to attach the serverless function to | defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**CreateResponse**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | Successfully created serverless function | - |
|
|
65
|
+
|**400** | Invalid request or app not installed for company | - |
|
|
66
|
+
|
|
67
|
+
[[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)
|
|
68
|
+
|
|
69
|
+
# **index2**
|
|
70
|
+
> PaginationResponse index2(body)
|
|
71
|
+
|
|
72
|
+
Retrieves a paginated list of serverless functions that belong to the specified app.
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
ServerlessFunctionsApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@caraer/client';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new ServerlessFunctionsApi(configuration);
|
|
84
|
+
|
|
85
|
+
let appUuid: string; //UUID of the app whose serverless functions to list (default to undefined)
|
|
86
|
+
let body: any; //Pagination and filtering options for the request
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.index2(
|
|
89
|
+
appUuid,
|
|
90
|
+
body
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **body** | **any**| Pagination and filtering options for the request | |
|
|
99
|
+
| **appUuid** | [**string**] | UUID of the app whose serverless functions to list | defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**PaginationResponse**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: application/json
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | Successfully retrieved serverless functions | - |
|
|
120
|
+
|**400** | Invalid request or app not installed for company | - |
|
|
121
|
+
|**401** | Unauthorized access | - |
|
|
122
|
+
|
|
123
|
+
[[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)
|
|
124
|
+
|
|
125
|
+
# **show**
|
|
126
|
+
> ShowResponse show()
|
|
127
|
+
|
|
128
|
+
Retrieves a serverless function by its UUID, ensuring it belongs to the specified app.
|
|
129
|
+
|
|
130
|
+
### Example
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
import {
|
|
134
|
+
ServerlessFunctionsApi,
|
|
135
|
+
Configuration
|
|
136
|
+
} from '@caraer/client';
|
|
137
|
+
|
|
138
|
+
const configuration = new Configuration();
|
|
139
|
+
const apiInstance = new ServerlessFunctionsApi(configuration);
|
|
140
|
+
|
|
141
|
+
let appUuid: string; //UUID of the app (default to undefined)
|
|
142
|
+
let uuid: string; //UUID of the serverless function (default to undefined)
|
|
143
|
+
|
|
144
|
+
const { status, data } = await apiInstance.show(
|
|
145
|
+
appUuid,
|
|
146
|
+
uuid
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **appUuid** | [**string**] | UUID of the app | defaults to undefined|
|
|
155
|
+
| **uuid** | [**string**] | UUID of the serverless function | defaults to undefined|
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Return type
|
|
159
|
+
|
|
160
|
+
**ShowResponse**
|
|
161
|
+
|
|
162
|
+
### Authorization
|
|
163
|
+
|
|
164
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
165
|
+
|
|
166
|
+
### HTTP request headers
|
|
167
|
+
|
|
168
|
+
- **Content-Type**: Not defined
|
|
169
|
+
- **Accept**: application/json
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### HTTP response details
|
|
173
|
+
| Status code | Description | Response headers |
|
|
174
|
+
|-------------|-------------|------------------|
|
|
175
|
+
|**200** | Successfully retrieved serverless function | - |
|
|
176
|
+
|**404** | Serverless function not found for this app | - |
|
|
177
|
+
|
|
178
|
+
[[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)
|
|
179
|
+
|
|
180
|
+
# **testServerlessFunction**
|
|
181
|
+
> SuccessResponse testServerlessFunction(testServerlessFunctionRequest)
|
|
182
|
+
|
|
183
|
+
Provisions (if needed) and invokes a serverless function for a given record and event type, using the same payload shape as webhooks.
|
|
184
|
+
|
|
185
|
+
### Example
|
|
186
|
+
|
|
187
|
+
```typescript
|
|
188
|
+
import {
|
|
189
|
+
ServerlessFunctionsApi,
|
|
190
|
+
Configuration,
|
|
191
|
+
TestServerlessFunctionRequest
|
|
192
|
+
} from '@caraer/client';
|
|
193
|
+
|
|
194
|
+
const configuration = new Configuration();
|
|
195
|
+
const apiInstance = new ServerlessFunctionsApi(configuration);
|
|
196
|
+
|
|
197
|
+
let appUuid: string; //UUID of the app (default to undefined)
|
|
198
|
+
let uuid: string; //UUID of the serverless function to test (default to undefined)
|
|
199
|
+
let testServerlessFunctionRequest: TestServerlessFunctionRequest; //Test serverless function payload (recordUuid and eventType)
|
|
200
|
+
|
|
201
|
+
const { status, data } = await apiInstance.testServerlessFunction(
|
|
202
|
+
appUuid,
|
|
203
|
+
uuid,
|
|
204
|
+
testServerlessFunctionRequest
|
|
205
|
+
);
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
|Name | Type | Description | Notes|
|
|
211
|
+
|------------- | ------------- | ------------- | -------------|
|
|
212
|
+
| **testServerlessFunctionRequest** | **TestServerlessFunctionRequest**| Test serverless function payload (recordUuid and eventType) | |
|
|
213
|
+
| **appUuid** | [**string**] | UUID of the app | defaults to undefined|
|
|
214
|
+
| **uuid** | [**string**] | UUID of the serverless function to test | defaults to undefined|
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Return type
|
|
218
|
+
|
|
219
|
+
**SuccessResponse**
|
|
220
|
+
|
|
221
|
+
### Authorization
|
|
222
|
+
|
|
223
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
224
|
+
|
|
225
|
+
### HTTP request headers
|
|
226
|
+
|
|
227
|
+
- **Content-Type**: application/json
|
|
228
|
+
- **Accept**: application/json
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### HTTP response details
|
|
232
|
+
| Status code | Description | Response headers |
|
|
233
|
+
|-------------|-------------|------------------|
|
|
234
|
+
|**200** | Serverless function test executed | - |
|
|
235
|
+
|**400** | Invalid input provided | - |
|
|
236
|
+
|**404** | App, serverless function, or record not found | - |
|
|
237
|
+
|
|
238
|
+
[[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)
|
|
239
|
+
|
|
240
|
+
# **update1**
|
|
241
|
+
> ShowResponse update1(serverlessFunctionDTO)
|
|
242
|
+
|
|
243
|
+
Updates an existing serverless function\'s runtime and code, keeping it attached to the same app.
|
|
244
|
+
|
|
245
|
+
### Example
|
|
246
|
+
|
|
247
|
+
```typescript
|
|
248
|
+
import {
|
|
249
|
+
ServerlessFunctionsApi,
|
|
250
|
+
Configuration,
|
|
251
|
+
ServerlessFunctionDTO
|
|
252
|
+
} from '@caraer/client';
|
|
253
|
+
|
|
254
|
+
const configuration = new Configuration();
|
|
255
|
+
const apiInstance = new ServerlessFunctionsApi(configuration);
|
|
256
|
+
|
|
257
|
+
let appUuid: string; //UUID of the app (default to undefined)
|
|
258
|
+
let uuid: string; //UUID of the serverless function to update (default to undefined)
|
|
259
|
+
let serverlessFunctionDTO: ServerlessFunctionDTO; //Updated serverless function payload (runtime and code)
|
|
260
|
+
|
|
261
|
+
const { status, data } = await apiInstance.update1(
|
|
262
|
+
appUuid,
|
|
263
|
+
uuid,
|
|
264
|
+
serverlessFunctionDTO
|
|
265
|
+
);
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Parameters
|
|
269
|
+
|
|
270
|
+
|Name | Type | Description | Notes|
|
|
271
|
+
|------------- | ------------- | ------------- | -------------|
|
|
272
|
+
| **serverlessFunctionDTO** | **ServerlessFunctionDTO**| Updated serverless function payload (runtime and code) | |
|
|
273
|
+
| **appUuid** | [**string**] | UUID of the app | defaults to undefined|
|
|
274
|
+
| **uuid** | [**string**] | UUID of the serverless function to update | defaults to undefined|
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### Return type
|
|
278
|
+
|
|
279
|
+
**ShowResponse**
|
|
280
|
+
|
|
281
|
+
### Authorization
|
|
282
|
+
|
|
283
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
284
|
+
|
|
285
|
+
### HTTP request headers
|
|
286
|
+
|
|
287
|
+
- **Content-Type**: application/json
|
|
288
|
+
- **Accept**: application/json
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
### HTTP response details
|
|
292
|
+
| Status code | Description | Response headers |
|
|
293
|
+
|-------------|-------------|------------------|
|
|
294
|
+
|**200** | Successfully updated serverless function | - |
|
|
295
|
+
|**404** | Serverless function not found for this app | - |
|
|
296
|
+
|
|
297
|
+
[[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)
|
|
298
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# SettingField
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**label** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**helpText** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**required** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**dynamic** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**hidden** | **boolean** | | [optional] [default to undefined]
|
|
15
|
+
**disabled** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
**_options** | [**Array<SettingOption>**](SettingOption.md) | | [optional] [default to undefined]
|
|
17
|
+
**defaultValue** | **any** | | [optional] [default to undefined]
|
|
18
|
+
**value** | **any** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { SettingField } from '@caraer/client';
|
|
24
|
+
|
|
25
|
+
const instance: SettingField = {
|
|
26
|
+
name,
|
|
27
|
+
label,
|
|
28
|
+
helpText,
|
|
29
|
+
type,
|
|
30
|
+
required,
|
|
31
|
+
dynamic,
|
|
32
|
+
hidden,
|
|
33
|
+
disabled,
|
|
34
|
+
_options,
|
|
35
|
+
defaultValue,
|
|
36
|
+
value,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[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,24 @@
|
|
|
1
|
+
# SettingOption
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**label** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**helpText** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SettingOption } from '@caraer/client';
|
|
16
|
+
|
|
17
|
+
const instance: SettingOption = {
|
|
18
|
+
name,
|
|
19
|
+
label,
|
|
20
|
+
helpText,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|