@teemill/integrations 0.9.0 → 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 +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 +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 +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 +62 -0
  33. package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +49 -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 +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 +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 +62 -0
  63. package/dist/models/UpdateAdminIntegrationListingRequest.js +56 -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 +113 -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 +107 -0
  83. package/src/models/index.ts +3 -0
  84. package/src/runtime.ts +1 -1
@@ -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.9.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).
@@ -55,7 +55,7 @@ export interface IntegrationProduct {
55
55
  /**
56
56
  * Check if a given object implements the IntegrationProduct interface.
57
57
  */
58
- export declare function instanceOfIntegrationProduct(value: object): boolean;
58
+ export declare function instanceOfIntegrationProduct(value: object): value is IntegrationProduct;
59
59
  export declare function IntegrationProductFromJSON(json: any): IntegrationProduct;
60
60
  export declare function IntegrationProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProduct;
61
61
  export declare function IntegrationProductToJSON(value?: Omit<IntegrationProduct, 'id'> | null): any;
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,15 +18,15 @@ exports.IntegrationProductToJSON = exports.IntegrationProductFromJSONTyped = exp
18
18
  * Check if a given object implements the IntegrationProduct interface.
19
19
  */
20
20
  function instanceOfIntegrationProduct(value) {
21
- if (!('sku' in value))
21
+ if (!('sku' in value) || value['sku'] === undefined)
22
22
  return false;
23
- if (!('name' in value))
23
+ if (!('name' in value) || value['name'] === undefined)
24
24
  return false;
25
- if (!('slug' in value))
25
+ if (!('slug' in value) || value['slug'] === undefined)
26
26
  return false;
27
- if (!('description' in value))
27
+ if (!('description' in value) || value['description'] === undefined)
28
28
  return false;
29
- if (!('price' in value))
29
+ if (!('price' in value) || value['price'] === undefined)
30
30
  return false;
31
31
  return true;
32
32
  }
@@ -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.9.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).
@@ -26,7 +26,7 @@ export interface IntegrationProductsResponse {
26
26
  /**
27
27
  * Check if a given object implements the IntegrationProductsResponse interface.
28
28
  */
29
- export declare function instanceOfIntegrationProductsResponse(value: object): boolean;
29
+ export declare function instanceOfIntegrationProductsResponse(value: object): value is IntegrationProductsResponse;
30
30
  export declare function IntegrationProductsResponseFromJSON(json: any): IntegrationProductsResponse;
31
31
  export declare function IntegrationProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProductsResponse;
32
32
  export declare function IntegrationProductsResponseToJSON(value?: IntegrationProductsResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,7 +19,7 @@ const IntegrationProduct_1 = require("./IntegrationProduct");
19
19
  * Check if a given object implements the IntegrationProductsResponse interface.
20
20
  */
21
21
  function instanceOfIntegrationProductsResponse(value) {
22
- if (!('products' in value))
22
+ if (!('products' in value) || value['products'] === undefined)
23
23
  return false;
24
24
  return true;
25
25
  }
@@ -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.9.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).
@@ -26,7 +26,7 @@ export interface IntegrationsResponse {
26
26
  /**
27
27
  * Check if a given object implements the IntegrationsResponse interface.
28
28
  */
29
- export declare function instanceOfIntegrationsResponse(value: object): boolean;
29
+ export declare function instanceOfIntegrationsResponse(value: object): value is IntegrationsResponse;
30
30
  export declare function IntegrationsResponseFromJSON(json: any): IntegrationsResponse;
31
31
  export declare function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse;
32
32
  export declare function IntegrationsResponseToJSON(value?: IntegrationsResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,7 +19,7 @@ const Integration_1 = require("./Integration");
19
19
  * Check if a given object implements the IntegrationsResponse interface.
20
20
  */
21
21
  function instanceOfIntegrationsResponse(value) {
22
- if (!('integrations' in value))
22
+ if (!('integrations' in value) || value['integrations'] === undefined)
23
23
  return false;
24
24
  return true;
25
25
  }
@@ -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 UpdateAdminIntegrationListingRequest
17
+ */
18
+ export interface UpdateAdminIntegrationListingRequest {
19
+ /**
20
+ * The name of the integration listing
21
+ * @type {string}
22
+ * @memberof UpdateAdminIntegrationListingRequest
23
+ */
24
+ name?: string;
25
+ /**
26
+ * The description of the integration listing
27
+ * @type {string}
28
+ * @memberof UpdateAdminIntegrationListingRequest
29
+ */
30
+ description?: string;
31
+ /**
32
+ * The html content of the integration listing
33
+ * @type {string}
34
+ * @memberof UpdateAdminIntegrationListingRequest
35
+ */
36
+ content?: string;
37
+ /**
38
+ * The slug of the integration listing that is used in the URL
39
+ * @type {string}
40
+ * @memberof UpdateAdminIntegrationListingRequest
41
+ */
42
+ slug?: string;
43
+ /**
44
+ *
45
+ * @type {CreateAdminIntegrationListingRequestGradient}
46
+ * @memberof UpdateAdminIntegrationListingRequest
47
+ */
48
+ gradient?: CreateAdminIntegrationListingRequestGradient;
49
+ /**
50
+ * The icon of the integration listing
51
+ * @type {string}
52
+ * @memberof UpdateAdminIntegrationListingRequest
53
+ */
54
+ icon?: string;
55
+ }
56
+ /**
57
+ * Check if a given object implements the UpdateAdminIntegrationListingRequest interface.
58
+ */
59
+ export declare function instanceOfUpdateAdminIntegrationListingRequest(value: object): value is UpdateAdminIntegrationListingRequest;
60
+ export declare function UpdateAdminIntegrationListingRequestFromJSON(json: any): UpdateAdminIntegrationListingRequest;
61
+ export declare function UpdateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminIntegrationListingRequest;
62
+ export declare function UpdateAdminIntegrationListingRequestToJSON(value?: UpdateAdminIntegrationListingRequest | null): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Integrations API
6
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.10.0
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateAdminIntegrationListingRequestToJSON = exports.UpdateAdminIntegrationListingRequestFromJSONTyped = exports.UpdateAdminIntegrationListingRequestFromJSON = exports.instanceOfUpdateAdminIntegrationListingRequest = void 0;
17
+ const CreateAdminIntegrationListingRequestGradient_1 = require("./CreateAdminIntegrationListingRequestGradient");
18
+ /**
19
+ * Check if a given object implements the UpdateAdminIntegrationListingRequest interface.
20
+ */
21
+ function instanceOfUpdateAdminIntegrationListingRequest(value) {
22
+ return true;
23
+ }
24
+ exports.instanceOfUpdateAdminIntegrationListingRequest = instanceOfUpdateAdminIntegrationListingRequest;
25
+ function UpdateAdminIntegrationListingRequestFromJSON(json) {
26
+ return UpdateAdminIntegrationListingRequestFromJSONTyped(json, false);
27
+ }
28
+ exports.UpdateAdminIntegrationListingRequestFromJSON = UpdateAdminIntegrationListingRequestFromJSON;
29
+ function UpdateAdminIntegrationListingRequestFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'name': json['name'] == null ? undefined : json['name'],
35
+ 'description': json['description'] == null ? undefined : json['description'],
36
+ 'content': json['content'] == null ? undefined : json['content'],
37
+ 'slug': json['slug'] == null ? undefined : json['slug'],
38
+ 'gradient': json['gradient'] == null ? undefined : (0, CreateAdminIntegrationListingRequestGradient_1.CreateAdminIntegrationListingRequestGradientFromJSON)(json['gradient']),
39
+ 'icon': json['icon'] == null ? undefined : json['icon'],
40
+ };
41
+ }
42
+ exports.UpdateAdminIntegrationListingRequestFromJSONTyped = UpdateAdminIntegrationListingRequestFromJSONTyped;
43
+ function UpdateAdminIntegrationListingRequestToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ 'description': value['description'],
50
+ 'content': value['content'],
51
+ 'slug': value['slug'],
52
+ 'gradient': (0, CreateAdminIntegrationListingRequestGradient_1.CreateAdminIntegrationListingRequestGradientToJSON)(value['gradient']),
53
+ 'icon': value['icon'],
54
+ };
55
+ }
56
+ exports.UpdateAdminIntegrationListingRequestToJSON = UpdateAdminIntegrationListingRequestToJSON;
@@ -1,4 +1,6 @@
1
1
  export * from './ApiError';
