@unified-api/typescript-sdk 1.0.38 → 1.0.40
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/accounting.d.ts +24 -0
- package/dist/sdk/accounting.js +402 -0
- package/dist/sdk/models/operations/createaccountingtransaction.d.ts +28 -0
- package/dist/sdk/models/operations/createaccountingtransaction.js +95 -0
- package/dist/sdk/models/operations/getaccountingtransaction.d.ts +35 -0
- package/dist/sdk/models/operations/getaccountingtransaction.js +99 -0
- package/dist/sdk/models/operations/index.d.ts +6 -0
- package/dist/sdk/models/operations/index.js +6 -0
- package/dist/sdk/models/operations/listaccountingtransactions.d.ts +44 -0
- package/dist/sdk/models/operations/listaccountingtransactions.js +123 -0
- package/dist/sdk/models/operations/listatsjobs.d.ts +1 -0
- package/dist/sdk/models/operations/listatsjobs.js +4 -0
- package/dist/sdk/models/operations/patchaccountingtransaction.d.ts +32 -0
- package/dist/sdk/models/operations/patchaccountingtransaction.js +99 -0
- package/dist/sdk/models/operations/removeaccountingtransaction.d.ts +30 -0
- package/dist/sdk/models/operations/removeaccountingtransaction.js +71 -0
- package/dist/sdk/models/operations/updateaccountingtransaction.d.ts +32 -0
- package/dist/sdk/models/operations/updateaccountingtransaction.js +99 -0
- package/dist/sdk/models/shared/accountingtransaction.d.ts +20 -0
- package/dist/sdk/models/shared/accountingtransaction.js +133 -0
- package/dist/sdk/models/shared/index.d.ts +1 -0
- package/dist/sdk/models/shared/index.js +1 -0
- package/dist/sdk/sdk.d.ts +2 -0
- package/dist/sdk/sdk.js +5 -3
- package/dist/sdk/transaction.d.ts +31 -0
- package/dist/sdk/transaction.js +505 -0
- package/docs/sdk/models/operations/createaccountingtransactionrequest.md +9 -0
- package/docs/sdk/models/operations/createaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingtransactionrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingtransactionsrequest.md +16 -0
- package/docs/sdk/models/operations/listaccountingtransactionsresponse.md +11 -0
- package/docs/sdk/models/operations/listatsjobsrequest.md +2 -1
- package/docs/sdk/models/operations/patchaccountingtransactionrequest.md +10 -0
- package/docs/sdk/models/operations/patchaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/removeaccountingtransactionrequest.md +9 -0
- package/docs/sdk/models/operations/removeaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/operations/updateaccountingtransactionrequest.md +10 -0
- package/docs/sdk/models/operations/updateaccountingtransactionresponse.md +11 -0
- package/docs/sdk/models/shared/accountingtransaction.md +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../../../sdk/models/shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
4
|
+
export declare class UpdateAccountingTransactionRequest extends SpeakeasyBase {
|
|
5
|
+
accountingTransaction?: shared.AccountingTransaction;
|
|
6
|
+
/**
|
|
7
|
+
* ID of the connection
|
|
8
|
+
*/
|
|
9
|
+
connectionId: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the Transaction
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class UpdateAccountingTransactionResponse extends SpeakeasyBase {
|
|
16
|
+
/**
|
|
17
|
+
* Successful
|
|
18
|
+
*/
|
|
19
|
+
accountingTransaction?: shared.AccountingTransaction;
|
|
20
|
+
/**
|
|
21
|
+
* HTTP response content type for this operation
|
|
22
|
+
*/
|
|
23
|
+
contentType: string;
|
|
24
|
+
/**
|
|
25
|
+
* HTTP response status code for this operation
|
|
26
|
+
*/
|
|
27
|
+
statusCode: number;
|
|
28
|
+
/**
|
|
29
|
+
* Raw HTTP response; suitable for custom response parsing
|
|
30
|
+
*/
|
|
31
|
+
rawResponse: AxiosResponse;
|
|
32
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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.UpdateAccountingTransactionResponse = exports.UpdateAccountingTransactionRequest = void 0;
|
|
54
|
+
var utils_1 = require("../../../internal/utils");
|
|
55
|
+
var shared = __importStar(require("../../../sdk/models/shared"));
|
|
56
|
+
var UpdateAccountingTransactionRequest = /** @class */ (function (_super) {
|
|
57
|
+
__extends(UpdateAccountingTransactionRequest, _super);
|
|
58
|
+
function UpdateAccountingTransactionRequest() {
|
|
59
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
|
|
63
|
+
__metadata("design:type", shared.AccountingTransaction)
|
|
64
|
+
], UpdateAccountingTransactionRequest.prototype, "accountingTransaction", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UpdateAccountingTransactionRequest.prototype, "connectionId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], UpdateAccountingTransactionRequest.prototype, "id", void 0);
|
|
73
|
+
return UpdateAccountingTransactionRequest;
|
|
74
|
+
}(utils_1.SpeakeasyBase));
|
|
75
|
+
exports.UpdateAccountingTransactionRequest = UpdateAccountingTransactionRequest;
|
|
76
|
+
var UpdateAccountingTransactionResponse = /** @class */ (function (_super) {
|
|
77
|
+
__extends(UpdateAccountingTransactionResponse, _super);
|
|
78
|
+
function UpdateAccountingTransactionResponse() {
|
|
79
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
80
|
+
}
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
83
|
+
__metadata("design:type", shared.AccountingTransaction)
|
|
84
|
+
], UpdateAccountingTransactionResponse.prototype, "accountingTransaction", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], UpdateAccountingTransactionResponse.prototype, "contentType", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], UpdateAccountingTransactionResponse.prototype, "statusCode", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], UpdateAccountingTransactionResponse.prototype, "rawResponse", void 0);
|
|
97
|
+
return UpdateAccountingTransactionResponse;
|
|
98
|
+
}(utils_1.SpeakeasyBase));
|
|
99
|
+
exports.UpdateAccountingTransactionResponse = UpdateAccountingTransactionResponse;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
export declare class AccountingTransaction extends SpeakeasyBase {
|
|
3
|
+
accountId?: string;
|
|
4
|
+
contactId?: string;
|
|
5
|
+
createdAt?: Date;
|
|
6
|
+
currency?: string;
|
|
7
|
+
customerMessage?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
memo?: string;
|
|
10
|
+
paymentMethod?: string;
|
|
11
|
+
paymentTerms?: string;
|
|
12
|
+
raw?: Record<string, any>;
|
|
13
|
+
reference?: string;
|
|
14
|
+
splitAccountId?: string;
|
|
15
|
+
subTotalAmount?: number;
|
|
16
|
+
taxAmount?: number;
|
|
17
|
+
totalAmount: number;
|
|
18
|
+
type?: string;
|
|
19
|
+
updatedAt?: Date;
|
|
20
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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.AccountingTransaction = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var AccountingTransaction = /** @class */ (function (_super) {
|
|
34
|
+
__extends(AccountingTransaction, _super);
|
|
35
|
+
function AccountingTransaction() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "account_id" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], AccountingTransaction.prototype, "accountId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "contact_id" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], AccountingTransaction.prototype, "contactId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
51
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
52
|
+
var value = _a.value;
|
|
53
|
+
return new Date(value);
|
|
54
|
+
}, { toClassOnly: true }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], AccountingTransaction.prototype, "createdAt", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], AccountingTransaction.prototype, "currency", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
64
|
+
(0, class_transformer_1.Expose)({ name: "customer_message" }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], AccountingTransaction.prototype, "customerMessage", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
69
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], AccountingTransaction.prototype, "id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
74
|
+
(0, class_transformer_1.Expose)({ name: "memo" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], AccountingTransaction.prototype, "memo", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
79
|
+
(0, class_transformer_1.Expose)({ name: "payment_method" }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], AccountingTransaction.prototype, "paymentMethod", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
84
|
+
(0, class_transformer_1.Expose)({ name: "payment_terms" }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], AccountingTransaction.prototype, "paymentTerms", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
89
|
+
(0, class_transformer_1.Expose)({ name: "raw" }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], AccountingTransaction.prototype, "raw", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
94
|
+
(0, class_transformer_1.Expose)({ name: "reference" }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], AccountingTransaction.prototype, "reference", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
99
|
+
(0, class_transformer_1.Expose)({ name: "split_account_id" }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], AccountingTransaction.prototype, "splitAccountId", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
104
|
+
(0, class_transformer_1.Expose)({ name: "sub_total_amount" }),
|
|
105
|
+
__metadata("design:type", Number)
|
|
106
|
+
], AccountingTransaction.prototype, "subTotalAmount", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
109
|
+
(0, class_transformer_1.Expose)({ name: "tax_amount" }),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], AccountingTransaction.prototype, "taxAmount", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
114
|
+
(0, class_transformer_1.Expose)({ name: "total_amount" }),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], AccountingTransaction.prototype, "totalAmount", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
119
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], AccountingTransaction.prototype, "type", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
124
|
+
(0, class_transformer_1.Expose)({ name: "updated_at" }),
|
|
125
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
126
|
+
var value = _a.value;
|
|
127
|
+
return new Date(value);
|
|
128
|
+
}, { toClassOnly: true }),
|
|
129
|
+
__metadata("design:type", Date)
|
|
130
|
+
], AccountingTransaction.prototype, "updatedAt", void 0);
|
|
131
|
+
return AccountingTransaction;
|
|
132
|
+
}(utils_1.SpeakeasyBase));
|
|
133
|
+
exports.AccountingTransaction = AccountingTransaction;
|
|
@@ -9,6 +9,7 @@ export * from "./accountinglineitem";
|
|
|
9
9
|
export * from "./accountingorganization";
|
|
10
10
|
export * from "./accountingtaxrate";
|
|
11
11
|
export * from "./accountingtelephone";
|
|
12
|
+
export * from "./accountingtransaction";
|
|
12
13
|
export * from "./apicall";
|
|
13
14
|
export * from "./atsactivity";
|
|
14
15
|
export * from "./atsaddress";
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./accountinglineitem"), exports);
|
|
|
28
28
|
__exportStar(require("./accountingorganization"), exports);
|
|
29
29
|
__exportStar(require("./accountingtaxrate"), exports);
|
|
30
30
|
__exportStar(require("./accountingtelephone"), exports);
|
|
31
|
+
__exportStar(require("./accountingtransaction"), exports);
|
|
31
32
|
__exportStar(require("./apicall"), exports);
|
|
32
33
|
__exportStar(require("./atsactivity"), exports);
|
|
33
34
|
__exportStar(require("./atsaddress"), exports);
|
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ import { Taxrate } from "./taxrate";
|
|
|
66
66
|
import { Ticket } from "./ticket";
|
|
67
67
|
import { Ticketing } from "./ticketing";
|
|
68
68
|
import { Timeoff } from "./timeoff";
|
|
69
|
+
import { Transaction } from "./transaction";
|
|
69
70
|
import { Uc } from "./uc";
|
|
70
71
|
import { Unified } from "./unified";
|
|
71
72
|
import { Webhook } from "./webhook";
|
|
@@ -123,6 +124,7 @@ export declare class UnifiedTo {
|
|
|
123
124
|
journal: Journal;
|
|
124
125
|
organization: Organization;
|
|
125
126
|
taxrate: Taxrate;
|
|
127
|
+
transaction: Transaction;
|
|
126
128
|
ats: Ats;
|
|
127
129
|
activity: Activity;
|
|
128
130
|
application: Application;
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -73,6 +73,7 @@ var taxrate_1 = require("./taxrate");
|
|
|
73
73
|
var ticket_1 = require("./ticket");
|
|
74
74
|
var ticketing_1 = require("./ticketing");
|
|
75
75
|
var timeoff_1 = require("./timeoff");
|
|
76
|
+
var transaction_1 = require("./transaction");
|
|
76
77
|
var uc_1 = require("./uc");
|
|
77
78
|
var unified_1 = require("./unified");
|
|
78
79
|
var webhook_1 = require("./webhook");
|
|
@@ -94,9 +95,9 @@ var SDKConfiguration = /** @class */ (function () {
|
|
|
94
95
|
function SDKConfiguration(init) {
|
|
95
96
|
this.language = "typescript";
|
|
96
97
|
this.openapiDocVersion = "1.0";
|
|
97
|
-
this.sdkVersion = "1.0.
|
|
98
|
-
this.genVersion = "2.
|
|
99
|
-
this.userAgent = "speakeasy-sdk/typescript 1.0.
|
|
98
|
+
this.sdkVersion = "1.0.40";
|
|
99
|
+
this.genVersion = "2.342.6";
|
|
100
|
+
this.userAgent = "speakeasy-sdk/typescript 1.0.40 2.342.6 1.0 @unified-api/typescript-sdk";
|
|
100
101
|
Object.assign(this, init);
|
|
101
102
|
}
|
|
102
103
|
return SDKConfiguration;
|
|
@@ -130,6 +131,7 @@ var UnifiedTo = /** @class */ (function () {
|
|
|
130
131
|
this.journal = new journal_1.Journal(this.sdkConfiguration);
|
|
131
132
|
this.organization = new organization_1.Organization(this.sdkConfiguration);
|
|
132
133
|
this.taxrate = new taxrate_1.Taxrate(this.sdkConfiguration);
|
|
134
|
+
this.transaction = new transaction_1.Transaction(this.sdkConfiguration);
|
|
133
135
|
this.ats = new ats_1.Ats(this.sdkConfiguration);
|
|
134
136
|
this.activity = new activity_1.Activity(this.sdkConfiguration);
|
|
135
137
|
this.application = new application_1.Application(this.sdkConfiguration);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as operations from "../sdk/models/operations";
|
|
2
|
+
import { SDKConfiguration } from "./sdk";
|
|
3
|
+
import { AxiosRequestConfig } from "axios";
|
|
4
|
+
export declare class Transaction {
|
|
5
|
+
private sdkConfiguration;
|
|
6
|
+
constructor(sdkConfig: SDKConfiguration);
|
|
7
|
+
/**
|
|
8
|
+
* Create a transaction
|
|
9
|
+
*/
|
|
10
|
+
createAccountingTransaction(req: operations.CreateAccountingTransactionRequest, config?: AxiosRequestConfig): Promise<operations.CreateAccountingTransactionResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve a transaction
|
|
13
|
+
*/
|
|
14
|
+
getAccountingTransaction(req: operations.GetAccountingTransactionRequest, config?: AxiosRequestConfig): Promise<operations.GetAccountingTransactionResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* List all transactions
|
|
17
|
+
*/
|
|
18
|
+
listAccountingTransactions(req: operations.ListAccountingTransactionsRequest, config?: AxiosRequestConfig): Promise<operations.ListAccountingTransactionsResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Update a transaction
|
|
21
|
+
*/
|
|
22
|
+
patchAccountingTransaction(req: operations.PatchAccountingTransactionRequest, config?: AxiosRequestConfig): Promise<operations.PatchAccountingTransactionResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Remove a transaction
|
|
25
|
+
*/
|
|
26
|
+
removeAccountingTransaction(req: operations.RemoveAccountingTransactionRequest, config?: AxiosRequestConfig): Promise<operations.RemoveAccountingTransactionResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Update a transaction
|
|
29
|
+
*/
|
|
30
|
+
updateAccountingTransaction(req: operations.UpdateAccountingTransactionRequest, config?: AxiosRequestConfig): Promise<operations.UpdateAccountingTransactionResponse>;
|
|
31
|
+
}
|