@teemill/integrations 0.8.4 → 0.10.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 (84) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/IntegrationsApi.d.ts +75 -2
  5. package/dist/apis/IntegrationsApi.js +231 -1
  6. package/dist/esm/apis/IntegrationsApi.d.ts +75 -2
  7. package/dist/esm/apis/IntegrationsApi.js +232 -2
  8. package/dist/esm/models/ApiError.d.ts +2 -2
  9. package/dist/esm/models/ApiError.js +2 -2
  10. package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +62 -0
  11. package/dist/esm/models/CreateAdminIntegrationListingRequest.js +61 -0
  12. package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
  13. package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +40 -0
  14. package/dist/esm/models/Integration.d.ts +10 -27
  15. package/dist/esm/models/Integration.js +10 -26
  16. package/dist/esm/models/IntegrationCategoriesResponse.d.ts +2 -2
  17. package/dist/esm/models/IntegrationCategoriesResponse.js +2 -2
  18. package/dist/esm/models/IntegrationCategory.d.ts +2 -2
  19. package/dist/esm/models/IntegrationCategory.js +4 -4
  20. package/dist/esm/models/IntegrationListing.d.ts +2 -2
  21. package/dist/esm/models/IntegrationListing.js +11 -11
  22. package/dist/esm/models/IntegrationListingGradient.d.ts +2 -2
  23. package/dist/esm/models/IntegrationListingGradient.js +1 -1
  24. package/dist/esm/models/IntegrationListingsResponse.d.ts +2 -2
  25. package/dist/esm/models/IntegrationListingsResponse.js +2 -2
  26. package/dist/esm/models/IntegrationProduct.d.ts +2 -2
  27. package/dist/esm/models/IntegrationProduct.js +6 -6
  28. package/dist/esm/models/IntegrationProductsResponse.d.ts +2 -2
  29. package/dist/esm/models/IntegrationProductsResponse.js +2 -2
  30. package/dist/esm/models/IntegrationsResponse.d.ts +2 -2
  31. package/dist/esm/models/IntegrationsResponse.js +8 -11
  32. package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +62 -0
  33. package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +49 -0
  34. package/dist/esm/models/index.d.ts +5 -0
  35. package/dist/esm/models/index.js +5 -0
  36. package/dist/esm/runtime.d.ts +1 -1
  37. package/dist/esm/runtime.js +1 -1
  38. package/dist/models/ApiError.d.ts +2 -2
  39. package/dist/models/ApiError.js +2 -2
  40. package/dist/models/CreateAdminIntegrationListingRequest.d.ts +62 -0
  41. package/dist/models/CreateAdminIntegrationListingRequest.js +68 -0
  42. package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
  43. package/dist/models/CreateAdminIntegrationListingRequestGradient.js +47 -0
  44. package/dist/models/Integration.d.ts +10 -27
  45. package/dist/models/Integration.js +10 -26
  46. package/dist/models/IntegrationCategoriesResponse.d.ts +2 -2
  47. package/dist/models/IntegrationCategoriesResponse.js +2 -2
  48. package/dist/models/IntegrationCategory.d.ts +2 -2
  49. package/dist/models/IntegrationCategory.js +4 -4
  50. package/dist/models/IntegrationListing.d.ts +2 -2
  51. package/dist/models/IntegrationListing.js +11 -11
  52. package/dist/models/IntegrationListingGradient.d.ts +2 -2
  53. package/dist/models/IntegrationListingGradient.js +1 -1
  54. package/dist/models/IntegrationListingsResponse.d.ts +2 -2
  55. package/dist/models/IntegrationListingsResponse.js +2 -2
  56. package/dist/models/IntegrationProduct.d.ts +2 -2
  57. package/dist/models/IntegrationProduct.js +6 -6
  58. package/dist/models/IntegrationProductsResponse.d.ts +2 -2
  59. package/dist/models/IntegrationProductsResponse.js +2 -2
  60. package/dist/models/IntegrationsResponse.d.ts +2 -2
  61. package/dist/models/IntegrationsResponse.js +8 -11
  62. package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +62 -0
  63. package/dist/models/UpdateAdminIntegrationListingRequest.js +56 -0
  64. package/dist/models/index.d.ts +5 -0
  65. package/dist/models/index.js +5 -0
  66. package/dist/runtime.d.ts +1 -1
  67. package/dist/runtime.js +1 -1
  68. package/package.json +2 -2
  69. package/src/apis/IntegrationsApi.ts +323 -1
  70. package/src/models/ApiError.ts +3 -3
  71. package/src/models/CreateAdminIntegrationListingRequest.ts +113 -0
  72. package/src/models/CreateAdminIntegrationListingRequestGradient.ts +68 -0
  73. package/src/models/Integration.ts +18 -58
  74. package/src/models/IntegrationCategoriesResponse.ts +3 -3
  75. package/src/models/IntegrationCategory.ts +5 -5
  76. package/src/models/IntegrationListing.ts +12 -12
  77. package/src/models/IntegrationListingGradient.ts +2 -2
  78. package/src/models/IntegrationListingsResponse.ts +3 -3
  79. package/src/models/IntegrationProduct.ts +7 -7
  80. package/src/models/IntegrationProductsResponse.ts +3 -3
  81. package/src/models/IntegrationsResponse.ts +9 -14
  82. package/src/models/UpdateAdminIntegrationListingRequest.ts +107 -0
  83. package/src/models/index.ts +5 -0
  84. package/src/runtime.ts +1 -1
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.4
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,11 +21,129 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { IntegrationCategoriesResponseFromJSON, IntegrationListingFromJSON, IntegrationListingsResponseFromJSON, IntegrationProductFromJSON, IntegrationProductsResponseFromJSON, } from '../models/index';
24
+ import { CreateAdminIntegrationListingRequestToJSON, IntegrationCategoriesResponseFromJSON, IntegrationListingFromJSON, IntegrationListingsResponseFromJSON, IntegrationProductFromJSON, IntegrationProductsResponseFromJSON, IntegrationsResponseFromJSON, UpdateAdminIntegrationListingRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class IntegrationsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Create a new integration listing
31
+ * Create integration listing
32
+ */
33
+ createAdminIntegrationListingRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters.createAdminIntegrationListingRequest === null || requestParameters.createAdminIntegrationListingRequest === undefined) {
36
+ throw new runtime.RequiredError('createAdminIntegrationListingRequest', 'Required parameter requestParameters.createAdminIntegrationListingRequest was null or undefined when calling createAdminIntegrationListing.');
37
+ }
38
+ const queryParameters = {};
39
+ const headerParameters = {};
40
+ headerParameters['Content-Type'] = 'application/json';
41
+ if (this.configuration && this.configuration.accessToken) {
42
+ // oauth required
43
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
44
+ }
45
+ if (this.configuration && this.configuration.apiKey) {
46
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
47
+ }
48
+ const response = yield this.request({
49
+ path: `/v1/integrations/admin/listings`,
50
+ method: 'POST',
51
+ headers: headerParameters,
52
+ query: queryParameters,
53
+ body: CreateAdminIntegrationListingRequestToJSON(requestParameters.createAdminIntegrationListingRequest),
54
+ }, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
56
+ });
57
+ }
58
+ /**
59
+ * Create a new integration listing
60
+ * Create integration listing
61
+ */
62
+ createAdminIntegrationListing(createAdminIntegrationListingRequest, initOverrides) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ const response = yield this.createAdminIntegrationListingRaw({
65
+ createAdminIntegrationListingRequest: createAdminIntegrationListingRequest,
66
+ }, initOverrides);
67
+ return yield response.value();
68
+ });
69
+ }
70
+ /**
71
+ * Delete an integration listing
72
+ * Delete integration listing
73
+ */
74
+ deleteAdminIntegrationListingRaw(requestParameters, initOverrides) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters.listing === null || requestParameters.listing === undefined) {
77
+ throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling deleteAdminIntegrationListing.');
78
+ }
79
+ const queryParameters = {};
80
+ const headerParameters = {};
81
+ if (this.configuration && this.configuration.accessToken) {
82
+ // oauth required
83
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
84
+ }
85
+ if (this.configuration && this.configuration.apiKey) {
86
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
87
+ }
88
+ const response = yield this.request({
89
+ path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
90
+ method: 'DELETE',
91
+ headers: headerParameters,
92
+ query: queryParameters,
93
+ }, initOverrides);
94
+ return new runtime.VoidApiResponse(response);
95
+ });
96
+ }
97
+ /**
98
+ * Delete an integration listing
99
+ * Delete integration listing
100
+ */
101
+ deleteAdminIntegrationListing(listing, initOverrides) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ yield this.deleteAdminIntegrationListingRaw({
104
+ listing: listing,
105
+ }, initOverrides);
106
+ });
107
+ }
108
+ /**
109
+ * Retrieves a specific integration listing by its slug.
110
+ * Retrieve integration listing
111
+ */
112
+ getAdminIntegrationListingRaw(requestParameters, initOverrides) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ if (requestParameters.listing === null || requestParameters.listing === undefined) {
115
+ throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling getAdminIntegrationListing.');
116
+ }
117
+ const queryParameters = {};
118
+ const headerParameters = {};
119
+ if (this.configuration && this.configuration.accessToken) {
120
+ // oauth required
121
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
122
+ }
123
+ if (this.configuration && this.configuration.apiKey) {
124
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
125
+ }
126
+ const response = yield this.request({
127
+ path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
128
+ method: 'GET',
129
+ headers: headerParameters,
130
+ query: queryParameters,
131
+ }, initOverrides);
132
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
133
+ });
134
+ }
135
+ /**
136
+ * Retrieves a specific integration listing by its slug.
137
+ * Retrieve integration listing
138
+ */
139
+ getAdminIntegrationListing(listing, initOverrides) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ const response = yield this.getAdminIntegrationListingRaw({
142
+ listing: listing,
143
+ }, initOverrides);
144
+ return yield response.value();
145
+ });
146
+ }
29
147
  /**
30
148
  * List all integration categories
31
149
  * List integration categories
@@ -253,4 +371,116 @@ export class IntegrationsApi extends runtime.BaseAPI {
253
371
  return yield response.value();
254
372
  });
255
373
  }
374
+ /**
375
+ * List all integrations
376
+ * List integrations
377
+ */
378
+ getIntegrationsRaw(initOverrides) {
379
+ return __awaiter(this, void 0, void 0, function* () {
380
+ const queryParameters = {};
381
+ const headerParameters = {};
382
+ if (this.configuration && this.configuration.accessToken) {
383
+ // oauth required
384
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
385
+ }
386
+ if (this.configuration && this.configuration.apiKey) {
387
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
388
+ }
389
+ const response = yield this.request({
390
+ path: `/v1/integrations`,
391
+ method: 'GET',
392
+ headers: headerParameters,
393
+ query: queryParameters,
394
+ }, initOverrides);
395
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
396
+ });
397
+ }
398
+ /**
399
+ * List all integrations
400
+ * List integrations
401
+ */
402
+ getIntegrations(initOverrides) {
403
+ return __awaiter(this, void 0, void 0, function* () {
404
+ const response = yield this.getIntegrationsRaw(initOverrides);
405
+ return yield response.value();
406
+ });
407
+ }
408
+ /**
409
+ * List all integration listings
410
+ * List integration listings
411
+ */
412
+ listAdminIntegrationListingsRaw(initOverrides) {
413
+ return __awaiter(this, void 0, void 0, function* () {
414
+ const queryParameters = {};
415
+ const headerParameters = {};
416
+ if (this.configuration && this.configuration.accessToken) {
417
+ // oauth required
418
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
419
+ }
420
+ if (this.configuration && this.configuration.apiKey) {
421
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
422
+ }
423
+ const response = yield this.request({
424
+ path: `/v1/integrations/admin/listings`,
425
+ method: 'GET',
426
+ headers: headerParameters,
427
+ query: queryParameters,
428
+ }, initOverrides);
429
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
430
+ });
431
+ }
432
+ /**
433
+ * List all integration listings
434
+ * List integration listings
435
+ */
436
+ listAdminIntegrationListings(initOverrides) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ const response = yield this.listAdminIntegrationListingsRaw(initOverrides);
439
+ return yield response.value();
440
+ });
441
+ }
442
+ /**
443
+ * Update an integration listing
444
+ * Update integration listing
445
+ */
446
+ updateAdminIntegrationListingRaw(requestParameters, initOverrides) {
447
+ return __awaiter(this, void 0, void 0, function* () {
448
+ if (requestParameters.listing === null || requestParameters.listing === undefined) {
449
+ throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling updateAdminIntegrationListing.');
450
+ }
451
+ if (requestParameters.updateAdminIntegrationListingRequest === null || requestParameters.updateAdminIntegrationListingRequest === undefined) {
452
+ throw new runtime.RequiredError('updateAdminIntegrationListingRequest', 'Required parameter requestParameters.updateAdminIntegrationListingRequest was null or undefined when calling updateAdminIntegrationListing.');
453
+ }
454
+ const queryParameters = {};
455
+ const headerParameters = {};
456
+ headerParameters['Content-Type'] = 'application/json';
457
+ if (this.configuration && this.configuration.accessToken) {
458
+ // oauth required
459
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
460
+ }
461
+ if (this.configuration && this.configuration.apiKey) {
462
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
463
+ }
464
+ const response = yield this.request({
465
+ path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
466
+ method: 'PATCH',
467
+ headers: headerParameters,
468
+ query: queryParameters,
469
+ body: UpdateAdminIntegrationListingRequestToJSON(requestParameters.updateAdminIntegrationListingRequest),
470
+ }, initOverrides);
471
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
472
+ });
473
+ }
474
+ /**
475
+ * Update an integration listing
476
+ * Update integration listing
477
+ */
478
+ updateAdminIntegrationListing(listing, updateAdminIntegrationListingRequest, initOverrides) {
479
+ return __awaiter(this, void 0, void 0, function* () {
480
+ const response = yield this.updateAdminIntegrationListingRaw({
481
+ listing: listing, updateAdminIntegrationListingRequest: updateAdminIntegrationListingRequest,
482
+ }, initOverrides);
483
+ return yield response.value();
484
+ });
485
+ }
256
486
  }
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,7 +31,7 @@ export interface ApiError {
31
31
  /**
32
32
  * Check if a given object implements the ApiError interface.
33
33
  */
34
- export declare function instanceOfApiError(value: object): boolean;
34
+ export declare function instanceOfApiError(value: object): value is ApiError;
35
35
  export declare function ApiErrorFromJSON(json: any): ApiError;
36
36
  export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
37
37
  export declare function ApiErrorToJSON(value?: ApiError | null): any;
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.4
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@
15
15
  * Check if a given object implements the ApiError interface.
16
16
  */
17
17
  export function instanceOfApiError(value) {
18
- if (!('message' in value))
18
+ if (!('message' in value) || value['message'] === undefined)
19
19
  return false;
20
20
  return true;
21
21
  }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Integrations API
3
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: hello@teemill.com
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 type { CreateAdminIntegrationListingRequestGradient } from './CreateAdminIntegrationListingRequestGradient';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateAdminIntegrationListingRequest
17
+ */
18
+ export interface CreateAdminIntegrationListingRequest {
19
+ /**
20
+ * The name of the integration listing
21
+ * @type {string}
22
+ * @memberof CreateAdminIntegrationListingRequest
23
+ */
24
+ name: string;
25
+ /**
26
+ * The description of the integration listing
27
+ * @type {string}
28
+ * @memberof CreateAdminIntegrationListingRequest
29
+ */
30
+ description: string;
31
+ /**
32
+ * The html content of the integration listing
33
+ * @type {string}
34
+ * @memberof CreateAdminIntegrationListingRequest
35
+ */
36
+ content: string;
37
+ /**
38
+ * The slug of the integration listing that is used in the URL
39
+ * @type {string}
40
+ * @memberof CreateAdminIntegrationListingRequest
41
+ */
42
+ slug: string;
43
+ /**
44
+ *
45
+ * @type {CreateAdminIntegrationListingRequestGradient}
46
+ * @memberof CreateAdminIntegrationListingRequest
47
+ */
48
+ gradient: CreateAdminIntegrationListingRequestGradient;
49
+ /**
50
+ * The icon of the integration listing
51
+ * @type {string}
52
+ * @memberof CreateAdminIntegrationListingRequest
53
+ */
54
+ icon: string;
55
+ }
56
+ /**
57
+ * Check if a given object implements the CreateAdminIntegrationListingRequest interface.
58
+ */
59
+ export declare function instanceOfCreateAdminIntegrationListingRequest(value: object): value is CreateAdminIntegrationListingRequest;
60
+ export declare function CreateAdminIntegrationListingRequestFromJSON(json: any): CreateAdminIntegrationListingRequest;
61
+ export declare function CreateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequest;
62
+ export declare function CreateAdminIntegrationListingRequestToJSON(value?: CreateAdminIntegrationListingRequest | null): any;
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Integrations API
5
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: hello@teemill.com
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
+ import { CreateAdminIntegrationListingRequestGradientFromJSON, CreateAdminIntegrationListingRequestGradientToJSON, } from './CreateAdminIntegrationListingRequestGradient';
15
+ /**
16
+ * Check if a given object implements the CreateAdminIntegrationListingRequest interface.
17
+ */
18
+ export function instanceOfCreateAdminIntegrationListingRequest(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('description' in value) || value['description'] === undefined)
22
+ return false;
23
+ if (!('content' in value) || value['content'] === undefined)
24
+ return false;
25
+ if (!('slug' in value) || value['slug'] === undefined)
26
+ return false;
27
+ if (!('gradient' in value) || value['gradient'] === undefined)
28
+ return false;
29
+ if (!('icon' in value) || value['icon'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function CreateAdminIntegrationListingRequestFromJSON(json) {
34
+ return CreateAdminIntegrationListingRequestFromJSONTyped(json, false);
35
+ }
36
+ export function CreateAdminIntegrationListingRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'name': json['name'],
42
+ 'description': json['description'],
43
+ 'content': json['content'],
44
+ 'slug': json['slug'],
45
+ 'gradient': CreateAdminIntegrationListingRequestGradientFromJSON(json['gradient']),
46
+ 'icon': json['icon'],
47
+ };
48
+ }
49
+ export function CreateAdminIntegrationListingRequestToJSON(value) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'name': value['name'],
55
+ 'description': value['description'],
56
+ 'content': value['content'],
57
+ 'slug': value['slug'],
58
+ 'gradient': CreateAdminIntegrationListingRequestGradientToJSON(value['gradient']),
59
+ 'icon': value['icon'],
60
+ };
61
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Integrations API
3
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: hello@teemill.com
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
+ * The gradient that is used to display the listing
14
+ * @export
15
+ * @interface CreateAdminIntegrationListingRequestGradient
16
+ */
17
+ export interface CreateAdminIntegrationListingRequestGradient {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateAdminIntegrationListingRequestGradient
22
+ */
23
+ from?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateAdminIntegrationListingRequestGradient
28
+ */
29
+ to?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreateAdminIntegrationListingRequestGradient interface.
33
+ */
34
+ export declare function instanceOfCreateAdminIntegrationListingRequestGradient(value: object): value is CreateAdminIntegrationListingRequestGradient;
35
+ export declare function CreateAdminIntegrationListingRequestGradientFromJSON(json: any): CreateAdminIntegrationListingRequestGradient;
36
+ export declare function CreateAdminIntegrationListingRequestGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequestGradient;
37
+ export declare function CreateAdminIntegrationListingRequestGradientToJSON(value?: CreateAdminIntegrationListingRequestGradient | null): any;
@@ -0,0 +1,40 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Integrations API
5
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: hello@teemill.com
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
+ * Check if a given object implements the CreateAdminIntegrationListingRequestGradient interface.
16
+ */
17
+ export function instanceOfCreateAdminIntegrationListingRequestGradient(value) {
18
+ return true;
19
+ }
20
+ export function CreateAdminIntegrationListingRequestGradientFromJSON(json) {
21
+ return CreateAdminIntegrationListingRequestGradientFromJSONTyped(json, false);
22
+ }
23
+ export function CreateAdminIntegrationListingRequestGradientFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'from': json['from'] == null ? undefined : json['from'],
29
+ 'to': json['to'] == null ? undefined : json['to'],
30
+ };
31
+ }
32
+ export function CreateAdminIntegrationListingRequestGradientToJSON(value) {
33
+ if (value == null) {
34
+ return value;
35
+ }
36
+ return {
37
+ 'from': value['from'],
38
+ 'to': value['to'],
39
+ };
40
+ }
@@ -2,14 +2,13 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.7.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { IntegrationInfo } from './IntegrationInfo';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -23,40 +22,24 @@ export interface Integration {
23
22
  */
24
23
  readonly id?: number;
25
24
  /**
26
- *
27
- * @type {string}
28
- * @memberof Integration
29
- */
30
- name: string;
31
- /**
32
- *
25
+ * The code of the integration
33
26
  * @type {string}
34
27
  * @memberof Integration
35
28
  */
36
- code: string;
29
+ code?: string;
37
30
  /**
38
- *
39
- * @type {object}
40
- * @memberof Integration
41
- */
42
- config: object;
43
- /**
44
- *
45
- * @type {IntegrationInfo}
46
- * @memberof Integration
47
- */
48
- info: IntegrationInfo;
49
- /**
50
- *
51
- * @type {Array<string>}
31
+ * The configuration of the integration
32
+ * @type {{ [key: string]: string; }}
52
33
  * @memberof Integration
53
34
  */
54
- dependencies?: Array<string>;
35
+ config?: {
36
+ [key: string]: string;
37
+ };
55
38
  }
