conductor-node 12.0.0-beta.1 → 12.0.0-beta.10
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/CHANGELOG.md +89 -0
- package/README.md +32 -27
- package/index.d.mts +4 -4
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-sessions.d.ts +11 -15
- package/resources/auth-sessions.d.ts.map +1 -1
- package/resources/auth-sessions.js +2 -8
- package/resources/auth-sessions.js.map +1 -1
- package/resources/auth-sessions.mjs +2 -8
- package/resources/auth-sessions.mjs.map +1 -1
- package/resources/end-users.d.ts +20 -32
- package/resources/end-users.d.ts.map +1 -1
- package/resources/end-users.js +4 -12
- package/resources/end-users.js.map +1 -1
- package/resources/end-users.mjs +4 -12
- package/resources/end-users.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/qbd/employees.d.ts +72 -30
- package/resources/qbd/employees.d.ts.map +1 -1
- package/resources/qbd/employees.js.map +1 -1
- package/resources/qbd/employees.mjs.map +1 -1
- package/resources/qbd/index.d.ts +2 -1
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +4 -1
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs +1 -0
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/inventory-assembly-items.d.ts +1 -1
- package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
- package/resources/qbd/inventory-items.d.ts +1 -1
- package/resources/qbd/inventory-items.d.ts.map +1 -1
- package/resources/qbd/qbd.d.ts +32 -0
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +20 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +20 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/time-tracking-activities.d.ts +485 -0
- package/resources/qbd/time-tracking-activities.d.ts.map +1 -0
- package/resources/qbd/time-tracking-activities.js +66 -0
- package/resources/qbd/time-tracking-activities.js.map +1 -0
- package/resources/qbd/time-tracking-activities.mjs +61 -0
- package/resources/qbd/time-tracking-activities.mjs.map +1 -0
- package/src/index.ts +6 -4
- package/src/resources/auth-sessions.ts +11 -18
- package/src/resources/end-users.ts +19 -40
- package/src/resources/index.ts +1 -2
- package/src/resources/qbd/employees.ts +72 -30
- package/src/resources/qbd/index.ts +12 -1
- package/src/resources/qbd/inventory-assembly-items.ts +1 -1
- package/src/resources/qbd/inventory-items.ts +1 -1
- package/src/resources/qbd/qbd.ts +73 -0
- package/src/resources/qbd/time-tracking-activities.ts +615 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -5,31 +5,24 @@ import * as Core from '../core';
|
|
|
5
5
|
|
|
6
6
|
export class AuthSessions extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* To launch the authentication flow, create an
|
|
9
|
-
* session
|
|
8
|
+
* To launch the authentication flow, create an auth session and pass the returned
|
|
9
|
+
* session's `authFlowUrl` to the client for your end-user to visit in their
|
|
10
10
|
* browser.
|
|
11
11
|
*/
|
|
12
12
|
create(body: AuthSessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<AuthSession> {
|
|
13
13
|
return this._client.post('/auth-sessions', { body, ...options });
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Retrieves the details of an AuthSession that has previously been created.
|
|
18
|
-
*/
|
|
19
|
-
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<AuthSession> {
|
|
20
|
-
return this._client.get(`/auth-sessions/${id}`, options);
|
|
21
|
-
}
|
|
22
15
|
}
|
|
23
16
|
|
|
24
17
|
export interface AuthSession {
|
|
25
18
|
/**
|
|
26
|
-
* The unique identifier for this
|
|
19
|
+
* The unique identifier for this auth session.
|
|
27
20
|
*/
|
|
28
21
|
id: string;
|
|
29
22
|
|
|
30
23
|
/**
|
|
31
24
|
* The URL of the authentication flow that you will pass to your client for your
|
|
32
|
-
* user to set up their
|
|
25
|
+
* user to set up their integration connection.
|
|
33
26
|
*/
|
|
34
27
|
authFlowUrl: string;
|
|
35
28
|
|
|
@@ -39,19 +32,19 @@ export interface AuthSession {
|
|
|
39
32
|
clientSecret: string;
|
|
40
33
|
|
|
41
34
|
/**
|
|
42
|
-
* The date and time when this
|
|
35
|
+
* The date and time when this auth session record was created.
|
|
43
36
|
*/
|
|
44
37
|
createdAt: string;
|
|
45
38
|
|
|
46
39
|
/**
|
|
47
|
-
* The ID of the
|
|
40
|
+
* The ID of the end-user for whom to create an integration connection.
|
|
48
41
|
*/
|
|
49
42
|
endUserId: string;
|
|
50
43
|
|
|
51
44
|
/**
|
|
52
|
-
* The date and time when this
|
|
45
|
+
* The date and time when this auth session expires. By default, this value is 30
|
|
53
46
|
* minutes from creation. You can extend this time by setting `linkExpiryMins` when
|
|
54
|
-
*
|
|
47
|
+
* creating the auth session.
|
|
55
48
|
*/
|
|
56
49
|
expiresAt: string;
|
|
57
50
|
|
|
@@ -70,18 +63,18 @@ export interface AuthSession {
|
|
|
70
63
|
|
|
71
64
|
export interface AuthSessionCreateParams {
|
|
72
65
|
/**
|
|
73
|
-
* The ID of the
|
|
66
|
+
* The ID of the end-user for whom to create the integration connection.
|
|
74
67
|
*/
|
|
75
68
|
endUserId: string;
|
|
76
69
|
|
|
77
70
|
/**
|
|
78
|
-
* Your Conductor publishable key, which we use to create the session
|
|
71
|
+
* Your Conductor publishable key, which we use to create the auth session's
|
|
79
72
|
* `authFlowUrl`.
|
|
80
73
|
*/
|
|
81
74
|
publishableKey: string;
|
|
82
75
|
|
|
83
76
|
/**
|
|
84
|
-
* The number of minutes after which the
|
|
77
|
+
* The number of minutes after which the auth session will expire. Must be at least
|
|
85
78
|
* 15 minutes and no more than 7 days. If not provided, defaults to 30 minutes.
|
|
86
79
|
*/
|
|
87
80
|
linkExpiryMins?: number;
|
|
@@ -5,28 +5,28 @@ import * as Core from '../core';
|
|
|
5
5
|
|
|
6
6
|
export class EndUsers extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Creates an
|
|
8
|
+
* Creates an end-user.
|
|
9
9
|
*/
|
|
10
10
|
create(body: EndUserCreateParams, options?: Core.RequestOptions): Core.APIPromise<EndUser> {
|
|
11
11
|
return this._client.post('/end-users', { body, ...options });
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Retrieves an
|
|
15
|
+
* Retrieves an end-user object.
|
|
16
16
|
*/
|
|
17
17
|
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<EndUser> {
|
|
18
18
|
return this._client.get(`/end-users/${id}`, options);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Returns a list of your
|
|
22
|
+
* Returns a list of your end-users.
|
|
23
23
|
*/
|
|
24
24
|
list(options?: Core.RequestOptions): Core.APIPromise<EndUserListResponse> {
|
|
25
25
|
return this._client.get('/end-users', options);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Permanently deletes an
|
|
29
|
+
* Permanently deletes an end-user object and all of its connections.
|
|
30
30
|
*/
|
|
31
31
|
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<EndUserDeleteResponse> {
|
|
32
32
|
return this._client.delete(`/end-users/${id}`, options);
|
|
@@ -44,46 +44,33 @@ export class EndUsers extends APIResource {
|
|
|
44
44
|
): Core.APIPromise<EndUserPassthroughResponse> {
|
|
45
45
|
return this._client.post(`/end-users/${id}/passthrough/${integrationSlug}`, { body, ...options });
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Checks whether the specified IntegrationConnection can connect and process
|
|
50
|
-
* requests end-to-end. This is useful for showing a "connection status" indicator
|
|
51
|
-
* in your app.
|
|
52
|
-
*/
|
|
53
|
-
ping(
|
|
54
|
-
id: string,
|
|
55
|
-
integrationSlug: 'quickbooks_desktop',
|
|
56
|
-
options?: Core.RequestOptions,
|
|
57
|
-
): Core.APIPromise<EndUserPingResponse> {
|
|
58
|
-
return this._client.get(`/end-users/${id}/ping/${integrationSlug}`, options);
|
|
59
|
-
}
|
|
60
47
|
}
|
|
61
48
|
|
|
62
49
|
export interface EndUser {
|
|
63
50
|
/**
|
|
64
|
-
* The unique identifier for this
|
|
51
|
+
* The unique identifier for this end-user. You must save this value to your
|
|
65
52
|
* database because it is how you identify which of your users to receive your API
|
|
66
53
|
* requests.
|
|
67
54
|
*/
|
|
68
55
|
id: string;
|
|
69
56
|
|
|
70
57
|
/**
|
|
71
|
-
* The
|
|
58
|
+
* The end-user's company name that will be shown elsewhere in Conductor.
|
|
72
59
|
*/
|
|
73
60
|
companyName: string;
|
|
74
61
|
|
|
75
62
|
/**
|
|
76
|
-
* The date and time when this
|
|
63
|
+
* The date and time when this end-user record was created.
|
|
77
64
|
*/
|
|
78
65
|
createdAt: string;
|
|
79
66
|
|
|
80
67
|
/**
|
|
81
|
-
* The
|
|
68
|
+
* The end-user's email address for identification purposes.
|
|
82
69
|
*/
|
|
83
70
|
email: string;
|
|
84
71
|
|
|
85
72
|
/**
|
|
86
|
-
* The
|
|
73
|
+
* The end-user's integration connections.
|
|
87
74
|
*/
|
|
88
75
|
integrationConnections: Array<EndUser.IntegrationConnection>;
|
|
89
76
|
|
|
@@ -93,7 +80,7 @@ export interface EndUser {
|
|
|
93
80
|
objectType: 'end_user';
|
|
94
81
|
|
|
95
82
|
/**
|
|
96
|
-
* The
|
|
83
|
+
* The end-user's unique identifier from your system. Maps users between your
|
|
97
84
|
* database and Conductor.
|
|
98
85
|
*/
|
|
99
86
|
sourceId: string;
|
|
@@ -102,12 +89,12 @@ export interface EndUser {
|
|
|
102
89
|
export namespace EndUser {
|
|
103
90
|
export interface IntegrationConnection {
|
|
104
91
|
/**
|
|
105
|
-
* The unique identifier for this
|
|
92
|
+
* The unique identifier for this integration connection.
|
|
106
93
|
*/
|
|
107
94
|
id: string;
|
|
108
95
|
|
|
109
96
|
/**
|
|
110
|
-
* The date and time when this
|
|
97
|
+
* The date and time when this integration connection record was created.
|
|
111
98
|
*/
|
|
112
99
|
createdAt: string;
|
|
113
100
|
|
|
@@ -117,14 +104,14 @@ export namespace EndUser {
|
|
|
117
104
|
integrationSlug: 'quickbooks_desktop';
|
|
118
105
|
|
|
119
106
|
/**
|
|
120
|
-
* The date and time of your last API request to this
|
|
107
|
+
* The date and time of your last API request to this integration connection.
|
|
121
108
|
*/
|
|
122
109
|
lastRequestAt: string | null;
|
|
123
110
|
|
|
124
111
|
/**
|
|
125
|
-
* The date and time of your last _successful_ API request to this
|
|
126
|
-
*
|
|
127
|
-
*
|
|
112
|
+
* The date and time of your last _successful_ API request to this integration
|
|
113
|
+
* connection. A successful request means the integration fully processed and
|
|
114
|
+
* returned a response without any errors end-to-end.
|
|
128
115
|
*/
|
|
129
116
|
lastSuccessfulRequestAt: string | null;
|
|
130
117
|
|
|
@@ -137,7 +124,7 @@ export namespace EndUser {
|
|
|
137
124
|
|
|
138
125
|
export interface EndUserListResponse {
|
|
139
126
|
/**
|
|
140
|
-
* The array of
|
|
127
|
+
* The array of end-users.
|
|
141
128
|
*/
|
|
142
129
|
data: Array<EndUser>;
|
|
143
130
|
|
|
@@ -154,12 +141,12 @@ export interface EndUserListResponse {
|
|
|
154
141
|
|
|
155
142
|
export interface EndUserDeleteResponse {
|
|
156
143
|
/**
|
|
157
|
-
* The ID of the deleted
|
|
144
|
+
* The ID of the deleted end-user.
|
|
158
145
|
*/
|
|
159
146
|
id: string;
|
|
160
147
|
|
|
161
148
|
/**
|
|
162
|
-
* Indicates whether the
|
|
149
|
+
* Indicates whether the end-user was deleted.
|
|
163
150
|
*/
|
|
164
151
|
deleted: boolean;
|
|
165
152
|
|
|
@@ -174,13 +161,6 @@ export interface EndUserDeleteResponse {
|
|
|
174
161
|
*/
|
|
175
162
|
export type EndUserPassthroughResponse = Record<string, unknown>;
|
|
176
163
|
|
|
177
|
-
export interface EndUserPingResponse {
|
|
178
|
-
/**
|
|
179
|
-
* The time, in milliseconds, that it took to ping the connection.
|
|
180
|
-
*/
|
|
181
|
-
duration: number;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
164
|
export interface EndUserCreateParams {
|
|
185
165
|
/**
|
|
186
166
|
* The end-user's company name that will be shown elsewhere in Conductor.
|
|
@@ -209,7 +189,6 @@ export declare namespace EndUsers {
|
|
|
209
189
|
type EndUserListResponse as EndUserListResponse,
|
|
210
190
|
type EndUserDeleteResponse as EndUserDeleteResponse,
|
|
211
191
|
type EndUserPassthroughResponse as EndUserPassthroughResponse,
|
|
212
|
-
type EndUserPingResponse as EndUserPingResponse,
|
|
213
192
|
type EndUserCreateParams as EndUserCreateParams,
|
|
214
193
|
type EndUserPassthroughParams as EndUserPassthroughParams,
|
|
215
194
|
};
|
package/src/resources/index.ts
CHANGED
|
@@ -7,8 +7,7 @@ export {
|
|
|
7
7
|
type EndUserListResponse,
|
|
8
8
|
type EndUserDeleteResponse,
|
|
9
9
|
type EndUserPassthroughResponse,
|
|
10
|
-
type EndUserPingResponse,
|
|
11
10
|
type EndUserCreateParams,
|
|
12
11
|
type EndUserPassthroughParams,
|
|
13
12
|
} from './end-users';
|
|
14
|
-
export { Qbd } from './qbd/qbd';
|
|
13
|
+
export { Qbd, type QbdHealthCheckResponse, type QbdHealthCheckParams } from './qbd/qbd';
|
|
@@ -779,23 +779,30 @@ export namespace Employee {
|
|
|
779
779
|
accrualStartDate: string | null;
|
|
780
780
|
|
|
781
781
|
/**
|
|
782
|
-
* The number of sick hours the employee will accrue per accrual period
|
|
782
|
+
* The number of sick hours the employee will accrue per accrual period, in ISO
|
|
783
|
+
* 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
|
|
784
|
+
* represented as PT1H30M.
|
|
783
785
|
*/
|
|
784
786
|
hoursAccruedPerPeriod: string | null;
|
|
785
787
|
|
|
786
788
|
/**
|
|
787
|
-
* The total number of sick hours currently available for the employee to use
|
|
788
|
-
*
|
|
789
|
+
* The total number of sick hours currently available for the employee to use, in
|
|
790
|
+
* ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
|
|
791
|
+
* minutes is represented as PT1H30M. Defaults to 0.
|
|
789
792
|
*/
|
|
790
793
|
hoursAvailable: string | null;
|
|
791
794
|
|
|
792
795
|
/**
|
|
793
|
-
* The number of sick hours the employee has used
|
|
796
|
+
* The number of sick hours the employee has used, in ISO 8601 format for time
|
|
797
|
+
* intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
798
|
+
* PT1H30M.
|
|
794
799
|
*/
|
|
795
800
|
hoursUsed: string | null;
|
|
796
801
|
|
|
797
802
|
/**
|
|
798
|
-
* The maximum number of sick hours the employee can accrue
|
|
803
|
+
* The maximum number of sick hours the employee can accrue, in ISO 8601 format for
|
|
804
|
+
* time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
805
|
+
* PT1H30M.
|
|
799
806
|
*/
|
|
800
807
|
maximumHours: string | null;
|
|
801
808
|
|
|
@@ -823,23 +830,30 @@ export namespace Employee {
|
|
|
823
830
|
accrualStartDate: string | null;
|
|
824
831
|
|
|
825
832
|
/**
|
|
826
|
-
* The number of vacation hours the employee will accrue per accrual period
|
|
833
|
+
* The number of vacation hours the employee will accrue per accrual period, in ISO
|
|
834
|
+
* 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
|
|
835
|
+
* represented as PT1H30M.
|
|
827
836
|
*/
|
|
828
837
|
hoursAccruedPerPeriod: string | null;
|
|
829
838
|
|
|
830
839
|
/**
|
|
831
|
-
* The total number of vacation hours currently available for the employee to use
|
|
832
|
-
*
|
|
840
|
+
* The total number of vacation hours currently available for the employee to use,
|
|
841
|
+
* in ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
|
|
842
|
+
* minutes is represented as PT1H30M. Defaults to 0.
|
|
833
843
|
*/
|
|
834
844
|
hoursAvailable: string | null;
|
|
835
845
|
|
|
836
846
|
/**
|
|
837
|
-
* The number of vacation hours the employee has used
|
|
847
|
+
* The number of vacation hours the employee has used, in ISO 8601 format for time
|
|
848
|
+
* intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
849
|
+
* PT1H30M.
|
|
838
850
|
*/
|
|
839
851
|
hoursUsed: string | null;
|
|
840
852
|
|
|
841
853
|
/**
|
|
842
|
-
* The maximum number of vacation hours the employee can accrue
|
|
854
|
+
* The maximum number of vacation hours the employee can accrue, in ISO 8601 format
|
|
855
|
+
* for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented
|
|
856
|
+
* as PT1H30M.
|
|
843
857
|
*/
|
|
844
858
|
maximumHours: string | null;
|
|
845
859
|
|
|
@@ -1448,23 +1462,30 @@ export namespace EmployeeCreateParams {
|
|
|
1448
1462
|
accrualStartDate?: string;
|
|
1449
1463
|
|
|
1450
1464
|
/**
|
|
1451
|
-
* The number of sick hours the employee will accrue per accrual period
|
|
1465
|
+
* The number of sick hours the employee will accrue per accrual period, in ISO
|
|
1466
|
+
* 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
|
|
1467
|
+
* represented as PT1H30M.
|
|
1452
1468
|
*/
|
|
1453
1469
|
hoursAccruedPerPeriod?: string;
|
|
1454
1470
|
|
|
1455
1471
|
/**
|
|
1456
|
-
* The total number of sick hours currently available for the employee to use
|
|
1457
|
-
*
|
|
1472
|
+
* The total number of sick hours currently available for the employee to use, in
|
|
1473
|
+
* ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
|
|
1474
|
+
* minutes is represented as PT1H30M. Defaults to 0.
|
|
1458
1475
|
*/
|
|
1459
1476
|
hoursAvailable?: string;
|
|
1460
1477
|
|
|
1461
1478
|
/**
|
|
1462
|
-
* The number of sick hours the employee has used
|
|
1479
|
+
* The number of sick hours the employee has used, in ISO 8601 format for time
|
|
1480
|
+
* intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
1481
|
+
* PT1H30M.
|
|
1463
1482
|
*/
|
|
1464
1483
|
hoursUsed?: string;
|
|
1465
1484
|
|
|
1466
1485
|
/**
|
|
1467
|
-
* The maximum number of sick hours the employee can accrue
|
|
1486
|
+
* The maximum number of sick hours the employee can accrue, in ISO 8601 format for
|
|
1487
|
+
* time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
1488
|
+
* PT1H30M.
|
|
1468
1489
|
*/
|
|
1469
1490
|
maximumHours?: string;
|
|
1470
1491
|
|
|
@@ -1492,23 +1513,30 @@ export namespace EmployeeCreateParams {
|
|
|
1492
1513
|
accrualStartDate?: string;
|
|
1493
1514
|
|
|
1494
1515
|
/**
|
|
1495
|
-
* The number of vacation hours the employee will accrue per accrual period
|
|
1516
|
+
* The number of vacation hours the employee will accrue per accrual period, in ISO
|
|
1517
|
+
* 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
|
|
1518
|
+
* represented as PT1H30M.
|
|
1496
1519
|
*/
|
|
1497
1520
|
hoursAccruedPerPeriod?: string;
|
|
1498
1521
|
|
|
1499
1522
|
/**
|
|
1500
|
-
* The total number of vacation hours currently available for the employee to use
|
|
1501
|
-
*
|
|
1523
|
+
* The total number of vacation hours currently available for the employee to use,
|
|
1524
|
+
* in ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
|
|
1525
|
+
* minutes is represented as PT1H30M. Defaults to 0.
|
|
1502
1526
|
*/
|
|
1503
1527
|
hoursAvailable?: string;
|
|
1504
1528
|
|
|
1505
1529
|
/**
|
|
1506
|
-
* The number of vacation hours the employee has used
|
|
1530
|
+
* The number of vacation hours the employee has used, in ISO 8601 format for time
|
|
1531
|
+
* intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
1532
|
+
* PT1H30M.
|
|
1507
1533
|
*/
|
|
1508
1534
|
hoursUsed?: string;
|
|
1509
1535
|
|
|
1510
1536
|
/**
|
|
1511
|
-
* The maximum number of vacation hours the employee can accrue
|
|
1537
|
+
* The maximum number of vacation hours the employee can accrue, in ISO 8601 format
|
|
1538
|
+
* for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented
|
|
1539
|
+
* as PT1H30M.
|
|
1512
1540
|
*/
|
|
1513
1541
|
maximumHours?: string;
|
|
1514
1542
|
|
|
@@ -2095,23 +2123,30 @@ export namespace EmployeeUpdateParams {
|
|
|
2095
2123
|
accrualStartDate?: string;
|
|
2096
2124
|
|
|
2097
2125
|
/**
|
|
2098
|
-
* The number of sick hours the employee will accrue per accrual period
|
|
2126
|
+
* The number of sick hours the employee will accrue per accrual period, in ISO
|
|
2127
|
+
* 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
|
|
2128
|
+
* represented as PT1H30M.
|
|
2099
2129
|
*/
|
|
2100
2130
|
hoursAccruedPerPeriod?: string;
|
|
2101
2131
|
|
|
2102
2132
|
/**
|
|
2103
|
-
* The total number of sick hours currently available for the employee to use
|
|
2104
|
-
*
|
|
2133
|
+
* The total number of sick hours currently available for the employee to use, in
|
|
2134
|
+
* ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
|
|
2135
|
+
* minutes is represented as PT1H30M. Defaults to 0.
|
|
2105
2136
|
*/
|
|
2106
2137
|
hoursAvailable?: string;
|
|
2107
2138
|
|
|
2108
2139
|
/**
|
|
2109
|
-
* The number of sick hours the employee has used
|
|
2140
|
+
* The number of sick hours the employee has used, in ISO 8601 format for time
|
|
2141
|
+
* intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
2142
|
+
* PT1H30M.
|
|
2110
2143
|
*/
|
|
2111
2144
|
hoursUsed?: string;
|
|
2112
2145
|
|
|
2113
2146
|
/**
|
|
2114
|
-
* The maximum number of sick hours the employee can accrue
|
|
2147
|
+
* The maximum number of sick hours the employee can accrue, in ISO 8601 format for
|
|
2148
|
+
* time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
2149
|
+
* PT1H30M.
|
|
2115
2150
|
*/
|
|
2116
2151
|
maximumHours?: string;
|
|
2117
2152
|
|
|
@@ -2139,23 +2174,30 @@ export namespace EmployeeUpdateParams {
|
|
|
2139
2174
|
accrualStartDate?: string;
|
|
2140
2175
|
|
|
2141
2176
|
/**
|
|
2142
|
-
* The number of vacation hours the employee will accrue per accrual period
|
|
2177
|
+
* The number of vacation hours the employee will accrue per accrual period, in ISO
|
|
2178
|
+
* 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
|
|
2179
|
+
* represented as PT1H30M.
|
|
2143
2180
|
*/
|
|
2144
2181
|
hoursAccruedPerPeriod?: string;
|
|
2145
2182
|
|
|
2146
2183
|
/**
|
|
2147
|
-
* The total number of vacation hours currently available for the employee to use
|
|
2148
|
-
*
|
|
2184
|
+
* The total number of vacation hours currently available for the employee to use,
|
|
2185
|
+
* in ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
|
|
2186
|
+
* minutes is represented as PT1H30M. Defaults to 0.
|
|
2149
2187
|
*/
|
|
2150
2188
|
hoursAvailable?: string;
|
|
2151
2189
|
|
|
2152
2190
|
/**
|
|
2153
|
-
* The number of vacation hours the employee has used
|
|
2191
|
+
* The number of vacation hours the employee has used, in ISO 8601 format for time
|
|
2192
|
+
* intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
|
|
2193
|
+
* PT1H30M.
|
|
2154
2194
|
*/
|
|
2155
2195
|
hoursUsed?: string;
|
|
2156
2196
|
|
|
2157
2197
|
/**
|
|
2158
|
-
* The maximum number of vacation hours the employee can accrue
|
|
2198
|
+
* The maximum number of vacation hours the employee can accrue, in ISO 8601 format
|
|
2199
|
+
* for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented
|
|
2200
|
+
* as PT1H30M.
|
|
2159
2201
|
*/
|
|
2160
2202
|
maximumHours?: string;
|
|
2161
2203
|
|
|
@@ -228,7 +228,7 @@ export {
|
|
|
228
228
|
type PurchaseOrderListParams,
|
|
229
229
|
type PurchaseOrderDeleteParams,
|
|
230
230
|
} from './purchase-orders';
|
|
231
|
-
export { Qbd } from './qbd';
|
|
231
|
+
export { Qbd, type QbdHealthCheckResponse, type QbdHealthCheckParams } from './qbd';
|
|
232
232
|
export {
|
|
233
233
|
ReceivePaymentsCursorPage,
|
|
234
234
|
ReceivePayments,
|
|
@@ -315,6 +315,17 @@ export {
|
|
|
315
315
|
type SubtotalItemUpdateParams,
|
|
316
316
|
type SubtotalItemListParams,
|
|
317
317
|
} from './subtotal-items';
|
|
318
|
+
export {
|
|
319
|
+
TimeTrackingActivitiesCursorPage,
|
|
320
|
+
TimeTrackingActivities,
|
|
321
|
+
type TimeTrackingActivity,
|
|
322
|
+
type TimeTrackingActivityDeleteResponse,
|
|
323
|
+
type TimeTrackingActivityCreateParams,
|
|
324
|
+
type TimeTrackingActivityRetrieveParams,
|
|
325
|
+
type TimeTrackingActivityUpdateParams,
|
|
326
|
+
type TimeTrackingActivityListParams,
|
|
327
|
+
type TimeTrackingActivityDeleteParams,
|
|
328
|
+
} from './time-tracking-activities';
|
|
318
329
|
export {
|
|
319
330
|
TransfersCursorPage,
|
|
320
331
|
Transfers,
|
|
@@ -229,7 +229,7 @@ export interface InventoryAssemblyItem {
|
|
|
229
229
|
* The number of units of this inventory assembly item that have been ordered from
|
|
230
230
|
* vendors (as recorded in purchase orders) but not yet received.
|
|
231
231
|
*/
|
|
232
|
-
|
|
232
|
+
quantityOnPurchaseOrder: number | null;
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
235
|
* The number of units of this inventory assembly item that have been sold (as
|
|
@@ -210,7 +210,7 @@ export interface InventoryItem {
|
|
|
210
210
|
* The number of units of this inventory item that have been ordered from vendors
|
|
211
211
|
* (as recorded in purchase orders) but not yet received.
|
|
212
212
|
*/
|
|
213
|
-
|
|
213
|
+
quantityOnPurchaseOrder: number | null;
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
216
|
* The number of units of this inventory item that have been sold (as recorded in
|
package/src/resources/qbd/qbd.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
4
5
|
import * as AccountsAPI from './accounts';
|
|
5
6
|
import {
|
|
6
7
|
Account,
|
|
@@ -347,6 +348,18 @@ import {
|
|
|
347
348
|
SubtotalItems,
|
|
348
349
|
SubtotalItemsCursorPage,
|
|
349
350
|
} from './subtotal-items';
|
|
351
|
+
import * as TimeTrackingActivitiesAPI from './time-tracking-activities';
|
|
352
|
+
import {
|
|
353
|
+
TimeTrackingActivities,
|
|
354
|
+
TimeTrackingActivitiesCursorPage,
|
|
355
|
+
TimeTrackingActivity,
|
|
356
|
+
TimeTrackingActivityCreateParams,
|
|
357
|
+
TimeTrackingActivityDeleteParams,
|
|
358
|
+
TimeTrackingActivityDeleteResponse,
|
|
359
|
+
TimeTrackingActivityListParams,
|
|
360
|
+
TimeTrackingActivityRetrieveParams,
|
|
361
|
+
TimeTrackingActivityUpdateParams,
|
|
362
|
+
} from './time-tracking-activities';
|
|
350
363
|
import * as TransfersAPI from './transfers';
|
|
351
364
|
import {
|
|
352
365
|
Transfer,
|
|
@@ -427,9 +440,50 @@ export class Qbd extends APIResource {
|
|
|
427
440
|
serviceItems: ServiceItemsAPI.ServiceItems = new ServiceItemsAPI.ServiceItems(this._client);
|
|
428
441
|
standardTerms: StandardTermsAPI.StandardTerms = new StandardTermsAPI.StandardTerms(this._client);
|
|
429
442
|
subtotalItems: SubtotalItemsAPI.SubtotalItems = new SubtotalItemsAPI.SubtotalItems(this._client);
|
|
443
|
+
timeTrackingActivities: TimeTrackingActivitiesAPI.TimeTrackingActivities =
|
|
444
|
+
new TimeTrackingActivitiesAPI.TimeTrackingActivities(this._client);
|
|
430
445
|
transfers: TransfersAPI.Transfers = new TransfersAPI.Transfers(this._client);
|
|
431
446
|
vendorCredits: VendorCreditsAPI.VendorCredits = new VendorCreditsAPI.VendorCredits(this._client);
|
|
432
447
|
vendors: VendorsAPI.Vendors = new VendorsAPI.Vendors(this._client);
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Checks whether the specified QuickBooks Desktop connection is active and can
|
|
451
|
+
* process requests end-to-end. This is useful for showing a "connection status"
|
|
452
|
+
* indicator in your app. If an error occurs, the typical Conductor error response
|
|
453
|
+
* will be returned. As with any request to QuickBooks Desktop, the health check
|
|
454
|
+
* may fail if the application is not running, the wrong company file is open, or
|
|
455
|
+
* if a modal dialog is open. Timeout is 60 seconds.
|
|
456
|
+
*/
|
|
457
|
+
healthCheck(
|
|
458
|
+
params: QbdHealthCheckParams,
|
|
459
|
+
options?: Core.RequestOptions,
|
|
460
|
+
): Core.APIPromise<QbdHealthCheckResponse> {
|
|
461
|
+
const { conductorEndUserId } = params;
|
|
462
|
+
return this._client.get('/quickbooks-desktop/health-check', {
|
|
463
|
+
...options,
|
|
464
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export interface QbdHealthCheckResponse {
|
|
470
|
+
/**
|
|
471
|
+
* The time, in milliseconds, that it took to perform the health check.
|
|
472
|
+
*/
|
|
473
|
+
duration: number;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* The status of the health check.
|
|
477
|
+
*/
|
|
478
|
+
status: 'ok';
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export interface QbdHealthCheckParams {
|
|
482
|
+
/**
|
|
483
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
484
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
485
|
+
*/
|
|
486
|
+
conductorEndUserId: string;
|
|
433
487
|
}
|
|
434
488
|
|
|
435
489
|
Qbd.Accounts = Accounts;
|
|
@@ -488,6 +542,8 @@ Qbd.ServiceItemsCursorPage = ServiceItemsCursorPage;
|
|
|
488
542
|
Qbd.StandardTerms = StandardTerms;
|
|
489
543
|
Qbd.SubtotalItems = SubtotalItems;
|
|
490
544
|
Qbd.SubtotalItemsCursorPage = SubtotalItemsCursorPage;
|
|
545
|
+
Qbd.TimeTrackingActivities = TimeTrackingActivities;
|
|
546
|
+
Qbd.TimeTrackingActivitiesCursorPage = TimeTrackingActivitiesCursorPage;
|
|
491
547
|
Qbd.Transfers = Transfers;
|
|
492
548
|
Qbd.TransfersCursorPage = TransfersCursorPage;
|
|
493
549
|
Qbd.VendorCredits = VendorCredits;
|
|
@@ -496,6 +552,11 @@ Qbd.Vendors = Vendors;
|
|
|
496
552
|
Qbd.VendorsCursorPage = VendorsCursorPage;
|
|
497
553
|
|
|
498
554
|
export declare namespace Qbd {
|
|
555
|
+
export {
|
|
556
|
+
type QbdHealthCheckResponse as QbdHealthCheckResponse,
|
|
557
|
+
type QbdHealthCheckParams as QbdHealthCheckParams,
|
|
558
|
+
};
|
|
559
|
+
|
|
499
560
|
export {
|
|
500
561
|
Accounts as Accounts,
|
|
501
562
|
type Account as Account,
|
|
@@ -842,6 +903,18 @@ export declare namespace Qbd {
|
|
|
842
903
|
type SubtotalItemListParams as SubtotalItemListParams,
|
|
843
904
|
};
|
|
844
905
|
|
|
906
|
+
export {
|
|
907
|
+
TimeTrackingActivities as TimeTrackingActivities,
|
|
908
|
+
type TimeTrackingActivity as TimeTrackingActivity,
|
|
909
|
+
type TimeTrackingActivityDeleteResponse as TimeTrackingActivityDeleteResponse,
|
|
910
|
+
TimeTrackingActivitiesCursorPage as TimeTrackingActivitiesCursorPage,
|
|
911
|
+
type TimeTrackingActivityCreateParams as TimeTrackingActivityCreateParams,
|
|
912
|
+
type TimeTrackingActivityRetrieveParams as TimeTrackingActivityRetrieveParams,
|
|
913
|
+
type TimeTrackingActivityUpdateParams as TimeTrackingActivityUpdateParams,
|
|
914
|
+
type TimeTrackingActivityListParams as TimeTrackingActivityListParams,
|
|
915
|
+
type TimeTrackingActivityDeleteParams as TimeTrackingActivityDeleteParams,
|
|
916
|
+
};
|
|
917
|
+
|
|
845
918
|
export {
|
|
846
919
|
Transfers as Transfers,
|
|
847
920
|
type Transfer as Transfer,
|