@gewis/grooster-backend-ts 1.3.1 → 1.3.4

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 (49) hide show
  1. package/dist/api.d.ts +1551 -0
  2. package/dist/api.js +2067 -0
  3. package/dist/api.js.map +1 -0
  4. package/dist/base.d.ts +66 -0
  5. package/dist/base.js +64 -0
  6. package/dist/base.js.map +1 -0
  7. package/dist/common.d.ts +65 -0
  8. package/dist/common.js +153 -0
  9. package/dist/common.js.map +1 -0
  10. package/{src/configuration.ts → dist/configuration.d.ts} +4 -28
  11. package/dist/configuration.js +51 -0
  12. package/dist/configuration.js.map +1 -0
  13. package/{src/index.ts → dist/index.d.ts} +1 -6
  14. package/dist/index.js +31 -0
  15. package/dist/index.js.map +1 -0
  16. package/package.json +5 -2
  17. package/eslint.config.mjs +0 -10
  18. package/src/.openapi-generator/FILES +0 -31
  19. package/src/.openapi-generator/VERSION +0 -1
  20. package/src/.openapi-generator-ignore +0 -23
  21. package/src/api.ts +0 -2574
  22. package/src/base.ts +0 -86
  23. package/src/common.ts +0 -150
  24. package/src/docs/AuthApi.md +0 -117
  25. package/src/docs/GormDeletedAt.md +0 -22
  26. package/src/docs/Organ.md +0 -31
  27. package/src/docs/Roster.md +0 -42
  28. package/src/docs/RosterAnswer.md +0 -34
  29. package/src/docs/RosterAnswerApi.md +0 -117
  30. package/src/docs/RosterAnswerCreateRequest.md +0 -26
  31. package/src/docs/RosterAnswerUpdateRequest.md +0 -20
  32. package/src/docs/RosterApi.md +0 -545
  33. package/src/docs/RosterCreateRequest.md +0 -26
  34. package/src/docs/RosterShift.md +0 -30
  35. package/src/docs/RosterShiftApi.md +0 -112
  36. package/src/docs/RosterShiftCreateRequest.md +0 -22
  37. package/src/docs/RosterTemplate.md +0 -32
  38. package/src/docs/RosterTemplateCreateRequest.md +0 -24
  39. package/src/docs/RosterTemplateUpdateParams.md +0 -22
  40. package/src/docs/RosterUpdateRequest.md +0 -22
  41. package/src/docs/SavedShift.md +0 -34
  42. package/src/docs/SavedShiftApi.md +0 -170
  43. package/src/docs/SavedShiftUpdateRequest.md +0 -20
  44. package/src/docs/User.md +0 -32
  45. package/src/docs/UserApi.md +0 -224
  46. package/src/docs/UserCreateRequest.md +0 -24
  47. package/src/git_push.sh +0 -57
  48. package/tsconfig.eslint.json +0 -5
  49. package/tsconfig.json +0 -23