56
39
  /**
57
40
  * Check if a given object implements the Integration interface.
58
41
  */
59
- export declare function instanceOfIntegration(value: object): boolean;
42
+ export declare function instanceOfIntegration(value: object): value is Integration;
60
43
  export declare function IntegrationFromJSON(json: any): Integration;
61
44
  export declare function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration;
62
- export declare function IntegrationToJSON(value?: Integration | null): any;
45
+ export declare function IntegrationToJSON(value?: Omit<Integration, 'id'> | null): any;
@@ -4,54 +4,38 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.7.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { exists } from '../runtime';
15
- import { IntegrationInfoFromJSON, IntegrationInfoToJSON, } from './IntegrationInfo';
16
14
  /**
17
15
  * Check if a given object implements the Integration interface.
18
16
  */
19
17
  export function instanceOfIntegration(value) {
20
- let isInstance = true;
21
- isInstance = isInstance && "name" in value;
22
- isInstance = isInstance && "code" in value;
23
- isInstance = isInstance && "config" in value;
24
- isInstance = isInstance && "info" in value;
25
- return isInstance;
18
+ return true;
26
19
  }
27
20
  export function IntegrationFromJSON(json) {
28
21
  return IntegrationFromJSONTyped(json, false);
29
22
  }
30
23
  export function IntegrationFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
