pyrus-api 1.0.2 → 1.1.0
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/build/types/index.d.ts +1403 -51
- package/package.json +3 -2
- package/build/types/src/api/announcementsApi.d.ts +0 -14
- package/build/types/src/api/baseApi.d.ts +0 -21
- package/build/types/src/api/botApi.d.ts +0 -17
- package/build/types/src/api/calendarApi.d.ts +0 -8
- package/build/types/src/api/callApi.d.ts +0 -11
- package/build/types/src/api/catalogsApi.d.ts +0 -22
- package/build/types/src/api/contactsApi.d.ts +0 -8
- package/build/types/src/api/filesApi.d.ts +0 -8
- package/build/types/src/api/formsApi.d.ts +0 -17
- package/build/types/src/api/index.d.ts +0 -1
- package/build/types/src/api/listsApi.d.ts +0 -20
- package/build/types/src/api/logsApi.d.ts +0 -13
- package/build/types/src/api/membersApi.d.ts +0 -21
- package/build/types/src/api/profileApi.d.ts +0 -8
- package/build/types/src/api/pyrusApiClient.d.ts +0 -57
- package/build/types/src/api/roleApi.d.ts +0 -15
- package/build/types/src/api/tasksApi.d.ts +0 -18
- package/build/types/src/entities/TaskWithComments.d.ts +0 -7
- package/build/types/src/entities/announcementComment.d.ts +0 -12
- package/build/types/src/entities/announcementWithComments.d.ts +0 -13
- package/build/types/src/entities/approval.d.ts +0 -7
- package/build/types/src/entities/attachedFile.d.ts +0 -9
- package/build/types/src/entities/bot.d.ts +0 -15
- package/build/types/src/entities/catalogHeader.d.ts +0 -9
- package/build/types/src/entities/catalogInfo.d.ts +0 -19
- package/build/types/src/entities/catalogItem.d.ts +0 -12
- package/build/types/src/entities/channel.d.ts +0 -8
- package/build/types/src/entities/channelUser.d.ts +0 -4
- package/build/types/src/entities/columnSettings.d.ts +0 -6
- package/build/types/src/entities/commentDescription.d.ts +0 -6
- package/build/types/src/entities/department.d.ts +0 -7
- package/build/types/src/entities/dueFilter.d.ts +0 -3
- package/build/types/src/entities/formFieldInfo.d.ts +0 -21
- package/build/types/src/entities/formFields/formField.d.ts +0 -26
- package/build/types/src/entities/formFields/formFieldAuthor.d.ts +0 -7
- package/build/types/src/entities/formFields/formFieldBase.d.ts +0 -12
- package/build/types/src/entities/formFields/formFieldCatalog.d.ts +0 -15
- package/build/types/src/entities/formFields/formFieldCheckmark.d.ts +0 -7
- package/build/types/src/entities/formFields/formFieldCreateDate.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldDate.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldDueDate.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldDueDateTime.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldEmail.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldFile.d.ts +0 -7
- package/build/types/src/entities/formFields/formFieldFlag.d.ts +0 -7
- package/build/types/src/entities/formFields/formFieldFormLink.d.ts +0 -7
- package/build/types/src/entities/formFields/formFieldMoney.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldMultipleChoice.d.ts +0 -14
- package/build/types/src/entities/formFields/formFieldNewFile.d.ts +0 -5
- package/build/types/src/entities/formFields/formFieldNote.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldNumber.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldPerson.d.ts +0 -7
- package/build/types/src/entities/formFields/formFieldPhone.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldProject.d.ts +0 -15
- package/build/types/src/entities/formFields/formFieldStatus.d.ts +0 -7
- package/build/types/src/entities/formFields/formFieldStep.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldTable.d.ts +0 -14
- package/build/types/src/entities/formFields/formFieldText.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldTime.d.ts +0 -6
- package/build/types/src/entities/formFields/formFieldTitle.d.ts +0 -13
- package/build/types/src/entities/formLink.d.ts +0 -5
- package/build/types/src/entities/formMapping.d.ts +0 -16
- package/build/types/src/entities/newFile.d.ts +0 -7
- package/build/types/src/entities/organization.d.ts +0 -9
- package/build/types/src/entities/person.d.ts +0 -19
- package/build/types/src/entities/plainTaskList.d.ts +0 -15
- package/build/types/src/entities/printForm.d.ts +0 -4
- package/build/types/src/entities/role.d.ts +0 -10
- package/build/types/src/entities/sessionLifespan.d.ts +0 -4
- package/build/types/src/entities/sessionRestriction.d.ts +0 -9
- package/build/types/src/entities/settings.d.ts +0 -5
- package/build/types/src/entities/smsInfo.d.ts +0 -8
- package/build/types/src/entities/step.d.ts +0 -5
- package/build/types/src/entities/subscriber.d.ts +0 -6
- package/build/types/src/entities/task.d.ts +0 -26
- package/build/types/src/entities/taskComment.d.ts +0 -50
- package/build/types/src/entities/taskHeader.d.ts +0 -11
- package/build/types/src/entities/taskList.d.ts +0 -4
- package/build/types/src/enums/activityAction.d.ts +0 -4
- package/build/types/src/enums/approvalChoice.d.ts +0 -7
- package/build/types/src/enums/callEventType.d.ts +0 -3
- package/build/types/src/enums/callStatus.d.ts +0 -7
- package/build/types/src/enums/channelType.d.ts +0 -23
- package/build/types/src/enums/checkmark.d.ts +0 -4
- package/build/types/src/enums/disconnectParty.d.ts +0 -6
- package/build/types/src/enums/errorCodeType.d.ts +0 -123
- package/build/types/src/enums/filterMask.d.ts +0 -20
- package/build/types/src/enums/flag.d.ts +0 -5
- package/build/types/src/enums/formFieldType.d.ts +0 -27
- package/build/types/src/enums/listType.d.ts +0 -4
- package/build/types/src/enums/operatorId.d.ts +0 -9
- package/build/types/src/enums/permissionLevel.d.ts +0 -6
- package/build/types/src/enums/personRights.d.ts +0 -24
- package/build/types/src/enums/personType.d.ts +0 -5
- package/build/types/src/enums/sendSmsError.d.ts +0 -11
- package/build/types/src/enums/sendSmsStatus.d.ts +0 -6
- package/build/types/src/enums/sourceType.d.ts +0 -4
- package/build/types/src/enums/status.d.ts +0 -4
- package/build/types/src/helpers/constants.d.ts +0 -8
- package/build/types/src/helpers/functions.d.ts +0 -13
- package/build/types/src/helpers/types.d.ts +0 -4
- package/build/types/src/requests/announcementCommentRequest.d.ts +0 -6
- package/build/types/src/requests/announcementRequest.d.ts +0 -6
- package/build/types/src/requests/attachCallRecordRequest.d.ts +0 -37
- package/build/types/src/requests/authRequest.d.ts +0 -11
- package/build/types/src/requests/calendarTasksRequest.d.ts +0 -24
- package/build/types/src/requests/callRequest.d.ts +0 -27
- package/build/types/src/requests/catalogRequestBase.d.ts +0 -15
- package/build/types/src/requests/changePermissionsRequest.d.ts +0 -4
- package/build/types/src/requests/contactsRequest.d.ts +0 -3
- package/build/types/src/requests/createBotRequest.d.ts +0 -5
- package/build/types/src/requests/createCallRequest.d.ts +0 -6
- package/build/types/src/requests/createCatalogRequest.d.ts +0 -6
- package/build/types/src/requests/createDepartmentRequest.d.ts +0 -6
- package/build/types/src/requests/createListRequest.d.ts +0 -12
- package/build/types/src/requests/createMemberRequest.d.ts +0 -12
- package/build/types/src/requests/createRoleRequest.d.ts +0 -5
- package/build/types/src/requests/deleteBotRequest.d.ts +0 -4
- package/build/types/src/requests/deleteRoleRequest.d.ts +0 -4
- package/build/types/src/requests/formFilter.d.ts +0 -6
- package/build/types/src/requests/formRegisterRequest.d.ts +0 -26
- package/build/types/src/requests/getAllRequest.d.ts +0 -3
- package/build/types/src/requests/getMessageRequest.d.ts +0 -10
- package/build/types/src/requests/inboxRequest.d.ts +0 -8
- package/build/types/src/requests/personIdentity.d.ts +0 -4
- package/build/types/src/requests/profileRequest.d.ts +0 -3
- package/build/types/src/requests/setAvatarRequest.d.ts +0 -4
- package/build/types/src/requests/syncCatalogRequest.d.ts +0 -6
- package/build/types/src/requests/taskCommentRequest.d.ts +0 -39
- package/build/types/src/requests/taskListRequest.d.ts +0 -10
- package/build/types/src/requests/taskRequest.d.ts +0 -24
- package/build/types/src/requests/updateBotRequest.d.ts +0 -13
- package/build/types/src/requests/updateDepartmentRequest.d.ts +0 -8
- package/build/types/src/requests/updateListRequest.d.ts +0 -14
- package/build/types/src/requests/updateMemberRequest.d.ts +0 -15
- package/build/types/src/requests/updateRoleRequest.d.ts +0 -8
- package/build/types/src/responses/announcementResponse.d.ts +0 -5
- package/build/types/src/responses/announcementsResponse.d.ts +0 -5
- package/build/types/src/responses/authResponse.d.ts +0 -6
- package/build/types/src/responses/botResponse.d.ts +0 -3
- package/build/types/src/responses/botsResponse.d.ts +0 -5
- package/build/types/src/responses/calendarResponse.d.ts +0 -6
- package/build/types/src/responses/callResponse.d.ts +0 -4
- package/build/types/src/responses/catalogItemResponse.d.ts +0 -4
- package/build/types/src/responses/catalogResponse.d.ts +0 -18
- package/build/types/src/responses/contactsResponse.d.ts +0 -5
- package/build/types/src/responses/departmentResponse.d.ts +0 -3
- package/build/types/src/responses/departmentsResponse.d.ts +0 -5
- package/build/types/src/responses/formRegisterResponse.d.ts +0 -5
- package/build/types/src/responses/formResponse.d.ts +0 -17
- package/build/types/src/responses/formsResponse.d.ts +0 -4
- package/build/types/src/responses/listsResponse.d.ts +0 -5
- package/build/types/src/responses/memberResponse.d.ts +0 -3
- package/build/types/src/responses/membersResponse.d.ts +0 -5
- package/build/types/src/responses/permissionsDict.d.ts +0 -4
- package/build/types/src/responses/permissionsResponse.d.ts +0 -5
- package/build/types/src/responses/plainListResponse.d.ts +0 -3
- package/build/types/src/responses/profileIdentityResponse.d.ts +0 -5
- package/build/types/src/responses/profileResponse.d.ts +0 -12
- package/build/types/src/responses/responseBase.d.ts +0 -6
- package/build/types/src/responses/roleResponse.d.ts +0 -3
- package/build/types/src/responses/rolesResponse.d.ts +0 -5
- package/build/types/src/responses/syncCatalogResponse.d.ts +0 -10
- package/build/types/src/responses/taskListResponse.d.ts +0 -6
- package/build/types/src/responses/taskResponse.d.ts +0 -5
- package/build/types/src/responses/uploadResponse.d.ts +0 -5
- package/build/types/src/responses//321/201atalogsResponse.d.ts +0 -5
- package/build/types/src/settings/defaults.d.ts +0 -2
- package/build/types/src/settings/endpoints.d.ts +0 -32
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare enum FormFieldType {
|
|
2
|
-
Unknown = "unknown",
|
|
3
|
-
Text = "text",
|
|
4
|
-
Money = "money",
|
|
5
|
-
Number = "number",
|
|
6
|
-
Date = "date",
|
|
7
|
-
Time = "time",
|
|
8
|
-
Checkmark = "checkmark",
|
|
9
|
-
MultipleChoice = "multiple_choice",
|
|
10
|
-
DueDate = "due_date",
|
|
11
|
-
Email = "email",
|
|
12
|
-
Phone = "phone",
|
|
13
|
-
Flag = "flag",
|
|
14
|
-
Step = "step",
|
|
15
|
-
Status = "status",
|
|
16
|
-
CreationDate = "creation_date",
|
|
17
|
-
Note = "note",
|
|
18
|
-
Catalog = "catalog",
|
|
19
|
-
File = "file",
|
|
20
|
-
Person = "person",
|
|
21
|
-
Author = "author",
|
|
22
|
-
Table = "table",
|
|
23
|
-
Title = "title",
|
|
24
|
-
Project = "project",
|
|
25
|
-
FormLink = "form_link",
|
|
26
|
-
DueDateTime = "due_date_time"
|
|
27
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare enum PersonRights {
|
|
2
|
-
None = 0,
|
|
3
|
-
ManageRoles = 1,
|
|
4
|
-
CanSeeAllTasks = 2,
|
|
5
|
-
ManagePersonsInOrganization = 4,
|
|
6
|
-
EditOrganizationProjects = 8,
|
|
7
|
-
EditOrganizationSettings = 16,
|
|
8
|
-
DeleteMyTasksAndProjects = 32,
|
|
9
|
-
CloseDeleteAnnouncements = 64,
|
|
10
|
-
BillsPayment = 128,
|
|
11
|
-
InvitePersonsToOrganization = 256,
|
|
12
|
-
DeleteOtherMembersTasks = 512,
|
|
13
|
-
ManageIntegrationsAndCatalogs = 1024,
|
|
14
|
-
CreateAnnouncement = 2048,
|
|
15
|
-
CanDeleteTaskFlagEquivalent = 544,
|
|
16
|
-
SupervisorRights = 221,
|
|
17
|
-
MaxAdditionalRights = 2047,
|
|
18
|
-
NewOrganizationDefaultRights = 2080,
|
|
19
|
-
UIOrganizationManager = 277,
|
|
20
|
-
UIAccountant = 128,
|
|
21
|
-
UISupervisor = 10,
|
|
22
|
-
UIConfigurationManager = 1600,
|
|
23
|
-
UIAdministrator = 2015
|
|
24
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare enum SendSmsError {
|
|
2
|
-
None = "none",
|
|
3
|
-
Unknown = "unknown",
|
|
4
|
-
Expired = "expired",
|
|
5
|
-
Forbidden = "forbidden",
|
|
6
|
-
Unreachable = "unreachable",
|
|
7
|
-
UnknownStatus = "unknown_status",
|
|
8
|
-
UnableToDeliver = "unable_to_deliver",
|
|
9
|
-
InvalidPhoneNumber = "invalid_phone_number",
|
|
10
|
-
Rejected = "rejected"
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FormFieldType } from "../enums/formFieldType";
|
|
2
|
-
export declare const dateTimeFieldTypes: FormFieldType[];
|
|
3
|
-
export declare const dateFieldTypes: FormFieldType[];
|
|
4
|
-
export declare const timeFieldTypes: FormFieldType[];
|
|
5
|
-
export declare const allDateAndTimeFieldTypes: FormFieldType[];
|
|
6
|
-
export declare const allDateAndTimeResponseKeys: string[];
|
|
7
|
-
export declare const dateRequestKeys: string[];
|
|
8
|
-
export declare const dateTimeRequestKeys: string[];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FormFilter } from "../requests/formFilter";
|
|
2
|
-
export declare function toSearchParams(request: object): string;
|
|
3
|
-
export declare function extractDates(key: string, value: any): any;
|
|
4
|
-
export declare function packDates(key: string, value: any): any;
|
|
5
|
-
export declare function trimTailingSlash(url: string): string;
|
|
6
|
-
export declare function toDateTimeString(date: Date | string): string;
|
|
7
|
-
export declare function toDateString(date: Date | string): string;
|
|
8
|
-
export declare function toTimeString(date: Date | string): string;
|
|
9
|
-
type Filters = {
|
|
10
|
-
[index: string]: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function processFilters(filters: FormFilter[] | undefined): Filters;
|
|
13
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { FormMapping } from "../entities/formMapping";
|
|
2
|
-
/**
|
|
3
|
-
* Adding information about the call
|
|
4
|
-
*
|
|
5
|
-
* @remarks
|
|
6
|
-
*
|
|
7
|
-
* To successfully process the request, one of the following parameters
|
|
8
|
-
* must be indicated: external_id, task_id or from_number and to_number
|
|
9
|
-
*/
|
|
10
|
-
export type AttachCallRecordRequest = {
|
|
11
|
-
/**
|
|
12
|
-
* Unique ID of the file uploaded with a /files/upload request
|
|
13
|
-
*/
|
|
14
|
-
record_file?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Sender phone number
|
|
17
|
-
*/
|
|
18
|
-
from_number?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Recipient phone number
|
|
21
|
-
*/
|
|
22
|
-
to_number?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Call ID in external system
|
|
25
|
-
*/
|
|
26
|
-
external_id?: string;
|
|
27
|
-
/**
|
|
28
|
-
* ID of the created task
|
|
29
|
-
* @remarks
|
|
30
|
-
* Returns to integrations/call.
|
|
31
|
-
*/
|
|
32
|
-
task_id?: number;
|
|
33
|
-
/**
|
|
34
|
-
* Data for autofill form fields
|
|
35
|
-
*/
|
|
36
|
-
mappings?: FormMapping[];
|
|
37
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type AuthRequest = {
|
|
2
|
-
login: string;
|
|
3
|
-
security_key: string;
|
|
4
|
-
/**
|
|
5
|
-
* Employee ID
|
|
6
|
-
* @remarks
|
|
7
|
-
* if you have more than one account registered to the same email,
|
|
8
|
-
* then to receive a token you need to add the person_id parameter
|
|
9
|
-
*/
|
|
10
|
-
person_id?: string;
|
|
11
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FilterMask } from "../enums/filterMask";
|
|
2
|
-
export type CalendarTasksRequest = {
|
|
3
|
-
start_date_utc?: Date;
|
|
4
|
-
end_date_utc: Date;
|
|
5
|
-
/**
|
|
6
|
-
* Maximum number of tasks that will be returned in reply
|
|
7
|
-
* @remarks
|
|
8
|
-
* 50 default, 100 max
|
|
9
|
-
*/
|
|
10
|
-
item_count?: number;
|
|
11
|
-
/**
|
|
12
|
-
* @remarks
|
|
13
|
-
* Whether all tasks accessible to user must be returned,
|
|
14
|
-
* including all roles of user and all tasks from forms
|
|
15
|
-
* accessible to user. Otherwise, only tasks where the user
|
|
16
|
-
* is an assignee or approver, that have not yet been approved,
|
|
17
|
-
* will be returned.
|
|
18
|
-
*/
|
|
19
|
-
all_accessed_tasks?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Bit mask that determines filter combination
|
|
22
|
-
*/
|
|
23
|
-
filter_mask?: FilterMask;
|
|
24
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { FormMapping } from "../entities/formMapping";
|
|
2
|
-
export type CallRequest = {
|
|
3
|
-
/**
|
|
4
|
-
* Unique ID of the extension's account in the external system
|
|
5
|
-
*/
|
|
6
|
-
account_id: string;
|
|
7
|
-
/**
|
|
8
|
-
* Sender phone number
|
|
9
|
-
*/
|
|
10
|
-
from_number: string;
|
|
11
|
-
/**
|
|
12
|
-
* Recipient phone number
|
|
13
|
-
*/
|
|
14
|
-
to_number: string;
|
|
15
|
-
/**
|
|
16
|
-
* Internal operator number
|
|
17
|
-
*/
|
|
18
|
-
internal_number?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Call ID in external system
|
|
21
|
-
*/
|
|
22
|
-
external_id?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Data for autofill form fields
|
|
25
|
-
*/
|
|
26
|
-
mappings?: FormMapping[];
|
|
27
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CatalogItem } from "../entities/catalogItem";
|
|
2
|
-
import { ColumnSettings } from "../entities/columnSettings";
|
|
3
|
-
export type CatalogRequestBase = {
|
|
4
|
-
id?: number;
|
|
5
|
-
external_id?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
external_version?: number;
|
|
8
|
-
catalog_headers: string[];
|
|
9
|
-
items?: CatalogItem[];
|
|
10
|
-
add_supervisors?: number[];
|
|
11
|
-
remove_supervisors?: number[];
|
|
12
|
-
add_workflow_headers?: string[];
|
|
13
|
-
delete_workflow_headers?: string[];
|
|
14
|
-
column_settings?: ColumnSettings[];
|
|
15
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ListType } from "../enums/listType";
|
|
2
|
-
export type CreateListRequest = {
|
|
3
|
-
parent_id?: number;
|
|
4
|
-
name: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
list_type?: ListType;
|
|
7
|
-
added_managers?: number[];
|
|
8
|
-
added_members?: number[];
|
|
9
|
-
external_version?: number;
|
|
10
|
-
external_id?: number;
|
|
11
|
-
is_private?: boolean;
|
|
12
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DueFilter } from "../entities/dueFilter";
|
|
2
|
-
import { FormFilter } from "./formFilter";
|
|
3
|
-
export type FormRegisterRequest = {
|
|
4
|
-
steps?: number[];
|
|
5
|
-
include_archived?: "y";
|
|
6
|
-
modified_before?: Date;
|
|
7
|
-
modified_after?: Date;
|
|
8
|
-
created_before?: Date;
|
|
9
|
-
created_after?: Date;
|
|
10
|
-
closed_before?: Date;
|
|
11
|
-
closed_after?: Date;
|
|
12
|
-
filters?: FormFilter[];
|
|
13
|
-
format?: "csv";
|
|
14
|
-
delimiter?: string;
|
|
15
|
-
simple_format?: boolean;
|
|
16
|
-
encoding?: string;
|
|
17
|
-
field_ids?: number[];
|
|
18
|
-
task_ids?: number[];
|
|
19
|
-
due_filter?: DueFilter;
|
|
20
|
-
/**
|
|
21
|
-
* Max. number of tasks in request
|
|
22
|
-
* @remarks
|
|
23
|
-
* More than 0, and less than or equal to 20000
|
|
24
|
-
*/
|
|
25
|
-
item_count?: number;
|
|
26
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormMapping } from "../entities/formMapping";
|
|
2
|
-
export type GetMessageRequest = {
|
|
3
|
-
account_id: string;
|
|
4
|
-
channel_id: string;
|
|
5
|
-
sender_name?: string;
|
|
6
|
-
message_type?: string;
|
|
7
|
-
message_text: string;
|
|
8
|
-
mappings?: FormMapping[];
|
|
9
|
-
attachments?: string[];
|
|
10
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ActivityAction } from "../enums/activityAction";
|
|
2
|
-
import { NewFile } from "../entities/newFile";
|
|
3
|
-
import { FormField } from "../entities/formFields/formField";
|
|
4
|
-
import { Channel } from "../entities/channel";
|
|
5
|
-
import { ApprovalChoice } from "../enums/approvalChoice";
|
|
6
|
-
import { PersonIdentity } from "./personIdentity";
|
|
7
|
-
export type TaskCommentRequest = {
|
|
8
|
-
text?: string;
|
|
9
|
-
formatted_text?: string;
|
|
10
|
-
subject?: string;
|
|
11
|
-
approval_choice?: ApprovalChoice;
|
|
12
|
-
reassign_to?: PersonIdentity;
|
|
13
|
-
approval_steps?: number[];
|
|
14
|
-
action?: ActivityAction;
|
|
15
|
-
attachments?: NewFile[];
|
|
16
|
-
field_updates?: FormField[];
|
|
17
|
-
approvals_added?: PersonIdentity[][];
|
|
18
|
-
approvals_removed?: PersonIdentity[][];
|
|
19
|
-
approvals_rerequested?: PersonIdentity[][];
|
|
20
|
-
subscribers_added?: PersonIdentity[];
|
|
21
|
-
subscribers_removed?: PersonIdentity[];
|
|
22
|
-
subscribers_rerequested?: PersonIdentity[];
|
|
23
|
-
participants_added?: PersonIdentity[];
|
|
24
|
-
participants_removed?: PersonIdentity[];
|
|
25
|
-
due_date?: Date;
|
|
26
|
-
due?: Date;
|
|
27
|
-
duration?: number;
|
|
28
|
-
cancel_due?: boolean;
|
|
29
|
-
scheduled_date?: Date;
|
|
30
|
-
scheduled_datetime_utc?: Date;
|
|
31
|
-
cancel_schedule?: boolean;
|
|
32
|
-
added_list_ids?: number[];
|
|
33
|
-
removed_list_ids?: number[];
|
|
34
|
-
channel?: Channel;
|
|
35
|
-
spent_minutes?: number;
|
|
36
|
-
skip_satisfaction?: boolean;
|
|
37
|
-
edit_comment_id?: number;
|
|
38
|
-
skip_notification?: boolean;
|
|
39
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FormField } from "../entities/formFields/formField";
|
|
2
|
-
import { NewFile } from "../entities/newFile";
|
|
3
|
-
import { PersonIdentity } from "./personIdentity";
|
|
4
|
-
export type TaskRequest = {
|
|
5
|
-
text?: string;
|
|
6
|
-
formatted_text?: string;
|
|
7
|
-
subject?: string;
|
|
8
|
-
parent_task_id?: number;
|
|
9
|
-
due_date?: Date;
|
|
10
|
-
due?: Date;
|
|
11
|
-
scheduled_date?: Date;
|
|
12
|
-
scheduled_datetime_utc?: Date;
|
|
13
|
-
cancel_schedule?: boolean;
|
|
14
|
-
duration?: number;
|
|
15
|
-
form_id?: number;
|
|
16
|
-
attachments?: NewFile[];
|
|
17
|
-
responsible?: PersonIdentity;
|
|
18
|
-
fields?: FormField[];
|
|
19
|
-
approvals?: PersonIdentity[][];
|
|
20
|
-
subscribers?: PersonIdentity[];
|
|
21
|
-
participants?: PersonIdentity[];
|
|
22
|
-
list_ids?: number[];
|
|
23
|
-
fill_defaults?: boolean;
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PersonRights } from "../enums/personRights";
|
|
2
|
-
export type UpdateBotRequest = {
|
|
3
|
-
id: number;
|
|
4
|
-
name?: string;
|
|
5
|
-
hook_url?: string;
|
|
6
|
-
is_enabled?: boolean;
|
|
7
|
-
bot_settings?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
rights?: PersonRights;
|
|
10
|
-
send_only_last_comment?: boolean;
|
|
11
|
-
locale?: string;
|
|
12
|
-
time_zone_offset?: number;
|
|
13
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ListType } from "../enums/listType";
|
|
2
|
-
export type UpdateListRequest = {
|
|
3
|
-
id: number;
|
|
4
|
-
name?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
list_type?: ListType;
|
|
7
|
-
added_managers?: number[];
|
|
8
|
-
removed_managers?: number[];
|
|
9
|
-
added_members?: number[];
|
|
10
|
-
removed_members?: number[];
|
|
11
|
-
external_version?: number;
|
|
12
|
-
external_id?: number;
|
|
13
|
-
is_private?: boolean;
|
|
14
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type UpdateMemberRequest = {
|
|
2
|
-
id: number;
|
|
3
|
-
first_name?: string;
|
|
4
|
-
last_name?: string;
|
|
5
|
-
native_first_name?: string;
|
|
6
|
-
native_last_name?: string;
|
|
7
|
-
email?: string;
|
|
8
|
-
status?: string;
|
|
9
|
-
banned?: boolean;
|
|
10
|
-
position?: string;
|
|
11
|
-
department_id?: number;
|
|
12
|
-
drop_department?: boolean;
|
|
13
|
-
skype?: string;
|
|
14
|
-
phone?: string;
|
|
15
|
-
};
|