@teemill/integrations 0.9.0 → 0.11.1

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 +3 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/IntegrationsApi.d.ts +65 -2
  5. package/dist/apis/IntegrationsApi.js +197 -1
  6. package/dist/esm/apis/IntegrationsApi.d.ts +65 -2
  7. package/dist/esm/apis/IntegrationsApi.js +198 -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 +80 -0
  11. package/dist/esm/models/CreateAdminIntegrationListingRequest.js +73 -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 +2 -2
  15. package/dist/esm/models/Integration.js +1 -1
  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 +2 -2
  32. package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +80 -0
  33. package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +55 -0
  34. package/dist/esm/models/index.d.ts +3 -0
  35. package/dist/esm/models/index.js +3 -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 +80 -0
  41. package/dist/models/CreateAdminIntegrationListingRequest.js +80 -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 +2 -2
  45. package/dist/models/Integration.js +1 -1
  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 +2 -2
  62. package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +80 -0
  63. package/dist/models/UpdateAdminIntegrationListingRequest.js +62 -0
  64. package/dist/models/index.d.ts +3 -0
  65. package/dist/models/index.js +3 -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 +276 -1
  70. package/src/models/ApiError.ts +3 -3
  71. package/src/models/CreateAdminIntegrationListingRequest.ts +140 -0
  72. package/src/models/CreateAdminIntegrationListingRequestGradient.ts +68 -0
  73. package/src/models/Integration.ts +2 -2
  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 +3 -3
  82. package/src/models/UpdateAdminIntegrationListingRequest.ts +131 -0
  83. package/src/models/index.ts +3 -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.9.0
