conductor-node 0.0.11 → 0.0.14

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.
@@ -1,501 +0,0 @@
1
- import type {
2
- ActiveStatus,
3
- AdditionalContactRef,
4
- AdditionalNotesRet,
5
- BillingRateRef,
6
- ClassRef,
7
- DataExtRet,
8
- NameFilter,
9
- NameRangeFilter,
10
- } from "@conductor/client/qb/qbXMLTypes/shared";
11
-
12
- export interface EmployeeAddRq {
13
- EmployeeAdd: EmployeeAdd;
14
- IncludeRetElement?: string;
15
- }
16
-
17
- export interface EmployeeAddRs {
18
- EmployeeRet?: EmployeeRet;
19
- }
20
-
21
- export interface EmployeeModRq {
22
- EmployeeMod: EmployeeMod;
23
- IncludeRetElement?: string;
24
- }
25
-
26
- export interface EmployeeModRs {
27
- EmployeeRet?: EmployeeRet;
28
- }
29
-
30
- export interface EmployeeQueryRq {
31
- // TODO: Look into use of "OR" and "may repeat" in the XMLOps.
32
- ListID?: string;
33
- FullName?: string;
34
- MaxReturned?: number;
35
- ActiveStatus?: ActiveStatus;
36
- FromModifiedDate?: Date;
37
- ToModifiedDate?: Date;
38
- NameFilter?: NameFilter;
39
- NameRangeFilter?: NameRangeFilter;
40
- }
41
-
42
- export interface EmployeeQueryRs {
43
- EmployeeRet?: EmployeeRet;
44
- }
45
-
46
- export interface EmployeeAdd {
47
- /**
48
- * If `IsActive` is true, this object is currently enabled for use by
49
- * QuickBooks. The default value is `true`.
50
- */
51
- IsActive?: boolean;
52
- /**
53
- * A formal reference, such as Mr. or Dr., that precedes a name.
54
- */
55
- Salutation?: string;
56
- /**
57
- * The first name of a customer, vendor, employee, or person on the “other
58
- * names” list.
59
- */
60
- FirstName?: string;
61
- /**
62
- * The middle name of a customer, vendor, employee, or person on the “other
63
- * names” list.
64
- */
65
- MiddleName?: string;
66
- /**
67
- * The last name of a customer, vendor, employee, or person on the “other
68
- * names” list.
69
- */
70
- LastName?: string;
71
- /**
72
- * The job title of a customer, vendor, employee, or person on the “other
73
- * names” list.
74
- */
75
- JobTitle?: string;
76
- /**
77
- * The name of a customer, vendor, employee, or person on the “other names”
78
- * list in the employment job details section.
79
- */
80
- SupervisorRef?: SupervisorRef;
81
- /**
82
- * The name of the department in the employment job details section.
83
- */
84
- Department?: string;
85
- /**
86
- * The description details in the employment job details section.
87
- */
88
- Description?: string;
89
- /**
90
- * The target bonus amount in the employment job details section.
91
- */
92
- TargetBonus?: string;
93
- /**
94
- * If an address request fails, some combination of address fields might be
95
- * too long. If you use payroll, you must specify the employee’s city, state
96
- * (or province), ZIP (or postal) code, and at least one line of the street
97
- * address. (Note that the State element has restrictions when it’s used in
98
- * the `EmployeeAddress` aggregate. For more information, click State in the
99
- * table.)
100
- */
101
- EmployeeAddress?: EmployeeAddress;
102
- /**
103
- * By default within QuickBooks, the `PrintAs` element is the same as the
104
- * `Name` element.
105
- */
106
- PrintAs?: string;
107
- /**
108
- * The telephone number.
109
- */
110
- Phone?: string;
111
- /**
112
- * Mobile telephone number.
113
- */
114
- Mobile?: string;
115
- /**
116
- * The pager number.
117
- */
118
- Pager?: string;
119
- /**
120
- * A personal identification number for this employee’s pager.
121
- */
122
- PagerPIN?: string;
123
- /**
124
- * A telephone number given as an alternative to `Phone`.
125
- */
126
- AltPhone?: string;
127
- /**
128
- * Fax number.
129
- */
130
- Fax?: string;
131
- /**
132
- * Social security number. When you add an SSN value to an employee record, it
133
- * does not have to include dashes; for example, either 123-45-6789 or
134
- * 123456789 would be valid.
135
- */
136
- SSN?: string;
137
- /**
138
- * E-mail address.
139
- */
140
- Email?: string;
141
- /**
142
- * List of additional contacts.
143
- */
144
- AdditionalContactRef?: AdditionalContactRef;
145
- /**
146
- * Emergency Contact information for the employee.
147
- */
148
- EmergencyContacts?: EmergencyContacts;
149
- /**
150
- * `EmployeeType` can affect payroll taxes for an employee. A statutory
151
- * employee is a person who is defined as an employee by statute. Usually an
152
- * owner or partner will be on the `Other Names` list, but if they are on the
153
- * `Employee` list, their `EmployeeType` will be `Owner`.
154
- */
155
- EmployeeType?: EmployeeType;
156
- /**
157
- * Full or Part time status of the employee.
158
- */
159
- PartOrFullTime?: PartOrFullTime;
160
- Exempt?: Exempt;
161
- KeyEmployee?: KeyEmployee;
162
- Gender?: Gender;
163
- HiredDate?: Date;
164
- OriginalHireDate?: Date;
165
- AdjustedServiceDate?: Date;
166
- ReleasedDate?: Date;
167
- BirthDate?: Date;
168
- USCitizen?: USCitizen;
169
- Ethnicity?: Ethnicity;
170
- Disabled?: Disabled;
171
- DisabilityDesc?: string;
172
- OnFile?: OnFile;
173
- WorkAuthExpireDate?: Date;
174
- USVeteran?: USVeteran;
175
- MilitaryStatus?: MilitaryStatus;
176
- AccountNumber?: string;
177
- Notes?: string;
178
- AdditionalNotes?: AdditionalNotes;
179
- BillingRateRef?: BillingRateRef;
180
- EmployeePayrollInfo?: EmployeePayrollInfo;
181
- ExternalGUID?: string;
182
- }
183
-
184
- export interface EmployeeRet {
185
- ListID: string;
186
- TimeCreated: Date;
187
- TimeModified: Date;
188
- EditSequence: string;
189
- Name: string;
190
- IsActive?: boolean;
191
- Salutation?: string;
192
- FirstName?: string;
193
- MiddleName?: string;
194
- LastName?: string;
195
- JobTitle?: string;
196
- SupervisorRef?: SupervisorRef;
197
- Department?: string;
198
- Description?: string;
199
- TargetBonus?: string;
200
- EmployeeAddress?: EmployeeAddress;
201
- PrintAs?: string;
202
- Phone?: string;
203
- Mobile?: string;
204
- Pager?: string;
205
- PagerPIN?: string;
206
- AltPhone?: string;
207
- Fax?: string;
208
- SSN?: string;
209
- Email?: string;
210
- AdditionalContactRef?: AdditionalContactRef;
211
- EmergencyContacts?: EmergencyContacts;
212
- EmployeeType?: EmployeeType;
213
- PartOrFullTime?: PartOrFullTime;
214
- Exempt?: Exempt;
215
- KeyEmployee?: KeyEmployee;
216
- Gender?: Gender;
217
- HiredDate?: Date;
218
- OriginalHireDate?: Date;
219
- AdjustedServiceDate?: Date;
220
- ReleasedDate?: Date;
221
- BirthDate?: Date;
222
- USCitizen?: USCitizen;
223
- Ethnicity?: Ethnicity;
224
- Disabled?: Disabled;
225
- DisabilityDesc?: string;
226
- OnFile?: OnFile;
227
- WorkAuthExpireDate?: Date;
228
- USVeteran?: USVeteran;
229
- MilitaryStatus?: MilitaryStatus;
230
- AccountNumber?: string;
231
- Notes?: string;
232
- AdditionalNotesRet?: AdditionalNotesRet;
233
- BillingRateRef?: BillingRateRef;
234
- EmployeePayrollInfo?: EmployeePayrollInfo;
235
- ExternalGUID?: string;
236
- DataExtRet?: DataExtRet;
237
- }
238
-
239
- export interface EmployeeMod {
240
- ListID: string;
241
- EditSequence: string;
242
- IsActive?: boolean;
243
- Salutation?: string;
244
- FirstName?: string;
245
- MiddleName?: string;
246
- LastName?: string;
247
- JobTitle?: string;
248
- SupervisorRef?: SupervisorRef;
249
- Department?: string;
250
- Description?: string;
251
- TargetBonus?: string;
252
- EmployeeAddress?: EmployeeAddress;
253
- PrintAs?: string;
254
- Phone?: string;
255
- Mobile?: string;
256
- Pager?: string;
257
- PagerPIN?: string;
258
- AltPhone?: string;
259
- Fax?: string;
260
- Email?: string;
261
- AdditionalContactRef?: AdditionalContactRef;
262
- EmergencyContacts?: EmergencyContacts;
263
- EmployeeType?: EmployeeType;
264
- PartOrFullTime?: PartOrFullTime;
265
- Exempt?: Exempt;
266
- KeyEmployee?: KeyEmployee;
267
- HiredDate?: Date;
268
- OriginalHireDate?: Date;
269
- AdjustedServiceDate?: Date;
270
- ReleasedDate?: Date;
271
- BirthDate?: Date;
272
- USCitizen?: USCitizen;
273
- Ethnicity?: Ethnicity;
274
- Disabled?: Disabled;
275
- DisabilityDesc?: string;
276
- OnFile?: OnFile;
277
- WorkAuthExpireDate?: Date;
278
- USVeteran?: USVeteran;
279
- MilitaryStatus?: MilitaryStatus;
280
- AccountNumber?: string;
281
- Notes?: string;
282
- AdditionalNotesMod?: AdditionalNotesMod;
283
- BillingRateRef?: BillingRateRef;
284
- EmployeePayrollInfoMod?: EmployeePayrollInfoMod;
285
- }
286
-
287
- interface SupervisorRef {
288
- ListID?: string;
289
- FullName?: string;
290
- }
291
-
292
- interface EmployeeAddress {
293
- /**
294
- * The first line of an address.
295
- */
296
- Addr1?: string;
297
- /**
298
- * The second line of an address (if a second line is needed).
299
- */
300
- Addr2?: string;
301
- /**
302
- * The city name in an address.
303
- */
304
- City?: string;
305
- /**
306
- * When it appears in the EmployeeAddress aggregate, the State element acts
307
- * like an `ENUMTYPE` with the following possible values: None, AA (military),
308
- * AE (military), AK, AL, AP (military), AR, AZ, CA, CO, CT, DC, DE, FL, GA,
309
- * HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE,
310
- * NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VA, VT, WA,
311
- * WI, WV, and WY.
312
- */
313
- State?: string;
314
- /**
315
- * The postal code in an address.
316
- */
317
- PostalCode?: string;
318
- }
319
-
320
- interface EmergencyContacts {
321
- PrimaryContact?: {
322
- ContactName: string;
323
- ContactValue: string;
324
- Relation?: Relation;
325
- };
326
- SecondaryContact?: {
327
- ContactName: string;
328
- ContactValue: string;
329
- Relation?: Relation;
330
- };
331
- }
332
-
333
- type Relation =
334
- | "Brother"
335
- | "Daughter"
336
- | "Father"
337
- | "Friend"
338
- | "Mother"
339
- | "Other"
340
- | "Partner"
341
- | "Sister"
342
- | "Son"
343
- | "Spouse";
344
-
345
- // Default is Regular
346
- type EmployeeType = "Officer" | "Owner" | "Regular" | "Statutory";
347
-
348
- type PartOrFullTime = "FullTime" | "PartTime";
349
-
350
- type Exempt = "Exempt" | "NonExempt";
351
-
352
- type KeyEmployee = "No" | "Yes";
353
-
354
- type Gender = "Female" | "Male";
355
-
356
- type USCitizen = "No" | "Yes";
357
-
358
- type Ethnicity =
359
- | "AmericianIndian"
360
- | "Asian"
361
- | "Black"
362
- | "Hawaiian"
363
- | "Hispanic"
364
- | "TwoOrMoreRaces"
365
- | "White";
366
-
367
- type Disabled = "No" | "Yes";
368
-
369
- type OnFile = "No" | "Yes";
370
-
371
- type USVeteran = "No" | "Yes";
372
-
373
- type MilitaryStatus = "Active" | "Reserve";
374
-
375
- interface AdditionalNotes {
376
- Note: string;
377
- }
378
-
379
- interface AdditionalNotesMod {
380
- NoteID: number;
381
- Note: string;
382
- }
383
-
384
- interface EmployeePayrollInfo {
385
- PayPeriod?: PayPeriod;
386
- ClassRef?: ClassRef;
387
- ClearEarnings?: boolean;
388
- Earnings?: Earnings;
389
- /**
390
- * Indicates whether or not paychecks are generated from time-tracking data.
391
- * If you include a blank `IsUsingTimeDataToCreatePaychecks` element in an
392
- * `EmployeeMod` message, you’ll receive an error.
393
- */
394
- IsUsingTimeDataToCreatePaychecks?: boolean;
395
- /**
396
- * Indicates whether time data is used to create paychecks for this employee.
397
- */
398
- UseTimeDataToCreatePaychecks?: UseTimeDataToCreatePaychecks;
399
- /**
400
- * Describes how “sick time” is accrued for this employee, along with how many
401
- * sick hours the employee has accrued.
402
- */
403
- SickHours?: SickHours;
404
- VacationHours?: VacationHours;
405
- }
406
-
407
- interface EmployeePayrollInfoMod {
408
- PayPeriod?: PayPeriod;
409
- ClassRef?: ClassRef;
410
- ClearEarnings?: boolean;
411
- Earnings?: Earnings;
412
- IsUsingTimeDataToCreatePaychecks?: boolean;
413
- UseTimeDataToCreatePaychecks?: UseTimeDataToCreatePaychecks;
414
- SickHours?: SickHours;
415
- VacationHours?: VacationHours;
416
- }
417
-
418
- type PayPeriod =
419
- | "Biweekly"
420
- | "Daily"
421
- | "Monthly"
422
- | "Quarterly"
423
- | "Semimonthly"
424
- | "Weekly"
425
- | "Yearly";
426
-
427
- interface Earnings {
428
- PayrollItemWageRef?: PayrollItemWageRef;
429
- Rate?: string;
430
- RatePercent?: string;
431
- }
432
-
433
- interface PayrollItemWageRef {
434
- ListID?: string;
435
- FullName?: string;
436
- }
437
-
438
- type UseTimeDataToCreatePaychecks =
439
- | "DoNotUseTimeData"
440
- | "NotSet"
441
- | "UseTimeData";
442
-
443
- interface SickHours {
444
- /**
445
- * The total number of hours currently available for the employee to use. If
446
- * this value is empty, it will default to 0.
447
- */
448
- HoursAvailable?: string;
449
- /**
450
- * Indicates how an employee accrues time off. If you include a blank
451
- * `AccrualPeriod` element in an `EmployeeMod` message, you’ll receive an
452
- * error. The default value is whatever the QuickBooks user has set in the
453
- * QuickBooks Employee Preferences.
454
- */
455
- AccrualPeriod?: AccrualPeriod;
456
- /**
457
- * The number of hours that the employee will accrue per accrual period. The
458
- * default value is whatever the QuickBooks user has set in the QuickBooks
459
- * Employee Preferences.
460
- */
461
- HoursAccrued?: string;
462
- /**
463
- * The maximum number of hours that the employee can accrue. (QuickBooks
464
- * itself does not enforce this limit, however. HoursAvailable can be greater
465
- * than MaximumHours.) The default value is whatever the QuickBooks user has
466
- * set in the QuickBooks Employee Preferences.
467
- */
468
- MaximumHours?: string;
469
- /**
470
- * Indicates whether or not the hours accrued resets to zero at the beginning
471
- * of the new year. If you include a blank `IsResettingHoursEachNewYear`
472
- * element in an `EmployeeMod` message, you’ll receive an error.
473
- */
474
- IsResettingHoursEachNewYear?: boolean;
475
- /**
476
- * When used in the `SickHours` or `VacationHours` aggregates, refers to the
477
- * number of sick leave or vacation hours used in the current year.
478
- */
479
- HoursUsed?: string;
480
- /**
481
- * When used in the `SickHours` or `VacationHours` aggregates, refers to the
482
- * date on which sick leave or vacation hours in the current year began to
483
- * accrue.
484
- */
485
- AccrualStartDate?: Date;
486
- }
487
-
488
- type AccrualPeriod =
489
- | "BeginningOfYear"
490
- | "EveryHourOnPaycheck"
491
- | "EveryPaycheck";
492
-
493
- interface VacationHours {
494
- HoursAvailable?: string;
495
- AccrualPeriod?: AccrualPeriod;
496
- HoursAccrued?: string;
497
- MaximumHours?: string;
498
- IsResettingHoursEachNewYear?: boolean;
499
- HoursUsed?: string;
500
- AccrualStartDate?: Date;
501
- }
@@ -1,192 +0,0 @@
1
- import type {
2
- ActiveStatus,
3
- AdditionalContactRef,
4
- AdditionalNotesRet,
5
- BillingRateRef,
6
- ClassFilter,
7
- ClassRef,
8
- ContactsRet,
9
- CurrencyFilter,
10
- CurrencyRef,
11
- DataExtRet,
12
- NameFilter,
13
- NameRangeFilter,
14
- SalesTaxCodeRef,
15
- SalesTaxCountry,
16
- ShipAddress,
17
- TermsRef,
18
- TotalBalanceFilter,
19
- } from "@conductor/client/qb/qbXMLTypes/shared";
20
-
21
- export interface VendorQueryRq {
22
- ListID?: string;
23
- FullName?: string;
24
- MaxReturned?: number;
25
- ActiveStatus?: ActiveStatus;
26
- FromModifiedDate?: Date;
27
- ToModifiedDate?: Date;
28
- NameFilter?: NameFilter;
29
- NameRangeFilter?: NameRangeFilter;
30
- TotalBalanceFilter?: TotalBalanceFilter;
31
- CurrencyFilter?: CurrencyFilter;
32
- ClassFilter?: ClassFilter;
33
- IncludeRetElement?: string;
34
- OwnerID?: string;
35
- }
36
-
37
- export interface VendorQueryRs {
38
- VendorRet?: VendorRet;
39
- }
40
-
41
- export interface VendorRet {
42
- ListID: string;
43
- TimeCreated: Date;
44
- TimeModified: Date;
45
- EditSequence: string;
46
- Name: string;
47
- /**
48
- * If `IsActive` is `true`, this object is currently enabled for use by
49
- * QuickBooks. The default value is `true`.
50
- */
51
- IsActive?: boolean;
52
- /**
53
- * Classes can be used to separate transactions into meaningful categories.
54
- * (For example, transactions could be classified according to department,
55
- * business location, or type of work.) In QuickBooks, class tracking is off
56
- * by default. A `ClassRef` aggregate refers to one of these named classes.
57
- * For example, in a `TimeTracking` message, `ClassRef` refers to the
58
- * QuickBooks class into which the timed activity falls. If a `ClassRef`
59
- * aggregate includes both `FullName` and `ListID`, `FullName` will be
60
- * ignored. In an `InvoiceAdd` request, if you specify a `ClassRef` for the
61
- * whole invoice, that same `ClassRef` is automatically used in the line
62
- * items. If you want to clear that (that is, have NO `ClassRef` for the line
63
- * item, you can clear it in the line item by simply not specifying it in the
64
- * line item.
65
- */
66
- ClassRef?: ClassRef;
67
- /**
68
- * Is the current entity a tax agency.
69
- */
70
- IsTaxAgency?: boolean;
71
- /**
72
- * The name of the QuickBooks user’s business, as specified in QuickBooks.
73
- * `CompanyName` and `Address` are used on invoices, checks, and other forms.
74
- * (`LegalCompanyName` and `LegalAddress`, on the other hand, are used on a
75
- * company’s tax forms and pay stubs.)
76
- */
77
- CompanyName?: string;
78
- /**
79
- * A formal reference, such as Mr. or Dr., that precedes a name.
80
- */
81
- Salutation?: string;
82
- /**
83
- * The first name of a customer, vendor, employee, or person on the “other
84
- * names” list.
85
- */
86
- FirstName?: string;
87
- /**
88
- * The middle name of a customer, vendor, employee, or person on the “other
89
- * names” list.
90
- */
91
- MiddleName?: string;
92
- /**
93
- * The last name of a customer, vendor, employee, or person on the “other
94
- * names” list.
95
- */
96
- LastName?: string;
97
- /**
98
- * The job title of a customer, vendor, employee, or person on the “other
99
- * names” list.
100
- */
101
- JobTitle?: string;
102
- /**
103
- * If an address request fails, some combination of address fields might be
104
- * too long.
105
- */
106
- VendorAddress?: VendorAddress;
107
- VendorAddressBlock?: VendorAddressBlock;
108
- ShipAddress?: ShipAddress;
109
- Phone?: string;
110
- AltPhone?: string;
111
- Fax?: string;
112
- Email?: string;
113
- Cc?: string;
114
- Contact?: string;
115
- AltContact?: string;
116
- AdditionalContactRef?: AdditionalContactRef;
117
- ContactsRet?: ContactsRet;
118
- NameOnCheck?: string;
119
- AccountNumber?: string;
120
- Notes?: string;
121
- AdditionalNotesRet?: AdditionalNotesRet;
122
- VendorTypeRef?: VendorTypeRef;
123
- TermsRef?: TermsRef;
124
- CreditLimit?: string;
125
- VendorTaxIdent?: string;
126
- IsVendorEligibleFor1099?: boolean;
127
- Balance?: string;
128
- BillingRateRef?: BillingRateRef;
129
- ExternalGUID?: string;
130
- SalesTaxCodeRef?: SalesTaxCodeRef;
131
- SalesTaxCountry?: SalesTaxCountry;
132
- IsSalesTaxAgency?: boolean;
133
- SalesTaxReturnRef?: SalesTaxReturnRef;
134
- TaxRegistrationNumber?: string;
135
- ResaleNumber?: ReportingPeriod;
136
- IsTaxTrackedOnPurchases?: boolean;
137
- TaxOnPurchasesAccountRef?: TaxOnPurchasesAccountRef;
138
- IsTaxTrackedOnSales?: boolean;
139
- TaxOnSalesAccountRef?: TaxOnSalesAccountRef;
140
- IsTaxOnTax?: boolean;
141
- PrefillAccountRef?: PrefillAccountRef;
142
- CurrencyRef?: CurrencyRef;
143
- DataExtRet?: DataExtRet;
144
- }
145
-
146
- interface VendorAddress {
147
- Addr1?: string;
148
- Addr2?: string;
149
- Addr3?: string;
150
- Addr4?: string;
151
- Addr5?: string;
152
- City?: string;
153
- State?: string;
154
- PostalCode?: string;
155
- Country?: string;
156
- Note?: string;
157
- }
158
-
159
- interface VendorAddressBlock {
160
- Addr1?: string;
161
- Addr2?: string;
162
- Addr3?: string;
163
- Addr4?: string;
164
- Addr5?: string;
165
- }
166
-
167
- interface VendorTypeRef {
168
- ListID?: string;
169
- FullName?: string;
170
- }
171
-
172
- interface SalesTaxReturnRef {
173
- ListID?: string;
174
- FullNam?: string;
175
- }
176
-
177
- // Default is Quarterly
178
- type ReportingPeriod = "Monthly" | "Quarterly";
179
-
180
- interface TaxOnPurchasesAccountRef {
181
- ListID?: string;
182
- FullName?: string;
183
- }
184
-
185
- interface TaxOnSalesAccountRef {
186
- ListID?: string;
187
- }
188
-
189
- interface PrefillAccountRef {
190
- ListID?: string;
191
- FullName?: string;
192
- }