@unified-api/typescript-sdk 1.0.37 → 1.0.39
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/journal.d.ts +31 -0
- package/dist/sdk/journal.js +505 -0
- package/dist/sdk/models/operations/createaccountingjournal.d.ts +28 -0
- package/dist/sdk/models/operations/createaccountingjournal.js +95 -0
- package/dist/sdk/models/operations/getaccountingjournal.d.ts +35 -0
- package/dist/sdk/models/operations/getaccountingjournal.js +99 -0
- package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +2 -0
- package/dist/sdk/models/operations/getunifiedintegrationauth.js +2 -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/listaccountingjournals.d.ts +43 -0
- package/dist/sdk/models/operations/listaccountingjournals.js +119 -0
- package/dist/sdk/models/operations/listaccountingtransactions.d.ts +1 -0
- package/dist/sdk/models/operations/listaccountingtransactions.js +4 -0
- package/dist/sdk/models/operations/patchaccountingjournal.d.ts +32 -0
- package/dist/sdk/models/operations/patchaccountingjournal.js +99 -0
- package/dist/sdk/models/operations/removeaccountingjournal.d.ts +30 -0
- package/dist/sdk/models/operations/removeaccountingjournal.js +71 -0
- package/dist/sdk/models/operations/updateaccountingjournal.d.ts +32 -0
- package/dist/sdk/models/operations/updateaccountingjournal.js +99 -0
- package/dist/sdk/models/shared/accountingjournal.d.ts +17 -0
- package/dist/sdk/models/shared/accountingjournal.js +92 -0
- package/dist/sdk/models/shared/{accountingtransactionlineitem.d.ts → accountingjournallineitem.d.ts} +1 -1
- package/dist/sdk/models/shared/{accountingtransactionlineitem.js → accountingjournallineitem.js} +14 -14
- package/dist/sdk/models/shared/accountingtransaction.d.ts +12 -9
- package/dist/sdk/models/shared/accountingtransaction.js +53 -12
- package/dist/sdk/models/shared/index.d.ts +2 -1
- package/dist/sdk/models/shared/index.js +2 -1
- package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
- package/dist/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/dist/sdk/models/shared/webhook.d.ts +1 -0
- package/dist/sdk/models/shared/webhook.js +1 -0
- package/dist/sdk/sdk.d.ts +2 -0
- package/dist/sdk/sdk.js +5 -3
- package/docs/sdk/models/operations/createaccountingjournalrequest.md +9 -0
- package/docs/sdk/models/operations/createaccountingjournalresponse.md +11 -0
- package/docs/sdk/models/operations/getaccountingjournalrequest.md +10 -0
- package/docs/sdk/models/operations/getaccountingjournalresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingjournalsrequest.md +15 -0
- package/docs/sdk/models/operations/listaccountingjournalsresponse.md +11 -0
- package/docs/sdk/models/operations/listaccountingtransactionsrequest.md +1 -0
- package/docs/sdk/models/operations/patchaccountingjournalrequest.md +10 -0
- package/docs/sdk/models/operations/patchaccountingjournalresponse.md +11 -0
- package/docs/sdk/models/operations/removeaccountingjournalrequest.md +9 -0
- package/docs/sdk/models/operations/removeaccountingjournalresponse.md +11 -0
- package/docs/sdk/models/operations/scopes.md +2 -0
- package/docs/sdk/models/operations/updateaccountingjournalrequest.md +10 -0
- package/docs/sdk/models/operations/updateaccountingjournalresponse.md +11 -0
- package/docs/sdk/models/shared/accountingjournal.md +17 -0
- package/docs/sdk/models/shared/{accountingtransactionlineitem.md → accountingjournallineitem.md} +1 -1
- package/docs/sdk/models/shared/accountingtransaction.md +19 -12
- package/docs/sdk/models/shared/objecttype.md +1 -0
- package/docs/sdk/models/shared/propertyconnectionpermissions.md +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
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.RemoveAccountingJournalResponse = exports.RemoveAccountingJournalRequest = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var RemoveAccountingJournalRequest = /** @class */ (function (_super) {
|
|
33
|
+
__extends(RemoveAccountingJournalRequest, _super);
|
|
34
|
+
function RemoveAccountingJournalRequest() {
|
|
35
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], RemoveAccountingJournalRequest.prototype, "connectionId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], RemoveAccountingJournalRequest.prototype, "id", void 0);
|
|
45
|
+
return RemoveAccountingJournalRequest;
|
|
46
|
+
}(utils_1.SpeakeasyBase));
|
|
47
|
+
exports.RemoveAccountingJournalRequest = RemoveAccountingJournalRequest;
|
|
48
|
+
var RemoveAccountingJournalResponse = /** @class */ (function (_super) {
|
|
49
|
+
__extends(RemoveAccountingJournalResponse, _super);
|
|
50
|
+
function RemoveAccountingJournalResponse() {
|
|
51
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
52
|
+
}
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], RemoveAccountingJournalResponse.prototype, "contentType", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], RemoveAccountingJournalResponse.prototype, "statusCode", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], RemoveAccountingJournalResponse.prototype, "rawResponse", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], RemoveAccountingJournalResponse.prototype, "string", void 0);
|
|
69
|
+
return RemoveAccountingJournalResponse;
|
|
70
|
+
}(utils_1.SpeakeasyBase));
|
|
71
|
+
exports.RemoveAccountingJournalResponse = RemoveAccountingJournalResponse;
|
|
@@ -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 UpdateAccountingJournalRequest extends SpeakeasyBase {
|
|
5
|
+
accountingJournal?: shared.AccountingJournal;
|
|
6
|
+
/**
|
|
7
|
+
* ID of the connection
|
|
8
|
+
*/
|
|
9
|
+
connectionId: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the Journal
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class UpdateAccountingJournalResponse extends SpeakeasyBase {
|
|
16
|
+
/**
|
|
17
|
+
* Successful
|
|
18
|
+
*/
|
|
19
|
+
accountingJournal?: shared.AccountingJournal;
|
|
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.UpdateAccountingJournalResponse = exports.UpdateAccountingJournalRequest = void 0;
|
|
54
|
+
var utils_1 = require("../../../internal/utils");
|
|
55
|
+
var shared = __importStar(require("../../../sdk/models/shared"));
|
|
56
|
+
var UpdateAccountingJournalRequest = /** @class */ (function (_super) {
|
|
57
|
+
__extends(UpdateAccountingJournalRequest, _super);
|
|
58
|
+
function UpdateAccountingJournalRequest() {
|
|
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.AccountingJournal)
|
|
64
|
+
], UpdateAccountingJournalRequest.prototype, "accountingJournal", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UpdateAccountingJournalRequest.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
|
+
], UpdateAccountingJournalRequest.prototype, "id", void 0);
|
|
73
|
+
return UpdateAccountingJournalRequest;
|
|
74
|
+
}(utils_1.SpeakeasyBase));
|
|
75
|
+
exports.UpdateAccountingJournalRequest = UpdateAccountingJournalRequest;
|
|
76
|
+
var UpdateAccountingJournalResponse = /** @class */ (function (_super) {
|
|
77
|
+
__extends(UpdateAccountingJournalResponse, _super);
|
|
78
|
+
function UpdateAccountingJournalResponse() {
|
|
79
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
80
|
+
}
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
83
|
+
__metadata("design:type", shared.AccountingJournal)
|
|
84
|
+
], UpdateAccountingJournalResponse.prototype, "accountingJournal", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], UpdateAccountingJournalResponse.prototype, "contentType", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], UpdateAccountingJournalResponse.prototype, "statusCode", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], UpdateAccountingJournalResponse.prototype, "rawResponse", void 0);
|
|
97
|
+
return UpdateAccountingJournalResponse;
|
|
98
|
+
}(utils_1.SpeakeasyBase));
|
|
99
|
+
exports.UpdateAccountingJournalResponse = UpdateAccountingJournalResponse;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AccountingJournalLineitem } from "./accountingjournallineitem";
|
|
3
|
+
export declare class AccountingJournal extends SpeakeasyBase {
|
|
4
|
+
createdAt?: string;
|
|
5
|
+
currency?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* new field name
|
|
10
|
+
*/
|
|
11
|
+
lineitems?: AccountingJournalLineitem[];
|
|
12
|
+
raw?: Record<string, any>;
|
|
13
|
+
reference?: string;
|
|
14
|
+
taxAmount?: number;
|
|
15
|
+
taxrateId?: string;
|
|
16
|
+
updatedAt?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.AccountingJournal = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var accountingjournallineitem_1 = require("./accountingjournallineitem");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
var AccountingJournal = /** @class */ (function (_super) {
|
|
35
|
+
__extends(AccountingJournal, _super);
|
|
36
|
+
function AccountingJournal() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
41
|
+
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], AccountingJournal.prototype, "createdAt", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
46
|
+
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], AccountingJournal.prototype, "currency", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
51
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AccountingJournal.prototype, "description", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
56
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], AccountingJournal.prototype, "id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: accountingjournallineitem_1.AccountingJournalLineitem }),
|
|
61
|
+
(0, class_transformer_1.Expose)({ name: "lineitems" }),
|
|
62
|
+
(0, class_transformer_1.Type)(function () { return accountingjournallineitem_1.AccountingJournalLineitem; }),
|
|
63
|
+
__metadata("design:type", Array)
|
|
64
|
+
], AccountingJournal.prototype, "lineitems", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
|
+
(0, class_transformer_1.Expose)({ name: "raw" }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], AccountingJournal.prototype, "raw", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
72
|
+
(0, class_transformer_1.Expose)({ name: "reference" }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], AccountingJournal.prototype, "reference", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
77
|
+
(0, class_transformer_1.Expose)({ name: "tax_amount" }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], AccountingJournal.prototype, "taxAmount", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
82
|
+
(0, class_transformer_1.Expose)({ name: "taxrate_id" }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], AccountingJournal.prototype, "taxrateId", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
|
+
(0, class_transformer_1.Expose)({ name: "updated_at" }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], AccountingJournal.prototype, "updatedAt", void 0);
|
|
90
|
+
return AccountingJournal;
|
|
91
|
+
}(utils_1.SpeakeasyBase));
|
|
92
|
+
exports.AccountingJournal = AccountingJournal;
|
package/dist/sdk/models/shared/{accountingtransactionlineitem.d.ts → accountingjournallineitem.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class AccountingJournalLineitem extends SpeakeasyBase {
|
|
3
3
|
accountId?: string;
|
|
4
4
|
contactId?: string;
|
|
5
5
|
description?: string;
|
package/dist/sdk/models/shared/{accountingtransactionlineitem.js → accountingjournallineitem.js}
RENAMED
|
@@ -27,54 +27,54 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
30
|
+
exports.AccountingJournalLineitem = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var class_transformer_1 = require("class-transformer");
|
|
33
|
-
var
|
|
34
|
-
__extends(
|
|
35
|
-
function
|
|
33
|
+
var AccountingJournalLineitem = /** @class */ (function (_super) {
|
|
34
|
+
__extends(AccountingJournalLineitem, _super);
|
|
35
|
+
function AccountingJournalLineitem() {
|
|
36
36
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
37
|
}
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
40
|
(0, class_transformer_1.Expose)({ name: "account_id" }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
42
|
+
], AccountingJournalLineitem.prototype, "accountId", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
45
|
(0, class_transformer_1.Expose)({ name: "contact_id" }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
|
-
],
|
|
47
|
+
], AccountingJournalLineitem.prototype, "contactId", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
50
|
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
|
-
],
|
|
52
|
+
], AccountingJournalLineitem.prototype, "description", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
55
|
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
56
56
|
__metadata("design:type", String)
|
|
57
|
-
],
|
|
57
|
+
], AccountingJournalLineitem.prototype, "id", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
60
60
|
(0, class_transformer_1.Expose)({ name: "invoice_id" }),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
|
-
],
|
|
62
|
+
], AccountingJournalLineitem.prototype, "invoiceId", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
65
|
(0, class_transformer_1.Expose)({ name: "payment_id" }),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
|
-
],
|
|
67
|
+
], AccountingJournalLineitem.prototype, "paymentId", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
70
70
|
(0, class_transformer_1.Expose)({ name: "tax_amount" }),
|
|
71
71
|
__metadata("design:type", Number)
|
|
72
|
-
],
|
|
72
|
+
], AccountingJournalLineitem.prototype, "taxAmount", void 0);
|
|
73
73
|
__decorate([
|
|
74
74
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
75
75
|
(0, class_transformer_1.Expose)({ name: "total_amount" }),
|
|
76
76
|
__metadata("design:type", Number)
|
|
77
|
-
],
|
|
78
|
-
return
|
|
77
|
+
], AccountingJournalLineitem.prototype, "totalAmount", void 0);
|
|
78
|
+
return AccountingJournalLineitem;
|
|
79
79
|
}(utils_1.SpeakeasyBase));
|
|
80
|
-
exports.
|
|
80
|
+
exports.AccountingJournalLineitem = AccountingJournalLineitem;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
import { AccountingTransactionLineitem } from "./accountingtransactionlineitem";
|
|
3
2
|
export declare class AccountingTransaction extends SpeakeasyBase {
|
|
4
|
-
|
|
3
|
+
accountId?: string;
|
|
4
|
+
contactId?: string;
|
|
5
|
+
createdAt?: Date;
|
|
5
6
|
currency?: string;
|
|
6
|
-
|
|
7
|
+
customerMessage?: string;
|
|
7
8
|
id?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
lineitems?: AccountingTransactionLineitem[];
|
|
9
|
+
memo?: string;
|
|
10
|
+
paymentMethod?: string;
|
|
11
|
+
paymentTerms?: string;
|
|
12
12
|
raw?: Record<string, any>;
|
|
13
13
|
reference?: string;
|
|
14
|
+
splitAccountId?: string;
|
|
15
|
+
subTotalAmount?: number;
|
|
14
16
|
taxAmount?: number;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
totalAmount: number;
|
|
18
|
+
type?: string;
|
|
19
|
+
updatedAt?: Date;
|
|
17
20
|
}
|
|
@@ -29,7 +29,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.AccountingTransaction = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var accountingtransactionlineitem_1 = require("./accountingtransactionlineitem");
|
|
33
32
|
var class_transformer_1 = require("class-transformer");
|
|
34
33
|
var AccountingTransaction = /** @class */ (function (_super) {
|
|
35
34
|
__extends(AccountingTransaction, _super);
|
|
@@ -38,8 +37,22 @@ var AccountingTransaction = /** @class */ (function (_super) {
|
|
|
38
37
|
}
|
|
39
38
|
__decorate([
|
|
40
39
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
41
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
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" }),
|
|
42
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)
|
|
43
56
|
], AccountingTransaction.prototype, "createdAt", void 0);
|
|
44
57
|
__decorate([
|
|
45
58
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
@@ -48,20 +61,29 @@ var AccountingTransaction = /** @class */ (function (_super) {
|
|
|
48
61
|
], AccountingTransaction.prototype, "currency", void 0);
|
|
49
62
|
__decorate([
|
|
50
63
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
51
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
64
|
+
(0, class_transformer_1.Expose)({ name: "customer_message" }),
|
|
52
65
|
__metadata("design:type", String)
|
|
53
|
-
], AccountingTransaction.prototype, "
|
|
66
|
+
], AccountingTransaction.prototype, "customerMessage", void 0);
|
|
54
67
|
__decorate([
|
|
55
68
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
56
69
|
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
57
70
|
__metadata("design:type", String)
|
|
58
71
|
], AccountingTransaction.prototype, "id", void 0);
|
|
59
72
|
__decorate([
|
|
60
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
61
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
|
|
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);
|
|
65
87
|
__decorate([
|
|
66
88
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
89
|
(0, class_transformer_1.Expose)({ name: "raw" }),
|
|
@@ -72,6 +94,16 @@ var AccountingTransaction = /** @class */ (function (_super) {
|
|
|
72
94
|
(0, class_transformer_1.Expose)({ name: "reference" }),
|
|
73
95
|
__metadata("design:type", String)
|
|
74
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);
|
|
75
107
|
__decorate([
|
|
76
108
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
77
109
|
(0, class_transformer_1.Expose)({ name: "tax_amount" }),
|
|
@@ -79,13 +111,22 @@ var AccountingTransaction = /** @class */ (function (_super) {
|
|
|
79
111
|
], AccountingTransaction.prototype, "taxAmount", void 0);
|
|
80
112
|
__decorate([
|
|
81
113
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
82
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
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" }),
|
|
83
120
|
__metadata("design:type", String)
|
|
84
|
-
], AccountingTransaction.prototype, "
|
|
121
|
+
], AccountingTransaction.prototype, "type", void 0);
|
|
85
122
|
__decorate([
|
|
86
123
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
124
|
(0, class_transformer_1.Expose)({ name: "updated_at" }),
|
|
88
|
-
|
|
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)
|
|
89
130
|
], AccountingTransaction.prototype, "updatedAt", void 0);
|
|
90
131
|
return AccountingTransaction;
|
|
91
132
|
}(utils_1.SpeakeasyBase));
|
|
@@ -3,12 +3,13 @@ export * from "./accountingcontact";
|
|
|
3
3
|
export * from "./accountingcontactpaymentmethod";
|
|
4
4
|
export * from "./accountingemail";
|
|
5
5
|
export * from "./accountinginvoice";
|
|
6
|
+
export * from "./accountingjournal";
|
|
7
|
+
export * from "./accountingjournallineitem";
|
|
6
8
|
export * from "./accountinglineitem";
|
|
7
9
|
export * from "./accountingorganization";
|
|
8
10
|
export * from "./accountingtaxrate";
|
|
9
11
|
export * from "./accountingtelephone";
|
|
10
12
|
export * from "./accountingtransaction";
|
|
11
|
-
export * from "./accountingtransactionlineitem";
|
|
12
13
|
export * from "./apicall";
|
|
13
14
|
export * from "./atsactivity";
|
|
14
15
|
export * from "./atsaddress";
|
|
@@ -22,12 +22,13 @@ __exportStar(require("./accountingcontact"), exports);
|
|
|
22
22
|
__exportStar(require("./accountingcontactpaymentmethod"), exports);
|
|
23
23
|
__exportStar(require("./accountingemail"), exports);
|
|
24
24
|
__exportStar(require("./accountinginvoice"), exports);
|
|
25
|
+
__exportStar(require("./accountingjournal"), exports);
|
|
26
|
+
__exportStar(require("./accountingjournallineitem"), exports);
|
|
25
27
|
__exportStar(require("./accountinglineitem"), exports);
|
|
26
28
|
__exportStar(require("./accountingorganization"), exports);
|
|
27
29
|
__exportStar(require("./accountingtaxrate"), exports);
|
|
28
30
|
__exportStar(require("./accountingtelephone"), exports);
|
|
29
31
|
__exportStar(require("./accountingtransaction"), exports);
|
|
30
|
-
__exportStar(require("./accountingtransactionlineitem"), exports);
|
|
31
32
|
__exportStar(require("./apicall"), exports);
|
|
32
33
|
__exportStar(require("./atsactivity"), exports);
|
|
33
34
|
__exportStar(require("./atsaddress"), exports);
|
|
@@ -4,6 +4,8 @@ export declare enum PropertyConnectionPermissions {
|
|
|
4
4
|
AccountingAccountWrite = "accounting_account_write",
|
|
5
5
|
AccountingTransactionRead = "accounting_transaction_read",
|
|
6
6
|
AccountingTransactionWrite = "accounting_transaction_write",
|
|
7
|
+
AccountingJournalRead = "accounting_journal_read",
|
|
8
|
+
AccountingJournalWrite = "accounting_journal_write",
|
|
7
9
|
AccountingInvoiceRead = "accounting_invoice_read",
|
|
8
10
|
AccountingInvoiceWrite = "accounting_invoice_write",
|
|
9
11
|
AccountingContactRead = "accounting_contact_read",
|
|
@@ -11,6 +11,8 @@ var PropertyConnectionPermissions;
|
|
|
11
11
|
PropertyConnectionPermissions["AccountingAccountWrite"] = "accounting_account_write";
|
|
12
12
|
PropertyConnectionPermissions["AccountingTransactionRead"] = "accounting_transaction_read";
|
|
13
13
|
PropertyConnectionPermissions["AccountingTransactionWrite"] = "accounting_transaction_write";
|
|
14
|
+
PropertyConnectionPermissions["AccountingJournalRead"] = "accounting_journal_read";
|
|
15
|
+
PropertyConnectionPermissions["AccountingJournalWrite"] = "accounting_journal_write";
|
|
14
16
|
PropertyConnectionPermissions["AccountingInvoiceRead"] = "accounting_invoice_read";
|
|
15
17
|
PropertyConnectionPermissions["AccountingInvoiceWrite"] = "accounting_invoice_write";
|
|
16
18
|
PropertyConnectionPermissions["AccountingContactRead"] = "accounting_contact_read";
|
|
@@ -7,6 +7,7 @@ export declare enum Event {
|
|
|
7
7
|
export declare enum ObjectType {
|
|
8
8
|
AccountingAccount = "accounting_account",
|
|
9
9
|
AccountingTransaction = "accounting_transaction",
|
|
10
|
+
AccountingJournal = "accounting_journal",
|
|
10
11
|
AccountingContact = "accounting_contact",
|
|
11
12
|
AccountingInvoice = "accounting_invoice",
|
|
12
13
|
AccountingTaxrate = "accounting_taxrate",
|
|
@@ -40,6 +40,7 @@ var ObjectType;
|
|
|
40
40
|
(function (ObjectType) {
|
|
41
41
|
ObjectType["AccountingAccount"] = "accounting_account";
|
|
42
42
|
ObjectType["AccountingTransaction"] = "accounting_transaction";
|
|
43
|
+
ObjectType["AccountingJournal"] = "accounting_journal";
|
|
43
44
|
ObjectType["AccountingContact"] = "accounting_contact";
|
|
44
45
|
ObjectType["AccountingInvoice"] = "accounting_invoice";
|
|
45
46
|
ObjectType["AccountingTaxrate"] = "accounting_taxrate";
|
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { Invoice } from "./invoice";
|
|
|
34
34
|
import { Issue } from "./issue";
|
|
35
35
|
import { Item } from "./item";
|
|
36
36
|
import { Job } from "./job";
|
|
37
|
+
import { Journal } from "./journal";
|
|
37
38
|
import { Kms } from "./kms";
|
|
38
39
|
import { Lead } from "./lead";
|
|
39
40
|
import { Link } from "./link";
|
|
@@ -120,6 +121,7 @@ export declare class UnifiedTo {
|
|
|
120
121
|
account: Account;
|
|
121
122
|
contact: Contact;
|
|
122
123
|
invoice: Invoice;
|
|
124
|
+
journal: Journal;
|
|
123
125
|
organization: Organization;
|
|
124
126
|
taxrate: Taxrate;
|
|
125
127
|
transaction: Transaction;
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -41,6 +41,7 @@ var invoice_1 = require("./invoice");
|
|
|
41
41
|
var issue_1 = require("./issue");
|
|
42
42
|
var item_1 = require("./item");
|
|
43
43
|
var job_1 = require("./job");
|
|
44
|
+
var journal_1 = require("./journal");
|
|
44
45
|
var kms_1 = require("./kms");
|
|
45
46
|
var lead_1 = require("./lead");
|
|
46
47
|
var link_1 = require("./link");
|
|
@@ -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.39";
|
|
99
|
+
this.genVersion = "2.342.2";
|
|
100
|
+
this.userAgent = "speakeasy-sdk/typescript 1.0.39 2.342.2 1.0 @unified-api/typescript-sdk";
|
|
100
101
|
Object.assign(this, init);
|
|
101
102
|
}
|
|
102
103
|
return SDKConfiguration;
|
|
@@ -127,6 +128,7 @@ var UnifiedTo = /** @class */ (function () {
|
|
|
127
128
|
this.account = new account_1.Account(this.sdkConfiguration);
|
|
128
129
|
this.contact = new contact_1.Contact(this.sdkConfiguration);
|
|
129
130
|
this.invoice = new invoice_1.Invoice(this.sdkConfiguration);
|
|
131
|
+
this.journal = new journal_1.Journal(this.sdkConfiguration);
|
|
130
132
|
this.organization = new organization_1.Organization(this.sdkConfiguration);
|
|
131
133
|
this.taxrate = new taxrate_1.Taxrate(this.sdkConfiguration);
|
|
132
134
|
this.transaction = new transaction_1.Transaction(this.sdkConfiguration);
|