@mergeapi/merge-node-client 2.1.3 → 2.2.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.
- package/.mock/definition/accounting/__package__.yml +77 -0
- package/.mock/definition/accounting/contacts.yml +280 -0
- package/.mock/definition/accounting/transactions.yml +128 -0
- package/.mock/definition/ats/__package__.yml +1 -0
- package/.mock/definition/filestorage/files.yml +16 -0
- package/.mock/definition/hris/__package__.yml +5 -5
- package/.mock/definition/hris/benefits.yml +2 -2
- package/.mock/definition/ticketing/__package__.yml +3 -3
- package/.mock/definition/ticketing/tickets.yml +3 -0
- package/Client.d.ts +3 -3
- package/Client.js +8 -8
- package/api/resources/accounting/resources/contacts/client/Client.d.ts +25 -0
- package/api/resources/accounting/resources/contacts/client/Client.js +144 -0
- package/api/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.d.ts +17 -0
- package/api/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.js +5 -0
- package/api/resources/accounting/resources/contacts/client/requests/index.d.ts +1 -0
- package/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.d.ts +33 -1
- package/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.js +32 -0
- package/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.d.ts +33 -1
- package/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.js +32 -0
- package/api/resources/accounting/types/PatchedContactRequest.d.ts +44 -0
- package/api/resources/accounting/types/PatchedContactRequest.js +5 -0
- package/api/resources/accounting/types/PatchedContactRequestAddressesItem.d.ts +5 -0
- package/api/resources/accounting/types/PatchedContactRequestAddressesItem.js +5 -0
- package/api/resources/accounting/types/index.d.ts +2 -0
- package/api/resources/accounting/types/index.js +2 -0
- package/api/resources/ats/types/EventTypeEnum.d.ts +2 -1
- package/api/resources/ats/types/EventTypeEnum.js +1 -0
- package/api/resources/filestorage/resources/files/client/Client.js +16 -2
- package/api/resources/filestorage/resources/files/client/requests/FilesDownloadRequestMetaListRequest.d.ts +2 -0
- package/api/resources/filestorage/resources/files/client/requests/FilesListRequest.d.ts +4 -0
- package/api/resources/hris/types/Benefit.d.ts +2 -2
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/api/resources/ticketing/resources/tickets/client/Client.js +4 -1
- package/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.d.ts +2 -0
- package/api/resources/ticketing/types/PatchedTicketRequest.d.ts +2 -2
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +8 -8
- package/dist/api/resources/accounting/resources/contacts/client/Client.d.ts +25 -0
- package/dist/api/resources/accounting/resources/contacts/client/Client.js +144 -0
- package/dist/api/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.d.ts +17 -0
- package/dist/api/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.js +5 -0
- package/dist/api/resources/accounting/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.d.ts +33 -1
- package/dist/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.js +32 -0
- package/dist/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.d.ts +33 -1
- package/dist/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.js +32 -0
- package/dist/api/resources/accounting/types/PatchedContactRequest.d.ts +44 -0
- package/dist/api/resources/accounting/types/PatchedContactRequest.js +5 -0
- package/dist/api/resources/accounting/types/PatchedContactRequestAddressesItem.d.ts +5 -0
- package/dist/api/resources/accounting/types/PatchedContactRequestAddressesItem.js +5 -0
- package/dist/api/resources/accounting/types/index.d.ts +2 -0
- package/dist/api/resources/accounting/types/index.js +2 -0
- package/dist/api/resources/ats/types/EventTypeEnum.d.ts +2 -1
- package/dist/api/resources/ats/types/EventTypeEnum.js +1 -0
- package/dist/api/resources/filestorage/resources/files/client/Client.js +16 -2
- package/dist/api/resources/filestorage/resources/files/client/requests/FilesDownloadRequestMetaListRequest.d.ts +2 -0
- package/dist/api/resources/filestorage/resources/files/client/requests/FilesListRequest.d.ts +4 -0
- package/dist/api/resources/hris/types/Benefit.d.ts +2 -2
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/api/resources/ticketing/resources/tickets/client/Client.js +4 -1
- package/dist/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.d.ts +2 -0
- package/dist/api/resources/ticketing/types/PatchedTicketRequest.d.ts +2 -2
- package/dist/serialization/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.d.ts +13 -0
- package/dist/serialization/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.js +44 -0
- package/dist/serialization/resources/accounting/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/accounting/resources/contacts/client/requests/index.js +3 -1
- package/dist/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.d.ts +1 -1
- package/dist/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.js +32 -0
- package/dist/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.d.ts +1 -1
- package/dist/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.js +32 -0
- package/dist/serialization/resources/accounting/types/PatchedContactRequest.d.ts +27 -0
- package/dist/serialization/resources/accounting/types/PatchedContactRequest.js +58 -0
- package/dist/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.d.ts +11 -0
- package/dist/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.js +42 -0
- package/dist/serialization/resources/accounting/types/index.d.ts +2 -0
- package/dist/serialization/resources/accounting/types/index.js +2 -0
- package/dist/serialization/resources/ats/types/EventTypeEnum.d.ts +1 -1
- package/dist/serialization/resources/ats/types/EventTypeEnum.js +1 -0
- package/dist/serialization/resources/hris/types/Benefit.d.ts +1 -1
- package/dist/serialization/resources/hris/types/Benefit.js +1 -1
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/resources/ticketing/types/PatchedTicketRequest.d.ts +1 -1
- package/dist/serialization/resources/ticketing/types/PatchedTicketRequest.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1467 -1331
- package/serialization/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.d.ts +13 -0
- package/serialization/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.js +44 -0
- package/serialization/resources/accounting/resources/contacts/client/requests/index.d.ts +1 -0
- package/serialization/resources/accounting/resources/contacts/client/requests/index.js +3 -1
- package/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.d.ts +1 -1
- package/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.js +32 -0
- package/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.d.ts +1 -1
- package/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.js +32 -0
- package/serialization/resources/accounting/types/PatchedContactRequest.d.ts +27 -0
- package/serialization/resources/accounting/types/PatchedContactRequest.js +58 -0
- package/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.d.ts +11 -0
- package/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.js +42 -0
- package/serialization/resources/accounting/types/index.d.ts +2 -0
- package/serialization/resources/accounting/types/index.js +2 -0
- package/serialization/resources/ats/types/EventTypeEnum.d.ts +1 -1
- package/serialization/resources/ats/types/EventTypeEnum.js +1 -0
- package/serialization/resources/hris/types/Benefit.d.ts +1 -1
- package/serialization/resources/hris/types/Benefit.js +1 -1
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/resources/ticketing/types/PatchedTicketRequest.d.ts +1 -1
- package/serialization/resources/ticketing/types/PatchedTicketRequest.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -93,8 +93,8 @@ service:
|
|
|
93
93
|
company_contribution: 150
|
|
94
94
|
start_date: '2020-11-15T00:59:25Z'
|
|
95
95
|
end_date: '2021-10-15T00:23:25Z'
|
|
96
|
-
remote_was_deleted: true
|
|
97
96
|
employer_benefit: 025fjlc6-6000-430a-848e-aafacbadf4fe
|
|
97
|
+
remote_was_deleted: true
|
|
98
98
|
field_mappings:
|
|
99
99
|
organization_defined_targets:
|
|
100
100
|
custom_key: custom_value
|
|
@@ -152,8 +152,8 @@ service:
|
|
|
152
152
|
company_contribution: 150
|
|
153
153
|
start_date: '2020-11-15T00:59:25Z'
|
|
154
154
|
end_date: '2021-10-15T00:23:25Z'
|
|
155
|
-
remote_was_deleted: true
|
|
156
155
|
employer_benefit: 025fjlc6-6000-430a-848e-aafacbadf4fe
|
|
156
|
+
remote_was_deleted: true
|
|
157
157
|
field_mappings:
|
|
158
158
|
organization_defined_targets:
|
|
159
159
|
custom_key: custom_value
|
|
@@ -2117,9 +2117,6 @@ types:
|
|
|
2117
2117
|
* `COLLECTION` - COLLECTION
|
|
2118
2118
|
tags: optional<list<optional<string>>>
|
|
2119
2119
|
roles: optional<list<optional<string>>>
|
|
2120
|
-
completed_at:
|
|
2121
|
-
type: optional<datetime>
|
|
2122
|
-
docs: When the ticket was completed.
|
|
2123
2120
|
ticket_url:
|
|
2124
2121
|
type: optional<string>
|
|
2125
2122
|
docs: The 3rd party url of the Ticket.
|
|
@@ -2135,6 +2132,9 @@ types:
|
|
|
2135
2132
|
* `HIGH` - HIGH
|
|
2136
2133
|
* `NORMAL` - NORMAL
|
|
2137
2134
|
* `LOW` - LOW
|
|
2135
|
+
completed_at:
|
|
2136
|
+
type: optional<datetime>
|
|
2137
|
+
docs: When the ticket was completed.
|
|
2138
2138
|
integration_params:
|
|
2139
2139
|
type: optional<map<string, unknown>>
|
|
2140
2140
|
access: write-only
|
|
@@ -1158,6 +1158,9 @@ service:
|
|
|
1158
1158
|
docs: >-
|
|
1159
1159
|
If provided, will only return objects created before this
|
|
1160
1160
|
datetime.
|
|
1161
|
+
creator_id:
|
|
1162
|
+
type: optional<string>
|
|
1163
|
+
docs: If provided, will only return tickets created by this creator_id.
|
|
1161
1164
|
cursor:
|
|
1162
1165
|
type: optional<string>
|
|
1163
1166
|
docs: The pagination cursor value.
|
package/Client.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { Ats } from "./api/resources/ats/client/Client";
|
|
7
|
-
import { Crm } from "./api/resources/crm/client/Client";
|
|
8
7
|
import { Filestorage } from "./api/resources/filestorage/client/Client";
|
|
8
|
+
import { Crm } from "./api/resources/crm/client/Client";
|
|
9
9
|
import { Hris } from "./api/resources/hris/client/Client";
|
|
10
10
|
import { Ticketing } from "./api/resources/ticketing/client/Client";
|
|
11
11
|
import { Accounting } from "./api/resources/accounting/client/Client";
|
|
@@ -39,15 +39,15 @@ export declare namespace MergeClient {
|
|
|
39
39
|
export declare class MergeClient {
|
|
40
40
|
protected readonly _options: MergeClient.Options;
|
|
41
41
|
protected _ats: Ats | undefined;
|
|
42
|
-
protected _crm: Crm | undefined;
|
|
43
42
|
protected _filestorage: Filestorage | undefined;
|
|
43
|
+
protected _crm: Crm | undefined;
|
|
44
44
|
protected _hris: Hris | undefined;
|
|
45
45
|
protected _ticketing: Ticketing | undefined;
|
|
46
46
|
protected _accounting: Accounting | undefined;
|
|
47
47
|
constructor(_options: MergeClient.Options);
|
|
48
48
|
get ats(): Ats;
|
|
49
|
-
get crm(): Crm;
|
|
50
49
|
get filestorage(): Filestorage;
|
|
50
|
+
get crm(): Crm;
|
|
51
51
|
get hris(): Hris;
|
|
52
52
|
get ticketing(): Ticketing;
|
|
53
53
|
get accounting(): Accounting;
|
package/Client.js
CHANGED
|
@@ -40,8 +40,8 @@ exports.MergeClient = void 0;
|
|
|
40
40
|
const core = __importStar(require("./core"));
|
|
41
41
|
const headers_1 = require("./core/headers");
|
|
42
42
|
const Client_1 = require("./api/resources/ats/client/Client");
|
|
43
|
-
const Client_2 = require("./api/resources/
|
|
44
|
-
const Client_3 = require("./api/resources/
|
|
43
|
+
const Client_2 = require("./api/resources/filestorage/client/Client");
|
|
44
|
+
const Client_3 = require("./api/resources/crm/client/Client");
|
|
45
45
|
const Client_4 = require("./api/resources/hris/client/Client");
|
|
46
46
|
const Client_5 = require("./api/resources/ticketing/client/Client");
|
|
47
47
|
const Client_6 = require("./api/resources/accounting/client/Client");
|
|
@@ -51,8 +51,8 @@ class MergeClient {
|
|
|
51
51
|
"X-Account-Token": _options === null || _options === void 0 ? void 0 : _options.accountToken,
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "@mergeapi/merge-node-client",
|
|
54
|
-
"X-Fern-SDK-Version": "2.
|
|
55
|
-
"User-Agent": "@mergeapi/merge-node-client/2.
|
|
54
|
+
"X-Fern-SDK-Version": "2.2.0",
|
|
55
|
+
"User-Agent": "@mergeapi/merge-node-client/2.2.0",
|
|
56
56
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
57
57
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
58
58
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -61,13 +61,13 @@ class MergeClient {
|
|
|
61
61
|
var _a;
|
|
62
62
|
return ((_a = this._ats) !== null && _a !== void 0 ? _a : (this._ats = new Client_1.Ats(this._options)));
|
|
63
63
|
}
|
|
64
|
-
get
|
|
64
|
+
get filestorage() {
|
|
65
65
|
var _a;
|
|
66
|
-
return ((_a = this.
|
|
66
|
+
return ((_a = this._filestorage) !== null && _a !== void 0 ? _a : (this._filestorage = new Client_2.Filestorage(this._options)));
|
|
67
67
|
}
|
|
68
|
-
get
|
|
68
|
+
get crm() {
|
|
69
69
|
var _a;
|
|
70
|
-
return ((_a = this.
|
|
70
|
+
return ((_a = this._crm) !== null && _a !== void 0 ? _a : (this._crm = new Client_3.Crm(this._options)));
|
|
71
71
|
}
|
|
72
72
|
get hris() {
|
|
73
73
|
var _a;
|
|
@@ -72,6 +72,31 @@ export declare class Contacts {
|
|
|
72
72
|
*/
|
|
73
73
|
retrieve(id: string, request?: Merge.accounting.ContactsRetrieveRequest, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Merge.accounting.Contact>;
|
|
74
74
|
private __retrieve;
|
|
75
|
+
/**
|
|
76
|
+
* Updates a `Contact` object with the given `id`.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} id
|
|
79
|
+
* @param {Merge.accounting.PatchedContactEndpointRequest} request
|
|
80
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.accounting.contacts.partialUpdate("id", {
|
|
84
|
+
* model: {}
|
|
85
|
+
* })
|
|
86
|
+
*/
|
|
87
|
+
partialUpdate(id: string, request: Merge.accounting.PatchedContactEndpointRequest, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Merge.accounting.ContactResponse>;
|
|
88
|
+
private __partialUpdate;
|
|
89
|
+
/**
|
|
90
|
+
* Returns metadata for `Contact` PATCHs.
|
|
91
|
+
*
|
|
92
|
+
* @param {string} id
|
|
93
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* await client.accounting.contacts.metaPatchRetrieve("id")
|
|
97
|
+
*/
|
|
98
|
+
metaPatchRetrieve(id: string, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Merge.accounting.MetaResponse>;
|
|
99
|
+
private __metaPatchRetrieve;
|
|
75
100
|
/**
|
|
76
101
|
* Returns metadata for `Contact` POSTs.
|
|
77
102
|
*
|
|
@@ -360,6 +360,150 @@ class Contacts {
|
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
|
+
/**
|
|
364
|
+
* Updates a `Contact` object with the given `id`.
|
|
365
|
+
*
|
|
366
|
+
* @param {string} id
|
|
367
|
+
* @param {Merge.accounting.PatchedContactEndpointRequest} request
|
|
368
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
369
|
+
*
|
|
370
|
+
* @example
|
|
371
|
+
* await client.accounting.contacts.partialUpdate("id", {
|
|
372
|
+
* model: {}
|
|
373
|
+
* })
|
|
374
|
+
*/
|
|
375
|
+
partialUpdate(id, request, requestOptions) {
|
|
376
|
+
return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions));
|
|
377
|
+
}
|
|
378
|
+
__partialUpdate(id, request, requestOptions) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
var _a, _b, _c, _d, _e, _f;
|
|
381
|
+
const { isDebugMode, runAsync } = request, _body = __rest(request, ["isDebugMode", "runAsync"]);
|
|
382
|
+
const _queryParams = {};
|
|
383
|
+
if (isDebugMode != null) {
|
|
384
|
+
_queryParams["is_debug_mode"] = isDebugMode.toString();
|
|
385
|
+
}
|
|
386
|
+
if (runAsync != null) {
|
|
387
|
+
_queryParams["run_async"] = runAsync.toString();
|
|
388
|
+
}
|
|
389
|
+
let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
390
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
391
|
+
"X-Account-Token": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.accountToken) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.accountToken,
|
|
392
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
393
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
394
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, `accounting/v1/contacts/${encodeURIComponent(id)}`),
|
|
395
|
+
method: "PATCH",
|
|
396
|
+
headers: _headers,
|
|
397
|
+
contentType: "application/json",
|
|
398
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
399
|
+
requestType: "json",
|
|
400
|
+
body: serializers.accounting.PatchedContactEndpointRequest.jsonOrThrow(_body, {
|
|
401
|
+
unrecognizedObjectKeys: "strip",
|
|
402
|
+
}),
|
|
403
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
404
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
405
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
406
|
+
});
|
|
407
|
+
if (_response.ok) {
|
|
408
|
+
return {
|
|
409
|
+
data: serializers.accounting.ContactResponse.parseOrThrow(_response.body, {
|
|
410
|
+
unrecognizedObjectKeys: "passthrough",
|
|
411
|
+
allowUnrecognizedUnionMembers: true,
|
|
412
|
+
allowUnrecognizedEnumValues: true,
|
|
413
|
+
skipValidation: true,
|
|
414
|
+
breadcrumbsPrefix: ["response"],
|
|
415
|
+
}),
|
|
416
|
+
rawResponse: _response.rawResponse,
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
if (_response.error.reason === "status-code") {
|
|
420
|
+
throw new errors.MergeError({
|
|
421
|
+
statusCode: _response.error.statusCode,
|
|
422
|
+
body: _response.error.body,
|
|
423
|
+
rawResponse: _response.rawResponse,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
switch (_response.error.reason) {
|
|
427
|
+
case "non-json":
|
|
428
|
+
throw new errors.MergeError({
|
|
429
|
+
statusCode: _response.error.statusCode,
|
|
430
|
+
body: _response.error.rawBody,
|
|
431
|
+
rawResponse: _response.rawResponse,
|
|
432
|
+
});
|
|
433
|
+
case "timeout":
|
|
434
|
+
throw new errors.MergeTimeoutError("Timeout exceeded when calling PATCH /accounting/v1/contacts/{id}.");
|
|
435
|
+
case "unknown":
|
|
436
|
+
throw new errors.MergeError({
|
|
437
|
+
message: _response.error.errorMessage,
|
|
438
|
+
rawResponse: _response.rawResponse,
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Returns metadata for `Contact` PATCHs.
|
|
445
|
+
*
|
|
446
|
+
* @param {string} id
|
|
447
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
448
|
+
*
|
|
449
|
+
* @example
|
|
450
|
+
* await client.accounting.contacts.metaPatchRetrieve("id")
|
|
451
|
+
*/
|
|
452
|
+
metaPatchRetrieve(id, requestOptions) {
|
|
453
|
+
return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions));
|
|
454
|
+
}
|
|
455
|
+
__metaPatchRetrieve(id, requestOptions) {
|
|
456
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
457
|
+
var _a, _b, _c, _d, _e, _f;
|
|
458
|
+
let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
459
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
460
|
+
"X-Account-Token": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.accountToken) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.accountToken,
|
|
461
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
462
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
463
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, `accounting/v1/contacts/meta/patch/${encodeURIComponent(id)}`),
|
|
464
|
+
method: "GET",
|
|
465
|
+
headers: _headers,
|
|
466
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
467
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
468
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
469
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
470
|
+
});
|
|
471
|
+
if (_response.ok) {
|
|
472
|
+
return {
|
|
473
|
+
data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, {
|
|
474
|
+
unrecognizedObjectKeys: "passthrough",
|
|
475
|
+
allowUnrecognizedUnionMembers: true,
|
|
476
|
+
allowUnrecognizedEnumValues: true,
|
|
477
|
+
skipValidation: true,
|
|
478
|
+
breadcrumbsPrefix: ["response"],
|
|
479
|
+
}),
|
|
480
|
+
rawResponse: _response.rawResponse,
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
if (_response.error.reason === "status-code") {
|
|
484
|
+
throw new errors.MergeError({
|
|
485
|
+
statusCode: _response.error.statusCode,
|
|
486
|
+
body: _response.error.body,
|
|
487
|
+
rawResponse: _response.rawResponse,
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
switch (_response.error.reason) {
|
|
491
|
+
case "non-json":
|
|
492
|
+
throw new errors.MergeError({
|
|
493
|
+
statusCode: _response.error.statusCode,
|
|
494
|
+
body: _response.error.rawBody,
|
|
495
|
+
rawResponse: _response.rawResponse,
|
|
496
|
+
});
|
|
497
|
+
case "timeout":
|
|
498
|
+
throw new errors.MergeTimeoutError("Timeout exceeded when calling GET /accounting/v1/contacts/meta/patch/{id}.");
|
|
499
|
+
case "unknown":
|
|
500
|
+
throw new errors.MergeError({
|
|
501
|
+
message: _response.error.errorMessage,
|
|
502
|
+
rawResponse: _response.rawResponse,
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
363
507
|
/**
|
|
364
508
|
* Returns metadata for `Contact` POSTs.
|
|
365
509
|
*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Merge from "../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* model: {}
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface PatchedContactEndpointRequest {
|
|
12
|
+
/** Whether to include debug fields (such as log file links) in the response. */
|
|
13
|
+
isDebugMode?: boolean;
|
|
14
|
+
/** Whether or not third-party updates should be run asynchronously. */
|
|
15
|
+
runAsync?: boolean;
|
|
16
|
+
model: Merge.accounting.PatchedContactRequest;
|
|
17
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type ContactsListRequest } from "./ContactsListRequest";
|
|
2
2
|
export { type ContactEndpointRequest } from "./ContactEndpointRequest";
|
|
3
3
|
export { type ContactsRetrieveRequest } from "./ContactsRetrieveRequest";
|
|
4
|
+
export { type PatchedContactEndpointRequest } from "./PatchedContactEndpointRequest";
|
|
4
5
|
export { type ContactsRemoteFieldClassesListRequest } from "./ContactsRemoteFieldClassesListRequest";
|
package/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.d.ts
CHANGED
|
@@ -1,37 +1,69 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type TransactionsListRequestExpand = "account" | "account,accounting_period" | "accounting_period" | "contact" | "contact,account" | "contact,account,accounting_period" | "contact,accounting_period" | "line_items" | "line_items,account" | "line_items,account,accounting_period" | "line_items,accounting_period" | "line_items,contact" | "line_items,contact,account" | "line_items,contact,account,accounting_period" | "line_items,contact,accounting_period" | "line_items,tracking_categories" | "line_items,tracking_categories,account" | "line_items,tracking_categories,account,accounting_period" | "line_items,tracking_categories,accounting_period" | "line_items,tracking_categories,contact" | "line_items,tracking_categories,contact,account" | "line_items,tracking_categories,contact,account,accounting_period" | "line_items,tracking_categories,contact,accounting_period" | "tracking_categories" | "tracking_categories,account" | "tracking_categories,account,accounting_period" | "tracking_categories,accounting_period" | "tracking_categories,contact" | "tracking_categories,contact,account" | "tracking_categories,contact,account,accounting_period" | "tracking_categories,contact,accounting_period";
|
|
4
|
+
export type TransactionsListRequestExpand = "account" | "account,accounting_period" | "account,company" | "account,company,accounting_period" | "accounting_period" | "company" | "company,accounting_period" | "contact" | "contact,account" | "contact,account,accounting_period" | "contact,account,company" | "contact,account,company,accounting_period" | "contact,accounting_period" | "contact,company" | "contact,company,accounting_period" | "line_items" | "line_items,account" | "line_items,account,accounting_period" | "line_items,account,company" | "line_items,account,company,accounting_period" | "line_items,accounting_period" | "line_items,company" | "line_items,company,accounting_period" | "line_items,contact" | "line_items,contact,account" | "line_items,contact,account,accounting_period" | "line_items,contact,account,company" | "line_items,contact,account,company,accounting_period" | "line_items,contact,accounting_period" | "line_items,contact,company" | "line_items,contact,company,accounting_period" | "line_items,tracking_categories" | "line_items,tracking_categories,account" | "line_items,tracking_categories,account,accounting_period" | "line_items,tracking_categories,account,company" | "line_items,tracking_categories,account,company,accounting_period" | "line_items,tracking_categories,accounting_period" | "line_items,tracking_categories,company" | "line_items,tracking_categories,company,accounting_period" | "line_items,tracking_categories,contact" | "line_items,tracking_categories,contact,account" | "line_items,tracking_categories,contact,account,accounting_period" | "line_items,tracking_categories,contact,account,company" | "line_items,tracking_categories,contact,account,company,accounting_period" | "line_items,tracking_categories,contact,accounting_period" | "line_items,tracking_categories,contact,company" | "line_items,tracking_categories,contact,company,accounting_period" | "tracking_categories" | "tracking_categories,account" | "tracking_categories,account,accounting_period" | "tracking_categories,account,company" | "tracking_categories,account,company,accounting_period" | "tracking_categories,accounting_period" | "tracking_categories,company" | "tracking_categories,company,accounting_period" | "tracking_categories,contact" | "tracking_categories,contact,account" | "tracking_categories,contact,account,accounting_period" | "tracking_categories,contact,account,company" | "tracking_categories,contact,account,company,accounting_period" | "tracking_categories,contact,accounting_period" | "tracking_categories,contact,company" | "tracking_categories,contact,company,accounting_period";
|
|
5
5
|
export declare const TransactionsListRequestExpand: {
|
|
6
6
|
readonly Account: "account";
|
|
7
7
|
readonly AccountAccountingPeriod: "account,accounting_period";
|
|
8
|
+
readonly AccountCompany: "account,company";
|
|
9
|
+
readonly AccountCompanyAccountingPeriod: "account,company,accounting_period";
|
|
8
10
|
readonly AccountingPeriod: "accounting_period";
|
|
11
|
+
readonly Company: "company";
|
|
12
|
+
readonly CompanyAccountingPeriod: "company,accounting_period";
|
|
9
13
|
readonly Contact: "contact";
|
|
10
14
|
readonly ContactAccount: "contact,account";
|
|
11
15
|
readonly ContactAccountAccountingPeriod: "contact,account,accounting_period";
|
|
16
|
+
readonly ContactAccountCompany: "contact,account,company";
|
|
17
|
+
readonly ContactAccountCompanyAccountingPeriod: "contact,account,company,accounting_period";
|
|
12
18
|
readonly ContactAccountingPeriod: "contact,accounting_period";
|
|
19
|
+
readonly ContactCompany: "contact,company";
|
|
20
|
+
readonly ContactCompanyAccountingPeriod: "contact,company,accounting_period";
|
|
13
21
|
readonly LineItems: "line_items";
|
|
14
22
|
readonly LineItemsAccount: "line_items,account";
|
|
15
23
|
readonly LineItemsAccountAccountingPeriod: "line_items,account,accounting_period";
|
|
24
|
+
readonly LineItemsAccountCompany: "line_items,account,company";
|
|
25
|
+
readonly LineItemsAccountCompanyAccountingPeriod: "line_items,account,company,accounting_period";
|
|
16
26
|
readonly LineItemsAccountingPeriod: "line_items,accounting_period";
|
|
27
|
+
readonly LineItemsCompany: "line_items,company";
|
|
28
|
+
readonly LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period";
|
|
17
29
|
readonly LineItemsContact: "line_items,contact";
|
|
18
30
|
readonly LineItemsContactAccount: "line_items,contact,account";
|
|
19
31
|
readonly LineItemsContactAccountAccountingPeriod: "line_items,contact,account,accounting_period";
|
|
32
|
+
readonly LineItemsContactAccountCompany: "line_items,contact,account,company";
|
|
33
|
+
readonly LineItemsContactAccountCompanyAccountingPeriod: "line_items,contact,account,company,accounting_period";
|
|
20
34
|
readonly LineItemsContactAccountingPeriod: "line_items,contact,accounting_period";
|
|
35
|
+
readonly LineItemsContactCompany: "line_items,contact,company";
|
|
36
|
+
readonly LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period";
|
|
21
37
|
readonly LineItemsTrackingCategories: "line_items,tracking_categories";
|
|
22
38
|
readonly LineItemsTrackingCategoriesAccount: "line_items,tracking_categories,account";
|
|
23
39
|
readonly LineItemsTrackingCategoriesAccountAccountingPeriod: "line_items,tracking_categories,account,accounting_period";
|
|
40
|
+
readonly LineItemsTrackingCategoriesAccountCompany: "line_items,tracking_categories,account,company";
|
|
41
|
+
readonly LineItemsTrackingCategoriesAccountCompanyAccountingPeriod: "line_items,tracking_categories,account,company,accounting_period";
|
|
24
42
|
readonly LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period";
|
|
43
|
+
readonly LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company";
|
|
44
|
+
readonly LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period";
|
|
25
45
|
readonly LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact";
|
|
26
46
|
readonly LineItemsTrackingCategoriesContactAccount: "line_items,tracking_categories,contact,account";
|
|
27
47
|
readonly LineItemsTrackingCategoriesContactAccountAccountingPeriod: "line_items,tracking_categories,contact,account,accounting_period";
|
|
48
|
+
readonly LineItemsTrackingCategoriesContactAccountCompany: "line_items,tracking_categories,contact,account,company";
|
|
49
|
+
readonly LineItemsTrackingCategoriesContactAccountCompanyAccountingPeriod: "line_items,tracking_categories,contact,account,company,accounting_period";
|
|
28
50
|
readonly LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period";
|
|
51
|
+
readonly LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company";
|
|
52
|
+
readonly LineItemsTrackingCategoriesContactCompanyAccountingPeriod: "line_items,tracking_categories,contact,company,accounting_period";
|
|
29
53
|
readonly TrackingCategories: "tracking_categories";
|
|
30
54
|
readonly TrackingCategoriesAccount: "tracking_categories,account";
|
|
31
55
|
readonly TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period";
|
|
56
|
+
readonly TrackingCategoriesAccountCompany: "tracking_categories,account,company";
|
|
57
|
+
readonly TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period";
|
|
32
58
|
readonly TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period";
|
|
59
|
+
readonly TrackingCategoriesCompany: "tracking_categories,company";
|
|
60
|
+
readonly TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period";
|
|
33
61
|
readonly TrackingCategoriesContact: "tracking_categories,contact";
|
|
34
62
|
readonly TrackingCategoriesContactAccount: "tracking_categories,contact,account";
|
|
35
63
|
readonly TrackingCategoriesContactAccountAccountingPeriod: "tracking_categories,contact,account,accounting_period";
|
|
64
|
+
readonly TrackingCategoriesContactAccountCompany: "tracking_categories,contact,account,company";
|
|
65
|
+
readonly TrackingCategoriesContactAccountCompanyAccountingPeriod: "tracking_categories,contact,account,company,accounting_period";
|
|
36
66
|
readonly TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period";
|
|
67
|
+
readonly TrackingCategoriesContactCompany: "tracking_categories,contact,company";
|
|
68
|
+
readonly TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period";
|
|
37
69
|
};
|
package/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.js
CHANGED
|
@@ -7,33 +7,65 @@ exports.TransactionsListRequestExpand = void 0;
|
|
|
7
7
|
exports.TransactionsListRequestExpand = {
|
|
8
8
|
Account: "account",
|
|
9
9
|
AccountAccountingPeriod: "account,accounting_period",
|
|
10
|
+
AccountCompany: "account,company",
|
|
11
|
+
AccountCompanyAccountingPeriod: "account,company,accounting_period",
|
|
10
12
|
AccountingPeriod: "accounting_period",
|
|
13
|
+
Company: "company",
|
|
14
|
+
CompanyAccountingPeriod: "company,accounting_period",
|
|
11
15
|
Contact: "contact",
|
|
12
16
|
ContactAccount: "contact,account",
|
|
13
17
|
ContactAccountAccountingPeriod: "contact,account,accounting_period",
|
|
18
|
+
ContactAccountCompany: "contact,account,company",
|
|
19
|
+
ContactAccountCompanyAccountingPeriod: "contact,account,company,accounting_period",
|
|
14
20
|
ContactAccountingPeriod: "contact,accounting_period",
|
|
21
|
+
ContactCompany: "contact,company",
|
|
22
|
+
ContactCompanyAccountingPeriod: "contact,company,accounting_period",
|
|
15
23
|
LineItems: "line_items",
|
|
16
24
|
LineItemsAccount: "line_items,account",
|
|
17
25
|
LineItemsAccountAccountingPeriod: "line_items,account,accounting_period",
|
|
26
|
+
LineItemsAccountCompany: "line_items,account,company",
|
|
27
|
+
LineItemsAccountCompanyAccountingPeriod: "line_items,account,company,accounting_period",
|
|
18
28
|
LineItemsAccountingPeriod: "line_items,accounting_period",
|
|
29
|
+
LineItemsCompany: "line_items,company",
|
|
30
|
+
LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period",
|
|
19
31
|
LineItemsContact: "line_items,contact",
|
|
20
32
|
LineItemsContactAccount: "line_items,contact,account",
|
|
21
33
|
LineItemsContactAccountAccountingPeriod: "line_items,contact,account,accounting_period",
|
|
34
|
+
LineItemsContactAccountCompany: "line_items,contact,account,company",
|
|
35
|
+
LineItemsContactAccountCompanyAccountingPeriod: "line_items,contact,account,company,accounting_period",
|
|
22
36
|
LineItemsContactAccountingPeriod: "line_items,contact,accounting_period",
|
|
37
|
+
LineItemsContactCompany: "line_items,contact,company",
|
|
38
|
+
LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period",
|
|
23
39
|
LineItemsTrackingCategories: "line_items,tracking_categories",
|
|
24
40
|
LineItemsTrackingCategoriesAccount: "line_items,tracking_categories,account",
|
|
25
41
|
LineItemsTrackingCategoriesAccountAccountingPeriod: "line_items,tracking_categories,account,accounting_period",
|
|
42
|
+
LineItemsTrackingCategoriesAccountCompany: "line_items,tracking_categories,account,company",
|
|
43
|
+
LineItemsTrackingCategoriesAccountCompanyAccountingPeriod: "line_items,tracking_categories,account,company,accounting_period",
|
|
26
44
|
LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period",
|
|
45
|
+
LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company",
|
|
46
|
+
LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period",
|
|
27
47
|
LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact",
|
|
28
48
|
LineItemsTrackingCategoriesContactAccount: "line_items,tracking_categories,contact,account",
|
|
29
49
|
LineItemsTrackingCategoriesContactAccountAccountingPeriod: "line_items,tracking_categories,contact,account,accounting_period",
|
|
50
|
+
LineItemsTrackingCategoriesContactAccountCompany: "line_items,tracking_categories,contact,account,company",
|
|
51
|
+
LineItemsTrackingCategoriesContactAccountCompanyAccountingPeriod: "line_items,tracking_categories,contact,account,company,accounting_period",
|
|
30
52
|
LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period",
|
|
53
|
+
LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company",
|
|
54
|
+
LineItemsTrackingCategoriesContactCompanyAccountingPeriod: "line_items,tracking_categories,contact,company,accounting_period",
|
|
31
55
|
TrackingCategories: "tracking_categories",
|
|
32
56
|
TrackingCategoriesAccount: "tracking_categories,account",
|
|
33
57
|
TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period",
|
|
58
|
+
TrackingCategoriesAccountCompany: "tracking_categories,account,company",
|
|
59
|
+
TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period",
|
|
34
60
|
TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period",
|
|
61
|
+
TrackingCategoriesCompany: "tracking_categories,company",
|
|
62
|
+
TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period",
|
|
35
63
|
TrackingCategoriesContact: "tracking_categories,contact",
|
|
36
64
|
TrackingCategoriesContactAccount: "tracking_categories,contact,account",
|
|
37
65
|
TrackingCategoriesContactAccountAccountingPeriod: "tracking_categories,contact,account,accounting_period",
|
|
66
|
+
TrackingCategoriesContactAccountCompany: "tracking_categories,contact,account,company",
|
|
67
|
+
TrackingCategoriesContactAccountCompanyAccountingPeriod: "tracking_categories,contact,account,company,accounting_period",
|
|
38
68
|
TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period",
|
|
69
|
+
TrackingCategoriesContactCompany: "tracking_categories,contact,company",
|
|
70
|
+
TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period",
|
|
39
71
|
};
|
package/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.d.ts
CHANGED
|
@@ -1,37 +1,69 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type TransactionsRetrieveRequestExpand = "account" | "account,accounting_period" | "accounting_period" | "contact" | "contact,account" | "contact,account,accounting_period" | "contact,accounting_period" | "line_items" | "line_items,account" | "line_items,account,accounting_period" | "line_items,accounting_period" | "line_items,contact" | "line_items,contact,account" | "line_items,contact,account,accounting_period" | "line_items,contact,accounting_period" | "line_items,tracking_categories" | "line_items,tracking_categories,account" | "line_items,tracking_categories,account,accounting_period" | "line_items,tracking_categories,accounting_period" | "line_items,tracking_categories,contact" | "line_items,tracking_categories,contact,account" | "line_items,tracking_categories,contact,account,accounting_period" | "line_items,tracking_categories,contact,accounting_period" | "tracking_categories" | "tracking_categories,account" | "tracking_categories,account,accounting_period" | "tracking_categories,accounting_period" | "tracking_categories,contact" | "tracking_categories,contact,account" | "tracking_categories,contact,account,accounting_period" | "tracking_categories,contact,accounting_period";
|
|
4
|
+
export type TransactionsRetrieveRequestExpand = "account" | "account,accounting_period" | "account,company" | "account,company,accounting_period" | "accounting_period" | "company" | "company,accounting_period" | "contact" | "contact,account" | "contact,account,accounting_period" | "contact,account,company" | "contact,account,company,accounting_period" | "contact,accounting_period" | "contact,company" | "contact,company,accounting_period" | "line_items" | "line_items,account" | "line_items,account,accounting_period" | "line_items,account,company" | "line_items,account,company,accounting_period" | "line_items,accounting_period" | "line_items,company" | "line_items,company,accounting_period" | "line_items,contact" | "line_items,contact,account" | "line_items,contact,account,accounting_period" | "line_items,contact,account,company" | "line_items,contact,account,company,accounting_period" | "line_items,contact,accounting_period" | "line_items,contact,company" | "line_items,contact,company,accounting_period" | "line_items,tracking_categories" | "line_items,tracking_categories,account" | "line_items,tracking_categories,account,accounting_period" | "line_items,tracking_categories,account,company" | "line_items,tracking_categories,account,company,accounting_period" | "line_items,tracking_categories,accounting_period" | "line_items,tracking_categories,company" | "line_items,tracking_categories,company,accounting_period" | "line_items,tracking_categories,contact" | "line_items,tracking_categories,contact,account" | "line_items,tracking_categories,contact,account,accounting_period" | "line_items,tracking_categories,contact,account,company" | "line_items,tracking_categories,contact,account,company,accounting_period" | "line_items,tracking_categories,contact,accounting_period" | "line_items,tracking_categories,contact,company" | "line_items,tracking_categories,contact,company,accounting_period" | "tracking_categories" | "tracking_categories,account" | "tracking_categories,account,accounting_period" | "tracking_categories,account,company" | "tracking_categories,account,company,accounting_period" | "tracking_categories,accounting_period" | "tracking_categories,company" | "tracking_categories,company,accounting_period" | "tracking_categories,contact" | "tracking_categories,contact,account" | "tracking_categories,contact,account,accounting_period" | "tracking_categories,contact,account,company" | "tracking_categories,contact,account,company,accounting_period" | "tracking_categories,contact,accounting_period" | "tracking_categories,contact,company" | "tracking_categories,contact,company,accounting_period";
|
|
5
5
|
export declare const TransactionsRetrieveRequestExpand: {
|
|
6
6
|
readonly Account: "account";
|
|
7
7
|
readonly AccountAccountingPeriod: "account,accounting_period";
|
|
8
|
+
readonly AccountCompany: "account,company";
|
|
9
|
+
readonly AccountCompanyAccountingPeriod: "account,company,accounting_period";
|
|
8
10
|
readonly AccountingPeriod: "accounting_period";
|
|
11
|
+
readonly Company: "company";
|
|
12
|
+
readonly CompanyAccountingPeriod: "company,accounting_period";
|
|
9
13
|
readonly Contact: "contact";
|
|
10
14
|
readonly ContactAccount: "contact,account";
|
|
11
15
|
readonly ContactAccountAccountingPeriod: "contact,account,accounting_period";
|
|
16
|
+
readonly ContactAccountCompany: "contact,account,company";
|
|
17
|
+
readonly ContactAccountCompanyAccountingPeriod: "contact,account,company,accounting_period";
|
|
12
18
|
readonly ContactAccountingPeriod: "contact,accounting_period";
|
|
19
|
+
readonly ContactCompany: "contact,company";
|
|
20
|
+
readonly ContactCompanyAccountingPeriod: "contact,company,accounting_period";
|
|
13
21
|
readonly LineItems: "line_items";
|
|
14
22
|
readonly LineItemsAccount: "line_items,account";
|
|
15
23
|
readonly LineItemsAccountAccountingPeriod: "line_items,account,accounting_period";
|
|
24
|
+
readonly LineItemsAccountCompany: "line_items,account,company";
|
|
25
|
+
readonly LineItemsAccountCompanyAccountingPeriod: "line_items,account,company,accounting_period";
|
|
16
26
|
readonly LineItemsAccountingPeriod: "line_items,accounting_period";
|
|
27
|
+
readonly LineItemsCompany: "line_items,company";
|
|
28
|
+
readonly LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period";
|
|
17
29
|
readonly LineItemsContact: "line_items,contact";
|
|
18
30
|
readonly LineItemsContactAccount: "line_items,contact,account";
|
|
19
31
|
readonly LineItemsContactAccountAccountingPeriod: "line_items,contact,account,accounting_period";
|
|
32
|
+
readonly LineItemsContactAccountCompany: "line_items,contact,account,company";
|
|
33
|
+
readonly LineItemsContactAccountCompanyAccountingPeriod: "line_items,contact,account,company,accounting_period";
|
|
20
34
|
readonly LineItemsContactAccountingPeriod: "line_items,contact,accounting_period";
|
|
35
|
+
readonly LineItemsContactCompany: "line_items,contact,company";
|
|
36
|
+
readonly LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period";
|
|
21
37
|
readonly LineItemsTrackingCategories: "line_items,tracking_categories";
|
|
22
38
|
readonly LineItemsTrackingCategoriesAccount: "line_items,tracking_categories,account";
|
|
23
39
|
readonly LineItemsTrackingCategoriesAccountAccountingPeriod: "line_items,tracking_categories,account,accounting_period";
|
|
40
|
+
readonly LineItemsTrackingCategoriesAccountCompany: "line_items,tracking_categories,account,company";
|
|
41
|
+
readonly LineItemsTrackingCategoriesAccountCompanyAccountingPeriod: "line_items,tracking_categories,account,company,accounting_period";
|
|
24
42
|
readonly LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period";
|
|
43
|
+
readonly LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company";
|
|
44
|
+
readonly LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period";
|
|
25
45
|
readonly LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact";
|
|
26
46
|
readonly LineItemsTrackingCategoriesContactAccount: "line_items,tracking_categories,contact,account";
|
|
27
47
|
readonly LineItemsTrackingCategoriesContactAccountAccountingPeriod: "line_items,tracking_categories,contact,account,accounting_period";
|
|
48
|
+
readonly LineItemsTrackingCategoriesContactAccountCompany: "line_items,tracking_categories,contact,account,company";
|
|
49
|
+
readonly LineItemsTrackingCategoriesContactAccountCompanyAccountingPeriod: "line_items,tracking_categories,contact,account,company,accounting_period";
|
|
28
50
|
readonly LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period";
|
|
51
|
+
readonly LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company";
|
|
52
|
+
readonly LineItemsTrackingCategoriesContactCompanyAccountingPeriod: "line_items,tracking_categories,contact,company,accounting_period";
|
|
29
53
|
readonly TrackingCategories: "tracking_categories";
|
|
30
54
|
readonly TrackingCategoriesAccount: "tracking_categories,account";
|
|
31
55
|
readonly TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period";
|
|
56
|
+
readonly TrackingCategoriesAccountCompany: "tracking_categories,account,company";
|
|
57
|
+
readonly TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period";
|
|
32
58
|
readonly TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period";
|
|
59
|
+
readonly TrackingCategoriesCompany: "tracking_categories,company";
|
|
60
|
+
readonly TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period";
|
|
33
61
|
readonly TrackingCategoriesContact: "tracking_categories,contact";
|
|
34
62
|
readonly TrackingCategoriesContactAccount: "tracking_categories,contact,account";
|
|
35
63
|
readonly TrackingCategoriesContactAccountAccountingPeriod: "tracking_categories,contact,account,accounting_period";
|
|
64
|
+
readonly TrackingCategoriesContactAccountCompany: "tracking_categories,contact,account,company";
|
|
65
|
+
readonly TrackingCategoriesContactAccountCompanyAccountingPeriod: "tracking_categories,contact,account,company,accounting_period";
|
|
36
66
|
readonly TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period";
|
|
67
|
+
readonly TrackingCategoriesContactCompany: "tracking_categories,contact,company";
|
|
68
|
+
readonly TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period";
|
|
37
69
|
};
|