@teemill/integrations 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/integrations@0.5.0
1
+ ## @teemill/integrations@0.6.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/integrations@0.5.0 --save
39
+ npm install @teemill/integrations@0.6.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -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.5.0
5
+ * The version of the OpenAPI document: 0.6.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,14 +12,14 @@
12
12
  import * as runtime from '../runtime';
13
13
  import type { Integration, IntegrationProduct, IntegrationProductsResponse, IntegrationsResponse } from '../models/index';
14
14
  export interface GetIntegrationRequest {
15
- integration: string;
15
+ integration: number;
16
16
  }
17
17
  export interface GetIntegrationProductRequest {
18
- integration: string;
18
+ integration: number;
19
19
  product: string;
20
20
  }
21
21
  export interface GetIntegrationProductsRequest {
22
- integration: string;
22
+ integration: number;
23
23
  }
24
24
  /**
25
25
  *
@@ -34,7 +34,7 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
34
34
  * Get an integration
35
35
  * Get integration
36
36
  */
37
- getIntegration(integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
37
+ getIntegration(integration: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
38
38
  /**
39
39
  * Get a product available for an integration
40
40
  * Get integration product
@@ -44,7 +44,7 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
44
44
  * Get a product available for an integration
45
45
  * Get integration product
46
46
  */
47
- getIntegrationProduct(integration: string, product: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProduct>;
47
+ getIntegrationProduct(integration: number, product: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProduct>;
48
48
  /**
49
49
  * List all products available for an integration
50
50
  * List integration products
@@ -54,7 +54,7 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
54
54
  * List all products available for an integration
55
55
  * List integration products
56
56
  */
57
- getIntegrationProducts(integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProductsResponse>;
57
+ getIntegrationProducts(integration: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProductsResponse>;
58
58
  /**
59
59
  * List all integrations available
60
60
  * List integrations
@@ -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.5.0
8
+ * The version of the OpenAPI document: 0.6.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
5
+ * The version of the OpenAPI document: 0.6.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
8
+ * The version of the OpenAPI document: 0.6.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
5
+ * The version of the OpenAPI document: 0.6.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
8
+ * The version of the OpenAPI document: 0.6.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
5
+ * The version of the OpenAPI document: 0.6.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
8
+ * The version of the OpenAPI document: 0.6.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
5
+ * The version of the OpenAPI document: 0.6.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,41 +16,47 @@
16
16
  */
17
17
  export interface IntegrationProduct {
18
18
  /**
19
- *
19
+ * The ID of the product
20
20
  * @type {number}
21
21
  * @memberof IntegrationProduct
22
22
  */
23
23
  readonly id?: number;
24
24
  /**
25
- *
25
+ * The SKU of the product
26
26
  * @type {string}
27
27
  * @memberof IntegrationProduct
28
28
  */
29
29
  sku: string;
30
30
  /**
31
- *
31
+ * The name of the product
32
32
  * @type {string}
33
33
  * @memberof IntegrationProduct
34
34
  */
35
35
  name: string;
36
36
  /**
37
- *
37
+ * The slug of the product that is used in the URL
38
38
  * @type {string}
39
39
  * @memberof IntegrationProduct
40
40
  */
41
41
  slug: string;
42
42
  /**
43
- *
43
+ * The user facing description of the product
44
44
  * @type {string}
45
45
  * @memberof IntegrationProduct
46
46
  */
47
47
  description: string;
48
48
  /**
49
- *
49
+ * The price of the product in GBP
50
50
  * @type {number}
51
51
  * @memberof IntegrationProduct
52
52
  */
53
53
  price: number;
54
+ /**
55
+ * The VAT rate of the product
56
+ * @type {number}
57
+ * @memberof IntegrationProduct
58
+ */
59
+ vatRate: number;
54
60
  }
55
61
  /**
56
62
  * Check if a given object implements the IntegrationProduct interface.
@@ -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.5.0
8
+ * The version of the OpenAPI document: 0.6.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,6 +25,7 @@ function instanceOfIntegrationProduct(value) {
25
25
  isInstance = isInstance && "slug" in value;
26
26
  isInstance = isInstance && "description" in value;
27
27
  isInstance = isInstance && "price" in value;
28
+ isInstance = isInstance && "vatRate" in value;
28
29
  return isInstance;
29
30
  }
30
31
  exports.instanceOfIntegrationProduct = instanceOfIntegrationProduct;
@@ -43,6 +44,7 @@ function IntegrationProductFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'slug': json['slug'],
44
45
  'description': json['description'],
45
46
  'price': json['price'],
47
+ 'vatRate': json['vatRate'],
46
48
  };
47
49
  }
48
50
  exports.IntegrationProductFromJSONTyped = IntegrationProductFromJSONTyped;
@@ -59,6 +61,7 @@ function IntegrationProductToJSON(value) {
59
61
  'slug': value.slug,
60
62
  'description': value.description,
61
63
  'price': value.price,
64
+ 'vatRate': value.vatRate,
62
65
  };
63
66
  }
64
67
  exports.IntegrationProductToJSON = IntegrationProductToJSON;
@@ -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.5.0
5
+ * The version of the OpenAPI document: 0.6.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
8
+ * The version of the OpenAPI document: 0.6.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
5
+ * The version of the OpenAPI document: 0.6.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
8
+ * The version of the OpenAPI document: 0.6.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/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.5.0
5
+ * The version of the OpenAPI document: 0.6.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.5.0
8
+ * The version of the OpenAPI document: 0.6.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.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "OpenAPI client for @teemill/integrations",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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.5.0
7
+ * The version of the OpenAPI document: 0.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,16 +35,16 @@ import {
35
35
  } from '../models/index';
36
36
 
37
37
  export interface GetIntegrationRequest {
38
- integration: string;
38
+ integration: number;
39
39
  }
40
40
 
41
41
  export interface GetIntegrationProductRequest {
42
- integration: string;
42
+ integration: number;
43
43
  product: string;
44
44
  }
45
45
 
46
46
  export interface GetIntegrationProductsRequest {
47
- integration: string;
47
+ integration: number;
48
48
  }
49
49
 
50
50
  /**
@@ -89,7 +89,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
89
89
  * Get integration
90
90
  */
91
91
  async getIntegration(
92
- integration: string,
92
+ integration: number,
93
93
  initOverrides?: RequestInit | runtime.InitOverrideFunction
94
94
  ): Promise<Integration> {
95
95
  const response = await this.getIntegrationRaw(
@@ -143,7 +143,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
143
143
  * Get integration product
144
144
  */
145
145
  async getIntegrationProduct(
146
- integration: string, product: string,
146
+ integration: number, product: string,
147
147
  initOverrides?: RequestInit | runtime.InitOverrideFunction
148
148
  ): Promise<IntegrationProduct> {
149
149
  const response = await this.getIntegrationProductRaw(
@@ -193,7 +193,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
193
193
  * List integration products
194
194
  */
195
195
  async getIntegrationProducts(
196
- integration: string,
196
+ integration: number,
197
197
  initOverrides?: RequestInit | runtime.InitOverrideFunction
198
198
  ): Promise<IntegrationProductsResponse> {
199
199
  const response = await this.getIntegrationProductsRaw(
@@ -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.5.0
7
+ * The version of the OpenAPI document: 0.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
7
+ * The version of the OpenAPI document: 0.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
7
+ * The version of the OpenAPI document: 0.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
7
+ * The version of the OpenAPI document: 0.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,41 +20,47 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface IntegrationProduct {
22
22
  /**
23
- *
23
+ * The ID of the product
24
24
  * @type {number}
25
25
  * @memberof IntegrationProduct
26
26
  */
27
27
  readonly id?: number;
28
28
  /**
29
- *
29
+ * The SKU of the product
30
30
  * @type {string}
31
31
  * @memberof IntegrationProduct
32
32
  */
33
33
  sku: string;
34
34
  /**
35
- *
35
+ * The name of the product
36
36
  * @type {string}
37
37
  * @memberof IntegrationProduct
38
38
  */
39
39
  name: string;
40
40
  /**
41
- *
41
+ * The slug of the product that is used in the URL
42
42
  * @type {string}
43
43
  * @memberof IntegrationProduct
44
44
  */
45
45
  slug: string;
46
46
  /**
47
- *
47
+ * The user facing description of the product
48
48
  * @type {string}
49
49
  * @memberof IntegrationProduct
50
50
  */
51
51
  description: string;
52
52
  /**
53
- *
53
+ * The price of the product in GBP
54
54
  * @type {number}
55
55
  * @memberof IntegrationProduct
56
56
  */
57
57
  price: number;
58
+ /**
59
+ * The VAT rate of the product
60
+ * @type {number}
61
+ * @memberof IntegrationProduct
62
+ */
63
+ vatRate: number;
58
64
  }
59
65
 
60
66
  /**
@@ -67,6 +73,7 @@ export function instanceOfIntegrationProduct(value: object): boolean {
67
73
  isInstance = isInstance && "slug" in value;
68
74
  isInstance = isInstance && "description" in value;
69
75
  isInstance = isInstance && "price" in value;
76
+ isInstance = isInstance && "vatRate" in value;
70
77
 
71
78
  return isInstance;
72
79
  }
@@ -87,6 +94,7 @@ export function IntegrationProductFromJSONTyped(json: any, ignoreDiscriminator:
87
94
  'slug': json['slug'],
88
95
  'description': json['description'],
89
96
  'price': json['price'],
97
+ 'vatRate': json['vatRate'],
90
98
  };
91
99
  }
92
100
 
@@ -104,6 +112,7 @@ export function IntegrationProductToJSON(value?: IntegrationProduct | null): any
104
112
  'slug': value.slug,
105
113
  'description': value.description,
106
114
  'price': value.price,
115
+ 'vatRate': value.vatRate,
107
116
  };
108
117
  }
109
118
 
@@ -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.5.0
7
+ * The version of the OpenAPI document: 0.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.5.0
7
+ * The version of the OpenAPI document: 0.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.5.0
7
+ * The version of the OpenAPI document: 0.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).