@erp-galoper/types 1.0.1170 → 1.0.1171

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 (2) hide show
  1. package/openapi.ts +32 -25
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -50773,15 +50773,16 @@ export interface components {
50773
50773
  CreateUpdateActivity: {
50774
50774
  /**
50775
50775
  * Id
50776
- * @description - Required when updating an existing activuty (nested) via api/v1/task/ update task
50777
- * - Must be omitted when creating a new activity (nested or separately)
50776
+ * @description - Creating a new Activity (Nested or Standalone): MUST be omitted (or set to null).
50777
+ * - Updating a Activity Nested in a Task: REQUIRED within the activity object in the request body to identify the existing activity being modified.
50778
+ * - Updating a Standalone Activity (via api/v1/task/activity/ ): Omitted in the request body (ID is derived from the URL).
50778
50779
  */
50779
50780
  id?: string | null;
50780
50781
  /**
50781
50782
  * Task Id
50782
- * @description - Required only when creating an activity separately via api/v1/task/activity create activity
50783
- * - Must be omitted when updating an existing activity via api/v1/task/activity (task cannot be replaced)
50784
- * - Must be omitted when creating/updating a task via api/v1/task/
50783
+ * @description - Creating a Activity Separately (via api/v1/task/activity/ create endpoint): REQUIRED to link the new activity to a parent task.
50784
+ * - Creating/Updating a Task with Nested Activities (via /task/ endpoint): MUST be omitted
50785
+ * - Updating an Existing Activity: MUST be omitted, as the parent task association is immutable and cannot be changed.
50785
50786
  */
50786
50787
  task_id: string | null;
50787
50788
  /** Name */
@@ -50833,15 +50834,16 @@ export interface components {
50833
50834
  CreateUpdateComment: {
50834
50835
  /**
50835
50836
  * Id
50836
- * @description - Required when updating an existing comment (nested) via api/v1/task/ update task
50837
- * - Must be omitted when creating a new comment (nested or separately)
50837
+ * @description - Creating a new Comment (Nested or Standalone): MUST be omitted (or set to null).
50838
+ * - Updating a Comment Nested in a Task: REQUIRED within the comment object in the request body to identify the existing comment being modified.
50839
+ * - Updating a Standalone Comment (via api/v1/task/comment/ ): Omitted in the request body (ID is derived from the URL).
50838
50840
  */
50839
50841
  id?: string | null;
50840
50842
  /**
50841
50843
  * Task Id
50842
- * @description - Required only when creating a comment separately via api/v1/task/comment create comment
50843
- * - Must be omitted when updating an existing comment via api/v1/task/comment (task cannot be replaced)
50844
- * - Must be omitted when creating/updating a task via api/v1/task/
50844
+ * @description - Creating a Comment Separately (via /comment/ create endpoint): REQUIRED to link the new comment to a parent task.
50845
+ * - Creating/Updating a Task with Nested Comments (via /task/ endpoint): MUST be omitted
50846
+ * - Updating an Existing Comment: MUST be omitted, as the parent task association is immutable and cannot be changed.
50845
50847
  */
50846
50848
  task_id: string | null;
50847
50849
  /**
@@ -50949,17 +50951,20 @@ export interface components {
50949
50951
  CreateUpdateTask: {
50950
50952
  /**
50951
50953
  * Id
50952
- * @description - since subtasks references this schema (List["CreateUpdateTask"]), and it should provide id for update
50953
- * - Required only when updating an existing subtask nested in a task via api/v1/task/ create task
50954
- * - Must be omitted when creating a new subtask (nested or separately)
50954
+ * @description The unique identifier (UUID) of the Task or Subtask.
50955
+ * - Creating a new Task/Subtask: MUST be omitted (or set to null).
50956
+ * - Updating a Parent Task: Omitted in the request body (ID is derived from the URL).
50957
+ * - Updating a Nested Subtask: REQUIRED within the subtask object to identify the existing subtask being modified.
50955
50958
  */
50956
50959
  id?: string | null;
50957
50960
  /**
50958
50961
  * Parenttaskid
50959
- * @description - Required if api/v1/task create task is used to create a subtask separately
50960
- * - Must be omitted when updating an existing subtask via api/v1/task/ (parent task cannot be replaced)
50961
- * - Must be omitted when creating/updating a subtask via api/v1/task/
50962
- * - If this field is filled, subtasks:List["CreateUpdateTask"] must be null (subtasks can't have subtasks)
50962
+ * @description The UUID of the parent task. This field explicitly marks the current object as a subtask.
50963
+ * - Creating a Subtask Separately (via api/v1/task/): REQUIRED to link the new subtask to a parent.
50964
+ * - Creating/Updating a Task with Nested Subtasks: MUST be omitted.
50965
+ * - Updating an Existing Subtask: MUST be omitted, as a subtask's parent cannot be replaced.
50966
+ *
50967
+ * If 'parent_task' is provided, the 'subtasks: List["CreateUpdateTask"]' field must be null or an empty list, as subtasks cannot have subtasks (max depth of 1).
50963
50968
  */
50964
50969
  parentTaskID?: string | null;
50965
50970
  /**
@@ -50988,8 +50993,11 @@ export interface components {
50988
50993
  statusId?: string | null;
50989
50994
  /**
50990
50995
  * Templatetaskid
50991
- * @description - The ID of the task template this task is based on
50992
- * - Required for creation (POST), but can be omitted for update (PUT/PATCH)
50996
+ * @description The UUID of the Task Template used as the basis for this task.
50997
+ *
50998
+ * Usage Rules:
50999
+ * 1. For Creation (POST): This field is Optional. Provide a value only if the new task is being generated from an existing template.
51000
+ * 2. For Update (PUT/PATCH): This field **MUST be omitted**. The template association is immutable and cannot be changed or replaced after the task has been created.
50993
51001
  */
50994
51002
  templateTaskId?: string | null;
50995
51003
  /**
@@ -51009,10 +51017,9 @@ export interface components {
51009
51017
  dependenciesIds?: string[];
51010
51018
  /**
51011
51019
  * Subtasks
51012
- * @description A list of subtasks for this task.
51013
- * - Optional field (nullable)
51014
- * - Only parent tasks can have subtasks
51015
- * - Subtasks cannot have their own subtasks
51020
+ * @description - A list of nested subtasks to be created or updated under this task.
51021
+ * - Subtasks cannot have their own subtasks . If a task has a value for `parent_task_id`, this `subtasks` field MUST be empty (`[]` or null).
51022
+ * - Task Type: Only top-level tasks (tasks with `parent_task_id` omitted) can contain subtasks.
51016
51023
  */
51017
51024
  subtasks?: components["schemas"]["CreateUpdateTask"][];
51018
51025
  /** Comments */
@@ -51029,11 +51036,11 @@ export interface components {
51029
51036
  repeatEndDate?: string | null;
51030
51037
  /** Repeatevery */
51031
51038
  repeatEvery?: number | null;
51032
- /** @description Required For Creation and Must be Omitted for update */
51039
+ /** @description Optional For Creation and Must be Omitted for update */
51033
51040
  documentContentType?: components["schemas"]["CombinedModelName"] | null;
51034
51041
  /**
51035
51042
  * Documentid
51036
- * @description Required For Creation and Must be Omitted for update
51043
+ * @description Optional For Creation and Must be Omitted for update
51037
51044
  */
51038
51045
  documentId?: string | null;
51039
51046
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1170",
3
+ "version": "1.0.1171",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],