2
+ export * from './CreateAdminIntegrationListingRequest';
3
+ export * from './CreateAdminIntegrationListingRequestGradient';
2
4
  export * from './Integration';
3
5
  export * from './IntegrationCategoriesResponse';
4
6
  export * from './IntegrationCategory';
@@ -8,3 +10,4 @@ export * from './IntegrationListingsResponse';
8
10
  export * from './IntegrationProduct';
9
11
  export * from './IntegrationProductsResponse';
10
12
  export * from './IntegrationsResponse';
13
+ export * from './UpdateAdminIntegrationListingRequest';
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./ApiError"), exports);
20
+ __exportStar(require("./CreateAdminIntegrationListingRequest"), exports);
21
+ __exportStar(require("./CreateAdminIntegrationListingRequestGradient"), exports);
20
22
  __exportStar(require("./Integration"), exports);
21
23
  __exportStar(require("./IntegrationCategoriesResponse"), exports);
22
24
  __exportStar(require("./IntegrationCategory"), exports);
@@ -26,3 +28,4 @@ __exportStar(require("./IntegrationListingsResponse"), exports);
26
28
  __exportStar(require("./IntegrationProduct"), exports);
27
29
  __exportStar(require("./IntegrationProductsResponse"), exports);
28
30
  __exportStar(require("./IntegrationsResponse"), exports);
