@teemill/integrations 0.3.0 → 0.4.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.
@@ -1 +1 @@
1
- 7.1.0
1
+ 7.2.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/integrations@0.3.0
1
+ ## @teemill/integrations@0.4.1
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.3.0 --save
39
+ npm install @teemill/integrations@0.4.1 --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.3.0
5
+ * The version of the OpenAPI document: 0.4.1
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.3.0
8
+ * The version of the OpenAPI document: 0.4.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -125,7 +125,9 @@ var IntegrationsApi = /** @class */ (function (_super) {
125
125
  var response;
126
126
  return __generator(this, function (_a) {
127
127
  switch (_a.label) {
128
- case 0: return [4 /*yield*/, this.getIntegrationRaw({ integration: integration }, initOverrides)];
128
+ case 0: return [4 /*yield*/, this.getIntegrationRaw({
129
+ integration: integration,
130
+ }, initOverrides)];
129
131
  case 1:
130
132
  response = _a.sent();
131
133
  return [4 /*yield*/, response.value()];
@@ -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.3.0
5
+ * The version of the OpenAPI document: 0.4.1
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.3.0
8
+ * The version of the OpenAPI document: 0.4.1
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.3.0
5
+ * The version of the OpenAPI document: 0.4.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,10 +48,10 @@ export interface Integration {
48
48
  info: IntegrationInfo;
49
49
  /**
50
50
  *
51
- * @type {boolean}
51
+ * @type {Array<string>}
52
52
  * @memberof Integration
53
53
  */
54
- enabled: boolean;
54
+ dependencies?: Array<string>;
55
55
  }
56
56
  /**
57
57
  * Check if a given object implements the Integration 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.3.0
8
+ * The version of the OpenAPI document: 0.4.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,7 +25,6 @@ function instanceOfIntegration(value) {
25
25
  isInstance = isInstance && "code" in value;
26
26
  isInstance = isInstance && "config" in value;
27
27
  isInstance = isInstance && "info" in value;
28
- isInstance = isInstance && "enabled" in value;
29
28
  return isInstance;
30
29
  }
31
30
  exports.instanceOfIntegration = instanceOfIntegration;
@@ -43,7 +42,7 @@ function IntegrationFromJSONTyped(json, ignoreDiscriminator) {
43
42
  'code': json['code'],
44
43
  'config': json['config'],
45
44
  'info': (0, IntegrationInfo_1.IntegrationInfoFromJSON)(json['info']),
46
- 'enabled': json['enabled'],
45
+ 'dependencies': !(0, runtime_1.exists)(json, 'dependencies') ? undefined : json['dependencies'],
47
46
  };
48
47
  }
49
48
  exports.IntegrationFromJSONTyped = IntegrationFromJSONTyped;
@@ -59,7 +58,7 @@ function IntegrationToJSON(value) {
59
58
  'code': value.code,
60
59
  'config': value.config,
61
60
  'info': (0, IntegrationInfo_1.IntegrationInfoToJSON)(value.info),
62
- 'enabled': value.enabled,
61
+ 'dependencies': value.dependencies,
63
62
  };
64
63
  }
65
64
  exports.IntegrationToJSON = IntegrationToJSON;
@@ -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.3.0
5
+ * The version of the OpenAPI document: 0.4.1
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.3.0
8
+ * The version of the OpenAPI document: 0.4.1
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.3.0
5
+ * The version of the OpenAPI document: 0.4.1
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.3.0
8
+ * The version of the OpenAPI document: 0.4.1
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,13 +2,17 @@
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.3.0
5
+ * The version of the OpenAPI document: 0.4.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export type OptionalProperties<T> = {
13
+ [K in keyof T]-?: undefined extends T[K] ? K : never;
14
+ }[keyof T];
15
+ export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
12
16
  export declare const BASE_PATH: string;
13
17
  export interface ConfigurationParameters {
14
18
  basePath?: string;
@@ -46,6 +50,7 @@ export declare class BaseAPI {
46
50
  private static readonly jsonRegex;
47
51
  private middleware;
48
52
  constructor(configuration?: Configuration);
53
+ isResponseError(error: any): error is ResponseError;
49
54
  withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
55
  withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
56
  withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
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.3.0
8
+ * The version of the OpenAPI document: 0.4.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -266,6 +266,9 @@ var BaseAPI = /** @class */ (function () {
266
266
  }); };
267
267
  this.middleware = configuration.middleware;
268
268
  }
269
+ BaseAPI.prototype.isResponseError = function (error) {
270
+ return error instanceof Error && error.name === 'ResponseError';
271
+ };
269
272
  BaseAPI.prototype.withMiddleware = function () {
270
273
  var _a;
271
274
  var middlewares = [];
@@ -456,8 +459,8 @@ function querystringSingleKey(key, value, keyPrefix) {
456
459
  var fullKey = keyPrefix + (keyPrefix.length ? "[".concat(key, "]") : key);
457
460
  if (value instanceof Array) {
458
461
  var multiValue = value.map(function (singleValue) { return encodeURIComponent(String(singleValue)); })
459
- .join("&".concat(encodeURIComponent(fullKey), "="));
460
- return "".concat(encodeURIComponent(fullKey), "=").concat(multiValue);
462
+ .join("&".concat(encodeURIComponent(fullKey), "[]="));
463
+ return "".concat(encodeURIComponent(fullKey), "[]=").concat(multiValue);
461
464
  }
462
465
  if (value instanceof Set) {
463
466
  var valueAsArray = Array.from(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/integrations",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
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.3.0
7
+ * The version of the OpenAPI document: 0.4.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -73,8 +73,17 @@ export class IntegrationsApi extends runtime.BaseAPI {
73
73
  * Get an integration
74
74
  * Get integration
75
75
  */
76
- async getIntegration(integration: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
77
- const response = await this.getIntegrationRaw({ integration: integration }, initOverrides);
76
+ async getIntegration(
77
+ integration: number,
78
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
79
+ ): Promise<Integration> {
80
+ const response = await this.getIntegrationRaw(
81
+ {
82
+ integration: integration,
83
+ },
84
+ initOverrides
85
+ );
86
+
78
87
  return await response.value();
79
88
  }
80
89
 
@@ -110,8 +119,15 @@ export class IntegrationsApi extends runtime.BaseAPI {
110
119
  * List all integrations available
111
120
  * List integrations
112
121
  */
113
- async getIntegrations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
114
- const response = await this.getIntegrationsRaw(initOverrides);
122
+ async getIntegrations(
123
+
124
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
125
+ ): Promise<IntegrationsResponse> {
126
+ const response = await this.getIntegrationsRaw(
127
+
128
+ initOverrides
129
+ );
130
+
115
131
  return await response.value();
116
132
  }
117
133
 
@@ -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.3.0
7
+ * The version of the OpenAPI document: 0.4.1
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.3.0
7
+ * The version of the OpenAPI document: 0.4.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -58,10 +58,10 @@ export interface Integration {
58
58
  info: IntegrationInfo;
59
59
  /**
60
60
  *
61
- * @type {boolean}
61
+ * @type {Array<string>}
62
62
  * @memberof Integration
63
63
  */
64
- enabled: boolean;
64
+ dependencies?: Array<string>;
65
65
  }
66
66
 
67
67
  /**
@@ -73,7 +73,6 @@ export function instanceOfIntegration(value: object): boolean {
73
73
  isInstance = isInstance && "code" in value;
74
74
  isInstance = isInstance && "config" in value;
75
75
  isInstance = isInstance && "info" in value;
76
- isInstance = isInstance && "enabled" in value;
77
76
 
78
77
  return isInstance;
79
78
  }
@@ -93,7 +92,7 @@ export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean
93
92
  'code': json['code'],
94
93
  'config': json['config'],
95
94
  'info': IntegrationInfoFromJSON(json['info']),
96
- 'enabled': json['enabled'],
95
+ 'dependencies': !exists(json, 'dependencies') ? undefined : json['dependencies'],
97
96
  };
98
97
  }
99
98
 
@@ -110,7 +109,7 @@ export function IntegrationToJSON(value?: Integration | null): any {
110
109
  'code': value.code,
111
110
  'config': value.config,
112
111
  'info': IntegrationInfoToJSON(value.info),
113
- 'enabled': value.enabled,
112
+ 'dependencies': value.dependencies,
114
113
  };
115
114
  }
116
115
 
@@ -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.3.0
7
+ * The version of the OpenAPI document: 0.4.1
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.3.0
7
+ * The version of the OpenAPI document: 0.4.1
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.3.0
7
+ * The version of the OpenAPI document: 0.4.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
 
16
+ export type OptionalProperties<T> = {
17
+ [K in keyof T]-?: undefined extends T[K] ? K : never
18
+ }[keyof T];
19
+
20
+ export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
21
+
16
22
  export const BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
17
23
 
18
24
  export interface ConfigurationParameters {
@@ -98,6 +104,10 @@ export class BaseAPI {
98
104
  this.middleware = configuration.middleware;
99
105
  }
100
106
 
107
+ isResponseError(error: any): error is ResponseError {
108
+ return error instanceof Error && error.name === 'ResponseError';
109
+ }
110
+
101
111
  withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
102
112
  const next = this.clone<T>();
103
113
  next.middleware = next.middleware.concat(...middlewares);
@@ -326,8 +336,8 @@ function querystringSingleKey(key: string, value: string | number | null | undef
326
336
  const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
327
337
  if (value instanceof Array) {
328
338
  const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
329
- .join(`&${encodeURIComponent(fullKey)}=`);
330
- return `${encodeURIComponent(fullKey)}=${multiValue}`;
339
+ .join(`&${encodeURIComponent(fullKey)}[]=`);
340
+ return `${encodeURIComponent(fullKey)}[]=${multiValue}`;
331
341
  }
332
342
  if (value instanceof Set) {
333
343
  const valueAsArray = Array.from(value);