pyrus-api 1.0.2 → 2.0.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.
Files changed (173) hide show
  1. package/build/cjs/index.cjs +240 -234
  2. package/build/esm/index.js +223 -231
  3. package/build/types/index.d.ts +1426 -51
  4. package/package.json +3 -2
  5. package/build/types/src/api/announcementsApi.d.ts +0 -14
  6. package/build/types/src/api/baseApi.d.ts +0 -21
  7. package/build/types/src/api/botApi.d.ts +0 -17
  8. package/build/types/src/api/calendarApi.d.ts +0 -8
  9. package/build/types/src/api/callApi.d.ts +0 -11
  10. package/build/types/src/api/catalogsApi.d.ts +0 -22
  11. package/build/types/src/api/contactsApi.d.ts +0 -8
  12. package/build/types/src/api/filesApi.d.ts +0 -8
  13. package/build/types/src/api/formsApi.d.ts +0 -17
  14. package/build/types/src/api/index.d.ts +0 -1
  15. package/build/types/src/api/listsApi.d.ts +0 -20
  16. package/build/types/src/api/logsApi.d.ts +0 -13
  17. package/build/types/src/api/membersApi.d.ts +0 -21
  18. package/build/types/src/api/profileApi.d.ts +0 -8
  19. package/build/types/src/api/pyrusApiClient.d.ts +0 -57
  20. package/build/types/src/api/roleApi.d.ts +0 -15
  21. package/build/types/src/api/tasksApi.d.ts +0 -18
  22. package/build/types/src/entities/TaskWithComments.d.ts +0 -7
  23. package/build/types/src/entities/announcementComment.d.ts +0 -12
  24. package/build/types/src/entities/announcementWithComments.d.ts +0 -13
  25. package/build/types/src/entities/approval.d.ts +0 -7
  26. package/build/types/src/entities/attachedFile.d.ts +0 -9
  27. package/build/types/src/entities/bot.d.ts +0 -15
  28. package/build/types/src/entities/catalogHeader.d.ts +0 -9
  29. package/build/types/src/entities/catalogInfo.d.ts +0 -19
  30. package/build/types/src/entities/catalogItem.d.ts +0 -12
  31. package/build/types/src/entities/channel.d.ts +0 -8
  32. package/build/types/src/entities/channelUser.d.ts +0 -4
  33. package/build/types/src/entities/columnSettings.d.ts +0 -6
  34. package/build/types/src/entities/commentDescription.d.ts +0 -6
  35. package/build/types/src/entities/department.d.ts +0 -7
  36. package/build/types/src/entities/dueFilter.d.ts +0 -3
  37. package/build/types/src/entities/formFieldInfo.d.ts +0 -21
  38. package/build/types/src/entities/formFields/formField.d.ts +0 -26
  39. package/build/types/src/entities/formFields/formFieldAuthor.d.ts +0 -7
  40. package/build/types/src/entities/formFields/formFieldBase.d.ts +0 -12
  41. package/build/types/src/entities/formFields/formFieldCatalog.d.ts +0 -15
  42. package/build/types/src/entities/formFields/formFieldCheckmark.d.ts +0 -7
  43. package/build/types/src/entities/formFields/formFieldCreateDate.d.ts +0 -6
  44. package/build/types/src/entities/formFields/formFieldDate.d.ts +0 -6
  45. package/build/types/src/entities/formFields/formFieldDueDate.d.ts +0 -6
  46. package/build/types/src/entities/formFields/formFieldDueDateTime.d.ts +0 -6
  47. package/build/types/src/entities/formFields/formFieldEmail.d.ts +0 -6
  48. package/build/types/src/entities/formFields/formFieldFile.d.ts +0 -7
  49. package/build/types/src/entities/formFields/formFieldFlag.d.ts +0 -7
  50. package/build/types/src/entities/formFields/formFieldFormLink.d.ts +0 -7
  51. package/build/types/src/entities/formFields/formFieldMoney.d.ts +0 -6
  52. package/build/types/src/entities/formFields/formFieldMultipleChoice.d.ts +0 -14
  53. package/build/types/src/entities/formFields/formFieldNewFile.d.ts +0 -5
  54. package/build/types/src/entities/formFields/formFieldNote.d.ts +0 -6
  55. package/build/types/src/entities/formFields/formFieldNumber.d.ts +0 -6
  56. package/build/types/src/entities/formFields/formFieldPerson.d.ts +0 -7
  57. package/build/types/src/entities/formFields/formFieldPhone.d.ts +0 -6
  58. package/build/types/src/entities/formFields/formFieldProject.d.ts +0 -15
  59. package/build/types/src/entities/formFields/formFieldStatus.d.ts +0 -7
  60. package/build/types/src/entities/formFields/formFieldStep.d.ts +0 -6
  61. package/build/types/src/entities/formFields/formFieldTable.d.ts +0 -14
  62. package/build/types/src/entities/formFields/formFieldText.d.ts +0 -6
  63. package/build/types/src/entities/formFields/formFieldTime.d.ts +0 -6
  64. package/build/types/src/entities/formFields/formFieldTitle.d.ts +0 -13
  65. package/build/types/src/entities/formLink.d.ts +0 -5
  66. package/build/types/src/entities/formMapping.d.ts +0 -16
  67. package/build/types/src/entities/newFile.d.ts +0 -7
  68. package/build/types/src/entities/organization.d.ts +0 -9
  69. package/build/types/src/entities/person.d.ts +0 -19
  70. package/build/types/src/entities/plainTaskList.d.ts +0 -15
  71. package/build/types/src/entities/printForm.d.ts +0 -4
  72. package/build/types/src/entities/role.d.ts +0 -10
  73. package/build/types/src/entities/sessionLifespan.d.ts +0 -4
  74. package/build/types/src/entities/sessionRestriction.d.ts +0 -9
  75. package/build/types/src/entities/settings.d.ts +0 -5
  76. package/build/types/src/entities/smsInfo.d.ts +0 -8
  77. package/build/types/src/entities/step.d.ts +0 -5
  78. package/build/types/src/entities/subscriber.d.ts +0 -6
  79. package/build/types/src/entities/task.d.ts +0 -26
  80. package/build/types/src/entities/taskComment.d.ts +0 -50
  81. package/build/types/src/entities/taskHeader.d.ts +0 -11
  82. package/build/types/src/entities/taskList.d.ts +0 -4
  83. package/build/types/src/enums/activityAction.d.ts +0 -4
  84. package/build/types/src/enums/approvalChoice.d.ts +0 -7
  85. package/build/types/src/enums/callEventType.d.ts +0 -3
  86. package/build/types/src/enums/callStatus.d.ts +0 -7
  87. package/build/types/src/enums/channelType.d.ts +0 -23
  88. package/build/types/src/enums/checkmark.d.ts +0 -4
  89. package/build/types/src/enums/disconnectParty.d.ts +0 -6
  90. package/build/types/src/enums/errorCodeType.d.ts +0 -123
  91. package/build/types/src/enums/filterMask.d.ts +0 -20
  92. package/build/types/src/enums/flag.d.ts +0 -5
  93. package/build/types/src/enums/formFieldType.d.ts +0 -27
  94. package/build/types/src/enums/listType.d.ts +0 -4
  95. package/build/types/src/enums/operatorId.d.ts +0 -9
  96. package/build/types/src/enums/permissionLevel.d.ts +0 -6
  97. package/build/types/src/enums/personRights.d.ts +0 -24
  98. package/build/types/src/enums/personType.d.ts +0 -5
  99. package/build/types/src/enums/sendSmsError.d.ts +0 -11
  100. package/build/types/src/enums/sendSmsStatus.d.ts +0 -6
  101. package/build/types/src/enums/sourceType.d.ts +0 -4
  102. package/build/types/src/enums/status.d.ts +0 -4
  103. package/build/types/src/helpers/constants.d.ts +0 -8
  104. package/build/types/src/helpers/functions.d.ts +0 -13
  105. package/build/types/src/helpers/types.d.ts +0 -4
  106. package/build/types/src/requests/announcementCommentRequest.d.ts +0 -6
  107. package/build/types/src/requests/announcementRequest.d.ts +0 -6
  108. package/build/types/src/requests/attachCallRecordRequest.d.ts +0 -37
  109. package/build/types/src/requests/authRequest.d.ts +0 -11
  110. package/build/types/src/requests/calendarTasksRequest.d.ts +0 -24
  111. package/build/types/src/requests/callRequest.d.ts +0 -27
  112. package/build/types/src/requests/catalogRequestBase.d.ts +0 -15
  113. package/build/types/src/requests/changePermissionsRequest.d.ts +0 -4
  114. package/build/types/src/requests/contactsRequest.d.ts +0 -3
  115. package/build/types/src/requests/createBotRequest.d.ts +0 -5
  116. package/build/types/src/requests/createCallRequest.d.ts +0 -6
  117. package/build/types/src/requests/createCatalogRequest.d.ts +0 -6
  118. package/build/types/src/requests/createDepartmentRequest.d.ts +0 -6
  119. package/build/types/src/requests/createListRequest.d.ts +0 -12
  120. package/build/types/src/requests/createMemberRequest.d.ts +0 -12
  121. package/build/types/src/requests/createRoleRequest.d.ts +0 -5
  122. package/build/types/src/requests/deleteBotRequest.d.ts +0 -4
  123. package/build/types/src/requests/deleteRoleRequest.d.ts +0 -4
  124. package/build/types/src/requests/formFilter.d.ts +0 -6
  125. package/build/types/src/requests/formRegisterRequest.d.ts +0 -26
  126. package/build/types/src/requests/getAllRequest.d.ts +0 -3
  127. package/build/types/src/requests/getMessageRequest.d.ts +0 -10
  128. package/build/types/src/requests/inboxRequest.d.ts +0 -8
  129. package/build/types/src/requests/personIdentity.d.ts +0 -4
  130. package/build/types/src/requests/profileRequest.d.ts +0 -3
  131. package/build/types/src/requests/setAvatarRequest.d.ts +0 -4
  132. package/build/types/src/requests/syncCatalogRequest.d.ts +0 -6
  133. package/build/types/src/requests/taskCommentRequest.d.ts +0 -39
  134. package/build/types/src/requests/taskListRequest.d.ts +0 -10
  135. package/build/types/src/requests/taskRequest.d.ts +0 -24
  136. package/build/types/src/requests/updateBotRequest.d.ts +0 -13
  137. package/build/types/src/requests/updateDepartmentRequest.d.ts +0 -8
  138. package/build/types/src/requests/updateListRequest.d.ts +0 -14
  139. package/build/types/src/requests/updateMemberRequest.d.ts +0 -15
  140. package/build/types/src/requests/updateRoleRequest.d.ts +0 -8
  141. package/build/types/src/responses/announcementResponse.d.ts +0 -5
  142. package/build/types/src/responses/announcementsResponse.d.ts +0 -5
  143. package/build/types/src/responses/authResponse.d.ts +0 -6
  144. package/build/types/src/responses/botResponse.d.ts +0 -3
  145. package/build/types/src/responses/botsResponse.d.ts +0 -5
  146. package/build/types/src/responses/calendarResponse.d.ts +0 -6
  147. package/build/types/src/responses/callResponse.d.ts +0 -4
  148. package/build/types/src/responses/catalogItemResponse.d.ts +0 -4
  149. package/build/types/src/responses/catalogResponse.d.ts +0 -18
  150. package/build/types/src/responses/contactsResponse.d.ts +0 -5
  151. package/build/types/src/responses/departmentResponse.d.ts +0 -3
  152. package/build/types/src/responses/departmentsResponse.d.ts +0 -5
  153. package/build/types/src/responses/formRegisterResponse.d.ts +0 -5
  154. package/build/types/src/responses/formResponse.d.ts +0 -17
  155. package/build/types/src/responses/formsResponse.d.ts +0 -4
  156. package/build/types/src/responses/listsResponse.d.ts +0 -5
  157. package/build/types/src/responses/memberResponse.d.ts +0 -3
  158. package/build/types/src/responses/membersResponse.d.ts +0 -5
  159. package/build/types/src/responses/permissionsDict.d.ts +0 -4
  160. package/build/types/src/responses/permissionsResponse.d.ts +0 -5
  161. package/build/types/src/responses/plainListResponse.d.ts +0 -3
  162. package/build/types/src/responses/profileIdentityResponse.d.ts +0 -5
  163. package/build/types/src/responses/profileResponse.d.ts +0 -12
  164. package/build/types/src/responses/responseBase.d.ts +0 -6
  165. package/build/types/src/responses/roleResponse.d.ts +0 -3
  166. package/build/types/src/responses/rolesResponse.d.ts +0 -5
  167. package/build/types/src/responses/syncCatalogResponse.d.ts +0 -10
  168. package/build/types/src/responses/taskListResponse.d.ts +0 -6
  169. package/build/types/src/responses/taskResponse.d.ts +0 -5
  170. package/build/types/src/responses/uploadResponse.d.ts +0 -5
  171. package/build/types/src/responses//321/201atalogsResponse.d.ts +0 -5
  172. package/build/types/src/settings/defaults.d.ts +0 -2
  173. 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,4 +0,0 @@
