@unified-api/typescript-sdk 1.0.14 → 1.0.15
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/dist/sdk/issue.d.ts +4 -0
- package/dist/sdk/issue.js +58 -0
- package/dist/sdk/models/operations/index.d.ts +1 -0
- package/dist/sdk/models/operations/index.js +1 -0
- package/dist/sdk/models/operations/listunifiedsupports.d.ts +21 -0
- package/dist/sdk/models/operations/listunifiedsupports.js +79 -0
- package/dist/sdk/models/shared/connection.d.ts +2 -1
- package/dist/sdk/models/shared/connection.js +3 -1
- package/dist/sdk/models/shared/index.d.ts +1 -0
- package/dist/sdk/models/shared/index.js +1 -0
- package/dist/sdk/models/shared/undefined.d.ts +4 -0
- package/dist/sdk/models/shared/undefined.js +45 -0
- package/dist/sdk/sdk.js +2 -2
- package/dist/sdk/unified.d.ts +4 -0
- package/dist/sdk/unified.js +58 -0
- package/docs/sdk/models/operations/listunifiedsupportsresponse.md +11 -0
- package/docs/sdk/models/shared/connection.md +1 -1
- package/docs/sdk/models/shared/undefined.md +8 -0
- package/package.json +1 -1
package/dist/sdk/issue.d.ts
CHANGED
|
@@ -8,4 +8,8 @@ export declare class Issue {
|
|
|
8
8
|
* List support issues
|
|
9
9
|
*/
|
|
10
10
|
listUnifiedIssues(req: operations.ListUnifiedIssuesRequest, config?: AxiosRequestConfig): Promise<operations.ListUnifiedIssuesResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Get support info
|
|
13
|
+
*/
|
|
14
|
+
listUnifiedSupports(config?: AxiosRequestConfig): Promise<operations.ListUnifiedSupportsResponse>;
|
|
11
15
|
}
|
package/dist/sdk/issue.js
CHANGED
|
@@ -146,6 +146,64 @@ var Issue = /** @class */ (function () {
|
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
|
+
/**
|
|
150
|
+
* Get support info
|
|
151
|
+
*/
|
|
152
|
+
Issue.prototype.listUnifiedSupports = function (config) {
|
|
153
|
+
var _a, _b;
|
|
154
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
155
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
156
|
+
return __generator(this, function (_c) {
|
|
157
|
+
switch (_c.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
160
|
+
operationUrl = baseURL.replace(/\/$/, "") + "/unified/support";
|
|
161
|
+
client = this.sdkConfiguration.defaultClient;
|
|
162
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
163
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
164
|
+
return [4 /*yield*/, globalSecurity()];
|
|
165
|
+
case 1:
|
|
166
|
+
globalSecurity = _c.sent();
|
|
167
|
+
_c.label = 2;
|
|
168
|
+
case 2:
|
|
169
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
170
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
171
|
+
}
|
|
172
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
173
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
174
|
+
headers["Accept"] = "application/json";
|
|
175
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
176
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
177
|
+
case 3:
|
|
178
|
+
httpRes = _c.sent();
|
|
179
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
180
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
181
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
182
|
+
}
|
|
183
|
+
res = new operations.ListUnifiedSupportsResponse({
|
|
184
|
+
statusCode: httpRes.status,
|
|
185
|
+
contentType: responseContentType,
|
|
186
|
+
rawResponse: httpRes,
|
|
187
|
+
});
|
|
188
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
189
|
+
switch (true) {
|
|
190
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
191
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
192
|
+
res.undefined = utils.objectToClass(JSON.parse(decodedRes), shared.Undefined);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
196
|
+
}
|
|
197
|
+
break;
|
|
198
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
199
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
200
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
201
|
+
}
|
|
202
|
+
return [2 /*return*/, res];
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
};
|
|
149
207
|
return Issue;
|
|
150
208
|
}());
|
|
151
209
|
exports.Issue = Issue;
|
|
@@ -127,6 +127,7 @@ export * from "./listunifiedconnections";
|
|
|
127
127
|
export * from "./listunifiedintegrations";
|
|
128
128
|
export * from "./listunifiedintegrationworkspaces";
|
|
129
129
|
export * from "./listunifiedissues";
|
|
130
|
+
export * from "./listunifiedsupports";
|
|
130
131
|
export * from "./listunifiedwebhooks";
|
|
131
132
|
export * from "./patchaccountingaccount";
|
|
132
133
|
export * from "./patchaccountingcontact";
|
|
@@ -146,6 +146,7 @@ __exportStar(require("./listunifiedconnections"), exports);
|
|
|
146
146
|
__exportStar(require("./listunifiedintegrations"), exports);
|
|
147
147
|
__exportStar(require("./listunifiedintegrationworkspaces"), exports);
|
|
148
148
|
__exportStar(require("./listunifiedissues"), exports);
|
|
149
|
+
__exportStar(require("./listunifiedsupports"), exports);
|
|
149
150
|
__exportStar(require("./listunifiedwebhooks"), exports);
|
|
150
151
|
__exportStar(require("./patchaccountingaccount"), exports);
|
|
151
152
|
__exportStar(require("./patchaccountingcontact"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../../../sdk/models/shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
4
|
+
export declare class ListUnifiedSupportsResponse extends SpeakeasyBase {
|
|
5
|
+
/**
|
|
6
|
+
* HTTP response content type for this operation
|
|
7
|
+
*/
|
|
8
|
+
contentType: string;
|
|
9
|
+
/**
|
|
10
|
+
* HTTP response status code for this operation
|
|
11
|
+
*/
|
|
12
|
+
statusCode: number;
|
|
13
|
+
/**
|
|
14
|
+
* Raw HTTP response; suitable for custom response parsing
|
|
15
|
+
*/
|
|
16
|
+
rawResponse: AxiosResponse;
|
|
17
|
+
/**
|
|
18
|
+
* Successful
|
|
19
|
+
*/
|
|
20
|
+
undefined?: shared.Undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
37
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
39
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
+
};
|
|
42
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
50
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.ListUnifiedSupportsResponse = void 0;
|
|
54
|
+
var utils_1 = require("../../../internal/utils");
|
|
55
|
+
var shared = __importStar(require("../../../sdk/models/shared"));
|
|
56
|
+
var ListUnifiedSupportsResponse = /** @class */ (function (_super) {
|
|
57
|
+
__extends(ListUnifiedSupportsResponse, _super);
|
|
58
|
+
function ListUnifiedSupportsResponse() {
|
|
59
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ListUnifiedSupportsResponse.prototype, "contentType", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], ListUnifiedSupportsResponse.prototype, "statusCode", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ListUnifiedSupportsResponse.prototype, "rawResponse", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
75
|
+
__metadata("design:type", shared.Undefined)
|
|
76
|
+
], ListUnifiedSupportsResponse.prototype, "undefined", void 0);
|
|
77
|
+
return ListUnifiedSupportsResponse;
|
|
78
|
+
}(utils_1.SpeakeasyBase));
|
|
79
|
+
exports.ListUnifiedSupportsResponse = ListUnifiedSupportsResponse;
|
|
@@ -2,6 +2,7 @@ import { SpeakeasyBase } from "../../../internal/utils";
|
|
|
2
2
|
import { PropertyConnectionAuth } from "./propertyconnectionauth";
|
|
3
3
|
import { PropertyConnectionCategories } from "./propertyconnectioncategories";
|
|
4
4
|
import { PropertyConnectionPermissions } from "./propertyconnectionpermissions";
|
|
5
|
+
import { Undefined } from "./undefined";
|
|
5
6
|
/**
|
|
6
7
|
* A connection represents a specific authentication of an integration.
|
|
7
8
|
*/
|
|
@@ -16,7 +17,7 @@ export declare class Connection extends SpeakeasyBase {
|
|
|
16
17
|
*/
|
|
17
18
|
categories: PropertyConnectionCategories[];
|
|
18
19
|
createdAt?: Date;
|
|
19
|
-
cursorsCache?:
|
|
20
|
+
cursorsCache?: Undefined[];
|
|
20
21
|
environment?: string;
|
|
21
22
|
externalXref?: string;
|
|
22
23
|
id?: string;
|
|
@@ -30,6 +30,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
30
30
|
exports.Connection = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var propertyconnectionauth_1 = require("./propertyconnectionauth");
|
|
33
|
+
var undefined_1 = require("./undefined");
|
|
33
34
|
var class_transformer_1 = require("class-transformer");
|
|
34
35
|
/**
|
|
35
36
|
* A connection represents a specific authentication of an integration.
|
|
@@ -65,8 +66,9 @@ var Connection = /** @class */ (function (_super) {
|
|
|
65
66
|
__metadata("design:type", Date)
|
|
66
67
|
], Connection.prototype, "createdAt", void 0);
|
|
67
68
|
__decorate([
|
|
68
|
-
(0, utils_1.SpeakeasyMetadata)(),
|
|
69
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: undefined_1.Undefined }),
|
|
69
70
|
(0, class_transformer_1.Expose)({ name: "cursors_cache" }),
|
|
71
|
+
(0, class_transformer_1.Type)(function () { return undefined_1.Undefined; }),
|
|
70
72
|
__metadata("design:type", Array)
|
|
71
73
|
], Connection.prototype, "cursorsCache", void 0);
|
|
72
74
|
__decorate([
|
|
@@ -124,4 +124,5 @@ __exportStar(require("./uccall"), exports);
|
|
|
124
124
|
__exportStar(require("./uccontact"), exports);
|
|
125
125
|
__exportStar(require("./ucemail"), exports);
|
|
126
126
|
__exportStar(require("./uctelephone"), exports);
|
|
127
|
+
__exportStar(require("./undefined"), exports);
|
|
127
128
|
__exportStar(require("./webhook"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.Undefined = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var Undefined = /** @class */ (function (_super) {
|
|
34
|
+
__extends(Undefined, _super);
|
|
35
|
+
function Undefined() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "support_url" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Undefined.prototype, "supportUrl", void 0);
|
|
43
|
+
return Undefined;
|
|
44
|
+
}(utils_1.SpeakeasyBase));
|
|
45
|
+
exports.Undefined = Undefined;
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -83,9 +83,9 @@ var SDKConfiguration = /** @class */ (function () {
|
|
|
83
83
|
function SDKConfiguration(init) {
|
|
84
84
|
this.language = "typescript";
|
|
85
85
|
this.openapiDocVersion = "1.0";
|
|
86
|
-
this.sdkVersion = "1.0.
|
|
86
|
+
this.sdkVersion = "1.0.15";
|
|
87
87
|
this.genVersion = "2.306.0";
|
|
88
|
-
this.userAgent = "speakeasy-sdk/typescript 1.0.
|
|
88
|
+
this.userAgent = "speakeasy-sdk/typescript 1.0.15 2.306.0 1.0 @unified-api/typescript-sdk";
|
|
89
89
|
Object.assign(this, init);
|
|
90
90
|
}
|
|
91
91
|
return SDKConfiguration;
|
package/dist/sdk/unified.d.ts
CHANGED
|
@@ -58,6 +58,10 @@ export declare class Unified {
|
|
|
58
58
|
* List support issues
|
|
59
59
|
*/
|
|
60
60
|
listUnifiedIssues(req: operations.ListUnifiedIssuesRequest, config?: AxiosRequestConfig): Promise<operations.ListUnifiedIssuesResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Get support info
|
|
63
|
+
*/
|
|
64
|
+
listUnifiedSupports(config?: AxiosRequestConfig): Promise<operations.ListUnifiedSupportsResponse>;
|
|
61
65
|
/**
|
|
62
66
|
* Returns all registered webhooks
|
|
63
67
|
*/
|
package/dist/sdk/unified.js
CHANGED
|
@@ -815,6 +815,64 @@ var Unified = /** @class */ (function () {
|
|
|
815
815
|
});
|
|
816
816
|
});
|
|
817
817
|
};
|
|
818
|
+
/**
|
|
819
|
+
* Get support info
|
|
820
|
+
*/
|
|
821
|
+
Unified.prototype.listUnifiedSupports = function (config) {
|
|
822
|
+
var _a, _b;
|
|
823
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
824
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
825
|
+
return __generator(this, function (_c) {
|
|
826
|
+
switch (_c.label) {
|
|
827
|
+
case 0:
|
|
828
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
829
|
+
operationUrl = baseURL.replace(/\/$/, "") + "/unified/support";
|
|
830
|
+
client = this.sdkConfiguration.defaultClient;
|
|
831
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
832
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
833
|
+
return [4 /*yield*/, globalSecurity()];
|
|
834
|
+
case 1:
|
|
835
|
+
globalSecurity = _c.sent();
|
|
836
|
+
_c.label = 2;
|
|
837
|
+
case 2:
|
|
838
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
839
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
840
|
+
}
|
|
841
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
842
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
843
|
+
headers["Accept"] = "application/json";
|
|
844
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
845
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
846
|
+
case 3:
|
|
847
|
+
httpRes = _c.sent();
|
|
848
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
849
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
850
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
851
|
+
}
|
|
852
|
+
res = new operations.ListUnifiedSupportsResponse({
|
|
853
|
+
statusCode: httpRes.status,
|
|
854
|
+
contentType: responseContentType,
|
|
855
|
+
rawResponse: httpRes,
|
|
856
|
+
});
|
|
857
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
858
|
+
switch (true) {
|
|
859
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
860
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
861
|
+
res.undefined = utils.objectToClass(JSON.parse(decodedRes), shared.Undefined);
|
|
862
|
+
}
|
|
863
|
+
else {
|
|
864
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
865
|
+
}
|
|
866
|
+
break;
|
|
867
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
868
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
869
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
870
|
+
}
|
|
871
|
+
return [2 /*return*/, res];
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
});
|
|
875
|
+
};
|
|
818
876
|
/**
|
|
819
877
|
* Returns all registered webhooks
|
|
820
878
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ListUnifiedSupportsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
+
| `undefined` | [shared.Undefined](../../../sdk/models/shared/undefined.md) | :heavy_minus_sign: | Successful |
|
|
@@ -11,7 +11,7 @@ A connection represents a specific authentication of an integration.
|
|
|
11
11
|
| `authAwsArn` | *string* | :heavy_minus_sign: | N/A |
|
|
12
12
|
| `categories` | [shared.PropertyConnectionCategories](../../../sdk/models/shared/propertyconnectioncategories.md)[] | :heavy_check_mark: | The Integration categories that this connection supports |
|
|
13
13
|
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
14
|
-
| `cursorsCache` |
|
|
14
|
+
| `cursorsCache` | [shared.Undefined](../../../sdk/models/shared/undefined.md)[] | :heavy_minus_sign: | N/A |
|
|
15
15
|
| `environment` | *string* | :heavy_minus_sign: | N/A |
|
|
16
16
|
| `externalXref` | *string* | :heavy_minus_sign: | N/A |
|
|
17
17
|
| `id` | *string* | :heavy_minus_sign: | N/A |
|