@chrt-inc/typescript-sdk 1.718.0 → 1.719.0

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.
Files changed (30) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +6 -6
  4. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.ts +2 -2
  5. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -2
  6. package/dist/cjs/api/types/Department1.d.ts +1 -1
  7. package/dist/cjs/api/types/DepartmentSortByEnum.d.ts +2 -2
  8. package/dist/cjs/api/types/DepartmentSortByEnum.js +1 -1
  9. package/dist/cjs/api/types/{DepartmentEnum.d.ts → DepartmentTypeEnum.d.ts} +7 -2
  10. package/dist/cjs/api/types/{DepartmentEnum.js → DepartmentTypeEnum.js} +7 -2
  11. package/dist/cjs/api/types/index.d.ts +1 -1
  12. package/dist/cjs/api/types/index.js +1 -1
  13. package/dist/cjs/version.d.ts +1 -1
  14. package/dist/cjs/version.js +1 -1
  15. package/dist/esm/Client.mjs +2 -2
  16. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +1 -1
  17. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +6 -6
  18. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.mts +2 -2
  19. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -2
  20. package/dist/esm/api/types/Department1.d.mts +1 -1
  21. package/dist/esm/api/types/DepartmentSortByEnum.d.mts +2 -2
  22. package/dist/esm/api/types/DepartmentSortByEnum.mjs +1 -1
  23. package/dist/esm/api/types/{DepartmentEnum.d.mts → DepartmentTypeEnum.d.mts} +7 -2
  24. package/dist/esm/api/types/{DepartmentEnum.mjs → DepartmentTypeEnum.mjs} +6 -1
  25. package/dist/esm/api/types/index.d.mts +1 -1
  26. package/dist/esm/api/types/index.mjs +1 -1
  27. package/dist/esm/version.d.mts +1 -1
  28. package/dist/esm/version.mjs +1 -1
  29. package/package.json +1 -1
  30. package/reference.md +1 -1