1
- export declare enum ListType {
2
- Private = "private",
3
- OrganizationWide = "org_wide"
4
- }
@@ -1,9 +0,0 @@
1
- export declare enum OperatorId {
2
- Equals = 1,
3
- LessThan = 2,
4
- GreaterThan = 3,
5
- IsIn = 4,
6
- Range = 5,
7
- MatchPrefix = 6,
8
- IsEmpty = 7
9
- }
@@ -1,6 +0,0 @@
1
- export declare enum PermissionLevel {
2
- None = "none",
3
- Manager = "manager",
4
- Member = "member",
5
- Administrator = "administrator"
6
- }
@@ -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,5 +0,0 @@
1
- export declare enum PersonType {
2
- User = "user",
3
- Bot = "bot",
4
- Role = "role"
5
- }
@@ -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,6 +0,0 @@
1
- export declare enum SendSmsStatus {
2
- Sent = "sent",
3
- Delivered = "delivered",
4
- DeliveryFailed = "delivery_failed",
5
- SendFailed = "send_failed"
6
- }
@@ -1,4 +0,0 @@
1
- export declare enum SourceType {
2
- Default = "default",
3
- FillTable = "fill_table"
4
- }
@@ -1,4 +0,0 @@
1
- export declare enum Status {
2
- Open = "open",
3
- Closed = "closed"
4
- }
@@ -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,4 +0,0 @@
1
- export type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE";
2
- export type ById = {
3
- id: number;
4
- };
@@ -1,6 +0,0 @@
1
- import { NewFile } from "../entities/newFile";
2
- export type AnnouncementCommentRequest = {
3
- text?: string;
4
- formatted_text?: string;
5
- attachments?: NewFile[];
6
- };
@@ -1,6 +0,0 @@
1
- import { NewFile } from "../entities/newFile";
2
- export type AnnouncementRequest = {
3
- text: string;
4
- formatted_text?: string;
5
- attachments?: NewFile[];
6
- };
@@ -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,4 +0,0 @@
1
- import { PermissionsDict } from "../responses/permissionsDict";
2
- export type ChangePermissionsRequest = {
3
- permissions: PermissionsDict;
4
- };
@@ -1,3 +0,0 @@
1
- export type ContactsRequest = {
2
- include_inactive?: boolean;
3
- };
@@ -1,5 +0,0 @@
1
- export type CreateBotRequest = {
2
- name: string;
3
- hook_url?: string;
4
- external_id?: string;
5
- };
@@ -1,6 +0,0 @@
1
- export type CreateCallRequest = {
2
- to: string;
3
- from: string;
4
- extension: string;
5
- integration_guid: string;
6
- };
@@ -1,6 +0,0 @@
1
- import { CatalogRequestBase } from "./catalogRequestBase";
2
- import { SourceType } from "../enums/sourceType";
3
- export type CreateCatalogRequest = CatalogRequestBase & {
4
- name: string;
5
- source_type?: SourceType;
6
- };
@@ -1,6 +0,0 @@
1
- export type CreateDepartmentRequest = {
2
- parent_id?: number;
3
- manager_id?: number;
4
- department_name: string;
5
- external_id?: number;
6
- };
@@ -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,12 +0,0 @@
1
- export type CreateMemberRequest = {
2
- first_name?: string;
3
- last_name?: string;
4
- email: string;
5
- status?: string;
6
- position?: string;
7
- department_id?: number;
8
- skype?: string;
9
- phone?: string;
10
- external_id?: string;
11
- login_phone?: string;
12
- };
@@ -1,5 +0,0 @@
1
- export type CreateRoleRequest = {
2
- name: string;
3
- external_id?: string;
4
- member_add?: number[];
5
- };
@@ -1,4 +0,0 @@
1
- export type DeleteBotRequest = {
2
- id: number;
3
- task_receiver_id: number;
4
- };
@@ -1,4 +0,0 @@
1
- export type DeleteRoleRequest = {
2
- id: number;
3
- task_receiver_id: number;
4
- };
@@ -1,6 +0,0 @@
1
- import { OperatorId } from "../enums/operatorId";
2
- export type FormFilter = {
3
- field_id: number;
4
- operator_id: OperatorId;
5
- values: string[];
6
- };
@@ -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,3 +0,0 @@
1
- export type GetAllRequest = {
2
- include_fired: boolean;
3
- };
@@ -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,8 +0,0 @@
1
- export type InboxRequest = {
2
- /**
3
- * The maximum number of tasks in the response
4
- * @remarks
5
- * default: 50
6
- */
7
- item_count: number;
8
- };
@@ -1,4 +0,0 @@
1
- export type PersonIdentity = {
2
- id?: number;
3
- email?: string;
4
- };
@@ -1,3 +0,0 @@
1
- export type ProfileRequest = {
2
- include_inactive: boolean;
3
- };
@@ -1,4 +0,0 @@
1
- export type SetAvatarRequest = {
2
- guid?: string;
3
- external_avatar_id?: number;
4
- };
@@ -1,6 +0,0 @@
1
- import { CatalogRequestBase } from "./catalogRequestBase";
2
- export type SyncCatalogRequest = CatalogRequestBase & {
3
- id: number;
4
- apply: boolean;
5
- force_update_first_column?: boolean;
6
- };
@@ -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,10 +0,0 @@
1
- export type TaskListRequest = {
2
- include_archived?: "y";
3
- modified_before?: Date;
4
- modified_after?: Date;
5
- /**
6
- * @remarks
7
- * Default: 200
8
- */
9
- item_count?: number;
10
- };
@@ -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,8 +0,0 @@
1
- export type UpdateDepartmentRequest = {
2
- id: number;
3
- remove_manager: boolean;
4
- parent_id?: number;
5
- manager_id?: number;
6
- department_name?: string;
7
- external_id?: number;
8
- };
@@ -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
- };
@@ -1,8 +0,0 @@
1
- export type UpdateRoleRequest = {
2
- id: number;
3
- name?: string;
4
- external_id?: string;
5
- banned?: boolean;
6
- member_add?: number[];
7
- member_remove?: number[];
8
- };
@@ -1,5 +0,0 @@
1
- import { ResponseBase } from "./responseBase";
2
- import { AnnouncementWithComments } from "../entities/announcementWithComments";
3
- export type AnnouncementResponse = ResponseBase & {
4
- announcement: AnnouncementWithComments;
5
- };
@@ -1,5 +0,0 @@
1
- import { ResponseBase } from "./responseBase";
2
- import { AnnouncementWithComments } from "../entities/announcementWithComments";
3
- export type AnnouncementsResponse = ResponseBase & {
4
- announcements: AnnouncementWithComments[];
5
- };
@@ -1,6 +0,0 @@
1
- import { ResponseBase } from "./responseBase";
2
- export type AuthResponse = ResponseBase & {
3
- access_token: string;
4
- api_url?: string;
5
- files_url?: string;
6
- };
@@ -1,3 +0,0 @@
1
- import { ResponseBase } from "./responseBase";
2
- import { Bot } from "../entities/bot";
3
- export type BotResponse = ResponseBase & Bot;
@@ -1,5 +0,0 @@
1
- import { ResponseBase } from "./responseBase";
2
- import { Bot } from "../entities/bot";
3
- export type BotsResponse = ResponseBase & {
4
- bots: Bot[];
5
- };
@@ -1,6 +0,0 @@
1
- import { ResponseBase } from "./responseBase";
2
- import { TaskWithComments } from "../entities/TaskWithComments";
3
- export type CalendarResponse = ResponseBase & {
4
- tasks: TaskWithComments[];
5
- has_more: boolean;
6
- };
@@ -1,4 +0,0 @@
1
- import { ResponseBase } from "./responseBase";
2
- export type CallResponse = ResponseBase & {
3
- task_id: number;
4
- };