@unified-api/typescript-sdk 1.0.22 → 1.0.24

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/README.md CHANGED
@@ -75,7 +75,6 @@ async function run() {
75
75
 
76
76
  const res = await sdk.accounting.createAccountingAccount({
77
77
  accountingAccount: {
78
- name: "<value>",
79
78
  raw: {
80
79
  key: "<value>",
81
80
  },
@@ -110,7 +109,6 @@ async function run() {
110
109
 
111
110
  const res = await sdk.accounting.createAccountingAccount({
112
111
  accountingAccount: {
113
- name: "<value>",
114
112
  raw: {
115
113
  key: "<value>",
116
114
  },
@@ -176,7 +174,6 @@ async function run() {
176
174
 
177
175
  const res = await sdk.accounting.createAccountingAccount({
178
176
  accountingAccount: {
179
- name: "<value>",
180
177
  raw: {
181
178
  key: "<value>",
182
179
  },
@@ -223,7 +220,6 @@ async function run() {
223
220
  try {
224
221
  res = await sdk.accounting.createAccountingAccount({
225
222
  accountingAccount: {
226
- name: "<value>",
227
223
  raw: {
228
224
  key: "<value>",
229
225
  },
@@ -10,7 +10,7 @@ export declare class ListCommerceInventoriesRequest extends SpeakeasyBase {
10
10
  * Comma-delimited fields to return
11
11
  */
12
12
  fields?: string[];
13
- itemId?: string;
13
+ itemVariantId?: string;
14
14
  limit?: number;
15
15
  locationId?: string;
16
16
  offset?: number;
@@ -67,9 +67,9 @@ var ListCommerceInventoriesRequest = /** @class */ (function (_super) {
67
67
  __metadata("design:type", Array)
68
68
  ], ListCommerceInventoriesRequest.prototype, "fields", void 0);
69
69
  __decorate([
70
- (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=item_id" }),
70
+ (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=item_variant_id" }),
71
71
  __metadata("design:type", String)
72
- ], ListCommerceInventoriesRequest.prototype, "itemId", void 0);
72
+ ], ListCommerceInventoriesRequest.prototype, "itemVariantId", void 0);
73
73
  __decorate([
74
74
  (0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=limit" }),
75
75
  __metadata("design:type", Number)
@@ -23,7 +23,8 @@ export declare class AccountingAccount extends SpeakeasyBase {
23
23
  description?: string;
24
24
  id?: string;
25
25
  isPayable?: boolean;
26
- name: string;
26
+ name?: string;
27
+ parentAccountId?: string;
27
28
  raw?: Record<string, any>;
28
29
  status?: Status;
29
30
  type?: TypeT;
@@ -97,6 +97,11 @@ var AccountingAccount = /** @class */ (function (_super) {
97
97
  (0, class_transformer_1.Expose)({ name: "name" }),
98
98
  __metadata("design:type", String)
99
99
  ], AccountingAccount.prototype, "name", void 0);
100
+ __decorate([
101
+ (0, utils_1.SpeakeasyMetadata)(),
102
+ (0, class_transformer_1.Expose)({ name: "parent_account_id" }),
103
+ __metadata("design:type", String)
104
+ ], AccountingAccount.prototype, "parentAccountId", void 0);
100
105
  __decorate([
101
106
  (0, utils_1.SpeakeasyMetadata)(),
102
107
  (0, class_transformer_1.Expose)({ name: "raw" }),
@@ -5,6 +5,6 @@ export declare enum AccountingEmailType {
5
5
  Other = "OTHER"
6
6
  }
7
7
  export declare class AccountingEmail extends SpeakeasyBase {
8
- email: string;
8
+ email?: string;
9
9
  type?: AccountingEmailType;
10
10
  }
@@ -13,7 +13,7 @@ export declare class AccountingLineitem extends SpeakeasyBase {
13
13
  refundedAt?: Date;
14
14
  taxAmount?: number;
15
15
  taxrateId?: string;
16
- totalAmount: number;
16
+ totalAmount?: number;
17
17
  unitAmount?: number;
18
18
  unitQuantity?: number;
19
19
  updatedAt?: Date;
@@ -4,8 +4,8 @@ export declare class AccountingTaxrate extends SpeakeasyBase {
4
4
  description?: string;
5
5
  id?: string;
6
6
  isActive?: boolean;
7
- name: string;
8
- rate: number;
7
+ name?: string;
8
+ rate?: number;
9
9
  raw?: Record<string, any>;
10
10
  updatedAt?: Date;
11
11
  }
@@ -7,6 +7,6 @@ export declare enum AccountingTelephoneType {
7
7
  Mobile = "MOBILE"
8
8
  }
9
9
  export declare class AccountingTelephone extends SpeakeasyBase {
10
- telephone: string;
10
+ telephone?: string;
11
11
  type?: AccountingTelephoneType;
12
12
  }
@@ -4,7 +4,7 @@ export declare class AccountingTransaction extends SpeakeasyBase {
4
4
  createdAt?: string;
5
5
  currency?: string;
6
6
  description?: string;
7
- id: string;
7
+ id?: string;
8
8
  /**
9
9
  * new field name
10
10
  */
@@ -1,11 +1,11 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  export declare class AccountingTransactionLineitem extends SpeakeasyBase {
3
- accountId: string;
3
+ accountId?: string;
4
4
  contactId?: string;
5
5
  description?: string;
6
6
  id?: string;
7
7
  invoiceId?: string;
8
8
  paymentId?: string;
9
9
  taxAmount?: number;
10
- totalAmount: number;
10
+ totalAmount?: number;
11
11
  }
package/dist/sdk/sdk.js CHANGED
@@ -86,9 +86,9 @@ var SDKConfiguration = /** @class */ (function () {
86
86
  function SDKConfiguration(init) {
87
87
  this.language = "typescript";
88
88
  this.openapiDocVersion = "1.0";
89
- this.sdkVersion = "1.0.22";
90
- this.genVersion = "2.326.3";
91
- this.userAgent = "speakeasy-sdk/typescript 1.0.22 2.326.3 1.0 @unified-api/typescript-sdk";
89
+ this.sdkVersion = "1.0.24";
90
+ this.genVersion = "2.333.3";
91
+ this.userAgent = "speakeasy-sdk/typescript 1.0.24 2.333.3 1.0 @unified-api/typescript-sdk";
92
92
  Object.assign(this, init);
93
93
  }
94
94
  return SDKConfiguration;
@@ -7,7 +7,7 @@
7
7
  | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
8
8
  | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
9
9
  | `fields` | *string*[] | :heavy_minus_sign: | Comma-delimited fields to return |
10
- | `itemId` | *string* | :heavy_minus_sign: | N/A |
10
+ | `itemVariantId` | *string* | :heavy_minus_sign: | N/A |
11
11
  | `limit` | *number* | :heavy_minus_sign: | N/A |
12
12
  | `locationId` | *string* | :heavy_minus_sign: | N/A |
13
13
  | `offset` | *number* | :heavy_minus_sign: | N/A |
@@ -12,7 +12,8 @@
12
12
  | `description` | *string* | :heavy_minus_sign: | N/A |
13
13
  | `id` | *string* | :heavy_minus_sign: | N/A |
14
14
  | `isPayable` | *boolean* | :heavy_minus_sign: | N/A |
15
- | `name` | *string* | :heavy_check_mark: | N/A |
15
+ | `name` | *string* | :heavy_minus_sign: | N/A |
16
+ | `parentAccountId` | *string* | :heavy_minus_sign: | N/A |
16
17
  | `raw` | Record<string, *any*> | :heavy_minus_sign: | N/A |
17
18
  | `status` | [shared.Status](../../../sdk/models/shared/status.md) | :heavy_minus_sign: | N/A |
18
19
  | `type` | [shared.TypeT](../../../sdk/models/shared/typet.md) | :heavy_minus_sign: | N/A |
@@ -5,5 +5,5 @@
5
5
 
6
6
  | Field | Type | Required | Description |
7
7
  | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
8
- | `email` | *string* | :heavy_check_mark: | N/A |
8
+ | `email` | *string* | :heavy_minus_sign: | N/A |
9
9
  | `type` | [shared.AccountingEmailType](../../../sdk/models/shared/accountingemailtype.md) | :heavy_minus_sign: | N/A |
@@ -18,7 +18,7 @@
18
18
  | `refundedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
19
19
  | `taxAmount` | *number* | :heavy_minus_sign: | N/A |
20
20
  | `taxrateId` | *string* | :heavy_minus_sign: | N/A |
21
- | `totalAmount` | *number* | :heavy_check_mark: | N/A |
21
+ | `totalAmount` | *number* | :heavy_minus_sign: | N/A |
22
22
  | `unitAmount` | *number* | :heavy_minus_sign: | N/A |
23
23
  | `unitQuantity` | *number* | :heavy_minus_sign: | N/A |
24
24
  | `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
@@ -9,7 +9,7 @@
9
9
  | `description` | *string* | :heavy_minus_sign: | N/A |
10
10
  | `id` | *string* | :heavy_minus_sign: | N/A |
11
11
  | `isActive` | *boolean* | :heavy_minus_sign: | N/A |
12
- | `name` | *string* | :heavy_check_mark: | N/A |
13
- | `rate` | *number* | :heavy_check_mark: | N/A |
12
+ | `name` | *string* | :heavy_minus_sign: | N/A |
13
+ | `rate` | *number* | :heavy_minus_sign: | N/A |
14
14
  | `raw` | Record<string, *any*> | :heavy_minus_sign: | N/A |
15
15
  | `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
@@ -5,5 +5,5 @@
5
5
 
6
6
  | Field | Type | Required | Description |
7
7
  | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
8
- | `telephone` | *string* | :heavy_check_mark: | N/A |
8
+ | `telephone` | *string* | :heavy_minus_sign: | N/A |
9
9
  | `type` | [shared.AccountingTelephoneType](../../../sdk/models/shared/accountingtelephonetype.md) | :heavy_minus_sign: | N/A |
@@ -8,7 +8,7 @@
8
8
  | `createdAt` | *string* | :heavy_minus_sign: | N/A |
9
9
  | `currency` | *string* | :heavy_minus_sign: | N/A |
10
10
  | `description` | *string* | :heavy_minus_sign: | N/A |
11
- | `id` | *string* | :heavy_check_mark: | N/A |
11
+ | `id` | *string* | :heavy_minus_sign: | N/A |
12
12
  | `lineitems` | [shared.AccountingTransactionLineitem](../../../sdk/models/shared/accountingtransactionlineitem.md)[] | :heavy_minus_sign: | new field name |
13
13
  | `raw` | Record<string, *any*> | :heavy_minus_sign: | N/A |
14
14
  | `reference` | *string* | :heavy_minus_sign: | N/A |
@@ -5,11 +5,11 @@
5
5
 
6
6
  | Field | Type | Required | Description |
7
7
  | ------------------ | ------------------ | ------------------ | ------------------ |
8
- | `accountId` | *string* | :heavy_check_mark: | N/A |
8
+ | `accountId` | *string* | :heavy_minus_sign: | N/A |
9
9
  | `contactId` | *string* | :heavy_minus_sign: | N/A |
10
10
  | `description` | *string* | :heavy_minus_sign: | N/A |
11
11
  | `id` | *string* | :heavy_minus_sign: | N/A |
12
12
  | `invoiceId` | *string* | :heavy_minus_sign: | N/A |
13
13
  | `paymentId` | *string* | :heavy_minus_sign: | N/A |
14
14
  | `taxAmount` | *number* | :heavy_minus_sign: | N/A |
15
- | `totalAmount` | *number* | :heavy_check_mark: | N/A |
15
+ | `totalAmount` | *number* | :heavy_minus_sign: | N/A |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unified-api/typescript-sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "author": "Unified",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",