@unified-api/typescript-sdk 2.85.45 → 2.85.46
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/FUNCTIONS.md +25 -1
- package/README.md +150 -6
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/examples/accountingCreateAccountingAccount.example.ts +25 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
package/FUNCTIONS.md
CHANGED
|
@@ -32,7 +32,31 @@ const unifiedTo = new UnifiedToCore({
|
|
|
32
32
|
|
|
33
33
|
async function run() {
|
|
34
34
|
const res = await accountingCreateAccountingAccount(unifiedTo, {
|
|
35
|
-
accountingAccount: {
|
|
35
|
+
accountingAccount: {
|
|
36
|
+
balance: 12092,
|
|
37
|
+
createdAt: new Date("2022-07-03T17:57:07.391Z"),
|
|
38
|
+
currency: "BOB",
|
|
39
|
+
customerDefinedCode: "quo",
|
|
40
|
+
description: "Spoliatio comedo vilitas harum cupiditate.",
|
|
41
|
+
id: "35991572-6b6d-4a7b-a883-101be82c839d",
|
|
42
|
+
isPayable: true,
|
|
43
|
+
name: "Electronic Aluminum Tuna",
|
|
44
|
+
status: "ARCHIVED",
|
|
45
|
+
taxonomy: [
|
|
46
|
+
{
|
|
47
|
+
originalType: "vesper",
|
|
48
|
+
type: "SUBGROUP",
|
|
49
|
+
value: "iste",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
originalType: "adamo",
|
|
53
|
+
type: "SUBGROUP",
|
|
54
|
+
value: "peccatus",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
type: "BANK",
|
|
58
|
+
updatedAt: new Date("2023-01-03T03:11:26.602Z"),
|
|
59
|
+
},
|
|
36
60
|
connectionId: "<id>",
|
|
37
61
|
});
|
|
38
62
|
if (res.ok) {
|
package/README.md
CHANGED
|
@@ -99,7 +99,31 @@ const unifiedTo = new UnifiedTo({
|
|
|
99
99
|
|
|
100
100
|
async function run() {
|
|
101
101
|
const result = await unifiedTo.accounting.createAccountingAccount({
|
|
102
|
-
accountingAccount: {
|
|
102
|
+
accountingAccount: {
|
|
103
|
+
balance: 12092,
|
|
104
|
+
createdAt: new Date("2022-07-03T17:57:07.391Z"),
|
|
105
|
+
currency: "BOB",
|
|
106
|
+
customerDefinedCode: "quo",
|
|
107
|
+
description: "Spoliatio comedo vilitas harum cupiditate.",
|
|
108
|
+
id: "35991572-6b6d-4a7b-a883-101be82c839d",
|
|
109
|
+
isPayable: true,
|
|
110
|
+
name: "Electronic Aluminum Tuna",
|
|
111
|
+
status: "ARCHIVED",
|
|
112
|
+
taxonomy: [
|
|
113
|
+
{
|
|
114
|
+
originalType: "vesper",
|
|
115
|
+
type: "SUBGROUP",
|
|
116
|
+
value: "iste",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
originalType: "adamo",
|
|
120
|
+
type: "SUBGROUP",
|
|
121
|
+
value: "peccatus",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
type: "BANK",
|
|
125
|
+
updatedAt: new Date("2023-01-03T03:11:26.602Z"),
|
|
126
|
+
},
|
|
103
127
|
connectionId: "<id>",
|
|
104
128
|
});
|
|
105
129
|
|
|
@@ -125,7 +149,31 @@ const unifiedTo = new UnifiedTo({
|
|
|
125
149
|
|
|
126
150
|
async function run() {
|
|
127
151
|
const result = await unifiedTo.accounting.createAccountingAccount({
|
|
128
|
-
accountingAccount: {
|
|
152
|
+
accountingAccount: {
|
|
153
|
+
balance: 12092,
|
|
154
|
+
createdAt: new Date("2022-07-03T17:57:07.391Z"),
|
|
155
|
+
currency: "BOB",
|
|
156
|
+
customerDefinedCode: "quo",
|
|
157
|
+
description: "Spoliatio comedo vilitas harum cupiditate.",
|
|
158
|
+
id: "35991572-6b6d-4a7b-a883-101be82c839d",
|
|
159
|
+
isPayable: true,
|
|
160
|
+
name: "Electronic Aluminum Tuna",
|
|
161
|
+
status: "ARCHIVED",
|
|
162
|
+
taxonomy: [
|
|
163
|
+
{
|
|
164
|
+
originalType: "vesper",
|
|
165
|
+
type: "SUBGROUP",
|
|
166
|
+
value: "iste",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
originalType: "adamo",
|
|
170
|
+
type: "SUBGROUP",
|
|
171
|
+
value: "peccatus",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
type: "BANK",
|
|
175
|
+
updatedAt: new Date("2023-01-03T03:11:26.602Z"),
|
|
176
|
+
},
|
|
129
177
|
connectionId: "<id>",
|
|
130
178
|
});
|
|
131
179
|
|
|
@@ -217,7 +265,31 @@ const unifiedTo = new UnifiedTo({
|
|
|
217
265
|
|
|
218
266
|
async function run() {
|
|
219
267
|
const result = await unifiedTo.accounting.createAccountingAccount({
|
|
220
|
-
accountingAccount: {
|
|
268
|
+
accountingAccount: {
|
|
269
|
+
balance: 12092,
|
|
270
|
+
createdAt: new Date("2022-07-03T17:57:07.391Z"),
|
|
271
|
+
currency: "BOB",
|
|
272
|
+
customerDefinedCode: "quo",
|
|
273
|
+
description: "Spoliatio comedo vilitas harum cupiditate.",
|
|
274
|
+
id: "35991572-6b6d-4a7b-a883-101be82c839d",
|
|
275
|
+
isPayable: true,
|
|
276
|
+
name: "Electronic Aluminum Tuna",
|
|
277
|
+
status: "ARCHIVED",
|
|
278
|
+
taxonomy: [
|
|
279
|
+
{
|
|
280
|
+
originalType: "vesper",
|
|
281
|
+
type: "SUBGROUP",
|
|
282
|
+
value: "iste",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
originalType: "adamo",
|
|
286
|
+
type: "SUBGROUP",
|
|
287
|
+
value: "peccatus",
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
type: "BANK",
|
|
291
|
+
updatedAt: new Date("2023-01-03T03:11:26.602Z"),
|
|
292
|
+
},
|
|
221
293
|
connectionId: "<id>",
|
|
222
294
|
});
|
|
223
295
|
|
|
@@ -259,7 +331,31 @@ const unifiedTo = new UnifiedTo({
|
|
|
259
331
|
async function run() {
|
|
260
332
|
try {
|
|
261
333
|
const result = await unifiedTo.accounting.createAccountingAccount({
|
|
262
|
-
accountingAccount: {
|
|
334
|
+
accountingAccount: {
|
|
335
|
+
balance: 12092,
|
|
336
|
+
createdAt: new Date("2022-07-03T17:57:07.391Z"),
|
|
337
|
+
currency: "BOB",
|
|
338
|
+
customerDefinedCode: "quo",
|
|
339
|
+
description: "Spoliatio comedo vilitas harum cupiditate.",
|
|
340
|
+
id: "35991572-6b6d-4a7b-a883-101be82c839d",
|
|
341
|
+
isPayable: true,
|
|
342
|
+
name: "Electronic Aluminum Tuna",
|
|
343
|
+
status: "ARCHIVED",
|
|
344
|
+
taxonomy: [
|
|
345
|
+
{
|
|
346
|
+
originalType: "vesper",
|
|
347
|
+
type: "SUBGROUP",
|
|
348
|
+
value: "iste",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
originalType: "adamo",
|
|
352
|
+
type: "SUBGROUP",
|
|
353
|
+
value: "peccatus",
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
type: "BANK",
|
|
357
|
+
updatedAt: new Date("2023-01-03T03:11:26.602Z"),
|
|
358
|
+
},
|
|
263
359
|
connectionId: "<id>",
|
|
264
360
|
});
|
|
265
361
|
|
|
@@ -360,7 +456,31 @@ const unifiedTo = new UnifiedTo({
|
|
|
360
456
|
|
|
361
457
|
async function run() {
|
|
362
458
|
const result = await unifiedTo.accounting.createAccountingAccount({
|
|
363
|
-
accountingAccount: {
|
|
459
|
+
accountingAccount: {
|
|
460
|
+
balance: 12092,
|
|
461
|
+
createdAt: new Date("2022-07-03T17:57:07.391Z"),
|
|
462
|
+
currency: "BOB",
|
|
463
|
+
customerDefinedCode: "quo",
|
|
464
|
+
description: "Spoliatio comedo vilitas harum cupiditate.",
|
|
465
|
+
id: "35991572-6b6d-4a7b-a883-101be82c839d",
|
|
466
|
+
isPayable: true,
|
|
467
|
+
name: "Electronic Aluminum Tuna",
|
|
468
|
+
status: "ARCHIVED",
|
|
469
|
+
taxonomy: [
|
|
470
|
+
{
|
|
471
|
+
originalType: "vesper",
|
|
472
|
+
type: "SUBGROUP",
|
|
473
|
+
value: "iste",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
originalType: "adamo",
|
|
477
|
+
type: "SUBGROUP",
|
|
478
|
+
value: "peccatus",
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
type: "BANK",
|
|
482
|
+
updatedAt: new Date("2023-01-03T03:11:26.602Z"),
|
|
483
|
+
},
|
|
364
484
|
connectionId: "<id>",
|
|
365
485
|
}, {
|
|
366
486
|
retries: {
|
|
@@ -404,7 +524,31 @@ const unifiedTo = new UnifiedTo({
|
|
|
404
524
|
|
|
405
525
|
async function run() {
|
|
406
526
|
const result = await unifiedTo.accounting.createAccountingAccount({
|
|
407
|
-
accountingAccount: {
|
|
527
|
+
accountingAccount: {
|
|
528
|
+
balance: 12092,
|
|
529
|
+
createdAt: new Date("2022-07-03T17:57:07.391Z"),
|
|
530
|
+
currency: "BOB",
|
|
531
|
+
customerDefinedCode: "quo",
|
|
532
|
+
description: "Spoliatio comedo vilitas harum cupiditate.",
|
|
533
|
+
id: "35991572-6b6d-4a7b-a883-101be82c839d",
|
|
534
|
+
isPayable: true,
|
|
535
|
+
name: "Electronic Aluminum Tuna",
|
|
536
|
+
status: "ARCHIVED",
|
|
537
|
+
taxonomy: [
|
|
538
|
+
{
|
|
539
|
+
originalType: "vesper",
|
|
540
|
+
type: "SUBGROUP",
|
|
541
|
+
value: "iste",
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
originalType: "adamo",
|
|
545
|
+
type: "SUBGROUP",
|
|
546
|
+
value: "peccatus",
|
|
547
|
+
},
|
|
548
|
+
],
|
|
549
|
+
type: "BANK",
|
|
550
|
+
updatedAt: new Date("2023-01-03T03:11:26.602Z"),
|
|
551
|
+
},
|
|
408
552
|
connectionId: "<id>",
|
|
409
553
|
});
|
|
410
554
|
|
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "1.0";
|
|
38
|
-
readonly sdkVersion: "2.85.
|
|
38
|
+
readonly sdkVersion: "2.85.46";
|
|
39
39
|
readonly genVersion: "2.937.18";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.85.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.85.46 2.937.18 1.0 @unified-api/typescript-sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -39,8 +39,8 @@ function serverURLFromOptions(options) {
|
|
|
39
39
|
exports.SDK_METADATA = {
|
|
40
40
|
language: "typescript",
|
|
41
41
|
openapiDocVersion: "1.0",
|
|
42
|
-
sdkVersion: "2.85.
|
|
42
|
+
sdkVersion: "2.85.46",
|
|
43
43
|
genVersion: "2.937.18",
|
|
44
|
-
userAgent: "speakeasy-sdk/typescript 2.85.
|
|
44
|
+
userAgent: "speakeasy-sdk/typescript 2.85.46 2.937.18 1.0 @unified-api/typescript-sdk",
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.js.map
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "1.0";
|
|
38
|
-
readonly sdkVersion: "2.85.
|
|
38
|
+
readonly sdkVersion: "2.85.46";
|
|
39
39
|
readonly genVersion: "2.937.18";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.85.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.85.46 2.937.18 1.0 @unified-api/typescript-sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -35,8 +35,8 @@ export function serverURLFromOptions(options) {
|
|
|
35
35
|
export const SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "1.0",
|
|
38
|
-
sdkVersion: "2.85.
|
|
38
|
+
sdkVersion: "2.85.46",
|
|
39
39
|
genVersion: "2.937.18",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 2.85.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 2.85.46 2.937.18 1.0 @unified-api/typescript-sdk",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -21,7 +21,31 @@ const unifiedTo = new UnifiedTo({
|
|
|
21
21
|
|
|
22
22
|
async function main() {
|
|
23
23
|
const result = await unifiedTo.accounting.createAccountingAccount({
|
|
24
|
-
accountingAccount: {
|
|
24
|
+
accountingAccount: {
|
|
25
|
+
balance: 12092,
|
|
26
|
+
createdAt: new Date("2022-07-03T17:57:07.391Z"),
|
|
27
|
+
currency: "BOB",
|
|
28
|
+
customerDefinedCode: "quo",
|
|
29
|
+
description: "Spoliatio comedo vilitas harum cupiditate.",
|
|
30
|
+
id: "35991572-6b6d-4a7b-a883-101be82c839d",
|
|
31
|
+
isPayable: true,
|
|
32
|
+
name: "Electronic Aluminum Tuna",
|
|
33
|
+
status: "ARCHIVED",
|
|
34
|
+
taxonomy: [
|
|
35
|
+
{
|
|
36
|
+
originalType: "vesper",
|
|
37
|
+
type: "SUBGROUP",
|
|
38
|
+
value: "iste",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
originalType: "adamo",
|
|
42
|
+
type: "SUBGROUP",
|
|
43
|
+
value: "peccatus",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
type: "BANK",
|
|
47
|
+
updatedAt: new Date("2023-01-03T03:11:26.602Z"),
|
|
48
|
+
},
|
|
25
49
|
connectionId: "<id>",
|
|
26
50
|
});
|
|
27
51
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "1.0",
|
|
76
|
-
sdkVersion: "2.85.
|
|
76
|
+
sdkVersion: "2.85.46",
|
|
77
77
|
genVersion: "2.937.18",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 2.85.
|
|
79
|
+
"speakeasy-sdk/typescript 2.85.46 2.937.18 1.0 @unified-api/typescript-sdk",
|
|
80
80
|
} as const;
|