7
+ * The version of the OpenAPI document: 0.11.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,8 +37,8 @@ export interface IntegrationListingsResponse {
37
37
  /**
38
38
  * Check if a given object implements the IntegrationListingsResponse interface.
39
39
  */
40
- export function instanceOfIntegrationListingsResponse(value: object): boolean {
41
- if (!('listings' in value)) return false;
40
+ export function instanceOfIntegrationListingsResponse(value: object): value is IntegrationListingsResponse {
41
+ if (!('listings' in value) || value['listings'] === undefined) return false;
42
42
  return true;
43
43
  }
44
44
 
@@ -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.9.0
7
+ * The version of the OpenAPI document: 0.11.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -60,12 +60,12 @@ export interface IntegrationProduct {
60
60
  /**
61
61
  * Check if a given object implements the IntegrationProduct interface.
62
62
  */
63
- export function instanceOfIntegrationProduct(value: object): boolean {
64
- if (!('sku' in value)) return false;
65
- if (!('name' in value)) return false;
66
- if (!('slug' in value)) return false;
67
- if (!('description' in value)) return false;
68
- if (!('price' in value)) return false;
63
+ export function instanceOfIntegrationProduct(value: object): value is IntegrationProduct {
64
+ if (!('sku' in value) || value['sku'] === undefined) return false;
65
+ if (!('name' in value) || value['name'] === undefined) return false;
66
+ if (!('slug' in value) || value['slug'] === undefined) return false;
67
+ if (!('description' in value) || value['description'] === undefined) return false;
68
+ if (!('price' in value) || value['price'] === undefined) return false;
69
69
  return true;
70
70
  }
71
71
 
@@ -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.9.0
7
+ * The version of the OpenAPI document: 0.11.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,8 +37,8 @@ export interface IntegrationProductsResponse {
37
37
  /**
38
38
  * Check if a given object implements the IntegrationProductsResponse interface.
39
39
  */
40
- export function instanceOfIntegrationProductsResponse(value: object): boolean {
41
- if (!('products' in value)) return false;
40
+ export function instanceOfIntegrationProductsResponse(value: object): value is IntegrationProductsResponse {
41
+ if (!('products' in value) || value['products'] === undefined) return false;
42
42
  return true;
43
43
  }
44
44
 
@@ -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.9.0
7
+ * The version of the OpenAPI document: 0.11.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,8 +37,8 @@ export interface IntegrationsResponse {
37
37
  /**
38
38
  * Check if a given object implements the IntegrationsResponse interface.
39
39
  */
40
- export function instanceOfIntegrationsResponse(value: object): boolean {
41
- if (!('integrations' in value)) return false;
40
+ export function instanceOfIntegrationsResponse(value: object): value is IntegrationsResponse {
41
+ if (!('integrations' in value) || value['integrations'] === undefined) return false;
42
42
  return true;
43
43
  }
44
44
 
@@ -0,0 +1,131 @@
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.11.1
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 UpdateAdminIntegrationListingRequest
27
+ */
28
+ export interface UpdateAdminIntegrationListingRequest {
29
+ /**
30
+ * The name of the integration listing
31
+ * @type {string}
32
+ * @memberof UpdateAdminIntegrationListingRequest
33
+ */
34
+ name?: string;
35
+ /**
36
+ * The description of the integration listing
37
+ * @type {string}
38
+ * @memberof UpdateAdminIntegrationListingRequest
39
+ */
40
+ description?: string;
41
+ /**
42
+ * The html content of the integration listing
43
+ * @type {string}
44
+ * @memberof UpdateAdminIntegrationListingRequest
45
+ */
46
+ content?: string;
47
+ /**
48
+ * The code of the integration
49
+ * @type {string}
50
+ * @memberof UpdateAdminIntegrationListingRequest
51
+ */
52
+ integration?: string;
53
+ /**
54
+ * The author of the integration listing
55
+ * @type {string}
56
+ * @memberof UpdateAdminIntegrationListingRequest
57
+ */
58
+ author?: string;
59
+ /**
60
+ * The slug of the integration listing that is used in the URL
61
+ * @type {string}
62
+ * @memberof UpdateAdminIntegrationListingRequest
63
+ */
64
+ slug?: string;
65
+ /**
66
+ *
67
+ * @type {CreateAdminIntegrationListingRequestGradient}
68
+ * @memberof UpdateAdminIntegrationListingRequest
69
+ */
70
+ gradient?: CreateAdminIntegrationListingRequestGradient;
71
+ /**
72
+ * The icon of the integration listing
73
+ * @type {string}
74
+ * @memberof UpdateAdminIntegrationListingRequest
75
+ */
76
+ icon?: string;
77
+ /**
78
+ * The categories that this listing belongs to
79
+ * @type {Array<string>}
80
+ * @memberof UpdateAdminIntegrationListingRequest
81
+ */
82
+ categories?: Array<string>;
83
+ }
84
+
85
+ /**
86
+ * Check if a given object implements the UpdateAdminIntegrationListingRequest interface.
87
+ */
88
+ export function instanceOfUpdateAdminIntegrationListingRequest(value: object): value is UpdateAdminIntegrationListingRequest {
89
+ return true;
90
+ }
91
+
92
+ export function UpdateAdminIntegrationListingRequestFromJSON(json: any): UpdateAdminIntegrationListingRequest {
93
+ return UpdateAdminIntegrationListingRequestFromJSONTyped(json, false);
94
+ }
95
+
96
+ export function UpdateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminIntegrationListingRequest {
97
+ if (json == null) {
98
+ return json;
99
+ }
100
+ return {
101
+
102
+ 'name': json['name'] == null ? undefined : json['name'],
103
+ 'description': json['description'] == null ? undefined : json['description'],
104
+ 'content': json['content'] == null ? undefined : json['content'],
105
+ 'integration': json['integration'] == null ? undefined : json['integration'],
106
+ 'author': json['author'] == null ? undefined : json['author'],
107
+ 'slug': json['slug'] == null ? undefined : json['slug'],
108
+ 'gradient': json['gradient'] == null ? undefined : CreateAdminIntegrationListingRequestGradientFromJSON(json['gradient']),
109
+ 'icon': json['icon'] == null ? undefined : json['icon'],
110
+ 'categories': json['categories'] == null ? undefined : json['categories'],
111
+ };
112
+ }
113
+
114
+ export function UpdateAdminIntegrationListingRequestToJSON(value?: UpdateAdminIntegrationListingRequest | null): any {
115
+ if (value == null) {
116
+ return value;
117
+ }
118
+ return {
119
+
120
+ 'name': value['name'],
121
+ 'description': value['description'],
122
+ 'content': value['content'],
123
+ 'integration': value['integration'],
124
+ 'author': value['author'],
125
+ 'slug': value['slug'],
126
+ 'gradient': CreateAdminIntegrationListingRequestGradientToJSON(value['gradient']),
127
+ 'icon': value['icon'],
128
+ 'categories': value['categories'],
129
+ };
130
+ }
131
+
@@ -1,6 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './ApiError';
4
+ export * from './CreateAdminIntegrationListingRequest';
5
+ export * from './CreateAdminIntegrationListingRequestGradient';
4
6
  export * from './Integration';
5
7
  export * from './IntegrationCategoriesResponse';
6
8
  export * from './IntegrationCategory';
@@ -10,3 +12,4 @@ export * from './IntegrationListingsResponse';
10
12
  export * from './IntegrationProduct';
11
13
  export * from './IntegrationProductsResponse';
12
14
  export * from './IntegrationsResponse';
15
+ export * from './UpdateAdminIntegrationListingRequest';
package/src/runtime.ts CHANGED
@@ -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.9.0
7
+ * The version of the OpenAPI document: 0.11.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).