tuix-timesheets-api 0.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.
- package/README.md +40 -0
- package/TuixTimesheetAPIClient.js +24 -0
- package/TuixTimesheetAPIClient.js.map +1 -0
- package/TuixTimesheetAPIClient.ts +28 -0
- package/core/ApiError.js +16 -0
- package/core/ApiError.js.map +1 -0
- package/core/ApiError.ts +25 -0
- package/core/ApiRequestOptions.js +3 -0
- package/core/ApiRequestOptions.js.map +1 -0
- package/core/ApiRequestOptions.ts +17 -0
- package/core/ApiResult.js +3 -0
- package/core/ApiResult.js.map +1 -0
- package/core/ApiResult.ts +11 -0
- package/core/BaseHttpRequest.js +10 -0
- package/core/BaseHttpRequest.js.map +1 -0
- package/core/BaseHttpRequest.ts +14 -0
- package/core/CancelablePromise.js +117 -0
- package/core/CancelablePromise.js.map +1 -0
- package/core/CancelablePromise.ts +131 -0
- package/core/FetchHttpRequest.js +21 -0
- package/core/FetchHttpRequest.js.map +1 -0
- package/core/FetchHttpRequest.ts +26 -0
- package/core/OpenAPI.js +15 -0
- package/core/OpenAPI.js.map +1 -0
- package/core/OpenAPI.ts +32 -0
- package/core/request.js +282 -0
- package/core/request.js.map +1 -0
- package/core/request.ts +322 -0
- package/index.js +21 -0
- package/index.js.map +1 -0
- package/index.ts +26 -0
- package/models/Client.js +3 -0
- package/models/Client.js.map +1 -0
- package/models/Client.ts +17 -0
- package/models/Company.js +3 -0
- package/models/Company.js.map +1 -0
- package/models/Company.ts +24 -0
- package/models/CreateClientDTO.js +3 -0
- package/models/CreateClientDTO.js.map +1 -0
- package/models/CreateClientDTO.ts +17 -0
- package/models/CreateCompanyDTO.js +3 -0
- package/models/CreateCompanyDTO.js.map +1 -0
- package/models/CreateCompanyDTO.ts +25 -0
- package/models/CreateSubscriptionDTO.js +3 -0
- package/models/CreateSubscriptionDTO.js.map +1 -0
- package/models/CreateSubscriptionDTO.ts +7 -0
- package/models/EmailTemplateDto.js +3 -0
- package/models/EmailTemplateDto.js.map +1 -0
- package/models/EmailTemplateDto.ts +8 -0
- package/models/JoinUserDTO.js +3 -0
- package/models/JoinUserDTO.js.map +1 -0
- package/models/JoinUserDTO.ts +7 -0
- package/models/SendEmailDto.js +3 -0
- package/models/SendEmailDto.js.map +1 -0
- package/models/SendEmailDto.ts +13 -0
- package/models/SendNewsletterDto.js +3 -0
- package/models/SendNewsletterDto.js.map +1 -0
- package/models/SendNewsletterDto.ts +7 -0
- package/models/UpdateClientDto.js +3 -0
- package/models/UpdateClientDto.js.map +1 -0
- package/models/UpdateClientDto.ts +17 -0
- package/models/UpdateCompanyDto.js +3 -0
- package/models/UpdateCompanyDto.js.map +1 -0
- package/models/UpdateCompanyDto.ts +25 -0
- package/models/User.js +3 -0
- package/models/User.js.map +1 -0
- package/models/User.ts +7 -0
- package/package.json +27 -0
- package/services/ServicesService.js +332 -0
- package/services/ServicesService.js.map +1 -0
- package/services/ServicesService.ts +545 -0
package/models/Client.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type Client = {
|
|
6
|
+
companyName: string;
|
|
7
|
+
email: string;
|
|
8
|
+
street: string;
|
|
9
|
+
postalCode: string;
|
|
10
|
+
houseNumber: string;
|
|
11
|
+
city: string;
|
|
12
|
+
country: string;
|
|
13
|
+
phoneNumber: string;
|
|
14
|
+
vatNumber: string;
|
|
15
|
+
reverseCharged: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Company.js","sourceRoot":"","sources":["Company.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type Company = {
|
|
6
|
+
companyName: string;
|
|
7
|
+
email: string;
|
|
8
|
+
street: string;
|
|
9
|
+
postalCode: string;
|
|
10
|
+
houseNumber: string;
|
|
11
|
+
city: string;
|
|
12
|
+
country: string;
|
|
13
|
+
phoneNumber: string;
|
|
14
|
+
taxNumber: string;
|
|
15
|
+
vatNumber: string;
|
|
16
|
+
iban: string;
|
|
17
|
+
bankName: string;
|
|
18
|
+
bankAddressStreet: string;
|
|
19
|
+
bankAddressHouseNumber: string;
|
|
20
|
+
bankAddressPostalCode: string;
|
|
21
|
+
bankAddressCity: string;
|
|
22
|
+
bankSwiftCode: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateClientDTO.js","sourceRoot":"","sources":["CreateClientDTO.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type CreateClientDTO = {
|
|
6
|
+
companyName: string;
|
|
7
|
+
email: string;
|
|
8
|
+
street: string;
|
|
9
|
+
postalCode: string;
|
|
10
|
+
houseNumber: string;
|
|
11
|
+
city: string;
|
|
12
|
+
country: string;
|
|
13
|
+
phoneNumber: string;
|
|
14
|
+
vatNumber: string;
|
|
15
|
+
reverseCharged: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateCompanyDTO.js","sourceRoot":"","sources":["CreateCompanyDTO.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type CreateCompanyDTO = {
|
|
6
|
+
companyName: string;
|
|
7
|
+
email: string;
|
|
8
|
+
street: string;
|
|
9
|
+
postalCode: string;
|
|
10
|
+
houseNumber: string;
|
|
11
|
+
city: string;
|
|
12
|
+
country: string;
|
|
13
|
+
phoneNumber: string;
|
|
14
|
+
vatNumber: string;
|
|
15
|
+
taxNumber: string;
|
|
16
|
+
iban: string;
|
|
17
|
+
bankName: string;
|
|
18
|
+
bankAddressStreet: string;
|
|
19
|
+
bankAddressHouseNumber: string;
|
|
20
|
+
bankAddressPostalCode: string;
|
|
21
|
+
bankAddressCity: string;
|
|
22
|
+
bankSwiftCode: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateSubscriptionDTO.js","sourceRoot":"","sources":["CreateSubscriptionDTO.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailTemplateDto.js","sourceRoot":"","sources":["EmailTemplateDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoinUserDTO.js","sourceRoot":"","sources":["JoinUserDTO.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendEmailDto.js","sourceRoot":"","sources":["SendEmailDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type SendEmailDto = {
|
|
6
|
+
from: string;
|
|
7
|
+
to: string;
|
|
8
|
+
subject: string;
|
|
9
|
+
body: string;
|
|
10
|
+
data: Record<string, any>;
|
|
11
|
+
templateUUID: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendNewsletterDto.js","sourceRoot":"","sources":["SendNewsletterDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateClientDto.js","sourceRoot":"","sources":["UpdateClientDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type UpdateClientDto = {
|
|
6
|
+
companyName?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
street?: string;
|
|
9
|
+
postalCode?: string;
|
|
10
|
+
houseNumber?: string;
|
|
11
|
+
city?: string;
|
|
12
|
+
country?: string;
|
|
13
|
+
phoneNumber?: string;
|
|
14
|
+
vatNumber?: string;
|
|
15
|
+
reverseCharged?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateCompanyDto.js","sourceRoot":"","sources":["UpdateCompanyDto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type UpdateCompanyDto = {
|
|
6
|
+
companyName?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
street?: string;
|
|
9
|
+
postalCode?: string;
|
|
10
|
+
houseNumber?: string;
|
|
11
|
+
city?: string;
|
|
12
|
+
country?: string;
|
|
13
|
+
phoneNumber?: string;
|
|
14
|
+
vatNumber?: string;
|
|
15
|
+
taxNumber?: string;
|
|
16
|
+
iban?: string;
|
|
17
|
+
bankName?: string;
|
|
18
|
+
bankAddressStreet?: string;
|
|
19
|
+
bankAddressHouseNumber?: string;
|
|
20
|
+
bankAddressPostalCode?: string;
|
|
21
|
+
bankAddressCity?: string;
|
|
22
|
+
bankSwiftCode?: string;
|
|
23
|
+
userId?: string;
|
|
24
|
+
};
|
|
25
|
+
|
package/models/User.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["User.ts"],"names":[],"mappings":""}
|
package/models/User.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tuix-timesheets-api",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "This package facilitates the client request to tuix timesheets api",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "openapi --input ./src/tuix-services-openapi.json --output ./dist --client node && npm run build:js",
|
|
8
|
+
"build:js": "tsc --build tsconfig.build.json"
|
|
9
|
+
},
|
|
10
|
+
"private": false,
|
|
11
|
+
"keywords": [
|
|
12
|
+
"tuix",
|
|
13
|
+
"timesheets",
|
|
14
|
+
"api"
|
|
15
|
+
],
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"openapi-typescript-codegen": "^0.27.0",
|
|
20
|
+
"typescript": "^5.3.3"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@types/node-fetch": "^2.6.11",
|
|
24
|
+
"form-data": "^4.0.0",
|
|
25
|
+
"node-fetch": "^3.3.2"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServicesService = void 0;
|
|
4
|
+
class ServicesService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get all clients
|
|
10
|
+
* @returns any Return a list of clients
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
getClients() {
|
|
14
|
+
return this.httpRequest.request({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: '/clients',
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a new client
|
|
21
|
+
* @param requestBody
|
|
22
|
+
* @returns any Create a client and returns the created client
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
postClients(requestBody) {
|
|
26
|
+
return this.httpRequest.request({
|
|
27
|
+
method: 'POST',
|
|
28
|
+
url: '/clients',
|
|
29
|
+
body: requestBody,
|
|
30
|
+
mediaType: 'application/json',
|
|
31
|
+
errors: {
|
|
32
|
+
400: `Return an error if there is a missing or invalid field`,
|
|
33
|
+
500: `Return an error if the server founds an error`,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Get a client by ID
|
|
39
|
+
* @param id
|
|
40
|
+
* @returns any Return a client if the ID exists
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
getClients1(id) {
|
|
44
|
+
return this.httpRequest.request({
|
|
45
|
+
method: 'GET',
|
|
46
|
+
url: '/clients/{id}',
|
|
47
|
+
path: {
|
|
48
|
+
'id': id,
|
|
49
|
+
},
|
|
50
|
+
errors: {
|
|
51
|
+
400: `Return an error if the provided ID is not UUID`,
|
|
52
|
+
404: `Return an error if the client is not found`,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Update a client by ID
|
|
58
|
+
* @param id
|
|
59
|
+
* @param requestBody
|
|
60
|
+
* @returns any Update a client and returns the updated client
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
patchClients(id, requestBody) {
|
|
64
|
+
return this.httpRequest.request({
|
|
65
|
+
method: 'PATCH',
|
|
66
|
+
url: '/clients/{id}',
|
|
67
|
+
path: {
|
|
68
|
+
'id': id,
|
|
69
|
+
},
|
|
70
|
+
body: requestBody,
|
|
71
|
+
mediaType: 'application/json',
|
|
72
|
+
errors: {
|
|
73
|
+
400: `Return an error if a field is invalid or empty`,
|
|
74
|
+
404: `Return an error if the client is not found`,
|
|
75
|
+
500: `Return an error if the server founds an error`,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Delete a client by ID
|
|
81
|
+
* @param id
|
|
82
|
+
* @returns void
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
deleteClients(id) {
|
|
86
|
+
return this.httpRequest.request({
|
|
87
|
+
method: 'DELETE',
|
|
88
|
+
url: '/clients/{id}',
|
|
89
|
+
path: {
|
|
90
|
+
'id': id,
|
|
91
|
+
},
|
|
92
|
+
errors: {
|
|
93
|
+
400: `Return an error if provided ID is not valid UUID`,
|
|
94
|
+
404: `Return an error if the client is not found`,
|
|
95
|
+
500: `Return an error if the server founds an error`,
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Get all companies
|
|
101
|
+
* @returns any Return a list of companies
|
|
102
|
+
* @throws ApiError
|
|
103
|
+
*/
|
|
104
|
+
getCompanies() {
|
|
105
|
+
return this.httpRequest.request({
|
|
106
|
+
method: 'GET',
|
|
107
|
+
url: '/companies',
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates a new company
|
|
112
|
+
* @param requestBody
|
|
113
|
+
* @returns any Create a company and returns the created company
|
|
114
|
+
* @throws ApiError
|
|
115
|
+
*/
|
|
116
|
+
postCompanies(requestBody) {
|
|
117
|
+
return this.httpRequest.request({
|
|
118
|
+
method: 'POST',
|
|
119
|
+
url: '/companies',
|
|
120
|
+
body: requestBody,
|
|
121
|
+
mediaType: 'application/json',
|
|
122
|
+
errors: {
|
|
123
|
+
400: `Return an error if there is a missing or invalid field`,
|
|
124
|
+
500: `Return an error if the server founds an error`,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Get a company by ID
|
|
130
|
+
* @returns any Return a company if the ID exists
|
|
131
|
+
* @throws ApiError
|
|
132
|
+
*/
|
|
133
|
+
getCompanies1() {
|
|
134
|
+
return this.httpRequest.request({
|
|
135
|
+
method: 'GET',
|
|
136
|
+
url: '/companies/{id}',
|
|
137
|
+
errors: {
|
|
138
|
+
400: `Return an error if provided ID is not a valid UUID`,
|
|
139
|
+
404: `Return an error if the company is not found`,
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Update a company by ID
|
|
145
|
+
* @param requestBody
|
|
146
|
+
* @returns any Update a company and returns the updated company
|
|
147
|
+
* @throws ApiError
|
|
148
|
+
*/
|
|
149
|
+
patchCompanies(requestBody) {
|
|
150
|
+
return this.httpRequest.request({
|
|
151
|
+
method: 'PATCH',
|
|
152
|
+
url: '/companies/{id}',
|
|
153
|
+
body: requestBody,
|
|
154
|
+
mediaType: 'application/json',
|
|
155
|
+
errors: {
|
|
156
|
+
400: `Return an error if provided ID is not a valid UUID`,
|
|
157
|
+
404: `Return an error if the company is not found`,
|
|
158
|
+
500: `Return an error if the server founds an error`,
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Delete a company by ID
|
|
164
|
+
* @returns void
|
|
165
|
+
* @throws ApiError
|
|
166
|
+
*/
|
|
167
|
+
deleteCompanies() {
|
|
168
|
+
return this.httpRequest.request({
|
|
169
|
+
method: 'DELETE',
|
|
170
|
+
url: '/companies/{id}',
|
|
171
|
+
errors: {
|
|
172
|
+
400: `Return an error if provided ID is not a valid UUID`,
|
|
173
|
+
404: `Return an error if the company is not found`,
|
|
174
|
+
500: `Return an error if the server founds an error`,
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Get all users from a company
|
|
180
|
+
* @returns any Return a list of users from a company
|
|
181
|
+
* @throws ApiError
|
|
182
|
+
*/
|
|
183
|
+
getCompaniesUsers() {
|
|
184
|
+
return this.httpRequest.request({
|
|
185
|
+
method: 'GET',
|
|
186
|
+
url: '/companies/{id}/users',
|
|
187
|
+
errors: {
|
|
188
|
+
400: `Return an error if provided ID is not a valid UUID`,
|
|
189
|
+
404: `Return an error if the company is not found`,
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Add a user to a company
|
|
195
|
+
* @param requestBody
|
|
196
|
+
* @returns any Add a user to a company
|
|
197
|
+
* @throws ApiError
|
|
198
|
+
*/
|
|
199
|
+
postCompaniesUsers(requestBody) {
|
|
200
|
+
return this.httpRequest.request({
|
|
201
|
+
method: 'POST',
|
|
202
|
+
url: '/companies/{id}/users',
|
|
203
|
+
body: requestBody,
|
|
204
|
+
mediaType: 'application/json',
|
|
205
|
+
errors: {
|
|
206
|
+
400: `Return an error if provided ID is not a valid UUID`,
|
|
207
|
+
404: `Return an error if the company is not found`,
|
|
208
|
+
},
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Remove a user from a company
|
|
213
|
+
* @param userId
|
|
214
|
+
* @returns void
|
|
215
|
+
* @throws ApiError
|
|
216
|
+
*/
|
|
217
|
+
deleteCompanies1(userId) {
|
|
218
|
+
return this.httpRequest.request({
|
|
219
|
+
method: 'DELETE',
|
|
220
|
+
url: '/companies/{id}/{userId}',
|
|
221
|
+
path: {
|
|
222
|
+
'userId': userId,
|
|
223
|
+
},
|
|
224
|
+
errors: {
|
|
225
|
+
400: `Return an error if provided ID is not a valid UUID`,
|
|
226
|
+
404: `Return an error if the company is not found`,
|
|
227
|
+
},
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @param requestBody
|
|
232
|
+
* @returns any
|
|
233
|
+
* @throws ApiError
|
|
234
|
+
*/
|
|
235
|
+
postEmailsSend(requestBody) {
|
|
236
|
+
return this.httpRequest.request({
|
|
237
|
+
method: 'POST',
|
|
238
|
+
url: '/emails/send',
|
|
239
|
+
body: requestBody,
|
|
240
|
+
mediaType: 'application/json',
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* @param requestBody
|
|
245
|
+
* @returns any
|
|
246
|
+
* @throws ApiError
|
|
247
|
+
*/
|
|
248
|
+
postTemplates(requestBody) {
|
|
249
|
+
return this.httpRequest.request({
|
|
250
|
+
method: 'POST',
|
|
251
|
+
url: '/templates',
|
|
252
|
+
body: requestBody,
|
|
253
|
+
mediaType: 'application/json',
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @returns any
|
|
258
|
+
* @throws ApiError
|
|
259
|
+
*/
|
|
260
|
+
getTemplates() {
|
|
261
|
+
return this.httpRequest.request({
|
|
262
|
+
method: 'GET',
|
|
263
|
+
url: '/templates',
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @param id
|
|
268
|
+
* @returns any
|
|
269
|
+
* @throws ApiError
|
|
270
|
+
*/
|
|
271
|
+
getTemplates1(id) {
|
|
272
|
+
return this.httpRequest.request({
|
|
273
|
+
method: 'GET',
|
|
274
|
+
url: '/templates/{id}',
|
|
275
|
+
path: {
|
|
276
|
+
'id': id,
|
|
277
|
+
},
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* @returns any
|
|
282
|
+
* @throws ApiError
|
|
283
|
+
*/
|
|
284
|
+
getSubscriptions() {
|
|
285
|
+
return this.httpRequest.request({
|
|
286
|
+
method: 'GET',
|
|
287
|
+
url: '/subscriptions',
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* @param requestBody
|
|
292
|
+
* @returns any
|
|
293
|
+
* @throws ApiError
|
|
294
|
+
*/
|
|
295
|
+
postSubscriptions(requestBody) {
|
|
296
|
+
return this.httpRequest.request({
|
|
297
|
+
method: 'POST',
|
|
298
|
+
url: '/subscriptions',
|
|
299
|
+
body: requestBody,
|
|
300
|
+
mediaType: 'application/json',
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* @param id
|
|
305
|
+
* @returns void
|
|
306
|
+
* @throws ApiError
|
|
307
|
+
*/
|
|
308
|
+
deleteSubscriptions(id) {
|
|
309
|
+
return this.httpRequest.request({
|
|
310
|
+
method: 'DELETE',
|
|
311
|
+
url: '/subscriptions/{id}',
|
|
312
|
+
path: {
|
|
313
|
+
'id': id,
|
|
314
|
+
},
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @param requestBody
|
|
319
|
+
* @returns any
|
|
320
|
+
* @throws ApiError
|
|
321
|
+
*/
|
|
322
|
+
postSubscriptionsNewsletter(requestBody) {
|
|
323
|
+
return this.httpRequest.request({
|
|
324
|
+
method: 'POST',
|
|
325
|
+
url: '/subscriptions/newsletter',
|
|
326
|
+
body: requestBody,
|
|
327
|
+
mediaType: 'application/json',
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
exports.ServicesService = ServicesService;
|
|
332
|
+
//# sourceMappingURL=ServicesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServicesService.js","sourceRoot":"","sources":["ServicesService.ts"],"names":[],"mappings":";;;AAMA,MAAa,eAAe;IACxB,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;OAIG;IACI,UAAU;QAYb,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,UAAU;SAClB,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,WAAW,CACd,WAWC;QAaD,OAAO,IAAI,C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