@emilgroup/task-sdk-node 1.0.3 → 1.2.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 (135) hide show
  1. package/.openapi-generator/FILES +49 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +84 -1
  5. package/api/assignees-api.ts +166 -0
  6. package/api/categories-api.ts +695 -0
  7. package/api/default-api.ts +128 -0
  8. package/api/hub-spot-api.ts +169 -0
  9. package/api/statuses-api.ts +667 -0
  10. package/api/tasks-api.ts +695 -0
  11. package/api.ts +41 -0
  12. package/base.ts +327 -0
  13. package/common.ts +199 -0
  14. package/configuration.ts +118 -0
  15. package/dist/api/assignees-api.d.ts +96 -0
  16. package/dist/api/assignees-api.js +228 -0
  17. package/dist/api/categories-api.d.ts +393 -0
  18. package/dist/api/categories-api.js +646 -0
  19. package/dist/api/default-api.d.ts +70 -0
  20. package/dist/api/default-api.js +204 -0
  21. package/dist/api/hub-spot-api.d.ts +97 -0
  22. package/dist/api/hub-spot-api.js +228 -0
  23. package/dist/api/statuses-api.d.ts +375 -0
  24. package/dist/api/statuses-api.js +634 -0
  25. package/dist/api/tasks-api.d.ts +393 -0
  26. package/dist/api/tasks-api.js +646 -0
  27. package/dist/api.d.ts +17 -0
  28. package/dist/api.js +35 -0
  29. package/dist/base.d.ts +88 -0
  30. package/dist/base.js +434 -0
  31. package/dist/common.d.ts +92 -0
  32. package/dist/common.js +277 -0
  33. package/dist/configuration.d.ts +96 -0
  34. package/dist/configuration.js +52 -0
  35. package/dist/index.d.ts +15 -0
  36. package/dist/index.js +36 -0
  37. package/dist/models/assignee-class.d.ts +24 -0
  38. package/dist/models/assignee-class.js +15 -0
  39. package/dist/models/category-class.d.ts +66 -0
  40. package/dist/models/category-class.js +15 -0
  41. package/dist/models/create-category-request-dto.d.ts +30 -0
  42. package/dist/models/create-category-request-dto.js +15 -0
  43. package/dist/models/create-category-response-class.d.ts +25 -0
  44. package/dist/models/create-category-response-class.js +15 -0
  45. package/dist/models/create-hub-spot-ticket-request-dto.d.ts +31 -0
  46. package/dist/models/create-hub-spot-ticket-request-dto.js +15 -0
  47. package/dist/models/create-hub-spot-ticket-response-class.d.ts +25 -0
  48. package/dist/models/create-hub-spot-ticket-response-class.js +15 -0
  49. package/dist/models/create-status-request-dto.d.ts +36 -0
  50. package/dist/models/create-status-request-dto.js +15 -0
  51. package/dist/models/create-status-response-class.d.ts +25 -0
  52. package/dist/models/create-status-response-class.js +15 -0
  53. package/dist/models/create-task-request-dto.d.ts +91 -0
  54. package/dist/models/create-task-request-dto.js +27 -0
  55. package/dist/models/create-task-response-class.d.ts +25 -0
  56. package/dist/models/create-task-response-class.js +15 -0
  57. package/dist/models/get-category-response-class.d.ts +25 -0
  58. package/dist/models/get-category-response-class.js +15 -0
  59. package/dist/models/get-status-response-class.d.ts +25 -0
  60. package/dist/models/get-status-response-class.js +15 -0
  61. package/dist/models/get-task-response-class.d.ts +25 -0
  62. package/dist/models/get-task-response-class.js +15 -0
  63. package/dist/models/hub-spot-ticket-class.d.ts +49 -0
  64. package/dist/models/hub-spot-ticket-class.js +15 -0
  65. package/dist/models/hub-spot-ticket-error-class.d.ts +30 -0
  66. package/dist/models/hub-spot-ticket-error-class.js +15 -0
  67. package/dist/models/hub-spot-ticket-name-value-dto.d.ts +30 -0
  68. package/dist/models/hub-spot-ticket-name-value-dto.js +15 -0
  69. package/dist/models/index.d.ts +30 -0
  70. package/dist/models/index.js +46 -0
  71. package/dist/models/inline-response200.d.ts +54 -0
  72. package/dist/models/inline-response200.js +15 -0
  73. package/dist/models/inline-response503.d.ts +54 -0
  74. package/dist/models/inline-response503.js +15 -0
  75. package/dist/models/list-assignees-response-class.d.ts +43 -0
  76. package/dist/models/list-assignees-response-class.js +15 -0
  77. package/dist/models/list-categories-response-class.d.ts +43 -0
  78. package/dist/models/list-categories-response-class.js +15 -0
  79. package/dist/models/list-statuses-response-class.d.ts +43 -0
  80. package/dist/models/list-statuses-response-class.js +15 -0
  81. package/dist/models/list-tasks-response-class.d.ts +43 -0
  82. package/dist/models/list-tasks-response-class.js +15 -0
  83. package/dist/models/patch-category-request-dto.d.ts +36 -0
  84. package/dist/models/patch-category-request-dto.js +15 -0
  85. package/dist/models/patch-category-response-class.d.ts +25 -0
  86. package/dist/models/patch-category-response-class.js +15 -0
  87. package/dist/models/patch-status-request-dto.d.ts +42 -0
  88. package/dist/models/patch-status-request-dto.js +15 -0
  89. package/dist/models/patch-status-response-class.d.ts +25 -0
  90. package/dist/models/patch-status-response-class.js +15 -0
  91. package/dist/models/patch-task-request-dto.d.ts +139 -0
  92. package/dist/models/patch-task-request-dto.js +22 -0
  93. package/dist/models/patch-task-response-class.d.ts +25 -0
  94. package/dist/models/patch-task-response-class.js +15 -0
  95. package/dist/models/status-class.d.ts +72 -0
  96. package/dist/models/status-class.js +15 -0
  97. package/dist/models/task-class.d.ts +146 -0
  98. package/dist/models/task-class.js +21 -0
  99. package/git_push.sh +57 -0
  100. package/index.ts +19 -0
  101. package/models/assignee-class.ts +30 -0
  102. package/models/category-class.ts +72 -0
  103. package/models/create-category-request-dto.ts +36 -0
  104. package/models/create-category-response-class.ts +31 -0
  105. package/models/create-hub-spot-ticket-request-dto.ts +37 -0
  106. package/models/create-hub-spot-ticket-response-class.ts +31 -0
  107. package/models/create-status-request-dto.ts +42 -0
  108. package/models/create-status-response-class.ts +31 -0
  109. package/models/create-task-request-dto.ts +101 -0
  110. package/models/create-task-response-class.ts +31 -0
  111. package/models/get-category-response-class.ts +31 -0
  112. package/models/get-status-response-class.ts +31 -0
  113. package/models/get-task-response-class.ts +31 -0
  114. package/models/hub-spot-ticket-class.ts +55 -0
  115. package/models/hub-spot-ticket-error-class.ts +36 -0
  116. package/models/hub-spot-ticket-name-value-dto.ts +36 -0
  117. package/models/index.ts +30 -0
  118. package/models/inline-response200.ts +48 -0
  119. package/models/inline-response503.ts +48 -0
  120. package/models/list-assignees-response-class.ts +49 -0
  121. package/models/list-categories-response-class.ts +49 -0
  122. package/models/list-statuses-response-class.ts +49 -0
  123. package/models/list-tasks-response-class.ts +49 -0
  124. package/models/patch-category-request-dto.ts +42 -0
  125. package/models/patch-category-response-class.ts +31 -0
  126. package/models/patch-status-request-dto.ts +48 -0
  127. package/models/patch-status-response-class.ts +31 -0
  128. package/models/patch-task-request-dto.ts +148 -0
  129. package/models/patch-task-response-class.ts +31 -0
  130. package/models/status-class.ts +78 -0
  131. package/models/task-class.ts +155 -0
  132. package/package.json +24 -8
  133. package/tsconfig.json +23 -0
  134. package/index.js +0 -99
  135. package/scripts/deploy.js +0 -81
