@mergeapi/merge-node-client 4.0.0 → 4.0.2
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/BaseClient.js +2 -2
- package/api/resources/accounting/resources/projects/client/Client.d.ts +1 -0
- package/api/resources/accounting/resources/projects/client/Client.js +3 -1
- package/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.d.ts +3 -0
- package/api/resources/accounting/types/InvoiceLineItem.d.ts +2 -0
- package/api/resources/accounting/types/InvoiceLineItemRequest.d.ts +2 -0
- package/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.d.ts +2 -0
- package/package.json +1 -1
- package/reference.md +2 -0
- package/serialization/resources/accounting/types/InvoiceLineItem.d.ts +1 -0
- package/serialization/resources/accounting/types/InvoiceLineItem.js +1 -0
- package/serialization/resources/accounting/types/InvoiceLineItemRequest.d.ts +1 -0
- package/serialization/resources/accounting/types/InvoiceLineItemRequest.js +1 -0
- package/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.d.ts +1 -0
- package/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@mergeapi/merge-node-client",
|
|
46
|
-
"X-Fern-SDK-Version": "4.0.
|
|
47
|
-
"User-Agent": "@mergeapi/merge-node-client/4.0.
|
|
46
|
+
"X-Fern-SDK-Version": "4.0.2",
|
|
47
|
+
"User-Agent": "@mergeapi/merge-node-client/4.0.2",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Account-Token": options === null || options === void 0 ? void 0 : options.accountToken,
|
|
@@ -25,6 +25,7 @@ export declare class ProjectsClient {
|
|
|
25
25
|
* includeDeletedData: true,
|
|
26
26
|
* includeRemoteData: true,
|
|
27
27
|
* includeShellData: true,
|
|
28
|
+
* isActive: "is_active",
|
|
28
29
|
* modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
|
|
29
30
|
* modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
|
|
30
31
|
* pageSize: 1,
|
|
@@ -70,6 +70,7 @@ class ProjectsClient {
|
|
|
70
70
|
* includeDeletedData: true,
|
|
71
71
|
* includeRemoteData: true,
|
|
72
72
|
* includeShellData: true,
|
|
73
|
+
* isActive: "is_active",
|
|
73
74
|
* modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
|
|
74
75
|
* modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
|
|
75
76
|
* pageSize: 1,
|
|
@@ -80,7 +81,7 @@ class ProjectsClient {
|
|
|
80
81
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
81
82
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
82
83
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
83
|
-
const { companyId, createdAfter, createdBefore, cursor, expand, includeDeletedData, includeRemoteData, includeShellData, modifiedAfter, modifiedBefore, pageSize, remoteId, } = request;
|
|
84
|
+
const { companyId, createdAfter, createdBefore, cursor, expand, includeDeletedData, includeRemoteData, includeShellData, isActive, modifiedAfter, modifiedBefore, pageSize, remoteId, } = request;
|
|
84
85
|
const _queryParams = {
|
|
85
86
|
company_id: companyId,
|
|
86
87
|
created_after: createdAfter === null || createdAfter === void 0 ? void 0 : createdAfter.toISOString(),
|
|
@@ -98,6 +99,7 @@ class ProjectsClient {
|
|
|
98
99
|
include_deleted_data: includeDeletedData,
|
|
99
100
|
include_remote_data: includeRemoteData,
|
|
100
101
|
include_shell_data: includeShellData,
|
|
102
|
+
is_active: isActive,
|
|
101
103
|
modified_after: modifiedAfter === null || modifiedAfter === void 0 ? void 0 : modifiedAfter.toISOString(),
|
|
102
104
|
modified_before: modifiedBefore === null || modifiedBefore === void 0 ? void 0 : modifiedBefore.toISOString(),
|
|
103
105
|
page_size: pageSize,
|
package/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type * as Merge from "../../../../../../index";
|
|
|
9
9
|
* includeDeletedData: true,
|
|
10
10
|
* includeRemoteData: true,
|
|
11
11
|
* includeShellData: true,
|
|
12
|
+
* isActive: "is_active",
|
|
12
13
|
* modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
|
|
13
14
|
* modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
|
|
14
15
|
* pageSize: 1,
|
|
@@ -32,6 +33,8 @@ export interface ProjectsListRequest {
|
|
|
32
33
|
includeRemoteData?: boolean;
|
|
33
34
|
/** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */
|
|
34
35
|
includeShellData?: boolean;
|
|
36
|
+
/** If provided, will only return projects with this value for is_active. */
|
|
37
|
+
isActive?: string;
|
|
35
38
|
/** If provided, only objects synced by Merge after this date time will be returned. */
|
|
36
39
|
modifiedAfter?: Date;
|
|
37
40
|
/** If provided, only objects synced by Merge before this date time will be returned. */
|
|
@@ -352,6 +352,8 @@ export interface InvoiceLineItem {
|
|
|
352
352
|
company?: string;
|
|
353
353
|
/** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */
|
|
354
354
|
remoteWasDeleted?: boolean;
|
|
355
|
+
/** Indicates if the line item can be charged to the client/customer. */
|
|
356
|
+
isBillable?: boolean;
|
|
355
357
|
fieldMappings?: Record<string, unknown>;
|
|
356
358
|
remoteFields?: Merge.accounting.RemoteField[];
|
|
357
359
|
}
|
|
@@ -345,6 +345,8 @@ export interface InvoiceLineItemRequest {
|
|
|
345
345
|
trackingCategories?: (Merge.accounting.InvoiceLineItemRequestTrackingCategoriesItem | undefined)[];
|
|
346
346
|
/** The company the invoice belongs to. */
|
|
347
347
|
company?: string;
|
|
348
|
+
/** Indicates if the line item can be charged to the client/customer. */
|
|
349
|
+
isBillable?: boolean;
|
|
348
350
|
integrationParams?: Record<string, unknown>;
|
|
349
351
|
linkedAccountParams?: Record<string, unknown>;
|
|
350
352
|
remoteFields?: Merge.accounting.RemoteFieldRequest[];
|
|
@@ -40,4 +40,6 @@ export interface EndUserDetailsRequest {
|
|
|
40
40
|
areSyncsDisabled?: boolean;
|
|
41
41
|
/** A JSON object containing integration-specific configuration options. */
|
|
42
42
|
integrationSpecificConfig?: Record<string, unknown>;
|
|
43
|
+
/** The UUID of the linked destination that you want this Linked Account to be tied to. */
|
|
44
|
+
linkedDestinationId?: string;
|
|
43
45
|
}
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -15427,6 +15427,7 @@ const pageableResponse = await client.accounting.projects.list({
|
|
|
15427
15427
|
includeDeletedData: true,
|
|
15428
15428
|
includeRemoteData: true,
|
|
15429
15429
|
includeShellData: true,
|
|
15430
|
+
isActive: "is_active",
|
|
15430
15431
|
modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
|
|
15431
15432
|
modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
|
|
15432
15433
|
pageSize: 1,
|
|
@@ -15445,6 +15446,7 @@ let page = await client.accounting.projects.list({
|
|
|
15445
15446
|
includeDeletedData: true,
|
|
15446
15447
|
includeRemoteData: true,
|
|
15447
15448
|
includeShellData: true,
|
|
15449
|
+
isActive: "is_active",
|
|
15448
15450
|
modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
|
|
15449
15451
|
modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
|
|
15450
15452
|
pageSize: 1,
|
|
@@ -32,6 +32,7 @@ export declare namespace InvoiceLineItem {
|
|
|
32
32
|
tracking_categories?: (InvoiceLineItemTrackingCategoriesItem.Raw | null | undefined)[] | null;
|
|
33
33
|
company?: string | null;
|
|
34
34
|
remote_was_deleted?: boolean | null;
|
|
35
|
+
is_billable?: boolean | null;
|
|
35
36
|
field_mappings?: Record<string, unknown> | null;
|
|
36
37
|
remote_fields?: RemoteField.Raw[] | null;
|
|
37
38
|
}
|
|
@@ -65,6 +65,7 @@ exports.InvoiceLineItem = core.serialization.object({
|
|
|
65
65
|
trackingCategories: core.serialization.property("tracking_categories", core.serialization.list(InvoiceLineItemTrackingCategoriesItem_1.InvoiceLineItemTrackingCategoriesItem.optional()).optional()),
|
|
66
66
|
company: core.serialization.string().optional(),
|
|
67
67
|
remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()),
|
|
68
|
+
isBillable: core.serialization.property("is_billable", core.serialization.boolean().optional()),
|
|
68
69
|
fieldMappings: core.serialization.property("field_mappings", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
69
70
|
remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteField_1.RemoteField).optional()),
|
|
70
71
|
});
|
|
@@ -28,6 +28,7 @@ export declare namespace InvoiceLineItemRequest {
|
|
|
28
28
|
tracking_category?: InvoiceLineItemRequestTrackingCategory.Raw | null;
|
|
29
29
|
tracking_categories?: (InvoiceLineItemRequestTrackingCategoriesItem.Raw | null | undefined)[] | null;
|
|
30
30
|
company?: string | null;
|
|
31
|
+
is_billable?: boolean | null;
|
|
31
32
|
integration_params?: Record<string, unknown> | null;
|
|
32
33
|
linked_account_params?: Record<string, unknown> | null;
|
|
33
34
|
remote_fields?: RemoteFieldRequest.Raw[] | null;
|
|
@@ -61,6 +61,7 @@ exports.InvoiceLineItemRequest = core.serialization.object({
|
|
|
61
61
|
trackingCategory: core.serialization.property("tracking_category", InvoiceLineItemRequestTrackingCategory_1.InvoiceLineItemRequestTrackingCategory.optional()),
|
|
62
62
|
trackingCategories: core.serialization.property("tracking_categories", core.serialization.list(InvoiceLineItemRequestTrackingCategoriesItem_1.InvoiceLineItemRequestTrackingCategoriesItem.optional()).optional()),
|
|
63
63
|
company: core.serialization.string().optional(),
|
|
64
|
+
isBillable: core.serialization.property("is_billable", core.serialization.boolean().optional()),
|
|
64
65
|
integrationParams: core.serialization.property("integration_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
65
66
|
linkedAccountParams: core.serialization.property("linked_account_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
66
67
|
remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest_1.RemoteFieldRequest).optional()),
|
package/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.js
CHANGED
|
@@ -56,4 +56,5 @@ exports.EndUserDetailsRequest = core.serialization.object({
|
|
|
56
56
|
language: EndUserDetailsRequestLanguage_1.EndUserDetailsRequestLanguage.optional(),
|
|
57
57
|
areSyncsDisabled: core.serialization.property("are_syncs_disabled", core.serialization.boolean().optional()),
|
|
58
58
|
integrationSpecificConfig: core.serialization.property("integration_specific_config", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
59
|
+
linkedDestinationId: core.serialization.property("linked_destination_id", core.serialization.string().optional()),
|
|
59
60
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.
|
|
1
|
+
export declare const SDK_VERSION = "4.0.2";
|
package/version.js
CHANGED