31
+ __exportStar(require("./UpdateAdminIntegrationListingRequest"), exports);
package/dist/runtime.d.ts CHANGED
@@ -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.9.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).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/integrations",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "OpenAPI client for @teemill/integrations",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,6 +16,6 @@
16
16
  "prepare": "npm run build"
17
17
  },
18
18
  "devDependencies": {
19
- "typescript": "^4.0"
19
+ "typescript": "^4.0 || ^5.0"
20
20
  }
21
21
  }
@@ -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.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,16 +16,20 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiError,
19
+ CreateAdminIntegrationListingRequest,
19
20
  IntegrationCategoriesResponse,
20
21
  IntegrationListing,
21
22
  IntegrationListingsResponse,
22
23
  IntegrationProduct,
23
24
  IntegrationProductsResponse,
24
25
  IntegrationsResponse,
26
+ UpdateAdminIntegrationListingRequest,
25
27
  } from '../models/index';
26
28
  import {
27
29
  ApiErrorFromJSON,
28
30
  ApiErrorToJSON,
31
+ CreateAdminIntegrationListingRequestFromJSON,
32
+ CreateAdminIntegrationListingRequestToJSON,
29
33
  IntegrationCategoriesResponseFromJSON,
30
34
  IntegrationCategoriesResponseToJSON,
31
35
  IntegrationListingFromJSON,
@@ -38,8 +42,22 @@ import {
38
42
  IntegrationProductsResponseToJSON,
39
43
  IntegrationsResponseFromJSON,
40
44
  IntegrationsResponseToJSON,
45
+ UpdateAdminIntegrationListingRequestFromJSON,
46
+ UpdateAdminIntegrationListingRequestToJSON,
41
47
  } from '../models/index';
42
48
 
49
+ export interface CreateAdminIntegrationListingOperationRequest {
50
+ createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest;
51
+ }
52
+
53
+ export interface DeleteAdminIntegrationListingRequest {
54
+ listing: string;
55
+ }
56
+
57
+ export interface GetAdminIntegrationListingRequest {
58
+ listing: string;
59
+ }
60
+
43
61
  export interface GetIntegrationCategoryRequest {
44
62
  category: string;
45
63
  }
@@ -57,11 +75,167 @@ export interface GetIntegrationProductsRequest {
57
75
  integration: number;
58
76
  }
59
77
 
78
+ export interface UpdateAdminIntegrationListingOperationRequest {
79
+ listing: string;
80
+ updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest;
81
+ }
82
+
60
83
  /**
61
84
  *
62
85
  */
63
86
  export class IntegrationsApi extends runtime.BaseAPI {
64
87
 
88
+ /**
89
+ * Create a new integration listing
90
+ * Create integration listing
91
+ */
92
+ async createAdminIntegrationListingRaw(requestParameters: CreateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
93
+ if (requestParameters.createAdminIntegrationListingRequest === null || requestParameters.createAdminIntegrationListingRequest === undefined) {
94
+ throw new runtime.RequiredError('createAdminIntegrationListingRequest','Required parameter requestParameters.createAdminIntegrationListingRequest was null or undefined when calling createAdminIntegrationListing.');
95
+ }
96
+
97
+ const queryParameters: any = {};
98
+
99
+ const headerParameters: runtime.HTTPHeaders = {};
100
+
101
+ headerParameters['Content-Type'] = 'application/json';
102
+
103
+ if (this.configuration && this.configuration.accessToken) {
104
+ // oauth required
105
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
106
+ }
107
+
108
+ if (this.configuration && this.configuration.apiKey) {
109
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
110
+ }
111
+
112
+ const response = await this.request({
113
+ path: `/v1/integrations/admin/listings`,
114
+ method: 'POST',
115
+ headers: headerParameters,
116
+ query: queryParameters,
117
+ body: CreateAdminIntegrationListingRequestToJSON(requestParameters.createAdminIntegrationListingRequest),
118
+ }, initOverrides);
119
+
120
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
121
+ }
122
+
123
+ /**
124
+ * Create a new integration listing
125
+ * Create integration listing
126
+ */
127
+ async createAdminIntegrationListing(
128
+ createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest,
129
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
130
+ ): Promise<IntegrationListing> {
131
+ const response = await this.createAdminIntegrationListingRaw(
132
+ {
133
+ createAdminIntegrationListingRequest: createAdminIntegrationListingRequest,
134
+ },
135
+ initOverrides
136
+ );
137
+
138
+ return await response.value();
139
+ }
140
+
141
+ /**
142
+ * Delete an integration listing
143
+ * Delete integration listing
144
+ */
145
+ async deleteAdminIntegrationListingRaw(requestParameters: DeleteAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
146
+ if (requestParameters.listing === null || requestParameters.listing === undefined) {
147
+ throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling deleteAdminIntegrationListing.');
148
+ }
149
+
150
+ const queryParameters: any = {};
151
+
152
+ const headerParameters: runtime.HTTPHeaders = {};
153
+
154
+ if (this.configuration && this.configuration.accessToken) {
155
+ // oauth required
156
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
157
+ }
158
+
159
+ if (this.configuration && this.configuration.apiKey) {
160
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
161
+ }
162
+
163
+ const response = await this.request({
164
+ path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
165
+ method: 'DELETE',
166
+ headers: headerParameters,
167
+ query: queryParameters,
168
+ }, initOverrides);
169
+
170
+ return new runtime.VoidApiResponse(response);
171
+ }
172
+
173
+ /**
174
+ * Delete an integration listing
175
+ * Delete integration listing
176
+ */
177
+ async deleteAdminIntegrationListing(
178
+ listing: string,
179
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
180
+ ): Promise<void> {
181
+ await this.deleteAdminIntegrationListingRaw(
182
+ {
183
+ listing: listing,
184
+ },
185
+ initOverrides
186
+ );
187
+ }
188
+
189
+ /**
190
+ * Retrieves a specific integration listing by its slug.
191
+ * Retrieve integration listing
192
+ */
193
+ async getAdminIntegrationListingRaw(requestParameters: GetAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
194
+ if (requestParameters.listing === null || requestParameters.listing === undefined) {
195
+ throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling getAdminIntegrationListing.');
196
+ }
197
+
198
+ const queryParameters: any = {};
199
+
200
+ const headerParameters: runtime.HTTPHeaders = {};
201
+
202
+ if (this.configuration && this.configuration.accessToken) {
203
+ // oauth required
204
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
205
+ }
206
+
207
+ if (this.configuration && this.configuration.apiKey) {
208
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
209
+ }
210
+
211
+ const response = await this.request({
212
+ path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
213
+ method: 'GET',
214
+ headers: headerParameters,
215
+ query: queryParameters,
216
+ }, initOverrides);
217
+
218
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
219
+ }
220
+
221
+ /**
222
+ * Retrieves a specific integration listing by its slug.
223
+ * Retrieve integration listing
224
+ */
225
+ async getAdminIntegrationListing(
226
+ listing: string,
227
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
228
+ ): Promise<IntegrationListing> {
229
+ const response = await this.getAdminIntegrationListingRaw(
230
+ {
231
+ listing: listing,
232
+ },
233
+ initOverrides
234
+ );
235
+
236
+ return await response.value();
237
+ }
238
+
65
239
  /**
66
240
  * List all integration categories
67
241
  * List integration categories
@@ -398,4 +572,105 @@ export class IntegrationsApi extends runtime.BaseAPI {
398
572
  return await response.value();
399
573
  }
400
574
 
575
+ /**
576
+ * List all integration listings
577
+ * List integration listings
578
+ */
579
+ async listAdminIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>> {
580
+ const queryParameters: any = {};
581
+
582
+ const headerParameters: runtime.HTTPHeaders = {};
583
+
584
+ if (this.configuration && this.configuration.accessToken) {
585
+ // oauth required
586
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
587
+ }
588
+
589
+ if (this.configuration && this.configuration.apiKey) {
590
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
591
+ }
592
+
593
+ const response = await this.request({
594
+ path: `/v1/integrations/admin/listings`,
595
+ method: 'GET',
596
+ headers: headerParameters,
597
+ query: queryParameters,
598
+ }, initOverrides);
599
+
600
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
601
+ }
602
+
603
+ /**
604
+ * List all integration listings
605
+ * List integration listings
606
+ */
607
+ async listAdminIntegrationListings(
608
+
609
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
610
+ ): Promise<IntegrationListingsResponse> {
611
+ const response = await this.listAdminIntegrationListingsRaw(
612
+
613
+ initOverrides
614
+ );
615
+
616
+ return await response.value();
617
+ }
618
+
619
+ /**
620
+ * Update an integration listing
621
+ * Update integration listing
622
+ */
623
+ async updateAdminIntegrationListingRaw(requestParameters: UpdateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
624
+ if (requestParameters.listing === null || requestParameters.listing === undefined) {
625
+ throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling updateAdminIntegrationListing.');
626
+ }
627
+
628
+ if (requestParameters.updateAdminIntegrationListingRequest === null || requestParameters.updateAdminIntegrationListingRequest === undefined) {
629
+ throw new runtime.RequiredError('updateAdminIntegrationListingRequest','Required parameter requestParameters.updateAdminIntegrationListingRequest was null or undefined when calling updateAdminIntegrationListing.');
630
+ }
631
+
632
+ const queryParameters: any = {};
633
+
634
+ const headerParameters: runtime.HTTPHeaders = {};
635
+
636
+ headerParameters['Content-Type'] = 'application/json';
637
+
638
+ if (this.configuration && this.configuration.accessToken) {
639
+ // oauth required
640
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
641
+ }
642
+
643
+ if (this.configuration && this.configuration.apiKey) {
644
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
645
+ }
646
+
647
+ const response = await this.request({
648
+ path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
649
+ method: 'PATCH',
650
+ headers: headerParameters,
651
+ query: queryParameters,
652
+ body: UpdateAdminIntegrationListingRequestToJSON(requestParameters.updateAdminIntegrationListingRequest),
653
+ }, initOverrides);
654
+
655
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
656
+ }
657
+
658
+ /**
659
+ * Update an integration listing
660
+ * Update integration listing
661
+ */
662
+ async updateAdminIntegrationListing(
663
+ listing: string, updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest,
664
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
665
+ ): Promise<IntegrationListing> {
666
+ const response = await this.updateAdminIntegrationListingRaw(
667
+ {
668
+ listing: listing,updateAdminIntegrationListingRequest: updateAdminIntegrationListingRequest,
669
+ },
670
+ initOverrides
671
+ );
672
+
673
+ return await response.value();
674
+ }
675
+
401
676
  }
@@ -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.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).
@@ -36,8 +36,8 @@ export interface ApiError {
36
36
  /**
37
37
  * Check if a given object implements the ApiError interface.
38
38
  */
39
- export function instanceOfApiError(value: object): boolean {
40
- if (!('message' in value)) return false;
39
+ export function instanceOfApiError(value: object): value is ApiError {
40
+ if (!('message' in value) || value['message'] === undefined) return false;
41
41
  return true;
42
42
  }
43
43