24
+ if (json == null) {
32
25
  return json;
33
26
  }
34
27
  return {
35
- 'id': !exists(json, 'id') ? undefined : json['id'],
36
- 'name': json['name'],
37
- 'code': json['code'],
38
- 'config': json['config'],
39
- 'info': IntegrationInfoFromJSON(json['info']),
40
- 'dependencies': !exists(json, 'dependencies') ? undefined : json['dependencies'],
28
+ 'id': json['id'] == null ? undefined : json['id'],
29
+ 'code': json['code'] == null ? undefined : json['code'],
30
+ 'config': json['config'] == null ? undefined : json['config'],
41
31
  };
42
32
  }
43
33
  export function IntegrationToJSON(value) {
44
- if (value === undefined) {
45
- return undefined;
46
- }
47
- if (value === null) {
48
- return null;
34
+ if (value == null) {
35
+ return value;
49
36
  }
50
37
  return {
51
- 'name': value.name,
52
- 'code': value.code,
53
- 'config': value.config,
54
- 'info': IntegrationInfoToJSON(value.info),
55
- 'dependencies': value.dependencies,
38
+ 'code': value['code'],
39
+ 'config': value['config'],
56
40
  };
57
41
  }
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface IntegrationCategoriesResponse {
26
26
  /**
27
27
  * Check if a given object implements the IntegrationCategoriesResponse interface.
28
28
  */
29
- export declare function instanceOfIntegrationCategoriesResponse(value: object): boolean;
29
+ export declare function instanceOfIntegrationCategoriesResponse(value: object): value is IntegrationCategoriesResponse;
30
30
  export declare function IntegrationCategoriesResponseFromJSON(json: any): IntegrationCategoriesResponse;
31
31
  export declare function IntegrationCategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCategoriesResponse;
32
32
  export declare function IntegrationCategoriesResponseToJSON(value?: IntegrationCategoriesResponse | null): any;
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.4
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,7 +16,7 @@ import { IntegrationCategoryFromJSON, IntegrationCategoryToJSON, } from './Integ
16
16
  * Check if a given object implements the IntegrationCategoriesResponse interface.
17
17
  */
18
18
  export function instanceOfIntegrationCategoriesResponse(value) {
19
- if (!('categories' in value))
19
+ if (!('categories' in value) || value['categories'] === undefined)
20
20
  return false;
21
21
  return true;
22
22
  }