@@ -56,8 +56,8 @@ class ChrtClient {
56
56
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
59
- "X-Fern-SDK-Version": "1.718.0",
60
- "User-Agent": "@chrt-inc/typescript-sdk/1.718.0",
59
+ "X-Fern-SDK-Version": "1.719.0",
60
+ "User-Agent": "@chrt-inc/typescript-sdk/1.719.0",
61
61
  "X-Fern-Runtime": core.RUNTIME.type,
62
62
  "X-Fern-Runtime-Version": core.RUNTIME.version,
63
63
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -100,7 +100,7 @@ export declare class Departments {
100
100
  * await client.operations.departments.createV1({
101
101
  * schema_version: 1,
102
102
  * name: "name",
103
- * department: "automotive"
103
+ * department_type: "automotive"
104
104
  * })
105
105
  */
106
106
  createV1(request: Chrt.operations.DepartmentClientCreate1, requestOptions?: Departments.RequestOptions): core.HttpResponsePromise<string>;
@@ -77,7 +77,7 @@ class Departments {
77
77
  __listV1() {
78
78
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
79
79
  var _a, _b, _c, _d, _e, _f;
80
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department: filterDepartment, } = request;
80
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department_type: filterDepartmentType, } = request;
81
81
  const _queryParams = {};
82
82
  if (sortBy !== undefined) {
83
83
  _queryParams["sort_by"] = sortBy;
@@ -91,12 +91,12 @@ class Departments {
91
91
  if (pageSize !== undefined) {
92
92
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
93
93
  }
94
- if (filterDepartment !== undefined) {
95
- if (Array.isArray(filterDepartment)) {
96
- _queryParams["filter_department"] = filterDepartment.map((item) => item);
94
+ if (filterDepartmentType !== undefined) {
95
+ if (Array.isArray(filterDepartmentType)) {
96
+ _queryParams["filter_department_type"] = filterDepartmentType.map((item) => item);
97
97
  }
98
98
  else {
99
- _queryParams["filter_department"] = filterDepartment;
99
+ _queryParams["filter_department_type"] = filterDepartmentType;
100
100
  }
101
101
  }
102
102
  let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -334,7 +334,7 @@ class Departments {
334
334
  * await client.operations.departments.createV1({
335
335
  * schema_version: 1,
336
336
  * name: "name",
337
- * department: "automotive"
337
+ * department_type: "automotive"
338
338
  * })
339
339
  */
340
340
  createV1(request, requestOptions) {
@@ -7,13 +7,13 @@ import * as Chrt from "../../../../../../index.js";
7
7
  * {
8
8
  * schema_version: 1,
9
9
  * name: "name",
10
- * department: "automotive"
10
+ * department_type: "automotive"
11
11
  * }
12
12
  */
13
13
  export interface DepartmentClientCreate1 {
14
14
  schema_version: number;
15
15
  name: string;
16
- department: Chrt.DepartmentEnum;
16
+ department_type: Chrt.DepartmentTypeEnum;
17
17
  location?: Chrt.LocationFeature | null;
18
18
  operator_user_ids?: string[];
19
19
  }
@@ -18,6 +18,6 @@ export interface DepartmentsListV1Request {
18
18
  sort_order?: Chrt.SortOrderEnum | null;
19
19
  page?: number | null;
20
20
  page_size?: number | null;
21
- /** Filter by department(s) */
22
- filter_department?: (Chrt.DepartmentEnum | null) | (Chrt.DepartmentEnum | null)[];
21
+ /** Filter by department type(s) */
22
+ filter_department_type?: (Chrt.DepartmentTypeEnum | null) | (Chrt.DepartmentTypeEnum | null)[];
23
23
  }
@@ -5,7 +5,7 @@ import * as Chrt from "../index.js";
5
5
  export interface Department1 {
6
6
  schema_version: number;
7
7
  name: string;
8
- department: Chrt.DepartmentEnum;
8
+ department_type: Chrt.DepartmentTypeEnum;
9
9
  location?: Chrt.LocationFeature | null;
10
10
  operator_user_ids?: string[];
11
11
  _id: string;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type DepartmentSortByEnum = "created_at" | "department";
4
+ export type DepartmentSortByEnum = "created_at" | "department_type";
5
5
  export declare const DepartmentSortByEnum: {
6
6
  readonly CreatedAt: "created_at";
7
- readonly Department: "department";
7
+ readonly DepartmentType: "department_type";
8
8
  };
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.DepartmentSortByEnum = void 0;
7
7
  exports.DepartmentSortByEnum = {
8
8
  CreatedAt: "created_at",
9
- Department: "department",
9
+ DepartmentType: "department_type",
10
10
  };
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type DepartmentEnum = "automotive" | "semiconductor" | "pharmaceutical" | "aerospace" | "agriculture" | "retail" | "manufacturing" | "energy" | "food_and_beverage" | "chemicals" | "electronics" | "general";
5
- export declare const DepartmentEnum: {
4
+ export type DepartmentTypeEnum = "automotive" | "semiconductor" | "pharmaceutical" | "aerospace" | "agriculture" | "retail" | "manufacturing" | "energy" | "food_and_beverage" | "chemicals" | "electronics" | "healthcare" | "industrials" | "live_animals" | "life_sciences" | "radiopharma" | "general";
5
+ export declare const DepartmentTypeEnum: {
6
6
  readonly Automotive: "automotive";
7
7
  readonly Semiconductor: "semiconductor";
8
8
  readonly Pharmaceutical: "pharmaceutical";
@@ -14,5 +14,10 @@ export declare const DepartmentEnum: {
14
14
  readonly FoodAndBeverage: "food_and_beverage";
15
15
  readonly Chemicals: "chemicals";
16
16
  readonly Electronics: "electronics";
17
+ readonly Healthcare: "healthcare";
18
+ readonly Industrials: "industrials";
19
+ readonly LiveAnimals: "live_animals";
20
+ readonly LifeSciences: "life_sciences";
21
+ readonly Radiopharma: "radiopharma";
17
22
  readonly General: "general";
18
23
  };
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DepartmentEnum = void 0;
7
- exports.DepartmentEnum = {
6
+ exports.DepartmentTypeEnum = void 0;
7
+ exports.DepartmentTypeEnum = {
8
8
  Automotive: "automotive",
9
9
  Semiconductor: "semiconductor",
10
10
  Pharmaceutical: "pharmaceutical",
@@ -16,5 +16,10 @@ exports.DepartmentEnum = {
16
16
  FoodAndBeverage: "food_and_beverage",
17
17
  Chemicals: "chemicals",
18
18
  Electronics: "electronics",
19
+ Healthcare: "healthcare",
20
+ Industrials: "industrials",
21
+ LiveAnimals: "live_animals",
22
+ LifeSciences: "life_sciences",
23
+ Radiopharma: "radiopharma",
19
24
  General: "general",
20
25
  };
@@ -119,9 +119,9 @@ export * from "./CreateStripeConnectAccountRes.js";
119
119
  export * from "./CredentialInfoRes.js";
120
120
  export * from "./DateTimeWindow1.js";
121
121
  export * from "./Department1.js";
122
- export * from "./DepartmentEnum.js";
123
122
  export * from "./DepartmentListRes.js";
124
123
  export * from "./DepartmentSortByEnum.js";
124
+ export * from "./DepartmentTypeEnum.js";
125
125
  export * from "./DeviceExpandedRes.js";
126
126
  export * from "./DeviceLimitedForList1.js";
127
127
  export * from "./DeviceListRes.js";
@@ -135,9 +135,9 @@ __exportStar(require("./CreateStripeConnectAccountRes.js"), exports);
135
135
  __exportStar(require("./CredentialInfoRes.js"), exports);
136
136
  __exportStar(require("./DateTimeWindow1.js"), exports);
137
137
  __exportStar(require("./Department1.js"), exports);
138
- __exportStar(require("./DepartmentEnum.js"), exports);
139
138
  __exportStar(require("./DepartmentListRes.js"), exports);
140
139
  __exportStar(require("./DepartmentSortByEnum.js"), exports);
140
+ __exportStar(require("./DepartmentTypeEnum.js"), exports);
141
141
  __exportStar(require("./DeviceExpandedRes.js"), exports);
142
142
  __exportStar(require("./DeviceLimitedForList1.js"), exports);
143
143
  __exportStar(require("./DeviceListRes.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.718.0";
1
+ export declare const SDK_VERSION = "1.719.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.718.0";
4
+ exports.SDK_VERSION = "1.719.0";
@@ -20,8 +20,8 @@ export class ChrtClient {
20
20
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
21
21
  "X-Fern-Language": "JavaScript",
22
22
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
23
- "X-Fern-SDK-Version": "1.718.0",
24
- "User-Agent": "@chrt-inc/typescript-sdk/1.718.0",
23
+ "X-Fern-SDK-Version": "1.719.0",
24
+ "User-Agent": "@chrt-inc/typescript-sdk/1.719.0",
25
25
  "X-Fern-Runtime": core.RUNTIME.type,
26
26
  "X-Fern-Runtime-Version": core.RUNTIME.version,
27
27
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -100,7 +100,7 @@ export declare class Departments {
100
100
  * await client.operations.departments.createV1({
101
101
  * schema_version: 1,
102
102
  * name: "name",
103
- * department: "automotive"
103
+ * department_type: "automotive"
104
104
  * })
105
105
  */
106
106
  createV1(request: Chrt.operations.DepartmentClientCreate1, requestOptions?: Departments.RequestOptions): core.HttpResponsePromise<string>;
@@ -41,7 +41,7 @@ export class Departments {
41
41
  __listV1() {
42
42
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
43
43
  var _a, _b, _c, _d, _e, _f;
44
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department: filterDepartment, } = request;
44
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department_type: filterDepartmentType, } = request;
45
45
  const _queryParams = {};
46
46
  if (sortBy !== undefined) {
47
47
  _queryParams["sort_by"] = sortBy;
@@ -55,12 +55,12 @@ export class Departments {
55
55
  if (pageSize !== undefined) {
56
56
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
57
57
  }
58
- if (filterDepartment !== undefined) {
59
- if (Array.isArray(filterDepartment)) {
60
- _queryParams["filter_department"] = filterDepartment.map((item) => item);
58
+ if (filterDepartmentType !== undefined) {
59
+ if (Array.isArray(filterDepartmentType)) {
60
+ _queryParams["filter_department_type"] = filterDepartmentType.map((item) => item);
61
61
  }
62
62
  else {
63
- _queryParams["filter_department"] = filterDepartment;
63
+ _queryParams["filter_department_type"] = filterDepartmentType;
64
64
  }
65
65
  }
66
66
  let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -298,7 +298,7 @@ export class Departments {
298
298
  * await client.operations.departments.createV1({
299
299
  * schema_version: 1,
300
300
  * name: "name",
301
- * department: "automotive"
301
+ * department_type: "automotive"
302
302
  * })
303
303
  */
304
304
  createV1(request, requestOptions) {
@@ -7,13 +7,13 @@ import * as Chrt from "../../../../../../index.mjs";
7
7
  * {
8
8
  * schema_version: 1,
9
9
  * name: "name",
10
- * department: "automotive"
10
+ * department_type: "automotive"
11
11
  * }
12
12
  */
13
13
  export interface DepartmentClientCreate1 {
14
14
  schema_version: number;
15
15
  name: string;
16
- department: Chrt.DepartmentEnum;
16
+ department_type: Chrt.DepartmentTypeEnum;
17
17
  location?: Chrt.LocationFeature | null;
18
18
  operator_user_ids?: string[];
19
19
  }
@@ -18,6 +18,6 @@ export interface DepartmentsListV1Request {
18
18
  sort_order?: Chrt.SortOrderEnum | null;
19
19
  page?: number | null;
20
20
  page_size?: number | null;
21
- /** Filter by department(s) */
22
- filter_department?: (Chrt.DepartmentEnum | null) | (Chrt.DepartmentEnum | null)[];
21
+ /** Filter by department type(s) */
22
+ filter_department_type?: (Chrt.DepartmentTypeEnum | null) | (Chrt.DepartmentTypeEnum | null)[];
23
23
  }
@@ -5,7 +5,7 @@ import * as Chrt from "../index.mjs";
5
5
  export interface Department1 {
6
6
  schema_version: number;
7
7
  name: string;
8
- department: Chrt.DepartmentEnum;
8
+ department_type: Chrt.DepartmentTypeEnum;
9
9
  location?: Chrt.LocationFeature | null;
10
10
  operator_user_ids?: string[];
11
11
  _id: string;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type DepartmentSortByEnum = "created_at" | "department";
4
+ export type DepartmentSortByEnum = "created_at" | "department_type";
5
5
  export declare const DepartmentSortByEnum: {
6
6
  readonly CreatedAt: "created_at";
7
- readonly Department: "department";
7
+ readonly DepartmentType: "department_type";
8
8
  };
@@ -3,5 +3,5 @@
3
3
  */
4
4
  export const DepartmentSortByEnum = {
5
5
  CreatedAt: "created_at",
6
- Department: "department",
6
+ DepartmentType: "department_type",
7
7
  };
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type DepartmentEnum = "automotive" | "semiconductor" | "pharmaceutical" | "aerospace" | "agriculture" | "retail" | "manufacturing" | "energy" | "food_and_beverage" | "chemicals" | "electronics" | "general";
5
- export declare const DepartmentEnum: {
4
+ export type DepartmentTypeEnum = "automotive" | "semiconductor" | "pharmaceutical" | "aerospace" | "agriculture" | "retail" | "manufacturing" | "energy" | "food_and_beverage" | "chemicals" | "electronics" | "healthcare" | "industrials" | "live_animals" | "life_sciences" | "radiopharma" | "general";
5
+ export declare const DepartmentTypeEnum: {
6
6
  readonly Automotive: "automotive";
7
7
  readonly Semiconductor: "semiconductor";
8
8
  readonly Pharmaceutical: "pharmaceutical";
@@ -14,5 +14,10 @@ export declare const DepartmentEnum: {
14
14
  readonly FoodAndBeverage: "food_and_beverage";
15
15
  readonly Chemicals: "chemicals";
16
16
  readonly Electronics: "electronics";
17
+ readonly Healthcare: "healthcare";
18
+ readonly Industrials: "industrials";
19
+ readonly LiveAnimals: "live_animals";
20
+ readonly LifeSciences: "life_sciences";
21
+ readonly Radiopharma: "radiopharma";
17
22
  readonly General: "general";
18
23
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export const DepartmentEnum = {
4
+ export const DepartmentTypeEnum = {
5
5
  Automotive: "automotive",
6
6
  Semiconductor: "semiconductor",
7
7
  Pharmaceutical: "pharmaceutical",
@@ -13,5 +13,10 @@ export const DepartmentEnum = {
13
13
  FoodAndBeverage: "food_and_beverage",
14
14
  Chemicals: "chemicals",
15
15
  Electronics: "electronics",
16
+ Healthcare: "healthcare",
17
+ Industrials: "industrials",
18
+ LiveAnimals: "live_animals",
19
+ LifeSciences: "life_sciences",
20
+ Radiopharma: "radiopharma",
16
21
  General: "general",
17
22
  };
@@ -119,9 +119,9 @@ export * from "./CreateStripeConnectAccountRes.mjs";
119
119
  export * from "./CredentialInfoRes.mjs";
120
120
  export * from "./DateTimeWindow1.mjs";
121
121
  export * from "./Department1.mjs";
122
- export * from "./DepartmentEnum.mjs";
123
122
  export * from "./DepartmentListRes.mjs";
124
123
  export * from "./DepartmentSortByEnum.mjs";
124
+ export * from "./DepartmentTypeEnum.mjs";
125
125
  export * from "./DeviceExpandedRes.mjs";
126
126
  export * from "./DeviceLimitedForList1.mjs";
127
127
  export * from "./DeviceListRes.mjs";
@@ -119,9 +119,9 @@ export * from "./CreateStripeConnectAccountRes.mjs";
119
119
  export * from "./CredentialInfoRes.mjs";
120
120
  export * from "./DateTimeWindow1.mjs";
121
121
  export * from "./Department1.mjs";
122
- export * from "./DepartmentEnum.mjs";
123
122
  export * from "./DepartmentListRes.mjs";
124
123
  export * from "./DepartmentSortByEnum.mjs";
124
+ export * from "./DepartmentTypeEnum.mjs";
125
125
  export * from "./DeviceExpandedRes.mjs";
126
126
  export * from "./DeviceLimitedForList1.mjs";
127
127
  export * from "./DeviceListRes.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.718.0";
1
+ export declare const SDK_VERSION = "1.719.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.718.0";
1
+ export const SDK_VERSION = "1.719.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.718.0",
3
+ "version": "1.719.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -12871,7 +12871,7 @@ Creates a new department configuration for the caller's organization. | authz: m
12871
12871
  await client.operations.departments.createV1({
12872
12872
  schema_version: 1,
12873
12873
  name: "name",
12874
- department: "automotive",
12874
+ department_type: "automotive",
12875
12875
  });
12876
12876
  ```
12877
12877