@emilgroup/task-sdk-node 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 -84
  2. package/index.js +99 -0
  3. package/package.json +8 -24
  4. package/scripts/deploy.js +230 -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 -669
  9. package/api/default-api.ts +0 -128
  10. package/api/hub-spot-api.ts +0 -169
  11. package/api/statuses-api.ts +0 -669
  12. package/api/tasks-api.ts +0 -697
  13. package/api.ts +0 -39
  14. package/base.ts +0 -327
  15. package/common.ts +0 -199
  16. package/configuration.ts +0 -118
  17. package/dist/api/categories-api.d.ts +0 -375
  18. package/dist/api/categories-api.js +0 -636
  19. package/dist/api/default-api.d.ts +0 -70
  20. package/dist/api/default-api.js +0 -204
  21. package/dist/api/hub-spot-api.d.ts +0 -97
  22. package/dist/api/hub-spot-api.js +0 -228
  23. package/dist/api/statuses-api.d.ts +0 -375
  24. package/dist/api/statuses-api.js +0 -636
  25. package/dist/api/tasks-api.d.ts +0 -393
  26. package/dist/api/tasks-api.js +0 -648
  27. package/dist/api.d.ts +0 -16
  28. package/dist/api.js +0 -34
  29. package/dist/base.d.ts +0 -88
  30. package/dist/base.js +0 -434
  31. package/dist/common.d.ts +0 -92
  32. package/dist/common.js +0 -277
  33. package/dist/configuration.d.ts +0 -96
  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,128 +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
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- import { URL, URLSearchParams } from 'url';
30
- const FormData = require('form-data');
31
- /**
32
- * DefaultApi - axios parameter creator
33
- * @export
34
- */
35
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
36
- return {
37
- /**
38
- * 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.
39
- * @summary Health Check
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
- const localVarPath = `/taskserviceervice/health`;
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: 'GET', ...baseOptions, ...options};
55
- const localVarHeaderParameter = {} as any;
56
- const localVarQueryParameter = {} as any;
57
-
58
-
59
-
60
- setSearchParams(localVarUrlObj, localVarQueryParameter);
61
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
63
-
64
- return {
65
- url: toPathString(localVarUrlObj),
66
- options: localVarRequestOptions,
67
- };
68
- },
69
- }
70
- };
71
-
72
- /**
73
- * DefaultApi - functional programming interface
74
- * @export
75
- */
76
- export const DefaultApiFp = function(configuration?: Configuration) {
77
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
78
- return {
79
- /**
80
- * 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.
81
- * @summary Health Check
82
- * @param {*} [options] Override http request option.
83
- * @throws {RequiredError}
84
- */
85
- async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
86
- const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
87
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
88
- },
89
- }
90
- };
91
-
92
- /**
93
- * DefaultApi - factory interface
94
- * @export
95
- */
96
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
97
- const localVarFp = DefaultApiFp(configuration)
98
- return {
99
- /**
100
- * 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.
101
- * @summary Health Check
102
- * @param {*} [options] Override http request option.
103
- * @throws {RequiredError}
104
- */
105
- check(options?: any): AxiosPromise<InlineResponse200> {
106
- return localVarFp.check(options).then((request) => request(axios, basePath));
107
- },
108
- };
109
- };
110
-
111
- /**
112
- * DefaultApi - object-oriented interface
113
- * @export
114
- * @class DefaultApi
115
- * @extends {BaseAPI}
116
- */
117
- export class DefaultApi extends BaseAPI {
118
- /**
119
- * 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.
120
- * @summary Health Check
121
- * @param {*} [options] Override http request option.
122
- * @throws {RequiredError}
123
- * @memberof DefaultApi
124
- */
125
- public check(options?: AxiosRequestConfig) {
126
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
127
- }
128
- }
@@ -1,169 +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
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- import { URL, URLSearchParams } from 'url';
30
- const FormData = require('form-data');
31
- /**
32
- * HubSpotApi - axios parameter creator
33
- * @export
34
- */
35
- export const HubSpotApiAxiosParamCreator = function (configuration?: Configuration) {
36
- return {
37
- /**
38
- * This will create hub spot ticket.
39
- * @summary Create the hub spot ticket
40
- * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
41
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- createHubSpotTicket: async (createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'createHubSpotTicketRequestDto' is not null or undefined
47
- assertParamExists('createHubSpotTicket', 'createHubSpotTicketRequestDto', createHubSpotTicketRequestDto)
48
- const localVarPath = `/taskservice/v1/hub-spot-tickets`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
- let baseOptions;
52
- let baseAccessToken;
53
- if (configuration) {
54
- baseOptions = configuration.baseOptions;
55
- baseAccessToken = configuration.accessToken;
56
- }
57
-
58
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
- const localVarHeaderParameter = {} as any;
60
- const localVarQueryParameter = {} as any;
61
-
62
- // authentication bearer required
63
- // http bearer authentication required
64
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
-
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
68
- }
69
-
70
-
71
-
72
- localVarHeaderParameter['Content-Type'] = 'application/json';
73
-
74
- setSearchParams(localVarUrlObj, localVarQueryParameter);
75
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(createHubSpotTicketRequestDto, localVarRequestOptions, configuration)
78
-
79
- return {
80
- url: toPathString(localVarUrlObj),
81
- options: localVarRequestOptions,
82
- };
83
- },
84
- }
85
- };
86
-
87
- /**
88
- * HubSpotApi - functional programming interface
89
- * @export
90
- */
91
- export const HubSpotApiFp = function(configuration?: Configuration) {
92
- const localVarAxiosParamCreator = HubSpotApiAxiosParamCreator(configuration)
93
- return {
94
- /**
95
- * This will create hub spot ticket.
96
- * @summary Create the hub spot ticket
97
- * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
98
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- async createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateHubSpotTicketResponseClass>> {
103
- const localVarAxiosArgs = await localVarAxiosParamCreator.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options);
104
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
105
- },
106
- }
107
- };
108
-
109
- /**
110
- * HubSpotApi - factory interface
111
- * @export
112
- */
113
- export const HubSpotApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
114
- const localVarFp = HubSpotApiFp(configuration)
115
- return {
116
- /**
117
- * This will create hub spot ticket.
118
- * @summary Create the hub spot ticket
119
- * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
120
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
121
- * @param {*} [options] Override http request option.
122
- * @throws {RequiredError}
123
- */
124
- createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: any): AxiosPromise<CreateHubSpotTicketResponseClass> {
125
- return localVarFp.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options).then((request) => request(axios, basePath));
126
- },
127
- };
128
- };
129
-
130
- /**
131
- * Request parameters for createHubSpotTicket operation in HubSpotApi.
132
- * @export
133
- * @interface HubSpotApiCreateHubSpotTicketRequest
134
- */
135
- export interface HubSpotApiCreateHubSpotTicketRequest {
136
- /**
137
- *
138
- * @type {CreateHubSpotTicketRequestDto}
139
- * @memberof HubSpotApiCreateHubSpotTicket
140
- */
141
- readonly createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto
142
-
143
- /**
144
- * Bearer Token: provided by the login endpoint under the name accessToken.
145
- * @type {string}
146
- * @memberof HubSpotApiCreateHubSpotTicket
147
- */
148
- readonly authorization?: string
149
- }
150
-
151
- /**
152
- * HubSpotApi - object-oriented interface
153
- * @export
154
- * @class HubSpotApi
155
- * @extends {BaseAPI}
156
- */
157
- export class HubSpotApi extends BaseAPI {
158
- /**
159
- * This will create hub spot ticket.
160
- * @summary Create the hub spot ticket
161
- * @param {HubSpotApiCreateHubSpotTicketRequest} requestParameters Request parameters.
162
- * @param {*} [options] Override http request option.
163
- * @throws {RequiredError}
164
- * @memberof HubSpotApi
165
- */
166
- public createHubSpotTicket(requestParameters: HubSpotApiCreateHubSpotTicketRequest, options?: AxiosRequestConfig) {
167
- return HubSpotApiFp(this.configuration).createHubSpotTicket(requestParameters.createHubSpotTicketRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
168
- }
169
- }