@teemill/integrations 0.12.2 → 0.12.7

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 (141) hide show
  1. package/.openapi-generator/FILES +6 -21
  2. package/README.md +3 -3
  3. package/api.ts +1649 -0
  4. package/base.ts +86 -0
  5. package/common.ts +150 -0
  6. package/configuration.ts +110 -0
  7. package/dist/api.d.ts +1100 -0
  8. package/dist/api.js +910 -0
  9. package/dist/base.d.ts +66 -0
  10. package/dist/base.js +65 -0
  11. package/dist/common.d.ts +65 -0
  12. package/dist/common.js +161 -0
  13. package/dist/configuration.d.ts +91 -0
  14. package/dist/configuration.js +43 -0
  15. package/dist/esm/api.d.ts +1100 -0
  16. package/dist/esm/api.js +903 -0
  17. package/dist/esm/base.d.ts +66 -0
  18. package/dist/esm/base.js +60 -0
  19. package/dist/esm/common.d.ts +65 -0
  20. package/dist/esm/common.js +149 -0
  21. package/dist/esm/configuration.d.ts +91 -0
  22. package/dist/esm/configuration.js +39 -0
  23. package/dist/esm/index.d.ts +13 -3
  24. package/dist/esm/index.js +13 -3
  25. package/dist/index.d.ts +13 -3
  26. package/dist/index.js +15 -5
  27. package/git_push.sh +57 -0
  28. package/index.ts +18 -0
  29. package/package.json +14 -2
  30. package/tsconfig.json +4 -6
  31. package/dist/apis/IntegrationsApi.d.ts +0 -164
  32. package/dist/apis/IntegrationsApi.js +0 -490
  33. package/dist/apis/index.d.ts +0 -1
  34. package/dist/apis/index.js +0 -19
  35. package/dist/esm/apis/IntegrationsApi.d.ts +0 -164
  36. package/dist/esm/apis/IntegrationsApi.js +0 -486
  37. package/dist/esm/apis/index.d.ts +0 -1
  38. package/dist/esm/apis/index.js +0 -3
  39. package/dist/esm/models/AdminIntegrationListing.d.ts +0 -101
  40. package/dist/esm/models/AdminIntegrationListing.js +0 -85
  41. package/dist/esm/models/AdminIntegrationListingsResponse.d.ts +0 -32
  42. package/dist/esm/models/AdminIntegrationListingsResponse.js +0 -41
  43. package/dist/esm/models/ApiError.d.ts +0 -37
  44. package/dist/esm/models/ApiError.js +0 -42
  45. package/dist/esm/models/CategoriesResponse.d.ts +0 -32
  46. package/dist/esm/models/CategoriesResponse.js +0 -44
  47. package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
  48. package/dist/esm/models/CreateAdminIntegrationListingRequest.js +0 -73
  49. package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -43
  50. package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +0 -42
  51. package/dist/esm/models/Icon.d.ts +0 -43
  52. package/dist/esm/models/Icon.js +0 -48
  53. package/dist/esm/models/Integration.d.ts +0 -45
  54. package/dist/esm/models/Integration.js +0 -41
  55. package/dist/esm/models/IntegrationCategoriesResponse.d.ts +0 -32
  56. package/dist/esm/models/IntegrationCategoriesResponse.js +0 -41
  57. package/dist/esm/models/IntegrationCategory.d.ts +0 -52
  58. package/dist/esm/models/IntegrationCategory.js +0 -56
  59. package/dist/esm/models/IntegrationInfo.d.ts +0 -49
  60. package/dist/esm/models/IntegrationInfo.js +0 -52
  61. package/dist/esm/models/IntegrationListing.d.ts +0 -94
  62. package/dist/esm/models/IntegrationListing.js +0 -80
  63. package/dist/esm/models/IntegrationListingGradient.d.ts +0 -43
  64. package/dist/esm/models/IntegrationListingGradient.js +0 -42
  65. package/dist/esm/models/IntegrationListingsResponse.d.ts +0 -32
  66. package/dist/esm/models/IntegrationListingsResponse.js +0 -41
  67. package/dist/esm/models/IntegrationProduct.d.ts +0 -61
  68. package/dist/esm/models/IntegrationProduct.js +0 -57
  69. package/dist/esm/models/IntegrationProductsResponse.d.ts +0 -32
  70. package/dist/esm/models/IntegrationProductsResponse.js +0 -41
  71. package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
  72. package/dist/esm/models/IntegrationsResponse.js +0 -41
  73. package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
  74. package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +0 -55
  75. package/dist/esm/models/index.d.ts +0 -16
  76. package/dist/esm/models/index.js +0 -18
  77. package/dist/esm/runtime.d.ts +0 -187
  78. package/dist/esm/runtime.js +0 -333
  79. package/dist/models/AdminIntegrationListing.d.ts +0 -101
  80. package/dist/models/AdminIntegrationListing.js +0 -92
  81. package/dist/models/AdminIntegrationListingsResponse.d.ts +0 -32
  82. package/dist/models/AdminIntegrationListingsResponse.js +0 -48
  83. package/dist/models/ApiError.d.ts +0 -37
  84. package/dist/models/ApiError.js +0 -49
  85. package/dist/models/CategoriesResponse.d.ts +0 -32
  86. package/dist/models/CategoriesResponse.js +0 -51
  87. package/dist/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
  88. package/dist/models/CreateAdminIntegrationListingRequest.js +0 -80
  89. package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -43
  90. package/dist/models/CreateAdminIntegrationListingRequestGradient.js +0 -49
  91. package/dist/models/Icon.d.ts +0 -43
  92. package/dist/models/Icon.js +0 -55
  93. package/dist/models/Integration.d.ts +0 -45
  94. package/dist/models/Integration.js +0 -48
  95. package/dist/models/IntegrationCategoriesResponse.d.ts +0 -32
  96. package/dist/models/IntegrationCategoriesResponse.js +0 -48
  97. package/dist/models/IntegrationCategory.d.ts +0 -52
  98. package/dist/models/IntegrationCategory.js +0 -63
  99. package/dist/models/IntegrationInfo.d.ts +0 -49
  100. package/dist/models/IntegrationInfo.js +0 -59
  101. package/dist/models/IntegrationListing.d.ts +0 -94
  102. package/dist/models/IntegrationListing.js +0 -87
  103. package/dist/models/IntegrationListingGradient.d.ts +0 -43
  104. package/dist/models/IntegrationListingGradient.js +0 -49
  105. package/dist/models/IntegrationListingsResponse.d.ts +0 -32
  106. package/dist/models/IntegrationListingsResponse.js +0 -48
  107. package/dist/models/IntegrationProduct.d.ts +0 -61
  108. package/dist/models/IntegrationProduct.js +0 -64
  109. package/dist/models/IntegrationProductsResponse.d.ts +0 -32
  110. package/dist/models/IntegrationProductsResponse.js +0 -48
  111. package/dist/models/IntegrationsResponse.d.ts +0 -32
  112. package/dist/models/IntegrationsResponse.js +0 -48
  113. package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
  114. package/dist/models/UpdateAdminIntegrationListingRequest.js +0 -62
  115. package/dist/models/index.d.ts +0 -16
  116. package/dist/models/index.js +0 -34
  117. package/dist/runtime.d.ts +0 -187
  118. package/dist/runtime.js +0 -349
  119. package/src/apis/IntegrationsApi.ts +0 -682
  120. package/src/apis/index.ts +0 -3
  121. package/src/index.ts +0 -5
  122. package/src/models/AdminIntegrationListing.ts +0 -183
  123. package/src/models/AdminIntegrationListingsResponse.ts +0 -68
  124. package/src/models/ApiError.ts +0 -69
  125. package/src/models/CategoriesResponse.ts +0 -73
  126. package/src/models/CreateAdminIntegrationListingRequest.ts +0 -140
  127. package/src/models/CreateAdminIntegrationListingRequestGradient.ts +0 -76
  128. package/src/models/Icon.ts +0 -79
  129. package/src/models/Integration.ts +0 -75
  130. package/src/models/IntegrationCategoriesResponse.ts +0 -68
  131. package/src/models/IntegrationCategory.ts +0 -91
  132. package/src/models/IntegrationInfo.ts +0 -93
  133. package/src/models/IntegrationListing.ts +0 -168
  134. package/src/models/IntegrationListingGradient.ts +0 -76
  135. package/src/models/IntegrationListingsResponse.ts +0 -68
  136. package/src/models/IntegrationProduct.ts +0 -104
  137. package/src/models/IntegrationProductsResponse.ts +0 -68
  138. package/src/models/IntegrationsResponse.ts +0 -68
  139. package/src/models/UpdateAdminIntegrationListingRequest.ts +0 -131
  140. package/src/models/index.ts +0 -18
  141. package/src/runtime.ts +0 -441