@@ -1,22 +0,0 @@
1
- # RosterShiftCreateRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | | [optional] [default to undefined]
9
- **rosterId** | **number** | | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { RosterShiftCreateRequest } from './api';
15
-
16
- const instance: RosterShiftCreateRequest = {
17
- name,
18
- rosterId,
19
- };
20
- ```
21
-
22
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,32 +0,0 @@
1
- # RosterTemplate
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **createdAt** | **string** | | [optional] [default to undefined]
9
- **deletedAt** | [**GormDeletedAt**](GormDeletedAt.md) | | [optional] [default to undefined]
10
- **id** | **number** | | [optional] [default to undefined]
11
- **name** | **string** | | [optional] [default to undefined]
12
- **organId** | **number** | | [optional] [default to undefined]
13
- **shifts** | **Array<string>** | | [optional] [default to undefined]
14
- **updatedAt** | **string** | | [optional] [default to undefined]
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import { RosterTemplate } from './api';
20
-
21
- const instance: RosterTemplate = {
22
- createdAt,
23
- deletedAt,
24
- id,
25
- name,
26
- organId,
27
- shifts,
28
- updatedAt,
29
- };
30
- ```
31
-
32
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,24 +0,0 @@
1
- # RosterTemplateCreateRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | | [optional] [default to undefined]
9
- **organId** | **number** | | [optional] [default to undefined]
10
- **shifts** | **Array<string>** | | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { RosterTemplateCreateRequest } from './api';
16
-
17
- const instance: RosterTemplateCreateRequest = {
18
- name,
19
- organId,
20
- shifts,
21
- };
22
- ```
23
-
24
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,22 +0,0 @@
1
- # RosterTemplateUpdateParams
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | | [optional] [default to undefined]
9
- **shifts** | **Array<string>** | | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { RosterTemplateUpdateParams } from './api';
15
-
16
- const instance: RosterTemplateUpdateParams = {
17
- name,
18
- shifts,
19
- };
20
- ```
21
-
22
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,22 +0,0 @@
1
- # RosterUpdateRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **date** | **string** | | [optional] [default to undefined]
9
- **name** | **string** | | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { RosterUpdateRequest } from './api';
15
-
16
- const instance: RosterUpdateRequest = {
17
- date,
18
- name,
19
- };
20
- ```
21
-
22
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,34 +0,0 @@
1
- # SavedShift
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **createdAt** | **string** | | [optional] [default to undefined]
9
- **deletedAt** | [**GormDeletedAt**](GormDeletedAt.md) | | [optional] [default to undefined]
10
- **id** | **number** | | [optional] [default to undefined]
11
- **rosterId** | **number** | | [optional] [default to undefined]
12
- **rosterShift** | [**RosterShift**](RosterShift.md) | | [optional] [default to undefined]
13
- **rosterShiftId** | **number** | | [optional] [default to undefined]
14
- **updatedAt** | **string** | | [optional] [default to undefined]
15
- **users** | [**Array<User>**](User.md) | | [optional] [default to undefined]
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import { SavedShift } from './api';
21
-
22
- const instance: SavedShift = {
23
- createdAt,
24
- deletedAt,
25
- id,
26
- rosterId,
27
- rosterShift,
28
- rosterShiftId,
29
- updatedAt,
30
- users,
31
- };
32
- ```
33
-
34
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,170 +0,0 @@
1
- # SavedShiftApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getSavedRoster**](#getsavedroster) | **GET** /roster/saved-shift/{id} | Get all saved shifts for a specific roster|
8
- |[**rosterSave**](#rostersave) | **POST** /roster/{id}/save | Save a specific roster|
9
- |[**updateSavedShift**](#updatesavedshift) | **PATCH** /roster/saved-shift/{id} | Update a specific saved shift|
10
-
11
- # **getSavedRoster**
12
- > Array<SavedShift> getSavedRoster()
13
-
14
-
15
- ### Example
16
-
17
- ```typescript
18
- import {
19
- SavedShiftApi,
20
- Configuration
21
- } from './api';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new SavedShiftApi(configuration);
25
-
26
- let id: number; //Roster ID (default to undefined)
27
-
28
- const { status, data } = await apiInstance.getSavedRoster(
29
- id
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **id** | [**number**] | Roster ID | defaults to undefined|
38
-
39
-
40
- ### Return type
41
-
42
- **Array<SavedShift>**
43
-
44
- ### Authorization
45
-
46
- [BearerAuth](../README.md#BearerAuth)
47
-
48
- ### HTTP request headers
49
-
50
- - **Content-Type**: Not defined
51
- - **Accept**: application/json
52
-
53
-
54
- ### HTTP response details
55
- | Status code | Description | Response headers |
56
- |-------------|-------------|------------------|
57
- |**200** | Saved Shifts | - |
58
- |**400** | Invalid request | - |
59
- |**404** | SavedShift not found | - |
60
-
61
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
62
-
63
- # **rosterSave**
64
- > string rosterSave()
65
-
66
-
67
- ### Example
68
-
69
- ```typescript
70
- import {
71
- SavedShiftApi,
72
- Configuration
73
- } from './api';
74
-
75
- const configuration = new Configuration();
76
- const apiInstance = new SavedShiftApi(configuration);
77
-
78
- let id: number; //Roster ID (default to undefined)
79
-
80
- const { status, data } = await apiInstance.rosterSave(
81
- id
82
- );
83
- ```
84
-
85
- ### Parameters
86
-
87
- |Name | Type | Description | Notes|
88
- |------------- | ------------- | ------------- | -------------|
89
- | **id** | [**number**] | Roster ID | defaults to undefined|
90
-
91
-
92
- ### Return type
93
-
94
- **string**
95
-
96
- ### Authorization
97
-
98
- [BearerAuth](../README.md#BearerAuth)
99
-
100
- ### HTTP request headers
101
-
102
- - **Content-Type**: Not defined
103
- - **Accept**: application/json
104
-
105
-
106
- ### HTTP response details
107
- | Status code | Description | Response headers |
108
- |-------------|-------------|------------------|
109
- |**200** | OK | - |
110
- |**400** | Bad Request | - |
111
- |**404** | Not Found | - |
112
-
113
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
114
-
115
- # **updateSavedShift**
116
- > SavedShift updateSavedShift(updateParams)
117
-
118
-
119
- ### Example
120
-
121
- ```typescript
122
- import {
123
- SavedShiftApi,
124
- Configuration,
125
- SavedShiftUpdateRequest
126
- } from './api';
127
-
128
- const configuration = new Configuration();
129
- const apiInstance = new SavedShiftApi(configuration);
130
-
131
- let id: number; //SavedShift ID (default to undefined)
132
- let updateParams: SavedShiftUpdateRequest; //Update data
133
-
134
- const { status, data } = await apiInstance.updateSavedShift(
135
- id,
136
- updateParams
137
- );
138
- ```
139
-
140
- ### Parameters
141
-
142
- |Name | Type | Description | Notes|
143
- |------------- | ------------- | ------------- | -------------|
144
- | **updateParams** | **SavedShiftUpdateRequest**| Update data | |
145
- | **id** | [**number**] | SavedShift ID | defaults to undefined|
146
-
147
-
148
- ### Return type
149
-
150
- **SavedShift**
151
-
152
- ### Authorization
153
-
154
- [BearerAuth](../README.md#BearerAuth)
155
-
156
- ### HTTP request headers
157
-
158
- - **Content-Type**: application/json
159
- - **Accept**: application/json
160
-
161
-
162
- ### HTTP response details
163
- | Status code | Description | Response headers |
164
- |-------------|-------------|------------------|
165
- |**200** | OK | - |
166
- |**400** | Invalid request | - |
167
- |**404** | SavedShift not found | - |
168
-
169
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
170
-
@@ -1,20 +0,0 @@
1
- # SavedShiftUpdateRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **users** | **Array&lt;number&gt;** | | [optional] [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { SavedShiftUpdateRequest } from './api';
14
-
15
- const instance: SavedShiftUpdateRequest = {
16
- users,
17
- };
18
- ```
19
-
20
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/src/docs/User.md DELETED
@@ -1,32 +0,0 @@
1
- # User
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **createdAt** | **string** | | [optional] [default to undefined]
9
- **deletedAt** | [**GormDeletedAt**](GormDeletedAt.md) | | [optional] [default to undefined]
10
- **gewis_id** | **number** | | [optional] [default to undefined]
11
- **id** | **number** | | [optional] [default to undefined]
12
- **name** | **string** | | [optional] [default to undefined]
13
- **organs** | [**Array&lt;Organ&gt;**](Organ.md) | | [optional] [default to undefined]
14
- **updatedAt** | **string** | | [optional] [default to undefined]
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import { User } from './api';
20
-
21
- const instance: User = {
22
- createdAt,
23
- deletedAt,
24
- gewis_id,
25
- id,
26
- name,
27
- organs,
28
- updatedAt,
29
- };
30
- ```
31
-
32
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,224 +0,0 @@
1
- # UserApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**userCreatePost**](#usercreatepost) | **POST** /user/create | CreateRoster a new user|
8
- |[**userGet**](#userget) | **GET** /user/ | Get all users with optional filtering|
9
- |[**userIdDelete**](#useriddelete) | **DELETE** /user/{id} | DeleteRoster a user|
10
- |[**userIdGet**](#useridget) | **GET** /user/{id} | Get user by ID|
11
-
12
- # **userCreatePost**
13
- > User userCreatePost(createParams)
14
-
15
- create user
16
-
17
- ### Example
18
-
19
- ```typescript
20
- import {
21
- UserApi,
22
- Configuration,
23
- UserCreateRequest
24
- } from './api';
25
-
26
- const configuration = new Configuration();
27
- const apiInstance = new UserApi(configuration);
28
-
29
- let createParams: UserCreateRequest; //User input
30
-
31
- const { status, data } = await apiInstance.userCreatePost(
32
- createParams
33
- );
34
- ```
35
-
36
- ### Parameters
37
-
38
- |Name | Type | Description | Notes|
39
- |------------- | ------------- | ------------- | -------------|
40
- | **createParams** | **UserCreateRequest**| User input | |
41
-
42
-
43
- ### Return type
44
-
45
- **User**
46
-
47
- ### Authorization
48
-
49
- [BearerAuth](../README.md#BearerAuth)
50
-
51
- ### HTTP request headers
52
-
53
- - **Content-Type**: application/json
54
- - **Accept**: application/json
55
-
56
-
57
- ### HTTP response details
58
- | Status code | Description | Response headers |
59
- |-------------|-------------|------------------|
60
- |**200** | OK | - |
61
- |**400** | Bad Request | - |
62
-
63
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
64
-
65
- # **userGet**
66
- > Array<User> userGet()
67
-
68
- Retrieve a list of users with optional query parameter filtering
69
-
70
- ### Example
71
-
72
- ```typescript
73
- import {
74
- UserApi,
75
- Configuration
76
- } from './api';
77
-
78
- const configuration = new Configuration();
79
- const apiInstance = new UserApi(configuration);
80
-
81
- let organId: number; //Organ ID (optional) (default to undefined)
82
- let gewisId: number; //GEWIS ID (optional) (default to undefined)
83
-
84
- const { status, data } = await apiInstance.userGet(
85
- organId,
86
- gewisId
87
- );
88
- ```
89
-
90
- ### Parameters
91
-
92
- |Name | Type | Description | Notes|
93
- |------------- | ------------- | ------------- | -------------|
94
- | **organId** | [**number**] | Organ ID | (optional) defaults to undefined|
95
- | **gewisId** | [**number**] | GEWIS ID | (optional) defaults to undefined|
96
-
97
-
98
- ### Return type
99
-
100
- **Array<User>**
101
-
102
- ### Authorization
103
-
104
- [BearerAuth](../README.md#BearerAuth)
105
-
106
- ### HTTP request headers
107
-
108
- - **Content-Type**: Not defined
109
- - **Accept**: application/json
110
-
111
-
112
- ### HTTP response details
113
- | Status code | Description | Response headers |
114
- |-------------|-------------|------------------|
115
- |**200** | OK | - |
116
- |**400** | Bad Request | - |
117
-
118
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
119
-
120
- # **userIdDelete**
121
- > string userIdDelete()
122
-
123
-
124
- ### Example
125
-
126
- ```typescript
127
- import {
128
- UserApi,
129
- Configuration
130
- } from './api';
131
-
132
- const configuration = new Configuration();
133
- const apiInstance = new UserApi(configuration);
134
-
135
- let id: number; //User ID (default to undefined)
136
-
137
- const { status, data } = await apiInstance.userIdDelete(
138
- id
139
- );
140
- ```
141
-
142
- ### Parameters
143
-
144
- |Name | Type | Description | Notes|
145
- |------------- | ------------- | ------------- | -------------|
146
- | **id** | [**number**] | User ID | defaults to undefined|
147
-
148
-
149
- ### Return type
150
-
151
- **string**
152
-
153
- ### Authorization
154
-
155
- [BearerAuth](../README.md#BearerAuth)
156
-
157
- ### HTTP request headers
158
-
159
- - **Content-Type**: Not defined
160
- - **Accept**: application/json
161
-
162
-
163
- ### HTTP response details
164
- | Status code | Description | Response headers |
165
- |-------------|-------------|------------------|
166
- |**200** | OK | - |
167
- |**400** | Bad Request | - |
168
- |**404** | Not Found | - |
169
-
170
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
171
-
172
- # **userIdGet**
173
- > User userIdGet()
174
-
175
- Retrieve a specific user by their unique ID
176
-
177
- ### Example
178
-
179
- ```typescript
180
- import {
181
- UserApi,
182
- Configuration
183
- } from './api';
184
-
185
- const configuration = new Configuration();
186
- const apiInstance = new UserApi(configuration);
187
-
188
- let id: number; //User ID (default to undefined)
189
-
190
- const { status, data } = await apiInstance.userIdGet(
191
- id
192
- );
193
- ```
194
-
195
- ### Parameters
196
-
197
- |Name | Type | Description | Notes|
198
- |------------- | ------------- | ------------- | -------------|
199
- | **id** | [**number**] | User ID | defaults to undefined|
200
-
201
-
202
- ### Return type
203
-
204
- **User**
205
-
206
- ### Authorization
207
-
208
- [BearerAuth](../README.md#BearerAuth)
209
-
210
- ### HTTP request headers
211
-
212
- - **Content-Type**: Not defined
213
- - **Accept**: application/json
214
-
215
-
216
- ### HTTP response details
217
- | Status code | Description | Response headers |
218
- |-------------|-------------|------------------|
219
- |**200** | OK | - |
220
- |**400** | Bad Request | - |
221
- |**404** | Not Found | - |
222
-
223
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
224
-
@@ -1,24 +0,0 @@
1
- # UserCreateRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **gewisid** | **number** | | [optional] [default to undefined]
9
- **name** | **string** | | [optional] [default to undefined]
10
- **organs** | [**Array&lt;Organ&gt;**](Organ.md) | | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { UserCreateRequest } from './api';
16
-
17
- const instance: UserCreateRequest = {
18
- gewisid,
19
- name,
20
- organs,
21
- };
22
- ```
23
-
24
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/src/git_push.sh DELETED
@@ -1,57 +0,0 @@
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="GIT_USER_ID"
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="GIT_REPO_ID"
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'
@@ -1,5 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "include": ["**/*.ts"],
4
- "exclude": ["node_modules"]
5
- }