@@ -0,0 +1,139 @@
1
+ /**
2
+ * EMIL TaskService
3
+ * The EMIL Task API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PatchTaskRequestDto
16
+ */
17
+ export interface PatchTaskRequestDto {
18
+ /**
19
+ * Task code: unique identifier of the task
20
+ * @type {string}
21
+ * @memberof PatchTaskRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Entity version for optimistic locking. If provided, update fails if version does not match current version.
26
+ * @type {number}
27
+ * @memberof PatchTaskRequestDto
28
+ */
29
+ 'version'?: number;
30
+ /**
31
+ * Task subject: title of the task
32
+ * @type {string}
33
+ * @memberof PatchTaskRequestDto
34
+ */
35
+ 'subject'?: string;
36
+ /**
37
+ * Task description: detailed description of the task
38
+ * @type {string}
39
+ * @memberof PatchTaskRequestDto
40
+ */
41
+ 'description'?: string;
42
+ /**
43
+ * Task assignee: person assigned to the task
44
+ * @type {string}
45
+ * @memberof PatchTaskRequestDto
46
+ */
47
+ 'assignee'?: string;
48
+ /**
49
+ * Task category slugs (array of category slugs)
50
+ * @type {Array<string>}
51
+ * @memberof PatchTaskRequestDto
52
+ */
53
+ 'categorySlugs'?: Array<string>;
54
+ /**
55
+ * Task status slug
56
+ * @type {string}
57
+ * @memberof PatchTaskRequestDto
58
+ */
59
+ 'statusSlug'?: string;
60
+ /**
61
+ * Task priority
62
+ * @type {string}
63
+ * @memberof PatchTaskRequestDto
64
+ */
65
+ 'priority'?: string;
66
+ /**
67
+ * Task reporter: person who reported the task
68
+ * @type {string}
69
+ * @memberof PatchTaskRequestDto
70
+ */
71
+ 'reporter'?: string;
72
+ /**
73
+ * Task due date
74
+ * @type {string}
75
+ * @memberof PatchTaskRequestDto
76
+ */
77
+ 'dueDate'?: string;
78
+ /**
79
+ * Set to true to clear/remove the due date.
80
+ * @type {boolean}
81
+ * @memberof PatchTaskRequestDto
82
+ */
83
+ 'clearDueDate'?: boolean;
84
+ /**
85
+ * Set to true to clear/remove the assignee.
86
+ * @type {boolean}
87
+ * @memberof PatchTaskRequestDto
88
+ */
89
+ 'clearAssignee'?: boolean;
90
+ /**
91
+ * Set to true to clear/remove the categories.
92
+ * @type {boolean}
93
+ * @memberof PatchTaskRequestDto
94
+ */
95
+ 'clearCategories'?: boolean;
96
+ /**
97
+ * Set to true to clear/remove the status.
98
+ * @type {boolean}
99
+ * @memberof PatchTaskRequestDto
100
+ */
101
+ 'clearStatus'?: boolean;
102
+ /**
103
+ * Set to true to clear/remove the priority.
104
+ * @type {boolean}
105
+ * @memberof PatchTaskRequestDto
106
+ */
107
+ 'clearPriority'?: boolean;
108
+ /**
109
+ * Set to true to clear/remove the reporter.
110
+ * @type {boolean}
111
+ * @memberof PatchTaskRequestDto
112
+ */
113
+ 'clearReporter'?: boolean;
114
+ /**
115
+ * Connected entity type. Must be one of: LEAD, POLICY, CLAIM, PARTNER (uppercase). If provided with entityCode, updates the linked entity.
116
+ * @type {string}
117
+ * @memberof PatchTaskRequestDto
118
+ */
119
+ 'entityType'?: PatchTaskRequestDtoEntityTypeEnum;
120
+ /**
121
+ * Connected entity code. If provided with entityType, updates the linked entity. Requires entityType when set.
122
+ * @type {string}
123
+ * @memberof PatchTaskRequestDto
124
+ */
125
+ 'entityCode'?: string;
126
+ /**
127
+ * Set to true to clear/remove the linked entity (entityType and entityCode).
128
+ * @type {boolean}
129
+ * @memberof PatchTaskRequestDto
130
+ */
131
+ 'clearLinkedEntity'?: boolean;
132
+ }
133
+ export declare const PatchTaskRequestDtoEntityTypeEnum: {
134
+ readonly Lead: "LEAD";
135
+ readonly Policy: "POLICY";
136
+ readonly Claim: "CLAIM";
137
+ readonly Partner: "PARTNER";
138
+ };
139
+ export type PatchTaskRequestDtoEntityTypeEnum = typeof PatchTaskRequestDtoEntityTypeEnum[keyof typeof PatchTaskRequestDtoEntityTypeEnum];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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.PatchTaskRequestDtoEntityTypeEnum = void 0;
17
+ exports.PatchTaskRequestDtoEntityTypeEnum = {
18
+ Lead: 'LEAD',
19
+ Policy: 'POLICY',
20
+ Claim: 'CLAIM',
21
+ Partner: 'PARTNER'
22
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL TaskService
3
+ * The EMIL Task API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 { TaskClass } from './task-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PatchTaskResponseClass
17
+ */
18
+ export interface PatchTaskResponseClass {
19
+ /**
20
+ * task
21
+ * @type {TaskClass}
22
+ * @memberof PatchTaskResponseClass
23
+ */
24
+ 'task'?: TaskClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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 });
@@ -0,0 +1,72 @@
1
+ /**
2
+ * EMIL TaskService
3
+ * The EMIL Task API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface StatusClass
16
+ */
17
+ export interface StatusClass {
18
+ /**
19
+ * id
20
+ * @type {number}
21
+ * @memberof StatusClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * code
26
+ * @type {string}
27
+ * @memberof StatusClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * name
32
+ * @type {string}
33
+ * @memberof StatusClass
34
+ */
35
+ 'name': string;
36
+ /**
37
+ * createdBy
38
+ * @type {string}
39
+ * @memberof StatusClass
40
+ */
41
+ 'createdBy': string;
42
+ /**
43
+ * updatedBy
44
+ * @type {string}
45
+ * @memberof StatusClass
46
+ */
47
+ 'updatedBy': string;
48
+ /**
49
+ * createdAt
50
+ * @type {string}
51
+ * @memberof StatusClass
52
+ */
53
+ 'createdAt'?: string;
54
+ /**
55
+ * updatedAt
56
+ * @type {string}
57
+ * @memberof StatusClass
58
+ */
59
+ 'updatedAt'?: string;
60
+ /**
61
+ * slug
62
+ * @type {string}
63
+ * @memberof StatusClass
64
+ */
65
+ 'slug': string;
66
+ /**
67
+ * Sort order for workflow display (unique per tenant)
68
+ * @type {number}
69
+ * @memberof StatusClass
70
+ */
71
+ 'sortOrder': number;
72
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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 });
@@ -0,0 +1,146 @@
1
+ /**
2
+ * EMIL TaskService
3
+ * The EMIL Task API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 { CategoryClass } from './category-class';
13
+ import { StatusClass } from './status-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface TaskClass
18
+ */
19
+ export interface TaskClass {
20
+ /**
21
+ * id
22
+ * @type {number}
23
+ * @memberof TaskClass
24
+ */
25
+ 'id': number;
26
+ /**
27
+ * code
28
+ * @type {string}
29
+ * @memberof TaskClass
30
+ */
31
+ 'code': string;
32
+ /**
33
+ * subject
34
+ * @type {string}
35
+ * @memberof TaskClass
36
+ */
37
+ 'subject': string;
38
+ /**
39
+ * description
40
+ * @type {string}
41
+ * @memberof TaskClass
42
+ */
43
+ 'description': string;
44
+ /**
45
+ * assignee
46
+ * @type {string}
47
+ * @memberof TaskClass
48
+ */
49
+ 'assignee'?: string;
50
+ /**
51
+ * Category slugs
52
+ * @type {Array<string>}
53
+ * @memberof TaskClass
54
+ */
55
+ 'categorySlugs'?: Array<string>;
56
+ /**
57
+ * Status slug (always returned)
58
+ * @type {string}
59
+ * @memberof TaskClass
60
+ */
61
+ 'statusSlug': string;
62
+ /**
63
+ * categories (only populated when expand=categories)
64
+ * @type {Array<CategoryClass>}
65
+ * @memberof TaskClass
66
+ */
67
+ 'categories'?: Array<CategoryClass>;
68
+ /**
69
+ * status (only populated when expand=status)
70
+ * @type {StatusClass}
71
+ * @memberof TaskClass
72
+ */
73
+ 'status'?: StatusClass;
74
+ /**
75
+ * Task priority
76
+ * @type {string}
77
+ * @memberof TaskClass
78
+ */
79
+ 'priority': TaskClassPriorityEnum;
80
+ /**
81
+ * Task reporter: person who reported the task
82
+ * @type {string}
83
+ * @memberof TaskClass
84
+ */
85
+ 'reporter'?: string;
86
+ /**
87
+ * Task due date
88
+ * @type {string}
89
+ * @memberof TaskClass
90
+ */
91
+ 'dueDate'?: string;
92
+ /**
93
+ * Connected entity type (e.g. LEAD, POLICY, CLAIM, PARTNER)
94
+ * @type {string}
95
+ * @memberof TaskClass
96
+ */
97
+ 'entityType'?: string;
98
+ /**
99
+ * Connected entity code
100
+ * @type {string}
101
+ * @memberof TaskClass
102
+ */
103
+ 'entityCode'?: string;
104
+ /**
105
+ * Display number of the linked entity (e.g. policy number, claim number)
106
+ * @type {string}
107
+ * @memberof TaskClass
108
+ */
109
+ 'entityNumber'?: string;
110
+ /**
111
+ * createdBy
112
+ * @type {string}
113
+ * @memberof TaskClass
114
+ */
115
+ 'createdBy': string;
116
+ /**
117
+ * updatedBy
118
+ * @type {string}
119
+ * @memberof TaskClass
120
+ */
121
+ 'updatedBy': string;
122
+ /**
123
+ * version
124
+ * @type {number}
125
+ * @memberof TaskClass
126
+ */
127
+ 'version': number;
128
+ /**
129
+ * createdAt
130
+ * @type {string}
131
+ * @memberof TaskClass
132
+ */
133
+ 'createdAt'?: string;
134
+ /**
135
+ * updatedAt
136
+ * @type {string}
137
+ * @memberof TaskClass
138
+ */
139
+ 'updatedAt'?: string;
140
+ }
141
+ export declare const TaskClassPriorityEnum: {
142
+ readonly Low: "LOW";
143
+ readonly Medium: "MEDIUM";
144
+ readonly High: "HIGH";
145
+ };
146
+ export type TaskClassPriorityEnum = typeof TaskClassPriorityEnum[keyof typeof TaskClassPriorityEnum];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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.TaskClassPriorityEnum = void 0;
17
+ exports.TaskClassPriorityEnum = {
18
+ Low: 'LOW',
19
+ Medium: 'MEDIUM',
20
+ High: 'HIGH'
21
+ };
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="Emil"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="task-sdk-node"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/index.ts ADDED
@@ -0,0 +1,19 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL TaskService
5
+ * The EMIL Task API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ export { Environment, BaseAPI } from "./base";
17
+ export * from "./api";
18
+ export * from "./configuration";
19
+ export * from "./models";
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL TaskService
5
+ * The EMIL Task API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface AssigneeClass
21
+ */
22
+ export interface AssigneeClass {
23
+ /**
24
+ * Assignee code/identifier
25
+ * @type {string}
26
+ * @memberof AssigneeClass
27
+ */
28
+ 'code': string;
29
+ }
30
+
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL TaskService
5
+ * The EMIL Task API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CategoryClass
21
+ */
22
+ export interface CategoryClass {
23
+ /**
24
+ * id
25
+ * @type {number}
26
+ * @memberof CategoryClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * code
31
+ * @type {string}
32
+ * @memberof CategoryClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * name
37
+ * @type {string}
38
+ * @memberof CategoryClass
39
+ */
40
+ 'name': string;
41
+ /**
42
+ * createdBy
43
+ * @type {string}
44
+ * @memberof CategoryClass
45
+ */
46
+ 'createdBy': string;
47
+ /**
48
+ * updatedBy
49
+ * @type {string}
50
+ * @memberof CategoryClass
51
+ */
52
+ 'updatedBy': string;
53
+ /**
54
+ * createdAt
55
+ * @type {string}
56
+ * @memberof CategoryClass
57
+ */
58
+ 'createdAt'?: string;
59
+ /**
60
+ * updatedAt
61
+ * @type {string}
62
+ * @memberof CategoryClass
63
+ */
64
+ 'updatedAt'?: string;
65
+ /**
66
+ * slug
67
+ * @type {string}
68
+ * @memberof CategoryClass
69
+ */
70
+ 'slug': string;
71
+ }
72
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL TaskService
5
+ * The EMIL Task API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CreateCategoryRequestDto
21
+ */
22
+ export interface CreateCategoryRequestDto {
23
+ /**
24
+ * Category name: display name of the category
25
+ * @type {string}
26
+ * @memberof CreateCategoryRequestDto
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * Category slug: URL-friendly identifier (auto-generated from name if not provided)
31
+ * @type {string}
32
+ * @memberof CreateCategoryRequestDto
33
+ */
34
+ 'slug'?: string;
35
+ }
36
+