@@ -1,183 +0,0 @@
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.12.2
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
- import { mapValues } from '../runtime';
16
- import type { Integration } from './Integration';
17
- import {
18
- IntegrationFromJSON,
19
- IntegrationFromJSONTyped,
20
- IntegrationToJSON,
21
- } from './Integration';
22
- import type { IntegrationCategory } from './IntegrationCategory';
23
- import {
24
- IntegrationCategoryFromJSON,
25
- IntegrationCategoryFromJSONTyped,
26
- IntegrationCategoryToJSON,
27
- } from './IntegrationCategory';
28
- import type { IntegrationListingGradient } from './IntegrationListingGradient';
29
- import {
30
- IntegrationListingGradientFromJSON,
31
- IntegrationListingGradientFromJSONTyped,
32
- IntegrationListingGradientToJSON,
33
- } from './IntegrationListingGradient';
34
- import type { Icon } from './Icon';
35
- import {
36
- IconFromJSON,
37
- IconFromJSONTyped,
38
- IconToJSON,
39
- } from './Icon';
40
-
41
- /**
42
- *
43
- * @export
44
- * @interface AdminIntegrationListing
45
- */
46
- export interface AdminIntegrationListing {
47
- /**
48
- *
49
- * @type {number}
50
- * @memberof AdminIntegrationListing
51
- */
52
- readonly id?: number;
53
- /**
54
- * The slug of the integration listing that is used in the URL
55
- * @type {string}
56
- * @memberof AdminIntegrationListing
57
- */
58
- slug: string;
59
- /**
60
- * The code of the integration
61
- * @type {string}
62
- * @memberof AdminIntegrationListing
63
- */
64
- code: string;
65
- /**
66
- * The name of the integration listing
67
- * @type {string}
68
- * @memberof AdminIntegrationListing
69
- */
70
- name: string;
71
- /**
72
- * The description of the integration listing
73
- * @type {string}
74
- * @memberof AdminIntegrationListing
75
- */
76
- description: string;
77
- /**
78
- * The html content of the integration listing
79
- * @type {string}
80
- * @memberof AdminIntegrationListing
81
- */
82
- content: string;
83
- /**
84
- * The author of the integration listing
85
- * @type {string}
86
- * @memberof AdminIntegrationListing
87
- */
88
- author: string;
89
- /**
90
- *
91
- * @type {Icon}
92
- * @memberof AdminIntegrationListing
93
- */
94
- icon: Icon;
95
- /**
96
- *
97
- * @type {IntegrationListingGradient}
98
- * @memberof AdminIntegrationListing
99
- */
100
- gradient: IntegrationListingGradient;
101
- /**
102
- *
103
- * @type {Integration}
104
- * @memberof AdminIntegrationListing
105
- */
106
- integration: Integration;
107
- /**
108
- * The dependencies that this integration listing requires
109
- * @type {Array<string>}
110
- * @memberof AdminIntegrationListing
111
- */
112
- dependencies: Array<string>;
113
- /**
114
- * The categories that this listing belongs to
115
- * @type {Array<IntegrationCategory>}
116
- * @memberof AdminIntegrationListing
117
- */
118
- categories: Array<IntegrationCategory>;
119
- }
120
-
121
- /**
122
- * Check if a given object implements the AdminIntegrationListing interface.
123
- */
124
- export function instanceOfAdminIntegrationListing(value: object): value is AdminIntegrationListing {
125
- if (!('slug' in value) || value['slug'] === undefined) return false;
126
- if (!('code' in value) || value['code'] === undefined) return false;
127
- if (!('name' in value) || value['name'] === undefined) return false;
128
- if (!('description' in value) || value['description'] === undefined) return false;
129
- if (!('content' in value) || value['content'] === undefined) return false;
130
- if (!('author' in value) || value['author'] === undefined) return false;
131
- if (!('icon' in value) || value['icon'] === undefined) return false;
132
- if (!('gradient' in value) || value['gradient'] === undefined) return false;
133
- if (!('integration' in value) || value['integration'] === undefined) return false;
134
- if (!('dependencies' in value) || value['dependencies'] === undefined) return false;
135
- if (!('categories' in value) || value['categories'] === undefined) return false;
136
- return true;
137
- }
138
-
139
- export function AdminIntegrationListingFromJSON(json: any): AdminIntegrationListing {
140
- return AdminIntegrationListingFromJSONTyped(json, false);
141
- }
142
-
143
- export function AdminIntegrationListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminIntegrationListing {
144
- if (json == null) {
145
- return json;
146
- }
147
- return {
148
-
149
- 'id': json['id'] == null ? undefined : json['id'],
150
- 'slug': json['slug'],
151
- 'code': json['code'],
152
- 'name': json['name'],
153
- 'description': json['description'],
154
- 'content': json['content'],
155
- 'author': json['author'],
156
- 'icon': IconFromJSON(json['icon']),
157
- 'gradient': IntegrationListingGradientFromJSON(json['gradient']),
158
- 'integration': IntegrationFromJSON(json['integration']),
159
- 'dependencies': json['dependencies'],
160
- 'categories': ((json['categories'] as Array<any>).map(IntegrationCategoryFromJSON)),
161
- };
162
- }
163
-
164
- export function AdminIntegrationListingToJSON(value?: Omit<AdminIntegrationListing, 'id'> | null): any {
165
- if (value == null) {
166
- return value;
167
- }
168
- return {
169
-
170
- 'slug': value['slug'],
171
- 'code': value['code'],
172
- 'name': value['name'],
173
- 'description': value['description'],
174
- 'content': value['content'],
175
- 'author': value['author'],
176
- 'icon': IconToJSON(value['icon']),
177
- 'gradient': IntegrationListingGradientToJSON(value['gradient']),
178
- 'integration': IntegrationToJSON(value['integration']),
179
- 'dependencies': value['dependencies'],
180
- 'categories': ((value['categories'] as Array<any>).map(IntegrationCategoryToJSON)),
181
- };
182
- }
183
-
@@ -1,68 +0,0 @@
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.12.2
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
- import { mapValues } from '../runtime';
16
- import type { AdminIntegrationListing } from './AdminIntegrationListing';
17
- import {
18
- AdminIntegrationListingFromJSON,
19
- AdminIntegrationListingFromJSONTyped,
20
- AdminIntegrationListingToJSON,
21
- } from './AdminIntegrationListing';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface AdminIntegrationListingsResponse
27
- */
28
- export interface AdminIntegrationListingsResponse {
29
- /**
30
- *
31
- * @type {Array<AdminIntegrationListing>}
32
- * @memberof AdminIntegrationListingsResponse
33
- */
34
- listings: Array<AdminIntegrationListing>;
35
- }
36
-
37
- /**
38
- * Check if a given object implements the AdminIntegrationListingsResponse interface.
39
- */
40
- export function instanceOfAdminIntegrationListingsResponse(value: object): value is AdminIntegrationListingsResponse {
41
- if (!('listings' in value) || value['listings'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function AdminIntegrationListingsResponseFromJSON(json: any): AdminIntegrationListingsResponse {
46
- return AdminIntegrationListingsResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function AdminIntegrationListingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminIntegrationListingsResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'listings': ((json['listings'] as Array<any>).map(AdminIntegrationListingFromJSON)),
56
- };
57
- }
58
-
59
- export function AdminIntegrationListingsResponseToJSON(value?: AdminIntegrationListingsResponse | null): any {
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
-
65
- 'listings': ((value['listings'] as Array<any>).map(AdminIntegrationListingToJSON)),
66
- };
67
- }
68
-
@@ -1,69 +0,0 @@
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.12.2
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ApiError
20
- */
21
- export interface ApiError {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof ApiError
26
- */
27
- code?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof ApiError
32
- */
33
- message: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ApiError interface.
38
- */
39
- export function instanceOfApiError(value: object): value is ApiError {
40
- if (!('message' in value) || value['message'] === undefined) return false;
41
- return true;
42
- }
43
-
44
- export function ApiErrorFromJSON(json: any): ApiError {
45
- return ApiErrorFromJSONTyped(json, false);
46
- }
47
-
48
- export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'code': json['code'] == null ? undefined : json['code'],
55
- 'message': json['message'],
56
- };
57
- }
58
-
59
- export function ApiErrorToJSON(value?: ApiError | null): any {
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
-
65
- 'code': value['code'],
66
- 'message': value['message'],
67
- };
68
- }
69
-
@@ -1,73 +0,0 @@
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.8.2
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
- import { exists, mapValues } from '../runtime';
16
- import type { IntegrationCategory } from './IntegrationCategory';
17
- import {
18
- IntegrationCategoryFromJSON,
19
- IntegrationCategoryFromJSONTyped,
20
- IntegrationCategoryToJSON,
21
- } from './IntegrationCategory';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface CategoriesResponse
27
- */
28
- export interface CategoriesResponse {
29
- /**
30
- *
31
- * @type {Array<IntegrationCategory>}
32
- * @memberof CategoriesResponse
33
- */
34
- categories: Array<IntegrationCategory>;
35
- }
36
-
37
- /**
38
- * Check if a given object implements the CategoriesResponse interface.
39
- */
40
- export function instanceOfCategoriesResponse(value: object): boolean {
41
- let isInstance = true;
42
- isInstance = isInstance && "categories" in value;
43
-
44
- return isInstance;
45
- }
46
-
47
- export function CategoriesResponseFromJSON(json: any): CategoriesResponse {
48
- return CategoriesResponseFromJSONTyped(json, false);
49
- }
50
-
51
- export function CategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponse {
52
- if ((json === undefined) || (json === null)) {
53
- return json;
54
- }
55
- return {
56
-
57
- 'categories': ((json['categories'] as Array<any>).map(IntegrationCategoryFromJSON)),
58
- };
59
- }
60
-
61
- export function CategoriesResponseToJSON(value?: CategoriesResponse | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
67
- }
68
- return {
69
-
70
- 'categories': ((value.categories as Array<any>).map(IntegrationCategoryToJSON)),
71
- };
72
- }
73
-
@@ -1,140 +0,0 @@
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.12.2
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
- import { mapValues } from '../runtime';
16
- import type { CreateAdminIntegrationListingRequestGradient } from './CreateAdminIntegrationListingRequestGradient';
17
- import {
18
- CreateAdminIntegrationListingRequestGradientFromJSON,
19
- CreateAdminIntegrationListingRequestGradientFromJSONTyped,
20
- CreateAdminIntegrationListingRequestGradientToJSON,
21
- } from './CreateAdminIntegrationListingRequestGradient';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface CreateAdminIntegrationListingRequest
27
- */
28
- export interface CreateAdminIntegrationListingRequest {
29
- /**
30
- * The name of the integration listing
31
- * @type {string}
32
- * @memberof CreateAdminIntegrationListingRequest
33
- */
34
- name: string;
35
- /**
36
- * The description of the integration listing
37
- * @type {string}
38
- * @memberof CreateAdminIntegrationListingRequest
39
- */
40
- description: string;
41
- /**
42
- * The html content of the integration listing
43
- * @type {string}
44
- * @memberof CreateAdminIntegrationListingRequest
45
- */
46
- content: string;
47
- /**
48
- * The author of the integration listing
49
- * @type {string}
50
- * @memberof CreateAdminIntegrationListingRequest
51
- */
52
- author: string;
53
- /**
54
- * The code of the integration
55
- * @type {string}
56
- * @memberof CreateAdminIntegrationListingRequest
57
- */
58
- integration: string;
59
- /**
60
- * The slug of the integration listing that is used in the URL
61
- * @type {string}
62
- * @memberof CreateAdminIntegrationListingRequest
63
- */
64
- slug: string;
65
- /**
66
- *
67
- * @type {CreateAdminIntegrationListingRequestGradient}
68
- * @memberof CreateAdminIntegrationListingRequest
69
- */
70
- gradient: CreateAdminIntegrationListingRequestGradient;
71
- /**
72
- * The icon of the integration listing
73
- * @type {string}
74
- * @memberof CreateAdminIntegrationListingRequest
75
- */
76
- icon: string;
77
- /**
78
- * The categories that this listing belongs to
79
- * @type {Array<string>}
80
- * @memberof CreateAdminIntegrationListingRequest
81
- */
82
- categories: Array<string>;
83
- }
84
-
85
- /**
86
- * Check if a given object implements the CreateAdminIntegrationListingRequest interface.
87
- */
88
- export function instanceOfCreateAdminIntegrationListingRequest(value: object): value is CreateAdminIntegrationListingRequest {
89
- if (!('name' in value) || value['name'] === undefined) return false;
90
- if (!('description' in value) || value['description'] === undefined) return false;
91
- if (!('content' in value) || value['content'] === undefined) return false;
92
- if (!('author' in value) || value['author'] === undefined) return false;
93
- if (!('integration' in value) || value['integration'] === undefined) return false;
94
- if (!('slug' in value) || value['slug'] === undefined) return false;
95
- if (!('gradient' in value) || value['gradient'] === undefined) return false;
96
- if (!('icon' in value) || value['icon'] === undefined) return false;
97
- if (!('categories' in value) || value['categories'] === undefined) return false;
98
- return true;
99
- }
100
-
101
- export function CreateAdminIntegrationListingRequestFromJSON(json: any): CreateAdminIntegrationListingRequest {
102
- return CreateAdminIntegrationListingRequestFromJSONTyped(json, false);
103
- }
104
-
105
- export function CreateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequest {
106
- if (json == null) {
107
- return json;
108
- }
109
- return {
110
-
111
- 'name': json['name'],
112
- 'description': json['description'],
113
- 'content': json['content'],
114
- 'author': json['author'],
115
- 'integration': json['integration'],
116
- 'slug': json['slug'],
117
- 'gradient': CreateAdminIntegrationListingRequestGradientFromJSON(json['gradient']),
118
- 'icon': json['icon'],
119
- 'categories': json['categories'],
120
- };
121
- }
122
-
123
- export function CreateAdminIntegrationListingRequestToJSON(value?: CreateAdminIntegrationListingRequest | null): any {
124
- if (value == null) {
125
- return value;
126
- }
127
- return {
128
-
129
- 'name': value['name'],
130
- 'description': value['description'],
131
- 'content': value['content'],
132
- 'author': value['author'],
133
- 'integration': value['integration'],
134
- 'slug': value['slug'],
135
- 'gradient': CreateAdminIntegrationListingRequestGradientToJSON(value['gradient']),
136
- 'icon': value['icon'],
137
- 'categories': value['categories'],
138
- };
139
- }
140
-
@@ -1,76 +0,0 @@
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.12.2
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
- import { mapValues } from '../runtime';
16
- /**
17
- * The gradient that is used to display the listing
18
- * @export
19
- * @interface CreateAdminIntegrationListingRequestGradient
20
- */
21
- export interface CreateAdminIntegrationListingRequestGradient {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateAdminIntegrationListingRequestGradient
26
- */
27
- from?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof CreateAdminIntegrationListingRequestGradient
32
- */
33
- to?: string;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof CreateAdminIntegrationListingRequestGradient
38
- */
39
- angle?: number;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the CreateAdminIntegrationListingRequestGradient interface.
44
- */
45
- export function instanceOfCreateAdminIntegrationListingRequestGradient(value: object): value is CreateAdminIntegrationListingRequestGradient {
46
- return true;
47
- }
48
-
49
- export function CreateAdminIntegrationListingRequestGradientFromJSON(json: any): CreateAdminIntegrationListingRequestGradient {
50
- return CreateAdminIntegrationListingRequestGradientFromJSONTyped(json, false);
51
- }
52
-
53
- export function CreateAdminIntegrationListingRequestGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequestGradient {
54
- if (json == null) {
55
- return json;
56
- }
57
- return {
58
-
59
- 'from': json['from'] == null ? undefined : json['from'],
60
- 'to': json['to'] == null ? undefined : json['to'],
61
- 'angle': json['angle'] == null ? undefined : json['angle'],
62
- };
63
- }
64
-
65
- export function CreateAdminIntegrationListingRequestGradientToJSON(value?: CreateAdminIntegrationListingRequestGradient | null): any {
66
- if (value == null) {
67
- return value;
68
- }
69
- return {
70
-
71
- 'from': value['from'],
72
- 'to': value['to'],
73
- 'angle': value['angle'],
74
- };
75
- }
76
-
@@ -1,79 +0,0 @@
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.12.2
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface Icon
20
- */
21
- export interface Icon {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof Icon
26
- */
27
- prefix: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof Icon
32
- */
33
- iconName: string;
34
- /**
35
- *
36
- * @type {object}
37
- * @memberof Icon
38
- */
39
- data: object;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the Icon interface.
44
- */
45
- export function instanceOfIcon(value: object): value is Icon {
46
- if (!('prefix' in value) || value['prefix'] === undefined) return false;
47
- if (!('iconName' in value) || value['iconName'] === undefined) return false;
48
- if (!('data' in value) || value['data'] === undefined) return false;
49
- return true;
50
- }
51
-
52
- export function IconFromJSON(json: any): Icon {
53
- return IconFromJSONTyped(json, false);
54
- }
55
-
56
- export function IconFromJSONTyped(json: any, ignoreDiscriminator: boolean): Icon {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
-
62
- 'prefix': json['prefix'],
63
- 'iconName': json['iconName'],
64
- 'data': json['data'],
65
- };
66
- }
67
-
68
- export function IconToJSON(value?: Icon | null): any {
69
- if (value == null) {
70
- return value;
71
- }
72
- return {
73
-
74
- 'prefix': value['prefix'],
75
- 'iconName': value['iconName'],
76
- 'data': value['data'],
77
- };
78
- }
79
-