conductor-node 0.1.2 → 0.1.5

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,590 +0,0 @@
1
- import type { ActiveStatus, AdditionalContactRef, AdditionalNotesRet, BillingRateRef, ClassRef, DataExtRet, NameFilter, NameRangeFilter } from "../../qb/qbXMLTypes/shared";
2
- export interface EmployeeAddRq {
3
- EmployeeAdd: EmployeeAdd;
4
- /**
5
- * You use this if you want to limit the data that will be returned in the
6
- * response. In this list, you specify the name of each top-level element or
7
- * aggregate that you want to be returned in the response to the request. You
8
- * cannot specify fields within an aggregate, for example, you cannot specify
9
- * a `City` within an `Address`: you must specify Address and will get the
10
- * entire address. The names specified in the list are not parsed, so you must
11
- * be especially careful to supply valid names, properly cased. No error is
12
- * returned in the status code if you specify an invalid name. Notice that if
13
- * you want to return custom data or private data extensions, you must specify
14
- * the DataExtRet element and you must supply the `OwnerID` set to either a
15
- * value of 0 (custom data) or the `GUID` for the private data.
16
- */
17
- IncludeRetElement?: string;
18
- }
19
- export interface EmployeeAddRs {
20
- EmployeeRet?: EmployeeRet;
21
- }
22
- export interface EmployeeModRq {
23
- EmployeeMod: EmployeeMod;
24
- /**
25
- * You use this if you want to limit the data that will be returned in the
26
- * response. In this list, you specify the name of each top-level element or
27
- * aggregate that you want to be returned in the response to the request. You
28
- * cannot specify fields within an aggregate, for example, you cannot specify
29
- * a `City` within an `Address`: you must specify Address and will get the
30
- * entire address. The names specified in the list are not parsed, so you must
31
- * be especially careful to supply valid names, properly cased. No error is
32
- * returned in the status code if you specify an invalid name. Notice that if
33
- * you want to return custom data or private data extensions, you must specify
34
- * the DataExtRet element and you must supply the `OwnerID` set to either a
35
- * value of 0 (custom data) or the `GUID` for the private data.
36
- */
37
- IncludeRetElement?: string;
38
- }
39
- export interface EmployeeModRs {
40
- EmployeeRet?: EmployeeRet;
41
- }
42
- export interface EmployeeQueryRq {
43
- ListID?: string;
44
- FullName?: string;
45
- /**
46
- * Limits the number of objects that a query returns. (To get a count of how
47
- * many objects could possibly be returned, use the metaData query attribute.)
48
- * If you include a `MaxReturned` value, it must be at least 1.
49
- */
50
- MaxReturned?: number;
51
- /**
52
- * Used in filters to select list objects based on whether or not they are
53
- * currently enabled for use by QuickBooks. The default value is
54
- * `asActiveOnly`, which selects only list objects that are active.
55
- */
56
- ActiveStatus?: ActiveStatus;
57
- /**
58
- * Selects objects modified on or after this date.
59
- *
60
- * `FromModifiedDate` and `ToModifiedDate` must be between 1970-01-01 and
61
- * 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). (The time portion of
62
- * the field was not supported in qbXML version 1.0 or 1.1.)
63
- *
64
- * If `FromModifiedDate` includes a date but not a time (for example, if you
65
- * set `FromModifiedDate` to 2003-02-14), the time is assumed to be zero
66
- * (2003-02-14T00:00:00). If you omit `FromModifiedDate`, it will be set to
67
- * 1970-01-01T00:00:00 (1969-12-31T16:00:00-08:00 PST).
68
- */
69
- FromModifiedDate?: Date;
70
- /**
71
- * Selects objects modified on or before this date.
72
- *
73
- * `ToModifiedDate` and `FromModifiedDate` must be between 1970-01-01 and
74
- * 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST). (Note that the time
75
- * portion of the field was not supported in qbXML version 1.0 or 1.1.)
76
- *
77
- * If `ToModifiedDate` includes a date but not a time (for example, if you set
78
- * `ToModifiedDate` to 2003-02-14), the time is assumed to be the end of the
79
- * day (2003-02-14T23:59:59). If you omit `ToModifiedDate` altogether, it will
80
- * be set to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).
81
- */
82
- ToModifiedDate?: Date;
83
- /**
84
- * Filters according to the object’s `Name`.
85
- */
86
- NameFilter?: NameFilter;
87
- /**
88
- * Filters according to the object’s `Name`.
89
- */
90
- NameRangeFilter?: NameRangeFilter;
91
- /**
92
- * You use this if you want to limit the data that will be returned in the
93
- * response. In this list, you specify the name of each top-level element or
94
- * aggregate that you want to be returned in the response to the request. You
95
- * cannot specify fields within an aggregate, for example, you cannot specify
96
- * a `City` within an `Address`: you must specify Address and will get the
97
- * entire address. The names specified in the list are not parsed, so you must
98
- * be especially careful to supply valid names, properly cased. No error is
99
- * returned in the status code if you specify an invalid name. Notice that if
100
- * you want to return custom data or private data extensions, you must specify
101
- * the DataExtRet element and you must supply the `OwnerID` set to either a
102
- * value of 0 (custom data) or the `GUID` for the private data.
103
- */
104
- IncludeRetElement?: string;
105
- /**
106
- * Zero or more `OwnerID` values. `OwnerID` refers to the owner of a data
107
- * extension: If `OwnerID` is 0, this is a public data extension, also known
108
- * as a custom field. Custom fields appear in the QuickBooks UI.
109
- *
110
- * If `OwnerID` is a GUID, for example
111
- * `{6B063959-81B0-4622-85D6-F548C8CCB517}`, this field is a private data
112
- * extension defined by an integrated application. Private data extensions do
113
- * not appear in the QuickBooks UI.
114
- *
115
- * Note that `OwnerID` values are not case-sensitive, meaning that if you
116
- * enter an `OwnerID` value with lower-case letters, the value will be saved
117
- * and returned with upper-case letters.
118
- *
119
- * When you share a private data extension with another application, the other
120
- * application must know both the `OwnerID` and the `DataExtName`, as these
121
- * together form a data extension’s unique name.
122
- */
123
- OwnerID?: string;
124
- }
125
- export interface EmployeeQueryRs {
126
- EmployeeRet?: EmployeeRet;
127
- }
128
- export interface EmployeeAdd {
129
- /**
130
- * If `IsActive` is true, this object is currently enabled for use by
131
- * QuickBooks. The default value is `true`.
132
- */
133
- IsActive?: boolean;
134
- /**
135
- * A formal reference, such as Mr. or Dr., that precedes a name.
136
- */
137
- Salutation?: string;
138
- /**
139
- * The first name of a customer, vendor, employee, or person on the “other
140
- * names” list.
141
- */
142
- FirstName?: string;
143
- /**
144
- * The middle name of a customer, vendor, employee, or person on the “other
145
- * names” list.
146
- */
147
- MiddleName?: string;
148
- /**
149
- * The last name of a customer, vendor, employee, or person on the “other
150
- * names” list.
151
- */
152
- LastName?: string;
153
- /**
154
- * The job title of a customer, vendor, employee, or person on the “other
155
- * names” list.
156
- */
157
- JobTitle?: string;
158
- /**
159
- * The name of a customer, vendor, employee, or person on the “other names”
160
- * list in the employment job details section.
161
- */
162
- SupervisorRef?: SupervisorRef;
163
- /**
164
- * The name of the department in the employment job details section.
165
- */
166
- Department?: string;
167
- /**
168
- * The description details in the employment job details section.
169
- */
170
- Description?: string;
171
- /**
172
- * The target bonus amount in the employment job details section.
173
- */
174
- TargetBonus?: string;
175
- /**
176
- * If an address request fails, some combination of address fields might be
177
- * too long. If you use payroll, you must specify the employee’s city, state
178
- * (or province), ZIP (or postal) code, and at least one line of the street
179
- * address. (Note that the State element has restrictions when it’s used in
180
- * the `EmployeeAddress` aggregate. For more information, click State in the
181
- * table.)
182
- */
183
- EmployeeAddress?: EmployeeAddress;
184
- /**
185
- * By default within QuickBooks, the `PrintAs` element is the same as the
186
- * `Name` element.
187
- */
188
- PrintAs?: string;
189
- /**
190
- * The telephone number.
191
- */
192
- Phone?: string;
193
- /**
194
- * Mobile telephone number.
195
- */
196
- Mobile?: string;
197
- /**
198
- * The pager number.
199
- */
200
- Pager?: string;
201
- /**
202
- * A personal identification number for this employee’s pager.
203
- */
204
- PagerPIN?: string;
205
- /**
206
- * A telephone number given as an alternative to `Phone`.
207
- */
208
- AltPhone?: string;
209
- /**
210
- * Fax number.
211
- */
212
- Fax?: string;
213
- /**
214
- * Social security number. When you add an SSN value to an employee record, it
215
- * does not have to include dashes; for example, either 123-45-6789 or
216
- * 123456789 would be valid.
217
- */
218
- SSN?: string;
219
- /**
220
- * E-mail address.
221
- */
222
- Email?: string;
223
- /**
224
- * List of additional contacts.
225
- */
226
- AdditionalContactRef?: AdditionalContactRef;
227
- /**
228
- * Emergency Contact information for the employee.
229
- */
230
- EmergencyContacts?: EmergencyContacts;
231
- /**
232
- * `EmployeeType` can affect payroll taxes for an employee. A statutory
233
- * employee is a person who is defined as an employee by statute. Usually an
234
- * owner or partner will be on the `Other Names` list, but if they are on the
235
- * `Employee` list, their `EmployeeType` will be `Owner`.
236
- */
237
- EmployeeType?: EmployeeType;
238
- /**
239
- * Full or Part time status of the employee.
240
- */
241
- PartOrFullTime?: PartOrFullTime;
242
- /**
243
- * Exempt or non-exempt status of the employee.
244
- */
245
- Exempt?: Exempt;
246
- /**
247
- * Is employee a key or critical employee.
248
- */
249
- KeyEmployee?: KeyEmployee;
250
- /**
251
- * The gender of this employee.
252
- */
253
- Gender?: Gender;
254
- /**
255
- * An employee’s date of hire.
256
- */
257
- HiredDate?: Date;
258
- /**
259
- * Original hire date the employee was hired.
260
- */
261
- OriginalHireDate?: Date;
262
- /**
263
- * Adjusted service date for the employee.
264
- */
265
- AdjustedServiceDate?: Date;
266
- /**
267
- * The date on which this person’s employment with the company ended.
268
- */
269
- ReleasedDate?: Date;
270
- /**
271
- * Date of birth.
272
- */
273
- BirthDate?: Date;
274
- /**
275
- * Is employee a US citizen?
276
- */
277
- USCitizen?: USCitizen;
278
- /**
279
- * Ethnicity of employee from AmericianIndian, Asian, Black, Hawaiian, Hispanic, White, TwoOrMoreRaces
280
- */
281
- Ethnicity?: Ethnicity;
282
- /**
283
- * Is employee disabled?
284
- */
285
- Disabled?: Disabled;
286
- /**
287
- * Description of employee’s disability.
288
- */
289
- DisabilityDesc?: string;
290
- /**
291
- * Is the employee’s I-9 on file?
292
- */
293
- OnFile?: OnFile;
294
- /**
295
- * Date the employee’s work authorization expires.
296
- */
297
- WorkAuthExpireDate?: Date;
298
- /**
299
- * Is employee a US veteran?
300
- */
301
- USVeteran?: USVeteran;
302
- /**
303
- * Military status if the employee is a US veteran.
304
- */
305
- MilitaryStatus?: MilitaryStatus;
306
- /**
307
- * Account numbers appear in the QuickBooks chart of accounts, Account fields,
308
- * and reports and graphs. If the `IsUsingAccountNumber` preference is false
309
- * (that is, if the QuickBooks user has the account numbers Preference turned
310
- * off), you can still set account numbers through the SDK, but the numbers
311
- * will not be visible in the user interface.
312
- */
313
- AccountNumber?: string;
314
- /**
315
- * Additional information.
316
- */
317
- Notes?: string;
318
- /**
319
- * List of notes.
320
- */
321
- AdditionalNotes?: AdditionalNotes;
322
- BillingRateRef?: BillingRateRef;
323
- EmployeePayrollInfo?: EmployeePayrollInfo;
324
- /**
325
- * Allows for the attachment of a user defined GUID value.
326
- */
327
- ExternalGUID?: string;
328
- }
329
- export interface EmployeeRet {
330
- ListID: string;
331
- TimeCreated: Date;
332
- TimeModified: Date;
333
- EditSequence: string;
334
- Name: string;
335
- IsActive?: boolean;
336
- Salutation?: string;
337
- FirstName?: string;
338
- MiddleName?: string;
339
- LastName?: string;
340
- JobTitle?: string;
341
- SupervisorRef?: SupervisorRef;
342
- Department?: string;
343
- Description?: string;
344
- TargetBonus?: string;
345
- EmployeeAddress?: EmployeeAddress;
346
- PrintAs?: string;
347
- Phone?: string;
348
- Mobile?: string;
349
- Pager?: string;
350
- PagerPIN?: string;
351
- AltPhone?: string;
352
- Fax?: string;
353
- SSN?: string;
354
- Email?: string;
355
- AdditionalContactRef?: AdditionalContactRef;
356
- EmergencyContacts?: EmergencyContacts;
357
- EmployeeType?: EmployeeType;
358
- PartOrFullTime?: PartOrFullTime;
359
- Exempt?: Exempt;
360
- KeyEmployee?: KeyEmployee;
361
- Gender?: Gender;
362
- HiredDate?: Date;
363
- OriginalHireDate?: Date;
364
- AdjustedServiceDate?: Date;
365
- ReleasedDate?: Date;
366
- BirthDate?: Date;
367
- USCitizen?: USCitizen;
368
- Ethnicity?: Ethnicity;
369
- Disabled?: Disabled;
370
- DisabilityDesc?: string;
371
- OnFile?: OnFile;
372
- WorkAuthExpireDate?: Date;
373
- USVeteran?: USVeteran;
374
- MilitaryStatus?: MilitaryStatus;
375
- AccountNumber?: string;
376
- Notes?: string;
377
- AdditionalNotesRet?: AdditionalNotesRet;
378
- BillingRateRef?: BillingRateRef;
379
- EmployeePayrollInfo?: EmployeePayrollInfo;
380
- ExternalGUID?: string;
381
- DataExtRet?: DataExtRet;
382
- }
383
- export interface EmployeeMod {
384
- ListID: string;
385
- EditSequence: string;
386
- IsActive?: boolean;
387
- Salutation?: string;
388
- FirstName?: string;
389
- MiddleName?: string;
390
- LastName?: string;
391
- JobTitle?: string;
392
- SupervisorRef?: SupervisorRef;
393
- Department?: string;
394
- Description?: string;
395
- TargetBonus?: string;
396
- EmployeeAddress?: EmployeeAddress;
397
- PrintAs?: string;
398
- Phone?: string;
399
- Mobile?: string;
400
- Pager?: string;
401
- PagerPIN?: string;
402
- AltPhone?: string;
403
- Fax?: string;
404
- Email?: string;
405
- AdditionalContactRef?: AdditionalContactRef;
406
- EmergencyContacts?: EmergencyContacts;
407
- EmployeeType?: EmployeeType;
408
- PartOrFullTime?: PartOrFullTime;
409
- Exempt?: Exempt;
410
- KeyEmployee?: KeyEmployee;
411
- HiredDate?: Date;
412
- OriginalHireDate?: Date;
413
- AdjustedServiceDate?: Date;
414
- ReleasedDate?: Date;
415
- BirthDate?: Date;
416
- USCitizen?: USCitizen;
417
- Ethnicity?: Ethnicity;
418
- Disabled?: Disabled;
419
- DisabilityDesc?: string;
420
- OnFile?: OnFile;
421
- WorkAuthExpireDate?: Date;
422
- USVeteran?: USVeteran;
423
- MilitaryStatus?: MilitaryStatus;
424
- AccountNumber?: string;
425
- Notes?: string;
426
- AdditionalNotesMod?: AdditionalNotesMod;
427
- BillingRateRef?: BillingRateRef;
428
- EmployeePayrollInfoMod?: EmployeePayrollInfoMod;
429
- }
430
- interface SupervisorRef {
431
- ListID?: string;
432
- FullName?: string;
433
- }
434
- interface EmployeeAddress {
435
- /**
436
- * The first line of an address.
437
- */
438
- Addr1?: string;
439
- /**
440
- * The second line of an address (if a second line is needed).
441
- */
442
- Addr2?: string;
443
- /**
444
- * The city name in an address.
445
- */
446
- City?: string;
447
- /**
448
- * When it appears in the `EmployeeAddress` aggregate, the State element acts
449
- * like an `ENUMTYPE` with the following possible values: None, AA (military),
450
- * AE (military), AK, AL, AP (military), AR, AZ, CA, CO, CT, DC, DE, FL, GA,
451
- * HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE,
452
- * NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VA, VT, WA,
453
- * WI, WV, and WY.
454
- */
455
- State?: State;
456
- /**
457
- * The postal code in an address.
458
- */
459
- PostalCode?: string;
460
- }
461
- declare type State = "AA" | "AE" | "AK" | "AL" | "AP" | "AR" | "AZ" | "CA" | "CO" | "CT" | "DC" | "DE" | "FL" | "GA" | "HI" | "IA" | "ID" | "IL" | "IN" | "KS" | "KY" | "LA" | "MA" | "MD" | "ME" | "MI" | "MN" | "MO" | "MS" | "MT" | "NC" | "ND" | "NE" | "NH" | "NJ" | "NM" | "None" | "NV" | "NY" | "OH" | "OK" | "OR" | "PA" | "PR" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VA" | "VT" | "WA" | "WI" | "WV" | "WY";
462
- interface EmergencyContacts {
463
- PrimaryContact?: {
464
- ContactName: string;
465
- ContactValue: string;
466
- Relation?: Relation;
467
- };
468
- SecondaryContact?: {
469
- ContactName: string;
470
- ContactValue: string;
471
- Relation?: Relation;
472
- };
473
- }
474
- declare type Relation = "Brother" | "Daughter" | "Father" | "Friend" | "Mother" | "Other" | "Partner" | "Sister" | "Son" | "Spouse";
475
- declare type EmployeeType = "Officer" | "Owner" | "Regular" | "Statutory";
476
- declare type PartOrFullTime = "FullTime" | "PartTime";
477
- declare type Exempt = "Exempt" | "NonExempt";
478
- declare type KeyEmployee = "No" | "Yes";
479
- declare type Gender = "Female" | "Male";
480
- declare type USCitizen = "No" | "Yes";
481
- declare type Ethnicity = "AmericianIndian" | "Asian" | "Black" | "Hawaiian" | "Hispanic" | "TwoOrMoreRaces" | "White";
482
- declare type Disabled = "No" | "Yes";
483
- declare type OnFile = "No" | "Yes";
484
- declare type USVeteran = "No" | "Yes";
485
- declare type MilitaryStatus = "Active" | "Reserve";
486
- interface AdditionalNotes {
487
- Note: string;
488
- }
489
- interface AdditionalNotesMod {
490
- NoteID: number;
491
- Note: string;
492
- }
493
- interface EmployeePayrollInfo {
494
- PayPeriod?: PayPeriod;
495
- ClassRef?: ClassRef;
496
- ClearEarnings?: boolean;
497
- Earnings?: Earnings;
498
- /**
499
- * Indicates whether or not paychecks are generated from time-tracking data.
500
- * If you include a blank `IsUsingTimeDataToCreatePaychecks` element in an
501
- * `EmployeeMod` message, you’ll receive an error.
502
- */
503
- IsUsingTimeDataToCreatePaychecks?: boolean;
504
- /**
505
- * Indicates whether time data is used to create paychecks for this employee.
506
- */
507
- UseTimeDataToCreatePaychecks?: UseTimeDataToCreatePaychecks;
508
- /**
509
- * Describes how “sick time” is accrued for this employee, along with how many
510
- * sick hours the employee has accrued.
511
- */
512
- SickHours?: SickHours;
513
- VacationHours?: VacationHours;
514
- }
515
- interface EmployeePayrollInfoMod {
516
- PayPeriod?: PayPeriod;
517
- ClassRef?: ClassRef;
518
- ClearEarnings?: boolean;
519
- Earnings?: Earnings;
520
- IsUsingTimeDataToCreatePaychecks?: boolean;
521
- UseTimeDataToCreatePaychecks?: UseTimeDataToCreatePaychecks;
522
- SickHours?: SickHours;
523
- VacationHours?: VacationHours;
524
- }
525
- declare type PayPeriod = "Biweekly" | "Daily" | "Monthly" | "Quarterly" | "Semimonthly" | "Weekly" | "Yearly";
526
- interface Earnings {
527
- PayrollItemWageRef?: PayrollItemWageRef;
528
- Rate?: string;
529
- RatePercent?: string;
530
- }
531
- interface PayrollItemWageRef {
532
- ListID?: string;
533
- FullName?: string;
534
- }
535
- declare type UseTimeDataToCreatePaychecks = "DoNotUseTimeData" | "NotSet" | "UseTimeData";
536
- interface SickHours {
537
- /**
538
- * The total number of hours currently available for the employee to use. If
539
- * this value is empty, it will default to 0.
540
- */
541
- HoursAvailable?: string;
542
- /**
543
- * Indicates how an employee accrues time off. If you include a blank
544
- * `AccrualPeriod` element in an `EmployeeMod` message, you’ll receive an
545
- * error. The default value is whatever the QuickBooks user has set in the
546
- * QuickBooks Employee Preferences.
547
- */
548
- AccrualPeriod?: AccrualPeriod;
549
- /**
550
- * The number of hours that the employee will accrue per accrual period. The
551
- * default value is whatever the QuickBooks user has set in the QuickBooks
552
- * Employee Preferences.
553
- */
554
- HoursAccrued?: string;
555
- /**
556
- * The maximum number of hours that the employee can accrue. (QuickBooks
557
- * itself does not enforce this limit, however. HoursAvailable can be greater
558
- * than MaximumHours.) The default value is whatever the QuickBooks user has
559
- * set in the QuickBooks Employee Preferences.
560
- */
561
- MaximumHours?: string;
562
- /**
563
- * Indicates whether or not the hours accrued resets to zero at the beginning
564
- * of the new year. If you include a blank `IsResettingHoursEachNewYear`
565
- * element in an `EmployeeMod` message, you’ll receive an error.
566
- */
567
- IsResettingHoursEachNewYear?: boolean;
568
- /**
569
- * When used in the `SickHours` or `VacationHours` aggregates, refers to the
570
- * number of sick leave or vacation hours used in the current year.
571
- */
572
- HoursUsed?: string;
573
- /**
574
- * When used in the `SickHours` or `VacationHours` aggregates, refers to the
575
- * date on which sick leave or vacation hours in the current year began to
576
- * accrue.
577
- */
578
- AccrualStartDate?: Date;
579
- }
580
- declare type AccrualPeriod = "BeginningOfYear" | "EveryHourOnPaycheck" | "EveryPaycheck";
581
- interface VacationHours {
582
- HoursAvailable?: string;
583
- AccrualPeriod?: AccrualPeriod;
584
- HoursAccrued?: string;
585
- MaximumHours?: string;
586
- IsResettingHoursEachNewYear?: boolean;
587
- HoursUsed?: string;
588
- AccrualStartDate?: Date;
589
- }
590
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });