@emilgroup/task-sdk 1.0.1-beta.9 → 1.0.2

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 (126) hide show
  1. package/README.md +1 -51
  2. package/index.js +99 -0
  3. package/package.json +8 -21
  4. package/scripts/deploy.js +240 -0
  5. package/.openapi-generator/FILES +0 -46
  6. package/.openapi-generator/VERSION +0 -1
  7. package/.openapi-generator-ignore +0 -23
  8. package/api/categories-api.ts +0 -665
  9. package/api/default-api.ts +0 -124
  10. package/api/hub-spot-api.ts +0 -165
  11. package/api/statuses-api.ts +0 -665
  12. package/api/tasks-api.ts +0 -693
  13. package/api.ts +0 -35
  14. package/base.ts +0 -331
  15. package/common.ts +0 -198
  16. package/configuration.ts +0 -110
  17. package/dist/api/categories-api.d.ts +0 -375
  18. package/dist/api/categories-api.js +0 -632
  19. package/dist/api/default-api.d.ts +0 -70
  20. package/dist/api/default-api.js +0 -200
  21. package/dist/api/hub-spot-api.d.ts +0 -97
  22. package/dist/api/hub-spot-api.js +0 -224
  23. package/dist/api/statuses-api.d.ts +0 -375
  24. package/dist/api/statuses-api.js +0 -632
  25. package/dist/api/tasks-api.d.ts +0 -393
  26. package/dist/api/tasks-api.js +0 -644
  27. package/dist/api.d.ts +0 -16
  28. package/dist/api.js +0 -34
  29. package/dist/base.d.ts +0 -86
  30. package/dist/base.js +0 -367
  31. package/dist/common.d.ts +0 -91
  32. package/dist/common.js +0 -276
  33. package/dist/configuration.d.ts +0 -89
  34. package/dist/configuration.js +0 -52
  35. package/dist/index.d.ts +0 -15
  36. package/dist/index.js +0 -36
  37. package/dist/models/category-class.d.ts +0 -66
  38. package/dist/models/category-class.js +0 -15
  39. package/dist/models/create-category-request-dto.d.ts +0 -30
  40. package/dist/models/create-category-request-dto.js +0 -15
  41. package/dist/models/create-category-response-class.d.ts +0 -25
  42. package/dist/models/create-category-response-class.js +0 -15
  43. package/dist/models/create-hub-spot-ticket-request-dto.d.ts +0 -31
  44. package/dist/models/create-hub-spot-ticket-request-dto.js +0 -15
  45. package/dist/models/create-hub-spot-ticket-response-class.d.ts +0 -25
  46. package/dist/models/create-hub-spot-ticket-response-class.js +0 -15
  47. package/dist/models/create-status-request-dto.d.ts +0 -30
  48. package/dist/models/create-status-request-dto.js +0 -15
  49. package/dist/models/create-status-response-class.d.ts +0 -25
  50. package/dist/models/create-status-response-class.js +0 -15
  51. package/dist/models/create-task-request-dto.d.ts +0 -72
  52. package/dist/models/create-task-request-dto.js +0 -21
  53. package/dist/models/create-task-response-class.d.ts +0 -25
  54. package/dist/models/create-task-response-class.js +0 -15
  55. package/dist/models/get-category-response-class.d.ts +0 -25
  56. package/dist/models/get-category-response-class.js +0 -15
  57. package/dist/models/get-status-response-class.d.ts +0 -25
  58. package/dist/models/get-status-response-class.js +0 -15
  59. package/dist/models/get-task-response-class.d.ts +0 -25
  60. package/dist/models/get-task-response-class.js +0 -15
  61. package/dist/models/hub-spot-ticket-class.d.ts +0 -49
  62. package/dist/models/hub-spot-ticket-class.js +0 -15
  63. package/dist/models/hub-spot-ticket-error-class.d.ts +0 -30
  64. package/dist/models/hub-spot-ticket-error-class.js +0 -15
  65. package/dist/models/hub-spot-ticket-name-value-dto.d.ts +0 -30
  66. package/dist/models/hub-spot-ticket-name-value-dto.js +0 -15
  67. package/dist/models/index.d.ts +0 -28
  68. package/dist/models/index.js +0 -44
  69. package/dist/models/inline-response200.d.ts +0 -54
  70. package/dist/models/inline-response200.js +0 -15
  71. package/dist/models/inline-response503.d.ts +0 -54
  72. package/dist/models/inline-response503.js +0 -15
  73. package/dist/models/list-categories-response-class.d.ts +0 -43
  74. package/dist/models/list-categories-response-class.js +0 -15
  75. package/dist/models/list-statuses-response-class.d.ts +0 -43
  76. package/dist/models/list-statuses-response-class.js +0 -15
  77. package/dist/models/list-tasks-response-class.d.ts +0 -43
  78. package/dist/models/list-tasks-response-class.js +0 -15
  79. package/dist/models/patch-category-request-dto.d.ts +0 -36
  80. package/dist/models/patch-category-request-dto.js +0 -15
  81. package/dist/models/patch-category-response-class.d.ts +0 -25
  82. package/dist/models/patch-category-response-class.js +0 -15
  83. package/dist/models/patch-status-request-dto.d.ts +0 -36
  84. package/dist/models/patch-status-request-dto.js +0 -15
  85. package/dist/models/patch-status-response-class.d.ts +0 -25
  86. package/dist/models/patch-status-response-class.js +0 -15
  87. package/dist/models/patch-task-request-dto.d.ts +0 -108
  88. package/dist/models/patch-task-request-dto.js +0 -15
  89. package/dist/models/patch-task-response-class.d.ts +0 -25
  90. package/dist/models/patch-task-response-class.js +0 -15
  91. package/dist/models/status-class.d.ts +0 -66
  92. package/dist/models/status-class.js +0 -15
  93. package/dist/models/task-class.d.ts +0 -116
  94. package/dist/models/task-class.js +0 -21
  95. package/git_push.sh +0 -57
  96. package/index.ts +0 -19
  97. package/models/category-class.ts +0 -72
  98. package/models/create-category-request-dto.ts +0 -36
  99. package/models/create-category-response-class.ts +0 -31
  100. package/models/create-hub-spot-ticket-request-dto.ts +0 -37
  101. package/models/create-hub-spot-ticket-response-class.ts +0 -31
  102. package/models/create-status-request-dto.ts +0 -36
  103. package/models/create-status-response-class.ts +0 -31
  104. package/models/create-task-request-dto.ts +0 -81
  105. package/models/create-task-response-class.ts +0 -31
  106. package/models/get-category-response-class.ts +0 -31
  107. package/models/get-status-response-class.ts +0 -31
  108. package/models/get-task-response-class.ts +0 -31
  109. package/models/hub-spot-ticket-class.ts +0 -55
  110. package/models/hub-spot-ticket-error-class.ts +0 -36
  111. package/models/hub-spot-ticket-name-value-dto.ts +0 -36
  112. package/models/index.ts +0 -28
  113. package/models/inline-response200.ts +0 -48
  114. package/models/inline-response503.ts +0 -48
  115. package/models/list-categories-response-class.ts +0 -49
  116. package/models/list-statuses-response-class.ts +0 -49
  117. package/models/list-tasks-response-class.ts +0 -49
  118. package/models/patch-category-request-dto.ts +0 -42
  119. package/models/patch-category-response-class.ts +0 -31
  120. package/models/patch-status-request-dto.ts +0 -42
  121. package/models/patch-status-response-class.ts +0 -31
  122. package/models/patch-task-request-dto.ts +0 -114
  123. package/models/patch-task-response-class.ts +0 -31
  124. package/models/status-class.ts +0 -72
  125. package/models/task-class.ts +0 -125
  126. package/tsconfig.json +0 -23
@@ -1,124 +0,0 @@
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
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { InlineResponse200 } from '../models';
25
- // @ts-ignore
26
- import { InlineResponse503 } from '../models';
27
- /**
28
- * DefaultApi - axios parameter creator
29
- * @export
30
- */
31
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
35
- * @summary Health Check
36
- * @param {*} [options] Override http request option.
37
- * @throws {RequiredError}
38
- */
39
- check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40
- const localVarPath = `/taskserviceervice/health`;
41
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43
- let baseOptions;
44
- let baseAccessToken;
45
- if (configuration) {
46
- baseOptions = configuration.baseOptions;
47
- baseAccessToken = configuration.accessToken;
48
- }
49
-
50
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
51
- const localVarHeaderParameter = {} as any;
52
- const localVarQueryParameter = {} as any;
53
-
54
-
55
-
56
- setSearchParams(localVarUrlObj, localVarQueryParameter);
57
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
59
-
60
- return {
61
- url: toPathString(localVarUrlObj),
62
- options: localVarRequestOptions,
63
- };
64
- },
65
- }
66
- };
67
-
68
- /**
69
- * DefaultApi - functional programming interface
70
- * @export
71
- */
72
- export const DefaultApiFp = function(configuration?: Configuration) {
73
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
74
- return {
75
- /**
76
- * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
77
- * @summary Health Check
78
- * @param {*} [options] Override http request option.
79
- * @throws {RequiredError}
80
- */
81
- async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
82
- const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
83
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
84
- },
85
- }
86
- };
87
-
88
- /**
89
- * DefaultApi - factory interface
90
- * @export
91
- */
92
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
93
- const localVarFp = DefaultApiFp(configuration)
94
- return {
95
- /**
96
- * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
97
- * @summary Health Check
98
- * @param {*} [options] Override http request option.
99
- * @throws {RequiredError}
100
- */
101
- check(options?: any): AxiosPromise<InlineResponse200> {
102
- return localVarFp.check(options).then((request) => request(axios, basePath));
103
- },
104
- };
105
- };
106
-
107
- /**
108
- * DefaultApi - object-oriented interface
109
- * @export
110
- * @class DefaultApi
111
- * @extends {BaseAPI}
112
- */
113
- export class DefaultApi extends BaseAPI {
114
- /**
115
- * Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
116
- * @summary Health Check
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- * @memberof DefaultApi
120
- */
121
- public check(options?: AxiosRequestConfig) {
122
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
123
- }
124
- }
@@ -1,165 +0,0 @@
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
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateHubSpotTicketRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateHubSpotTicketResponseClass } from '../models';
27
- /**
28
- * HubSpotApi - axios parameter creator
29
- * @export
30
- */
31
- export const HubSpotApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * This will create hub spot ticket.
35
- * @summary Create the hub spot ticket
36
- * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
37
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- createHubSpotTicket: async (createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'createHubSpotTicketRequestDto' is not null or undefined
43
- assertParamExists('createHubSpotTicket', 'createHubSpotTicketRequestDto', createHubSpotTicketRequestDto)
44
- const localVarPath = `/taskservice/v1/hub-spot-tickets`;
45
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
- let baseOptions;
48
- let baseAccessToken;
49
- if (configuration) {
50
- baseOptions = configuration.baseOptions;
51
- baseAccessToken = configuration.accessToken;
52
- }
53
-
54
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
55
- const localVarHeaderParameter = {} as any;
56
- const localVarQueryParameter = {} as any;
57
-
58
- // authentication bearer required
59
- // http bearer authentication required
60
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
-
62
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
64
- }
65
-
66
-
67
-
68
- localVarHeaderParameter['Content-Type'] = 'application/json';
69
-
70
- setSearchParams(localVarUrlObj, localVarQueryParameter);
71
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
- localVarRequestOptions.data = serializeDataIfNeeded(createHubSpotTicketRequestDto, localVarRequestOptions, configuration)
74
-
75
- return {
76
- url: toPathString(localVarUrlObj),
77
- options: localVarRequestOptions,
78
- };
79
- },
80
- }
81
- };
82
-
83
- /**
84
- * HubSpotApi - functional programming interface
85
- * @export
86
- */
87
- export const HubSpotApiFp = function(configuration?: Configuration) {
88
- const localVarAxiosParamCreator = HubSpotApiAxiosParamCreator(configuration)
89
- return {
90
- /**
91
- * This will create hub spot ticket.
92
- * @summary Create the hub spot ticket
93
- * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
94
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- */
98
- async createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateHubSpotTicketResponseClass>> {
99
- const localVarAxiosArgs = await localVarAxiosParamCreator.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options);
100
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
- },
102
- }
103
- };
104
-
105
- /**
106
- * HubSpotApi - factory interface
107
- * @export
108
- */
109
- export const HubSpotApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
110
- const localVarFp = HubSpotApiFp(configuration)
111
- return {
112
- /**
113
- * This will create hub spot ticket.
114
- * @summary Create the hub spot ticket
115
- * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
116
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: any): AxiosPromise<CreateHubSpotTicketResponseClass> {
121
- return localVarFp.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options).then((request) => request(axios, basePath));
122
- },
123
- };
124
- };
125
-
126
- /**
127
- * Request parameters for createHubSpotTicket operation in HubSpotApi.
128
- * @export
129
- * @interface HubSpotApiCreateHubSpotTicketRequest
130
- */
131
- export interface HubSpotApiCreateHubSpotTicketRequest {
132
- /**
133
- *
134
- * @type {CreateHubSpotTicketRequestDto}
135
- * @memberof HubSpotApiCreateHubSpotTicket
136
- */
137
- readonly createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto
138
-
139
- /**
140
- * Bearer Token: provided by the login endpoint under the name accessToken.
141
- * @type {string}
142
- * @memberof HubSpotApiCreateHubSpotTicket
143
- */
144
- readonly authorization?: string
145
- }
146
-
147
- /**
148
- * HubSpotApi - object-oriented interface
149
- * @export
150
- * @class HubSpotApi
151
- * @extends {BaseAPI}
152
- */
153
- export class HubSpotApi extends BaseAPI {
154
- /**
155
- * This will create hub spot ticket.
156
- * @summary Create the hub spot ticket
157
- * @param {HubSpotApiCreateHubSpotTicketRequest} requestParameters Request parameters.
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- * @memberof HubSpotApi
161
- */
162
- public createHubSpotTicket(requestParameters: HubSpotApiCreateHubSpotTicketRequest, options?: AxiosRequestConfig) {
163
- return HubSpotApiFp(this.configuration).createHubSpotTicket(requestParameters.createHubSpotTicketRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
- }
165
- }