@smartytalent/api-client 0.9.10 → 0.9.12
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/dist/apis/TasksApi.d.ts +141 -0
- package/dist/apis/TasksApi.d.ts.map +1 -0
- package/dist/apis/TasksApi.js +332 -0
- package/dist/apis/TasksApi.js.map +1 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.d.ts.map +1 -1
- package/dist/apis/index.js +1 -0
- package/dist/apis/index.js.map +1 -1
- package/dist/models/CreateTaskRequestBody.d.ts +34 -0
- package/dist/models/CreateTaskRequestBody.d.ts.map +1 -0
- package/dist/models/CreateTaskRequestBody.js +52 -0
- package/dist/models/CreateTaskRequestBody.js.map +1 -0
- package/dist/models/CreateTaskRequestBodyData.d.ts +54 -0
- package/dist/models/CreateTaskRequestBodyData.d.ts.map +1 -0
- package/dist/models/CreateTaskRequestBodyData.js +66 -0
- package/dist/models/CreateTaskRequestBodyData.js.map +1 -0
- package/dist/models/TaskAttributesSchema.d.ts +102 -0
- package/dist/models/TaskAttributesSchema.d.ts.map +1 -0
- package/dist/models/TaskAttributesSchema.js +80 -0
- package/dist/models/TaskAttributesSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsAuthorDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsAuthorDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsAuthorDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsAuthorDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsAuthorSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsAuthorSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsAuthorSchema.js +50 -0
- package/dist/models/TaskRelationshipsAuthorSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsBriefDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsBriefDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsBriefDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsBriefDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsBriefSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsBriefSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsBriefSchema.js +50 -0
- package/dist/models/TaskRelationshipsBriefSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsCandidateDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsCandidateDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsCandidateDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsCandidateDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsCandidateSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsCandidateSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsCandidateSchema.js +50 -0
- package/dist/models/TaskRelationshipsCandidateSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsConversationDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsConversationDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsConversationDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsConversationDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsConversationSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsConversationSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsConversationSchema.js +50 -0
- package/dist/models/TaskRelationshipsConversationSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsEmailDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsEmailDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsEmailDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsEmailDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsEmailSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsEmailSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsEmailSchema.js +50 -0
- package/dist/models/TaskRelationshipsEmailSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsJobDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsJobDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsJobDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsJobDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsJobSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsJobSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsJobSchema.js +50 -0
- package/dist/models/TaskRelationshipsJobSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestBriefsDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsRequestBriefsDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestBriefsDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsRequestBriefsDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestBriefsSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsRequestBriefsSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestBriefsSchema.js +50 -0
- package/dist/models/TaskRelationshipsRequestBriefsSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestCandidatesDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsRequestCandidatesDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestCandidatesDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsRequestCandidatesDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestCandidatesSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsRequestCandidatesSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestCandidatesSchema.js +50 -0
- package/dist/models/TaskRelationshipsRequestCandidatesSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestConversationsDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsRequestConversationsDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestConversationsDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsRequestConversationsDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestConversationsSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsRequestConversationsSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestConversationsSchema.js +50 -0
- package/dist/models/TaskRelationshipsRequestConversationsSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestEmailsDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsRequestEmailsDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestEmailsDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsRequestEmailsDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestEmailsSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsRequestEmailsSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestEmailsSchema.js +50 -0
- package/dist/models/TaskRelationshipsRequestEmailsSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestJobsDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsRequestJobsDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestJobsDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsRequestJobsDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestJobsSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsRequestJobsSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestJobsSchema.js +50 -0
- package/dist/models/TaskRelationshipsRequestJobsSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestSchema.d.ts +69 -0
- package/dist/models/TaskRelationshipsRequestSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestSchema.js +65 -0
- package/dist/models/TaskRelationshipsRequestSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestTalentsDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsRequestTalentsDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestTalentsDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsRequestTalentsDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsRequestTalentsSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsRequestTalentsSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsRequestTalentsSchema.js +50 -0
- package/dist/models/TaskRelationshipsRequestTalentsSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsSchema.d.ts +76 -0
- package/dist/models/TaskRelationshipsSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsSchema.js +68 -0
- package/dist/models/TaskRelationshipsSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsTalentDataSchema.d.ts +39 -0
- package/dist/models/TaskRelationshipsTalentDataSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsTalentDataSchema.js +51 -0
- package/dist/models/TaskRelationshipsTalentDataSchema.js.map +1 -0
- package/dist/models/TaskRelationshipsTalentSchema.d.ts +34 -0
- package/dist/models/TaskRelationshipsTalentSchema.d.ts.map +1 -0
- package/dist/models/TaskRelationshipsTalentSchema.js +50 -0
- package/dist/models/TaskRelationshipsTalentSchema.js.map +1 -0
- package/dist/models/TaskResourceSchema.d.ts +75 -0
- package/dist/models/TaskResourceSchema.d.ts.map +1 -0
- package/dist/models/TaskResourceSchema.js +75 -0
- package/dist/models/TaskResourceSchema.js.map +1 -0
- package/dist/models/TaskSchema.d.ts +49 -0
- package/dist/models/TaskSchema.d.ts.map +1 -0
- package/dist/models/TaskSchema.js +55 -0
- package/dist/models/TaskSchema.js.map +1 -0
- package/dist/models/TasksSchema.d.ts +48 -0
- package/dist/models/TasksSchema.d.ts.map +1 -0
- package/dist/models/TasksSchema.js +56 -0
- package/dist/models/TasksSchema.js.map +1 -0
- package/dist/models/UpdateTaskRequestBody.d.ts +34 -0
- package/dist/models/UpdateTaskRequestBody.d.ts.map +1 -0
- package/dist/models/UpdateTaskRequestBody.js +52 -0
- package/dist/models/UpdateTaskRequestBody.js.map +1 -0
- package/dist/models/UpdateTaskRequestBodyData.d.ts +60 -0
- package/dist/models/UpdateTaskRequestBodyData.d.ts.map +1 -0
- package/dist/models/UpdateTaskRequestBodyData.js +68 -0
- package/dist/models/UpdateTaskRequestBodyData.js.map +1 -0
- package/dist/models/index.d.ts +36 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +36 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartyMeet Dev03 API REST
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.1
|
|
6
|
+
* Contact: developer@smartymeet.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreateTaskRequestBody, TaskSchema, TasksSchema, UpdateTaskRequestBody } from '../models/index';
|
|
14
|
+
export interface CreateTaskRequest {
|
|
15
|
+
createTaskRequestBody: CreateTaskRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export interface ListTasksRequest {
|
|
18
|
+
filterStatus?: ListTasksFilterStatusEnum;
|
|
19
|
+
filterCreatedFrom?: Date;
|
|
20
|
+
filterCreatedTo?: Date;
|
|
21
|
+
filterModifiedFrom?: Date;
|
|
22
|
+
filterModifiedTo?: Date;
|
|
23
|
+
pageSize?: number;
|
|
24
|
+
pageNumber?: number;
|
|
25
|
+
pageAfter?: string;
|
|
26
|
+
pageBefore?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ShowTaskRequest {
|
|
29
|
+
taskId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface TaskOptionsRequest {
|
|
32
|
+
taskId: string;
|
|
33
|
+
}
|
|
34
|
+
export interface UpdateTaskRequest {
|
|
35
|
+
taskId: string;
|
|
36
|
+
updateTaskRequestBody: UpdateTaskRequestBody;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export declare class TasksApi extends runtime.BaseAPI {
|
|
42
|
+
/**
|
|
43
|
+
* Creates request options for createTask without sending the request
|
|
44
|
+
*/
|
|
45
|
+
createTaskRequestOpts(requestParameters: CreateTaskRequest): Promise<runtime.RequestOpts>;
|
|
46
|
+
/**
|
|
47
|
+
* Creates a new task in your account. `route` (optional, max 64) is a workflow routing key, normalised to lowercase and shape-validated at create, stamped on the row and immutable afterwards. The operator lane knows exactly three: `emails:reply` (names the thread through `conversations`), `emails:compose` (names the person through `talents`/`candidates`/`meta.recipientEmail`) and `emails:send` (names the held draft through `emails`). A `route` matching `emails:*` requires role recruiter/recops/admin/owner; hiringmanager, user and every other role get 400 \"Action unauthorized.\". `status` defaults to `active` (the operator lane files its tasks as `pending`). To-one relationships (jobs/conversations/emails/talents/candidates) may be linked at create; `relationships.author` may NOT - the caller is stamped as the author server-side and the link never moves afterwards. A task created with an `emails:*` route also emits `service:task:email:pending` with a FLAT detail (`attributes.route` / `kind` / `languageCode` plus the linked relationships) that the Reply From Operator, Compose New From Operator and Send From Operator triggers filter on. The envelope carries no copy of the instruction: the row is the single source of truth and the compose action reads it there.
|
|
48
|
+
* Create Task
|
|
49
|
+
*/
|
|
50
|
+
createTaskRaw(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskSchema>>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates a new task in your account. `route` (optional, max 64) is a workflow routing key, normalised to lowercase and shape-validated at create, stamped on the row and immutable afterwards. The operator lane knows exactly three: `emails:reply` (names the thread through `conversations`), `emails:compose` (names the person through `talents`/`candidates`/`meta.recipientEmail`) and `emails:send` (names the held draft through `emails`). A `route` matching `emails:*` requires role recruiter/recops/admin/owner; hiringmanager, user and every other role get 400 \"Action unauthorized.\". `status` defaults to `active` (the operator lane files its tasks as `pending`). To-one relationships (jobs/conversations/emails/talents/candidates) may be linked at create; `relationships.author` may NOT - the caller is stamped as the author server-side and the link never moves afterwards. A task created with an `emails:*` route also emits `service:task:email:pending` with a FLAT detail (`attributes.route` / `kind` / `languageCode` plus the linked relationships) that the Reply From Operator, Compose New From Operator and Send From Operator triggers filter on. The envelope carries no copy of the instruction: the row is the single source of truth and the compose action reads it there.
|
|
53
|
+
* Create Task
|
|
54
|
+
*/
|
|
55
|
+
createTask(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskSchema>;
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for listTasks without sending the request
|
|
58
|
+
*/
|
|
59
|
+
listTasksRequestOpts(requestParameters: ListTasksRequest): Promise<runtime.RequestOpts>;
|
|
60
|
+
/**
|
|
61
|
+
* Returns a collection of your account tasks. TENANT-scoped, not user-scoped: the list returns every task row in the tenant, including tasks another operator filed. This is the deliberate v1 shape (a shared team inbox); filter client-side on `route`/`kind` or on `relationships.author` if you need one operator\'s lane - there is no filterRoute, no filterKind and no filterAuthorId. ONE FILTER AT A TIME: `filterStatus` and the created/modified ranges each pick a different GSI, so combining any two is a hard 400 \"Only one filter can be used at the time\" (a from/to pair on the same axis counts as one). `filterStatus` takes exactly one value - repeating it does not OR the statuses. Both traditional (`pageNumber`) and cursor-based (`pageAfter`/`pageBefore`) pagination are supported, and the two styles cannot be combined.
|
|
62
|
+
* List Tasks
|
|
63
|
+
*/
|
|
64
|
+
listTasksRaw(requestParameters: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TasksSchema>>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a collection of your account tasks. TENANT-scoped, not user-scoped: the list returns every task row in the tenant, including tasks another operator filed. This is the deliberate v1 shape (a shared team inbox); filter client-side on `route`/`kind` or on `relationships.author` if you need one operator\'s lane - there is no filterRoute, no filterKind and no filterAuthorId. ONE FILTER AT A TIME: `filterStatus` and the created/modified ranges each pick a different GSI, so combining any two is a hard 400 \"Only one filter can be used at the time\" (a from/to pair on the same axis counts as one). `filterStatus` takes exactly one value - repeating it does not OR the statuses. Both traditional (`pageNumber`) and cursor-based (`pageAfter`/`pageBefore`) pagination are supported, and the two styles cannot be combined.
|
|
67
|
+
* List Tasks
|
|
68
|
+
*/
|
|
69
|
+
listTasks(requestParameters?: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TasksSchema>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for showTask without sending the request
|
|
72
|
+
*/
|
|
73
|
+
showTaskRequestOpts(requestParameters: ShowTaskRequest): Promise<runtime.RequestOpts>;
|
|
74
|
+
/**
|
|
75
|
+
* This endpoint retrieves details of a specific task from your account, including its route, kind, multilingual content, resource-level meta (data.meta) and linked resources - `relationships.author` names the user who filed it. TENANT-scoped, not user-scoped: any writer in the tenant may read any task row, including another operator\'s emails:* task (deliberate v1 shared-inbox choice).
|
|
76
|
+
* Show Task
|
|
77
|
+
*/
|
|
78
|
+
showTaskRaw(requestParameters: ShowTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskSchema>>;
|
|
79
|
+
/**
|
|
80
|
+
* This endpoint retrieves details of a specific task from your account, including its route, kind, multilingual content, resource-level meta (data.meta) and linked resources - `relationships.author` names the user who filed it. TENANT-scoped, not user-scoped: any writer in the tenant may read any task row, including another operator\'s emails:* task (deliberate v1 shared-inbox choice).
|
|
81
|
+
* Show Task
|
|
82
|
+
*/
|
|
83
|
+
showTask(requestParameters: ShowTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskSchema>;
|
|
84
|
+
/**
|
|
85
|
+
* Creates request options for taskOptions without sending the request
|
|
86
|
+
*/
|
|
87
|
+
taskOptionsRequestOpts(requestParameters: TaskOptionsRequest): Promise<runtime.RequestOpts>;
|
|
88
|
+
/**
|
|
89
|
+
* Enable CORS by returning correct headers
|
|
90
|
+
* Task Options
|
|
91
|
+
*/
|
|
92
|
+
taskOptionsRaw(requestParameters: TaskOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
93
|
+
/**
|
|
94
|
+
* Enable CORS by returning correct headers
|
|
95
|
+
* Task Options
|
|
96
|
+
*/
|
|
97
|
+
taskOptions(requestParameters: TaskOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Creates request options for tasksOptions without sending the request
|
|
100
|
+
*/
|
|
101
|
+
tasksOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
102
|
+
/**
|
|
103
|
+
* Enable CORS by returning correct headers
|
|
104
|
+
* Tasks Options
|
|
105
|
+
*/
|
|
106
|
+
tasksOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
107
|
+
/**
|
|
108
|
+
* Enable CORS by returning correct headers
|
|
109
|
+
* Tasks Options
|
|
110
|
+
*/
|
|
111
|
+
tasksOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for updateTask without sending the request
|
|
114
|
+
*/
|
|
115
|
+
updateTaskRequestOpts(requestParameters: UpdateTaskRequest): Promise<runtime.RequestOpts>;
|
|
116
|
+
/**
|
|
117
|
+
* Updates a specific task. PATCH may carry attributes (content, context, status, meta, ttl - `route` is immutable and rejected with 400) and/or relationships: the to-one jobs/conversations/emails/talents/candidates links merge per key (a `{data: null}` link is a no-op). `relationships.author` is not a request key and never moves: a PATCH that echoes `author` (or `authors`, or `{data: null}`) back is rejected with 400 \'Task author is immutable.\', so strip it from a read-modify-write body exactly like `route`. `status` is written only when provided. Patching a row whose stored route matches `emails:*` needs the create gate\'s role set (recruiter/recops/admin/owner). TENANT-scoped, not user-scoped: within that role set any writer may patch any operator\'s task (deliberate v1 shared-inbox choice).
|
|
118
|
+
* Update Task
|
|
119
|
+
*/
|
|
120
|
+
updateTaskRaw(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskSchema>>;
|
|
121
|
+
/**
|
|
122
|
+
* Updates a specific task. PATCH may carry attributes (content, context, status, meta, ttl - `route` is immutable and rejected with 400) and/or relationships: the to-one jobs/conversations/emails/talents/candidates links merge per key (a `{data: null}` link is a no-op). `relationships.author` is not a request key and never moves: a PATCH that echoes `author` (or `authors`, or `{data: null}`) back is rejected with 400 \'Task author is immutable.\', so strip it from a read-modify-write body exactly like `route`. `status` is written only when provided. Patching a row whose stored route matches `emails:*` needs the create gate\'s role set (recruiter/recops/admin/owner). TENANT-scoped, not user-scoped: within that role set any writer may patch any operator\'s task (deliberate v1 shared-inbox choice).
|
|
123
|
+
* Update Task
|
|
124
|
+
*/
|
|
125
|
+
updateTask(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskSchema>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export declare const ListTasksFilterStatusEnum: {
|
|
131
|
+
readonly Active: "active";
|
|
132
|
+
readonly Sent: "sent";
|
|
133
|
+
readonly Scheduled: "scheduled";
|
|
134
|
+
readonly Pending: "pending";
|
|
135
|
+
readonly Draft: "draft";
|
|
136
|
+
readonly Archived: "archived";
|
|
137
|
+
readonly Failed: "failed";
|
|
138
|
+
readonly Done: "done";
|
|
139
|
+
};
|
|
140
|
+
export type ListTasksFilterStatusEnum = typeof ListTasksFilterStatusEnum[keyof typeof ListTasksFilterStatusEnum];
|
|
141
|
+
//# sourceMappingURL=TasksApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TasksApi.d.ts","sourceRoot":"","sources":["../../src/apis/TasksApi.ts"],"names":[],"mappings":"AAEA;;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AAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAInI;;OAEG;IACG,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;IAgB7D;;;OAGG;IACG,eAAe,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAOrH;;;OAGG;IACG,YAAY,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7F;;OAEG;IACG,qBAAqB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;IA2C/F;;;OAGG;IACG,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAO/J;;;OAGG;IACG,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAK1I;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;CAS5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SmartyMeet Dev03 API REST
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.1
|
|
9
|
+
* Contact: developer@smartymeet.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ListTasksFilterStatusEnum = exports.TasksApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class TasksApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for createTask without sending the request
|
|
58
|
+
*/
|
|
59
|
+
async createTaskRequestOpts(requestParameters) {
|
|
60
|
+
if (requestParameters['createTaskRequestBody'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('createTaskRequestBody', 'Required parameter "createTaskRequestBody" was null or undefined when calling createTask().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
67
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
|
|
68
|
+
}
|
|
69
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
70
|
+
// oauth required
|
|
71
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Auth", []);
|
|
72
|
+
}
|
|
73
|
+
let urlPath = `/v1/tasks`;
|
|
74
|
+
return {
|
|
75
|
+
path: urlPath,
|
|
76
|
+
method: 'POST',
|
|
77
|
+
headers: headerParameters,
|
|
78
|
+
query: queryParameters,
|
|
79
|
+
body: (0, index_1.CreateTaskRequestBodyToJSON)(requestParameters['createTaskRequestBody']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new task in your account. `route` (optional, max 64) is a workflow routing key, normalised to lowercase and shape-validated at create, stamped on the row and immutable afterwards. The operator lane knows exactly three: `emails:reply` (names the thread through `conversations`), `emails:compose` (names the person through `talents`/`candidates`/`meta.recipientEmail`) and `emails:send` (names the held draft through `emails`). A `route` matching `emails:*` requires role recruiter/recops/admin/owner; hiringmanager, user and every other role get 400 \"Action unauthorized.\". `status` defaults to `active` (the operator lane files its tasks as `pending`). To-one relationships (jobs/conversations/emails/talents/candidates) may be linked at create; `relationships.author` may NOT - the caller is stamped as the author server-side and the link never moves afterwards. A task created with an `emails:*` route also emits `service:task:email:pending` with a FLAT detail (`attributes.route` / `kind` / `languageCode` plus the linked relationships) that the Reply From Operator, Compose New From Operator and Send From Operator triggers filter on. The envelope carries no copy of the instruction: the row is the single source of truth and the compose action reads it there.
|
|
84
|
+
* Create Task
|
|
85
|
+
*/
|
|
86
|
+
async createTaskRaw(requestParameters, initOverrides) {
|
|
87
|
+
const requestOptions = await this.createTaskRequestOpts(requestParameters);
|
|
88
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TaskSchemaFromJSON)(jsonValue));
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Creates a new task in your account. `route` (optional, max 64) is a workflow routing key, normalised to lowercase and shape-validated at create, stamped on the row and immutable afterwards. The operator lane knows exactly three: `emails:reply` (names the thread through `conversations`), `emails:compose` (names the person through `talents`/`candidates`/`meta.recipientEmail`) and `emails:send` (names the held draft through `emails`). A `route` matching `emails:*` requires role recruiter/recops/admin/owner; hiringmanager, user and every other role get 400 \"Action unauthorized.\". `status` defaults to `active` (the operator lane files its tasks as `pending`). To-one relationships (jobs/conversations/emails/talents/candidates) may be linked at create; `relationships.author` may NOT - the caller is stamped as the author server-side and the link never moves afterwards. A task created with an `emails:*` route also emits `service:task:email:pending` with a FLAT detail (`attributes.route` / `kind` / `languageCode` plus the linked relationships) that the Reply From Operator, Compose New From Operator and Send From Operator triggers filter on. The envelope carries no copy of the instruction: the row is the single source of truth and the compose action reads it there.
|
|
93
|
+
* Create Task
|
|
94
|
+
*/
|
|
95
|
+
async createTask(requestParameters, initOverrides) {
|
|
96
|
+
const response = await this.createTaskRaw(requestParameters, initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Creates request options for listTasks without sending the request
|
|
101
|
+
*/
|
|
102
|
+
async listTasksRequestOpts(requestParameters) {
|
|
103
|
+
const queryParameters = {};
|
|
104
|
+
if (requestParameters['filterStatus'] != null) {
|
|
105
|
+
queryParameters['filterStatus'] = requestParameters['filterStatus'];
|
|
106
|
+
}
|
|
107
|
+
if (requestParameters['filterCreatedFrom'] != null) {
|
|
108
|
+
queryParameters['filterCreatedFrom'] = requestParameters['filterCreatedFrom'].toISOString();
|
|
109
|
+
}
|
|
110
|
+
if (requestParameters['filterCreatedTo'] != null) {
|
|
111
|
+
queryParameters['filterCreatedTo'] = requestParameters['filterCreatedTo'].toISOString();
|
|
112
|
+
}
|
|
113
|
+
if (requestParameters['filterModifiedFrom'] != null) {
|
|
114
|
+
queryParameters['filterModifiedFrom'] = requestParameters['filterModifiedFrom'].toISOString();
|
|
115
|
+
}
|
|
116
|
+
if (requestParameters['filterModifiedTo'] != null) {
|
|
117
|
+
queryParameters['filterModifiedTo'] = requestParameters['filterModifiedTo'].toISOString();
|
|
118
|
+
}
|
|
119
|
+
if (requestParameters['pageSize'] != null) {
|
|
120
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
121
|
+
}
|
|
122
|
+
if (requestParameters['pageNumber'] != null) {
|
|
123
|
+
queryParameters['pageNumber'] = requestParameters['pageNumber'];
|
|
124
|
+
}
|
|
125
|
+
if (requestParameters['pageAfter'] != null) {
|
|
126
|
+
queryParameters['pageAfter'] = requestParameters['pageAfter'];
|
|
127
|
+
}
|
|
128
|
+
if (requestParameters['pageBefore'] != null) {
|
|
129
|
+
queryParameters['pageBefore'] = requestParameters['pageBefore'];
|
|
130
|
+
}
|
|
131
|
+
const headerParameters = {};
|
|
132
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
133
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
|
|
134
|
+
}
|
|
135
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
136
|
+
// oauth required
|
|
137
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Auth", []);
|
|
138
|
+
}
|
|
139
|
+
let urlPath = `/v1/tasks`;
|
|
140
|
+
return {
|
|
141
|
+
path: urlPath,
|
|
142
|
+
method: 'GET',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Returns a collection of your account tasks. TENANT-scoped, not user-scoped: the list returns every task row in the tenant, including tasks another operator filed. This is the deliberate v1 shape (a shared team inbox); filter client-side on `route`/`kind` or on `relationships.author` if you need one operator\'s lane - there is no filterRoute, no filterKind and no filterAuthorId. ONE FILTER AT A TIME: `filterStatus` and the created/modified ranges each pick a different GSI, so combining any two is a hard 400 \"Only one filter can be used at the time\" (a from/to pair on the same axis counts as one). `filterStatus` takes exactly one value - repeating it does not OR the statuses. Both traditional (`pageNumber`) and cursor-based (`pageAfter`/`pageBefore`) pagination are supported, and the two styles cannot be combined.
|
|
149
|
+
* List Tasks
|
|
150
|
+
*/
|
|
151
|
+
async listTasksRaw(requestParameters, initOverrides) {
|
|
152
|
+
const requestOptions = await this.listTasksRequestOpts(requestParameters);
|
|
153
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
154
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TasksSchemaFromJSON)(jsonValue));
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Returns a collection of your account tasks. TENANT-scoped, not user-scoped: the list returns every task row in the tenant, including tasks another operator filed. This is the deliberate v1 shape (a shared team inbox); filter client-side on `route`/`kind` or on `relationships.author` if you need one operator\'s lane - there is no filterRoute, no filterKind and no filterAuthorId. ONE FILTER AT A TIME: `filterStatus` and the created/modified ranges each pick a different GSI, so combining any two is a hard 400 \"Only one filter can be used at the time\" (a from/to pair on the same axis counts as one). `filterStatus` takes exactly one value - repeating it does not OR the statuses. Both traditional (`pageNumber`) and cursor-based (`pageAfter`/`pageBefore`) pagination are supported, and the two styles cannot be combined.
|
|
158
|
+
* List Tasks
|
|
159
|
+
*/
|
|
160
|
+
async listTasks(requestParameters = {}, initOverrides) {
|
|
161
|
+
const response = await this.listTasksRaw(requestParameters, initOverrides);
|
|
162
|
+
return await response.value();
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Creates request options for showTask without sending the request
|
|
166
|
+
*/
|
|
167
|
+
async showTaskRequestOpts(requestParameters) {
|
|
168
|
+
if (requestParameters['taskId'] == null) {
|
|
169
|
+
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling showTask().');
|
|
170
|
+
}
|
|
171
|
+
const queryParameters = {};
|
|
172
|
+
const headerParameters = {};
|
|
173
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
174
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
|
|
175
|
+
}
|
|
176
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
177
|
+
// oauth required
|
|
178
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Auth", []);
|
|
179
|
+
}
|
|
180
|
+
let urlPath = `/v1/tasks/{taskId}`;
|
|
181
|
+
urlPath = urlPath.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
182
|
+
return {
|
|
183
|
+
path: urlPath,
|
|
184
|
+
method: 'GET',
|
|
185
|
+
headers: headerParameters,
|
|
186
|
+
query: queryParameters,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* This endpoint retrieves details of a specific task from your account, including its route, kind, multilingual content, resource-level meta (data.meta) and linked resources - `relationships.author` names the user who filed it. TENANT-scoped, not user-scoped: any writer in the tenant may read any task row, including another operator\'s emails:* task (deliberate v1 shared-inbox choice).
|
|
191
|
+
* Show Task
|
|
192
|
+
*/
|
|
193
|
+
async showTaskRaw(requestParameters, initOverrides) {
|
|
194
|
+
const requestOptions = await this.showTaskRequestOpts(requestParameters);
|
|
195
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TaskSchemaFromJSON)(jsonValue));
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* This endpoint retrieves details of a specific task from your account, including its route, kind, multilingual content, resource-level meta (data.meta) and linked resources - `relationships.author` names the user who filed it. TENANT-scoped, not user-scoped: any writer in the tenant may read any task row, including another operator\'s emails:* task (deliberate v1 shared-inbox choice).
|
|
200
|
+
* Show Task
|
|
201
|
+
*/
|
|
202
|
+
async showTask(requestParameters, initOverrides) {
|
|
203
|
+
const response = await this.showTaskRaw(requestParameters, initOverrides);
|
|
204
|
+
return await response.value();
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Creates request options for taskOptions without sending the request
|
|
208
|
+
*/
|
|
209
|
+
async taskOptionsRequestOpts(requestParameters) {
|
|
210
|
+
if (requestParameters['taskId'] == null) {
|
|
211
|
+
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling taskOptions().');
|
|
212
|
+
}
|
|
213
|
+
const queryParameters = {};
|
|
214
|
+
const headerParameters = {};
|
|
215
|
+
let urlPath = `/v1/tasks/{taskId}`;
|
|
216
|
+
urlPath = urlPath.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
217
|
+
return {
|
|
218
|
+
path: urlPath,
|
|
219
|
+
method: 'OPTIONS',
|
|
220
|
+
headers: headerParameters,
|
|
221
|
+
query: queryParameters,
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Enable CORS by returning correct headers
|
|
226
|
+
* Task Options
|
|
227
|
+
*/
|
|
228
|
+
async taskOptionsRaw(requestParameters, initOverrides) {
|
|
229
|
+
const requestOptions = await this.taskOptionsRequestOpts(requestParameters);
|
|
230
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
231
|
+
return new runtime.VoidApiResponse(response);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Enable CORS by returning correct headers
|
|
235
|
+
* Task Options
|
|
236
|
+
*/
|
|
237
|
+
async taskOptions(requestParameters, initOverrides) {
|
|
238
|
+
await this.taskOptionsRaw(requestParameters, initOverrides);
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Creates request options for tasksOptions without sending the request
|
|
242
|
+
*/
|
|
243
|
+
async tasksOptionsRequestOpts() {
|
|
244
|
+
const queryParameters = {};
|
|
245
|
+
const headerParameters = {};
|
|
246
|
+
let urlPath = `/v1/tasks`;
|
|
247
|
+
return {
|
|
248
|
+
path: urlPath,
|
|
249
|
+
method: 'OPTIONS',
|
|
250
|
+
headers: headerParameters,
|
|
251
|
+
query: queryParameters,
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Enable CORS by returning correct headers
|
|
256
|
+
* Tasks Options
|
|
257
|
+
*/
|
|
258
|
+
async tasksOptionsRaw(initOverrides) {
|
|
259
|
+
const requestOptions = await this.tasksOptionsRequestOpts();
|
|
260
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
261
|
+
return new runtime.VoidApiResponse(response);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Enable CORS by returning correct headers
|
|
265
|
+
* Tasks Options
|
|
266
|
+
*/
|
|
267
|
+
async tasksOptions(initOverrides) {
|
|
268
|
+
await this.tasksOptionsRaw(initOverrides);
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Creates request options for updateTask without sending the request
|
|
272
|
+
*/
|
|
273
|
+
async updateTaskRequestOpts(requestParameters) {
|
|
274
|
+
if (requestParameters['taskId'] == null) {
|
|
275
|
+
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling updateTask().');
|
|
276
|
+
}
|
|
277
|
+
if (requestParameters['updateTaskRequestBody'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('updateTaskRequestBody', 'Required parameter "updateTaskRequestBody" was null or undefined when calling updateTask().');
|
|
279
|
+
}
|
|
280
|
+
const queryParameters = {};
|
|
281
|
+
const headerParameters = {};
|
|
282
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
283
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
284
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
|
|
285
|
+
}
|
|
286
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
287
|
+
// oauth required
|
|
288
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Auth", []);
|
|
289
|
+
}
|
|
290
|
+
let urlPath = `/v1/tasks/{taskId}`;
|
|
291
|
+
urlPath = urlPath.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
292
|
+
return {
|
|
293
|
+
path: urlPath,
|
|
294
|
+
method: 'PATCH',
|
|
295
|
+
headers: headerParameters,
|
|
296
|
+
query: queryParameters,
|
|
297
|
+
body: (0, index_1.UpdateTaskRequestBodyToJSON)(requestParameters['updateTaskRequestBody']),
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Updates a specific task. PATCH may carry attributes (content, context, status, meta, ttl - `route` is immutable and rejected with 400) and/or relationships: the to-one jobs/conversations/emails/talents/candidates links merge per key (a `{data: null}` link is a no-op). `relationships.author` is not a request key and never moves: a PATCH that echoes `author` (or `authors`, or `{data: null}`) back is rejected with 400 \'Task author is immutable.\', so strip it from a read-modify-write body exactly like `route`. `status` is written only when provided. Patching a row whose stored route matches `emails:*` needs the create gate\'s role set (recruiter/recops/admin/owner). TENANT-scoped, not user-scoped: within that role set any writer may patch any operator\'s task (deliberate v1 shared-inbox choice).
|
|
302
|
+
* Update Task
|
|
303
|
+
*/
|
|
304
|
+
async updateTaskRaw(requestParameters, initOverrides) {
|
|
305
|
+
const requestOptions = await this.updateTaskRequestOpts(requestParameters);
|
|
306
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
307
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TaskSchemaFromJSON)(jsonValue));
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Updates a specific task. PATCH may carry attributes (content, context, status, meta, ttl - `route` is immutable and rejected with 400) and/or relationships: the to-one jobs/conversations/emails/talents/candidates links merge per key (a `{data: null}` link is a no-op). `relationships.author` is not a request key and never moves: a PATCH that echoes `author` (or `authors`, or `{data: null}`) back is rejected with 400 \'Task author is immutable.\', so strip it from a read-modify-write body exactly like `route`. `status` is written only when provided. Patching a row whose stored route matches `emails:*` needs the create gate\'s role set (recruiter/recops/admin/owner). TENANT-scoped, not user-scoped: within that role set any writer may patch any operator\'s task (deliberate v1 shared-inbox choice).
|
|
311
|
+
* Update Task
|
|
312
|
+
*/
|
|
313
|
+
async updateTask(requestParameters, initOverrides) {
|
|
314
|
+
const response = await this.updateTaskRaw(requestParameters, initOverrides);
|
|
315
|
+
return await response.value();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
exports.TasksApi = TasksApi;
|
|
319
|
+
/**
|
|
320
|
+
* @export
|
|
321
|
+
*/
|
|
322
|
+
exports.ListTasksFilterStatusEnum = {
|
|
323
|
+
Active: 'active',
|
|
324
|
+
Sent: 'sent',
|
|
325
|
+
Scheduled: 'scheduled',
|
|
326
|
+
Pending: 'pending',
|
|
327
|
+
Draft: 'draft',
|
|
328
|
+
Archived: 'archived',
|
|
329
|
+
Failed: 'failed',
|
|
330
|
+
Done: 'done'
|
|
331
|
+
};
|
|
332
|
+
//# sourceMappingURL=TasksApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TasksApi.js","sourceRoot":"","sources":["../../src/apis/TasksApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,o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ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './StatesApi';
|
|
|
40
40
|
export * from './SubmissionsApi';
|
|
41
41
|
export * from './SurveysApi';
|
|
42
42
|
export * from './TalentsApi';
|
|
43
|
+
export * from './TasksApi';
|
|
43
44
|
export * from './TenantsApi';
|
|
44
45
|
export * from './TimelinesApi';
|
|
45
46
|
export * from './TriggersApi';
|
package/dist/apis/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CA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iB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
package/dist/apis/index.js
CHANGED
|
@@ -58,6 +58,7 @@ __exportStar(require("./StatesApi"), exports);
|
|
|
58
58
|
__exportStar(require("./SubmissionsApi"), exports);
|
|
59
59
|
__exportStar(require("./SurveysApi"), exports);
|
|
60
60
|
__exportStar(require("./TalentsApi"), exports);
|
|
61
|
+
__exportStar(require("./TasksApi"), exports);
|
|
61
62
|
__exportStar(require("./TenantsApi"), exports);
|
|
62
63
|
__exportStar(require("./TimelinesApi"), exports);
|
|
63
64
|
__exportStar(require("./TriggersApi"), exports);
|
package/dist/apis/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+CAA6B;AAC7B,2CAAyB;AACzB,kDAAgC;AAChC,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,gDAA8B;AAC9B,qD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CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,+CAA6B;AAC7B,iDAA+B;AAC/B,gDAA8B;AAC9B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartyMeet Dev03 API REST
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.1
|
|
6
|
+
* Contact: developer@smartymeet.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateTaskRequestBodyData } from './CreateTaskRequestBodyData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateTaskRequestBody
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateTaskRequestBody {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CreateTaskRequestBodyData}
|
|
22
|
+
* @memberof CreateTaskRequestBody
|
|
23
|
+
*/
|
|
24
|
+
data: CreateTaskRequestBodyData;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CreateTaskRequestBody interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCreateTaskRequestBody(value: object): value is CreateTaskRequestBody;
|
|
30
|
+
export declare function CreateTaskRequestBodyFromJSON(json: any): CreateTaskRequestBody;
|
|
31
|
+
export declare function CreateTaskRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTaskRequestBody;
|
|
32
|
+
export declare function CreateTaskRequestBodyToJSON(json: any): CreateTaskRequestBody;
|
|
33
|
+
export declare function CreateTaskRequestBodyToJSONTyped(value?: CreateTaskRequestBody | null, ignoreDiscriminator?: boolean): any;
|
|
34
|
+
//# sourceMappingURL=CreateTaskRequestBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateTaskRequestBody.d.ts","sourceRoot":"","sources":["../../src/models/CreateTaskRequestBody.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAQ7E;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,yBAAyB,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAG7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShI"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SmartyMeet Dev03 API REST
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.1
|
|
9
|
+
* Contact: developer@smartymeet.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateTaskRequestBody = instanceOfCreateTaskRequestBody;
|
|
17
|
+
exports.CreateTaskRequestBodyFromJSON = CreateTaskRequestBodyFromJSON;
|
|
18
|
+
exports.CreateTaskRequestBodyFromJSONTyped = CreateTaskRequestBodyFromJSONTyped;
|
|
19
|
+
exports.CreateTaskRequestBodyToJSON = CreateTaskRequestBodyToJSON;
|
|
20
|
+
exports.CreateTaskRequestBodyToJSONTyped = CreateTaskRequestBodyToJSONTyped;
|
|
21
|
+
const CreateTaskRequestBodyData_1 = require("./CreateTaskRequestBodyData");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateTaskRequestBody interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateTaskRequestBody(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function CreateTaskRequestBodyFromJSON(json) {
|
|
31
|
+
return CreateTaskRequestBodyFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function CreateTaskRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'data': (0, CreateTaskRequestBodyData_1.CreateTaskRequestBodyDataFromJSON)(json['data']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CreateTaskRequestBodyToJSON(json) {
|
|
42
|
+
return CreateTaskRequestBodyToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CreateTaskRequestBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'data': (0, CreateTaskRequestBodyData_1.CreateTaskRequestBodyDataToJSON)(value['data']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=CreateTaskRequestBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateTaskRequestBody.js","sourceRoot":"","sources":["../../src/models/CreateTaskRequestBody.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,0EAGC;AAED,sEAEC;AAED,gFAQC;AAED,kEAEC;AAED,4EASC;AAxDD,2EAKqC;AAgBrC;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAA,6DAAiC,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,IAAA,2DAA+B,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KACzD,CAAC;AACN,CAAC"}
|