@apideck/unify 0.15.0 → 0.16.1
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/FUNCTIONS.md +0 -2
- package/README.md +0 -15
- package/docs/sdks/activities/README.md +0 -14
- package/docs/sdks/ageddebtors/README.md +0 -2
- package/docs/sdks/apideckcompanies/README.md +0 -12
- package/docs/sdks/apideckcustomers/README.md +0 -6
- package/docs/sdks/apideckdepartments/README.md +0 -12
- package/docs/sdks/apis/README.md +0 -2
- package/docs/sdks/applicants/README.md +0 -12
- package/docs/sdks/applications/README.md +0 -12
- package/docs/sdks/attachments/README.md +0 -8
- package/docs/sdks/balancesheet/README.md +0 -2
- package/docs/sdks/billpayments/README.md +0 -14
- package/docs/sdks/bills/README.md +0 -14
- package/docs/sdks/collections/README.md +0 -8
- package/docs/sdks/collectiontags/README.md +0 -4
- package/docs/sdks/collectionticketcomments/README.md +0 -16
- package/docs/sdks/collectiontickets/README.md +0 -14
- package/docs/sdks/collectionusers/README.md +0 -6
- package/docs/sdks/companies/README.md +0 -14
- package/docs/sdks/companyinfo/README.md +0 -2
- package/docs/sdks/connectors/README.md +0 -2
- package/docs/sdks/consumers/README.md +2 -6
- package/docs/sdks/contacts/README.md +0 -14
- package/docs/sdks/creditnotes/README.md +0 -14
- package/docs/sdks/customers/README.md +0 -14
- package/docs/sdks/departments/README.md +0 -12
- package/docs/sdks/drivegroups/README.md +0 -12
- package/docs/sdks/drives/README.md +0 -12
- package/docs/sdks/employeepayrolls/README.md +0 -4
- package/docs/sdks/employees/README.md +0 -14
- package/docs/sdks/employeeschedules/README.md +0 -2
- package/docs/sdks/eventlogs/README.md +0 -2
- package/docs/sdks/expenses/README.md +0 -12
- package/docs/sdks/files/README.md +0 -14
- package/docs/sdks/folders/README.md +0 -10
- package/docs/sdks/invoiceitems/README.md +6 -12
- package/docs/sdks/invoices/README.md +0 -14
- package/docs/sdks/jobs/README.md +0 -6
- package/docs/sdks/journalentries/README.md +0 -14
- package/docs/sdks/leads/README.md +0 -14
- package/docs/sdks/ledgeraccounts/README.md +0 -14
- package/docs/sdks/locations/README.md +0 -12
- package/docs/sdks/logs/README.md +0 -2
- package/docs/sdks/messages/README.md +0 -12
- package/docs/sdks/notes/README.md +0 -12
- package/docs/sdks/opportunities/README.md +0 -14
- package/docs/sdks/orders/README.md +0 -8
- package/docs/sdks/payments/README.md +0 -14
- package/docs/sdks/payrolls/README.md +0 -4
- package/docs/sdks/pipelines/README.md +0 -4
- package/docs/sdks/products/README.md +0 -6
- package/docs/sdks/profitandloss/README.md +0 -2
- package/docs/sdks/purchaseorders/README.md +0 -14
- package/docs/sdks/sessions/README.md +0 -18
- package/docs/sdks/sharedlinks/README.md +0 -12
- package/docs/sdks/stores/README.md +0 -2
- package/docs/sdks/subsidiaries/README.md +0 -12
- package/docs/sdks/suppliers/README.md +0 -14
- package/docs/sdks/taxrates/README.md +0 -12
- package/docs/sdks/timeoffrequests/README.md +0 -12
- package/docs/sdks/trackingcategories/README.md +0 -12
- package/docs/sdks/uploadsessions/README.md +0 -8
- package/docs/sdks/users/README.md +0 -12
- package/docs/sdks/webhooks/README.md +2 -6
- package/funcs/accountingInvoiceItemsList.d.ts.map +1 -1
- package/funcs/accountingInvoiceItemsList.js +1 -0
- package/funcs/accountingInvoiceItemsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoiceitemssort.d.ts +70 -0
- package/models/components/invoiceitemssort.d.ts.map +1 -0
- package/models/components/invoiceitemssort.js +84 -0
- package/models/components/invoiceitemssort.js.map +1 -0
- package/models/components/opportunity.d.ts +2 -2
- package/models/components/opportunity.d.ts.map +1 -1
- package/models/components/opportunity.js +2 -2
- package/models/components/opportunity.js.map +1 -1
- package/models/components/opportunityinput.d.ts +2 -2
- package/models/components/opportunityinput.d.ts.map +1 -1
- package/models/components/opportunityinput.js +2 -2
- package/models/components/opportunityinput.js.map +1 -1
- package/models/components/paymentstatus.d.ts +6 -0
- package/models/components/paymentstatus.d.ts.map +1 -1
- package/models/components/paymentstatus.js +2 -0
- package/models/components/paymentstatus.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +27 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +9 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/operations/accountinginvoiceitemsall.d.ts +5 -0
- package/models/operations/accountinginvoiceitemsall.d.ts.map +1 -1
- package/models/operations/accountinginvoiceitemsall.js +2 -0
- package/models/operations/accountinginvoiceitemsall.js.map +1 -1
- package/package.json +6 -7
- package/src/funcs/accountingInvoiceItemsList.ts +1 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/retries.ts +0 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoiceitemssort.ts +115 -0
- package/src/models/components/opportunity.ts +4 -4
- package/src/models/components/opportunityinput.ts +4 -4
- package/src/models/components/paymentstatus.ts +2 -0
- package/src/models/components/webhookeventtype.ts +9 -0
- package/src/models/operations/accountinginvoiceitemsall.ts +7 -0
|
@@ -28,15 +28,12 @@ const apideck = new Apideck({
|
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
30
|
const result = await apideck.accounting.ledgerAccounts.list({
|
|
31
|
-
raw: false,
|
|
32
31
|
serviceId: "salesforce",
|
|
33
|
-
limit: 20,
|
|
34
32
|
filter: {
|
|
35
33
|
updatedSince: new Date("2020-09-30T07:43:32.000Z"),
|
|
36
34
|
},
|
|
37
35
|
sort: {
|
|
38
36
|
by: "updated_at",
|
|
39
|
-
direction: "desc",
|
|
40
37
|
},
|
|
41
38
|
passThrough: {
|
|
42
39
|
"search": "San Francisco",
|
|
@@ -71,15 +68,12 @@ const apideck = new ApideckCore({
|
|
|
71
68
|
|
|
72
69
|
async function run() {
|
|
73
70
|
const res = await accountingLedgerAccountsList(apideck, {
|
|
74
|
-
raw: false,
|
|
75
71
|
serviceId: "salesforce",
|
|
76
|
-
limit: 20,
|
|
77
72
|
filter: {
|
|
78
73
|
updatedSince: new Date("2020-09-30T07:43:32.000Z"),
|
|
79
74
|
},
|
|
80
75
|
sort: {
|
|
81
76
|
by: "updated_at",
|
|
82
|
-
direction: "desc",
|
|
83
77
|
},
|
|
84
78
|
passThrough: {
|
|
85
79
|
"search": "San Francisco",
|
|
@@ -144,7 +138,6 @@ const apideck = new Apideck({
|
|
|
144
138
|
|
|
145
139
|
async function run() {
|
|
146
140
|
const result = await apideck.accounting.ledgerAccounts.create({
|
|
147
|
-
raw: false,
|
|
148
141
|
serviceId: "salesforce",
|
|
149
142
|
ledgerAccount: {
|
|
150
143
|
displayId: "1-12345",
|
|
@@ -246,7 +239,6 @@ const apideck = new ApideckCore({
|
|
|
246
239
|
|
|
247
240
|
async function run() {
|
|
248
241
|
const res = await accountingLedgerAccountsCreate(apideck, {
|
|
249
|
-
raw: false,
|
|
250
242
|
serviceId: "salesforce",
|
|
251
243
|
ledgerAccount: {
|
|
252
244
|
displayId: "1-12345",
|
|
@@ -378,7 +370,6 @@ async function run() {
|
|
|
378
370
|
const result = await apideck.accounting.ledgerAccounts.get({
|
|
379
371
|
id: "<id>",
|
|
380
372
|
serviceId: "salesforce",
|
|
381
|
-
raw: false,
|
|
382
373
|
fields: "id,updated_at",
|
|
383
374
|
});
|
|
384
375
|
|
|
@@ -409,7 +400,6 @@ async function run() {
|
|
|
409
400
|
const res = await accountingLedgerAccountsGet(apideck, {
|
|
410
401
|
id: "<id>",
|
|
411
402
|
serviceId: "salesforce",
|
|
412
|
-
raw: false,
|
|
413
403
|
fields: "id,updated_at",
|
|
414
404
|
});
|
|
415
405
|
|
|
@@ -470,7 +460,6 @@ async function run() {
|
|
|
470
460
|
const result = await apideck.accounting.ledgerAccounts.update({
|
|
471
461
|
id: "<id>",
|
|
472
462
|
serviceId: "salesforce",
|
|
473
|
-
raw: false,
|
|
474
463
|
ledgerAccount: {
|
|
475
464
|
displayId: "1-12345",
|
|
476
465
|
code: "453",
|
|
@@ -611,7 +600,6 @@ async function run() {
|
|
|
611
600
|
const res = await accountingLedgerAccountsUpdate(apideck, {
|
|
612
601
|
id: "<id>",
|
|
613
602
|
serviceId: "salesforce",
|
|
614
|
-
raw: false,
|
|
615
603
|
ledgerAccount: {
|
|
616
604
|
displayId: "1-12345",
|
|
617
605
|
code: "453",
|
|
@@ -780,7 +768,6 @@ async function run() {
|
|
|
780
768
|
const result = await apideck.accounting.ledgerAccounts.delete({
|
|
781
769
|
id: "<id>",
|
|
782
770
|
serviceId: "salesforce",
|
|
783
|
-
raw: false,
|
|
784
771
|
});
|
|
785
772
|
|
|
786
773
|
// Handle the result
|
|
@@ -810,7 +797,6 @@ async function run() {
|
|
|
810
797
|
const res = await accountingLedgerAccountsDelete(apideck, {
|
|
811
798
|
id: "<id>",
|
|
812
799
|
serviceId: "salesforce",
|
|
813
|
-
raw: false,
|
|
814
800
|
});
|
|
815
801
|
|
|
816
802
|
if (!res.ok) {
|
|
@@ -28,9 +28,7 @@ const apideck = new Apideck({
|
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
30
|
const result = await apideck.accounting.locations.list({
|
|
31
|
-
raw: false,
|
|
32
31
|
serviceId: "salesforce",
|
|
33
|
-
limit: 20,
|
|
34
32
|
fields: "id,updated_at",
|
|
35
33
|
filter: {
|
|
36
34
|
subsidiary: "1",
|
|
@@ -64,9 +62,7 @@ const apideck = new ApideckCore({
|
|
|
64
62
|
|
|
65
63
|
async function run() {
|
|
66
64
|
const res = await accountingLocationsList(apideck, {
|
|
67
|
-
raw: false,
|
|
68
65
|
serviceId: "salesforce",
|
|
69
|
-
limit: 20,
|
|
70
66
|
fields: "id,updated_at",
|
|
71
67
|
filter: {
|
|
72
68
|
subsidiary: "1",
|
|
@@ -129,7 +125,6 @@ const apideck = new Apideck({
|
|
|
129
125
|
|
|
130
126
|
async function run() {
|
|
131
127
|
const result = await apideck.accounting.locations.create({
|
|
132
|
-
raw: false,
|
|
133
128
|
serviceId: "salesforce",
|
|
134
129
|
accountingLocation: {
|
|
135
130
|
parentId: "12345",
|
|
@@ -255,7 +250,6 @@ const apideck = new ApideckCore({
|
|
|
255
250
|
|
|
256
251
|
async function run() {
|
|
257
252
|
const res = await accountingLocationsCreate(apideck, {
|
|
258
|
-
raw: false,
|
|
259
253
|
serviceId: "salesforce",
|
|
260
254
|
accountingLocation: {
|
|
261
255
|
parentId: "12345",
|
|
@@ -412,7 +406,6 @@ async function run() {
|
|
|
412
406
|
const result = await apideck.accounting.locations.get({
|
|
413
407
|
id: "<id>",
|
|
414
408
|
serviceId: "salesforce",
|
|
415
|
-
raw: false,
|
|
416
409
|
fields: "id,updated_at",
|
|
417
410
|
});
|
|
418
411
|
|
|
@@ -443,7 +436,6 @@ async function run() {
|
|
|
443
436
|
const res = await accountingLocationsGet(apideck, {
|
|
444
437
|
id: "<id>",
|
|
445
438
|
serviceId: "salesforce",
|
|
446
|
-
raw: false,
|
|
447
439
|
fields: "id,updated_at",
|
|
448
440
|
});
|
|
449
441
|
|
|
@@ -503,7 +495,6 @@ async function run() {
|
|
|
503
495
|
const result = await apideck.accounting.locations.update({
|
|
504
496
|
id: "<id>",
|
|
505
497
|
serviceId: "salesforce",
|
|
506
|
-
raw: false,
|
|
507
498
|
accountingLocation: {
|
|
508
499
|
parentId: "12345",
|
|
509
500
|
companyName: "SpaceX",
|
|
@@ -680,7 +671,6 @@ async function run() {
|
|
|
680
671
|
const res = await accountingLocationsUpdate(apideck, {
|
|
681
672
|
id: "<id>",
|
|
682
673
|
serviceId: "salesforce",
|
|
683
|
-
raw: false,
|
|
684
674
|
accountingLocation: {
|
|
685
675
|
parentId: "12345",
|
|
686
676
|
companyName: "SpaceX",
|
|
@@ -886,7 +876,6 @@ async function run() {
|
|
|
886
876
|
const result = await apideck.accounting.locations.delete({
|
|
887
877
|
id: "<id>",
|
|
888
878
|
serviceId: "salesforce",
|
|
889
|
-
raw: false,
|
|
890
879
|
});
|
|
891
880
|
|
|
892
881
|
// Handle the result
|
|
@@ -916,7 +905,6 @@ async function run() {
|
|
|
916
905
|
const res = await accountingLocationsDelete(apideck, {
|
|
917
906
|
id: "<id>",
|
|
918
907
|
serviceId: "salesforce",
|
|
919
|
-
raw: false,
|
|
920
908
|
});
|
|
921
909
|
|
|
922
910
|
if (!res.ok) {
|
package/docs/sdks/logs/README.md
CHANGED
|
@@ -30,7 +30,6 @@ async function run() {
|
|
|
30
30
|
statusCode: 201,
|
|
31
31
|
excludeUnifiedApis: "vault,proxy",
|
|
32
32
|
},
|
|
33
|
-
limit: 20,
|
|
34
33
|
});
|
|
35
34
|
|
|
36
35
|
for await (const page of result) {
|
|
@@ -65,7 +64,6 @@ async function run() {
|
|
|
65
64
|
statusCode: 201,
|
|
66
65
|
excludeUnifiedApis: "vault,proxy",
|
|
67
66
|
},
|
|
68
|
-
limit: 20,
|
|
69
67
|
});
|
|
70
68
|
|
|
71
69
|
if (!res.ok) {
|
|
@@ -28,9 +28,7 @@ const apideck = new Apideck({
|
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
30
|
const result = await apideck.sms.messages.list({
|
|
31
|
-
raw: false,
|
|
32
31
|
serviceId: "salesforce",
|
|
33
|
-
limit: 20,
|
|
34
32
|
fields: "id,updated_at",
|
|
35
33
|
});
|
|
36
34
|
|
|
@@ -61,9 +59,7 @@ const apideck = new ApideckCore({
|
|
|
61
59
|
|
|
62
60
|
async function run() {
|
|
63
61
|
const res = await smsMessagesList(apideck, {
|
|
64
|
-
raw: false,
|
|
65
62
|
serviceId: "salesforce",
|
|
66
|
-
limit: 20,
|
|
67
63
|
fields: "id,updated_at",
|
|
68
64
|
});
|
|
69
65
|
|
|
@@ -123,7 +119,6 @@ const apideck = new Apideck({
|
|
|
123
119
|
|
|
124
120
|
async function run() {
|
|
125
121
|
const result = await apideck.sms.messages.create({
|
|
126
|
-
raw: false,
|
|
127
122
|
serviceId: "salesforce",
|
|
128
123
|
message: {
|
|
129
124
|
from: "+15017122661",
|
|
@@ -207,7 +202,6 @@ const apideck = new ApideckCore({
|
|
|
207
202
|
|
|
208
203
|
async function run() {
|
|
209
204
|
const res = await smsMessagesCreate(apideck, {
|
|
210
|
-
raw: false,
|
|
211
205
|
serviceId: "salesforce",
|
|
212
206
|
message: {
|
|
213
207
|
from: "+15017122661",
|
|
@@ -322,7 +316,6 @@ async function run() {
|
|
|
322
316
|
const result = await apideck.sms.messages.get({
|
|
323
317
|
id: "<id>",
|
|
324
318
|
serviceId: "salesforce",
|
|
325
|
-
raw: false,
|
|
326
319
|
fields: "id,updated_at",
|
|
327
320
|
});
|
|
328
321
|
|
|
@@ -353,7 +346,6 @@ async function run() {
|
|
|
353
346
|
const res = await smsMessagesGet(apideck, {
|
|
354
347
|
id: "<id>",
|
|
355
348
|
serviceId: "salesforce",
|
|
356
|
-
raw: false,
|
|
357
349
|
fields: "id,updated_at",
|
|
358
350
|
});
|
|
359
351
|
|
|
@@ -413,7 +405,6 @@ async function run() {
|
|
|
413
405
|
const result = await apideck.sms.messages.update({
|
|
414
406
|
id: "<id>",
|
|
415
407
|
serviceId: "salesforce",
|
|
416
|
-
raw: false,
|
|
417
408
|
message: {
|
|
418
409
|
from: "+15017122661",
|
|
419
410
|
to: "+15017122662",
|
|
@@ -527,7 +518,6 @@ async function run() {
|
|
|
527
518
|
const res = await smsMessagesUpdate(apideck, {
|
|
528
519
|
id: "<id>",
|
|
529
520
|
serviceId: "salesforce",
|
|
530
|
-
raw: false,
|
|
531
521
|
message: {
|
|
532
522
|
from: "+15017122661",
|
|
533
523
|
to: "+15017122662",
|
|
@@ -670,7 +660,6 @@ async function run() {
|
|
|
670
660
|
const result = await apideck.sms.messages.delete({
|
|
671
661
|
id: "<id>",
|
|
672
662
|
serviceId: "salesforce",
|
|
673
|
-
raw: false,
|
|
674
663
|
});
|
|
675
664
|
|
|
676
665
|
// Handle the result
|
|
@@ -700,7 +689,6 @@ async function run() {
|
|
|
700
689
|
const res = await smsMessagesDelete(apideck, {
|
|
701
690
|
id: "<id>",
|
|
702
691
|
serviceId: "salesforce",
|
|
703
|
-
raw: false,
|
|
704
692
|
});
|
|
705
693
|
|
|
706
694
|
if (!res.ok) {
|
|
@@ -28,9 +28,7 @@ const apideck = new Apideck({
|
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
30
|
const result = await apideck.crm.notes.list({
|
|
31
|
-
raw: false,
|
|
32
31
|
serviceId: "salesforce",
|
|
33
|
-
limit: 20,
|
|
34
32
|
passThrough: {
|
|
35
33
|
"search": "San Francisco",
|
|
36
34
|
},
|
|
@@ -64,9 +62,7 @@ const apideck = new ApideckCore({
|
|
|
64
62
|
|
|
65
63
|
async function run() {
|
|
66
64
|
const res = await crmNotesList(apideck, {
|
|
67
|
-
raw: false,
|
|
68
65
|
serviceId: "salesforce",
|
|
69
|
-
limit: 20,
|
|
70
66
|
passThrough: {
|
|
71
67
|
"search": "San Francisco",
|
|
72
68
|
},
|
|
@@ -129,7 +125,6 @@ const apideck = new Apideck({
|
|
|
129
125
|
|
|
130
126
|
async function run() {
|
|
131
127
|
const result = await apideck.crm.notes.create({
|
|
132
|
-
raw: false,
|
|
133
128
|
serviceId: "salesforce",
|
|
134
129
|
note: {
|
|
135
130
|
title: "Meeting Notes",
|
|
@@ -212,7 +207,6 @@ const apideck = new ApideckCore({
|
|
|
212
207
|
|
|
213
208
|
async function run() {
|
|
214
209
|
const res = await crmNotesCreate(apideck, {
|
|
215
|
-
raw: false,
|
|
216
210
|
serviceId: "salesforce",
|
|
217
211
|
note: {
|
|
218
212
|
title: "Meeting Notes",
|
|
@@ -326,7 +320,6 @@ async function run() {
|
|
|
326
320
|
const result = await apideck.crm.notes.get({
|
|
327
321
|
id: "<id>",
|
|
328
322
|
serviceId: "salesforce",
|
|
329
|
-
raw: false,
|
|
330
323
|
fields: "id,updated_at",
|
|
331
324
|
});
|
|
332
325
|
|
|
@@ -357,7 +350,6 @@ async function run() {
|
|
|
357
350
|
const res = await crmNotesGet(apideck, {
|
|
358
351
|
id: "<id>",
|
|
359
352
|
serviceId: "salesforce",
|
|
360
|
-
raw: false,
|
|
361
353
|
fields: "id,updated_at",
|
|
362
354
|
});
|
|
363
355
|
|
|
@@ -417,7 +409,6 @@ async function run() {
|
|
|
417
409
|
const result = await apideck.crm.notes.update({
|
|
418
410
|
id: "<id>",
|
|
419
411
|
serviceId: "salesforce",
|
|
420
|
-
raw: false,
|
|
421
412
|
note: {
|
|
422
413
|
title: "Meeting Notes",
|
|
423
414
|
content: "Office hours are 9AM-6PM",
|
|
@@ -530,7 +521,6 @@ async function run() {
|
|
|
530
521
|
const res = await crmNotesUpdate(apideck, {
|
|
531
522
|
id: "<id>",
|
|
532
523
|
serviceId: "salesforce",
|
|
533
|
-
raw: false,
|
|
534
524
|
note: {
|
|
535
525
|
title: "Meeting Notes",
|
|
536
526
|
content: "Office hours are 9AM-6PM",
|
|
@@ -672,7 +662,6 @@ async function run() {
|
|
|
672
662
|
const result = await apideck.crm.notes.delete({
|
|
673
663
|
id: "<id>",
|
|
674
664
|
serviceId: "salesforce",
|
|
675
|
-
raw: false,
|
|
676
665
|
});
|
|
677
666
|
|
|
678
667
|
// Handle the result
|
|
@@ -702,7 +691,6 @@ async function run() {
|
|
|
702
691
|
const res = await crmNotesDelete(apideck, {
|
|
703
692
|
id: "<id>",
|
|
704
693
|
serviceId: "salesforce",
|
|
705
|
-
raw: false,
|
|
706
694
|
});
|
|
707
695
|
|
|
708
696
|
if (!res.ok) {
|
|
@@ -28,16 +28,13 @@ const apideck = new Apideck({
|
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
30
|
const result = await apideck.crm.opportunities.list({
|
|
31
|
-
raw: false,
|
|
32
31
|
serviceId: "salesforce",
|
|
33
|
-
limit: 20,
|
|
34
32
|
filter: {
|
|
35
33
|
status: "Completed",
|
|
36
34
|
monetaryAmount: 75000,
|
|
37
35
|
},
|
|
38
36
|
sort: {
|
|
39
37
|
by: "created_at",
|
|
40
|
-
direction: "desc",
|
|
41
38
|
},
|
|
42
39
|
passThrough: {
|
|
43
40
|
"search": "San Francisco",
|
|
@@ -72,16 +69,13 @@ const apideck = new ApideckCore({
|
|
|
72
69
|
|
|
73
70
|
async function run() {
|
|
74
71
|
const res = await crmOpportunitiesList(apideck, {
|
|
75
|
-
raw: false,
|
|
76
72
|
serviceId: "salesforce",
|
|
77
|
-
limit: 20,
|
|
78
73
|
filter: {
|
|
79
74
|
status: "Completed",
|
|
80
75
|
monetaryAmount: 75000,
|
|
81
76
|
},
|
|
82
77
|
sort: {
|
|
83
78
|
by: "created_at",
|
|
84
|
-
direction: "desc",
|
|
85
79
|
},
|
|
86
80
|
passThrough: {
|
|
87
81
|
"search": "San Francisco",
|
|
@@ -146,7 +140,6 @@ const apideck = new Apideck({
|
|
|
146
140
|
|
|
147
141
|
async function run() {
|
|
148
142
|
const result = await apideck.crm.opportunities.create({
|
|
149
|
-
raw: false,
|
|
150
143
|
serviceId: "salesforce",
|
|
151
144
|
opportunity: {
|
|
152
145
|
title: "New Rocket",
|
|
@@ -238,7 +231,6 @@ const apideck = new ApideckCore({
|
|
|
238
231
|
|
|
239
232
|
async function run() {
|
|
240
233
|
const res = await crmOpportunitiesCreate(apideck, {
|
|
241
|
-
raw: false,
|
|
242
234
|
serviceId: "salesforce",
|
|
243
235
|
opportunity: {
|
|
244
236
|
title: "New Rocket",
|
|
@@ -360,7 +352,6 @@ async function run() {
|
|
|
360
352
|
const result = await apideck.crm.opportunities.get({
|
|
361
353
|
id: "<id>",
|
|
362
354
|
serviceId: "salesforce",
|
|
363
|
-
raw: false,
|
|
364
355
|
fields: "id,updated_at",
|
|
365
356
|
});
|
|
366
357
|
|
|
@@ -391,7 +382,6 @@ async function run() {
|
|
|
391
382
|
const res = await crmOpportunitiesGet(apideck, {
|
|
392
383
|
id: "<id>",
|
|
393
384
|
serviceId: "salesforce",
|
|
394
|
-
raw: false,
|
|
395
385
|
fields: "id,updated_at",
|
|
396
386
|
});
|
|
397
387
|
|
|
@@ -452,7 +442,6 @@ async function run() {
|
|
|
452
442
|
const result = await apideck.crm.opportunities.update({
|
|
453
443
|
id: "<id>",
|
|
454
444
|
serviceId: "salesforce",
|
|
455
|
-
raw: false,
|
|
456
445
|
opportunity: {
|
|
457
446
|
title: "New Rocket",
|
|
458
447
|
primaryContactId: "12345",
|
|
@@ -583,7 +572,6 @@ async function run() {
|
|
|
583
572
|
const res = await crmOpportunitiesUpdate(apideck, {
|
|
584
573
|
id: "<id>",
|
|
585
574
|
serviceId: "salesforce",
|
|
586
|
-
raw: false,
|
|
587
575
|
opportunity: {
|
|
588
576
|
title: "New Rocket",
|
|
589
577
|
primaryContactId: "12345",
|
|
@@ -742,7 +730,6 @@ async function run() {
|
|
|
742
730
|
const result = await apideck.crm.opportunities.delete({
|
|
743
731
|
id: "<id>",
|
|
744
732
|
serviceId: "salesforce",
|
|
745
|
-
raw: false,
|
|
746
733
|
});
|
|
747
734
|
|
|
748
735
|
// Handle the result
|
|
@@ -772,7 +759,6 @@ async function run() {
|
|
|
772
759
|
const res = await crmOpportunitiesDelete(apideck, {
|
|
773
760
|
id: "<id>",
|
|
774
761
|
serviceId: "salesforce",
|
|
775
|
-
raw: false,
|
|
776
762
|
});
|
|
777
763
|
|
|
778
764
|
if (!res.ok) {
|
|
@@ -25,9 +25,7 @@ const apideck = new Apideck({
|
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
27
|
const result = await apideck.ecommerce.orders.list({
|
|
28
|
-
raw: false,
|
|
29
28
|
serviceId: "salesforce",
|
|
30
|
-
limit: 20,
|
|
31
29
|
filter: {
|
|
32
30
|
email: "elon@musk.com",
|
|
33
31
|
customerId: "123",
|
|
@@ -36,7 +34,6 @@ async function run() {
|
|
|
36
34
|
},
|
|
37
35
|
sort: {
|
|
38
36
|
by: "created_at",
|
|
39
|
-
direction: "desc",
|
|
40
37
|
},
|
|
41
38
|
passThrough: {
|
|
42
39
|
"search": "San Francisco",
|
|
@@ -71,9 +68,7 @@ const apideck = new ApideckCore({
|
|
|
71
68
|
|
|
72
69
|
async function run() {
|
|
73
70
|
const res = await ecommerceOrdersList(apideck, {
|
|
74
|
-
raw: false,
|
|
75
71
|
serviceId: "salesforce",
|
|
76
|
-
limit: 20,
|
|
77
72
|
filter: {
|
|
78
73
|
email: "elon@musk.com",
|
|
79
74
|
customerId: "123",
|
|
@@ -82,7 +77,6 @@ async function run() {
|
|
|
82
77
|
},
|
|
83
78
|
sort: {
|
|
84
79
|
by: "created_at",
|
|
85
|
-
direction: "desc",
|
|
86
80
|
},
|
|
87
81
|
passThrough: {
|
|
88
82
|
"search": "San Francisco",
|
|
@@ -148,7 +142,6 @@ async function run() {
|
|
|
148
142
|
const result = await apideck.ecommerce.orders.get({
|
|
149
143
|
id: "<id>",
|
|
150
144
|
serviceId: "salesforce",
|
|
151
|
-
raw: false,
|
|
152
145
|
fields: "id,updated_at",
|
|
153
146
|
});
|
|
154
147
|
|
|
@@ -179,7 +172,6 @@ async function run() {
|
|
|
179
172
|
const res = await ecommerceOrdersGet(apideck, {
|
|
180
173
|
id: "<id>",
|
|
181
174
|
serviceId: "salesforce",
|
|
182
|
-
raw: false,
|
|
183
175
|
fields: "id,updated_at",
|
|
184
176
|
});
|
|
185
177
|
|
|
@@ -28,15 +28,12 @@ const apideck = new Apideck({
|
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
30
|
const result = await apideck.accounting.payments.list({
|
|
31
|
-
raw: false,
|
|
32
31
|
serviceId: "salesforce",
|
|
33
|
-
limit: 20,
|
|
34
32
|
filter: {
|
|
35
33
|
updatedSince: new Date("2020-09-30T07:43:32.000Z"),
|
|
36
34
|
},
|
|
37
35
|
sort: {
|
|
38
36
|
by: "updated_at",
|
|
39
|
-
direction: "desc",
|
|
40
37
|
},
|
|
41
38
|
passThrough: {
|
|
42
39
|
"search": "San Francisco",
|
|
@@ -71,15 +68,12 @@ const apideck = new ApideckCore({
|
|
|
71
68
|
|
|
72
69
|
async function run() {
|
|
73
70
|
const res = await accountingPaymentsList(apideck, {
|
|
74
|
-
raw: false,
|
|
75
71
|
serviceId: "salesforce",
|
|
76
|
-
limit: 20,
|
|
77
72
|
filter: {
|
|
78
73
|
updatedSince: new Date("2020-09-30T07:43:32.000Z"),
|
|
79
74
|
},
|
|
80
75
|
sort: {
|
|
81
76
|
by: "updated_at",
|
|
82
|
-
direction: "desc",
|
|
83
77
|
},
|
|
84
78
|
passThrough: {
|
|
85
79
|
"search": "San Francisco",
|
|
@@ -143,7 +137,6 @@ const apideck = new Apideck({
|
|
|
143
137
|
|
|
144
138
|
async function run() {
|
|
145
139
|
const result = await apideck.accounting.payments.create({
|
|
146
|
-
raw: false,
|
|
147
140
|
serviceId: "salesforce",
|
|
148
141
|
payment: {
|
|
149
142
|
currency: "USD",
|
|
@@ -293,7 +286,6 @@ const apideck = new ApideckCore({
|
|
|
293
286
|
|
|
294
287
|
async function run() {
|
|
295
288
|
const res = await accountingPaymentsCreate(apideck, {
|
|
296
|
-
raw: false,
|
|
297
289
|
serviceId: "salesforce",
|
|
298
290
|
payment: {
|
|
299
291
|
currency: "USD",
|
|
@@ -474,7 +466,6 @@ async function run() {
|
|
|
474
466
|
const result = await apideck.accounting.payments.get({
|
|
475
467
|
id: "<id>",
|
|
476
468
|
serviceId: "salesforce",
|
|
477
|
-
raw: false,
|
|
478
469
|
fields: "id,updated_at",
|
|
479
470
|
});
|
|
480
471
|
|
|
@@ -505,7 +496,6 @@ async function run() {
|
|
|
505
496
|
const res = await accountingPaymentsGet(apideck, {
|
|
506
497
|
id: "<id>",
|
|
507
498
|
serviceId: "salesforce",
|
|
508
|
-
raw: false,
|
|
509
499
|
fields: "id,updated_at",
|
|
510
500
|
});
|
|
511
501
|
|
|
@@ -565,7 +555,6 @@ async function run() {
|
|
|
565
555
|
const result = await apideck.accounting.payments.update({
|
|
566
556
|
id: "<id>",
|
|
567
557
|
serviceId: "salesforce",
|
|
568
|
-
raw: false,
|
|
569
558
|
payment: {
|
|
570
559
|
currency: "USD",
|
|
571
560
|
currencyRate: 0.69,
|
|
@@ -732,7 +721,6 @@ async function run() {
|
|
|
732
721
|
const res = await accountingPaymentsUpdate(apideck, {
|
|
733
722
|
id: "<id>",
|
|
734
723
|
serviceId: "salesforce",
|
|
735
|
-
raw: false,
|
|
736
724
|
payment: {
|
|
737
725
|
currency: "USD",
|
|
738
726
|
currencyRate: 0.69,
|
|
@@ -928,7 +916,6 @@ async function run() {
|
|
|
928
916
|
const result = await apideck.accounting.payments.delete({
|
|
929
917
|
id: "<id>",
|
|
930
918
|
serviceId: "salesforce",
|
|
931
|
-
raw: false,
|
|
932
919
|
});
|
|
933
920
|
|
|
934
921
|
// Handle the result
|
|
@@ -958,7 +945,6 @@ async function run() {
|
|
|
958
945
|
const res = await accountingPaymentsDelete(apideck, {
|
|
959
946
|
id: "<id>",
|
|
960
947
|
serviceId: "salesforce",
|
|
961
|
-
raw: false,
|
|
962
948
|
});
|
|
963
949
|
|
|
964
950
|
if (!res.ok) {
|
|
@@ -25,7 +25,6 @@ const apideck = new Apideck({
|
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
27
|
const result = await apideck.hris.payrolls.list({
|
|
28
|
-
raw: false,
|
|
29
28
|
serviceId: "salesforce",
|
|
30
29
|
filter: {
|
|
31
30
|
startDate: "2022-04-08",
|
|
@@ -62,7 +61,6 @@ const apideck = new ApideckCore({
|
|
|
62
61
|
|
|
63
62
|
async function run() {
|
|
64
63
|
const res = await hrisPayrollsList(apideck, {
|
|
65
|
-
raw: false,
|
|
66
64
|
serviceId: "salesforce",
|
|
67
65
|
filter: {
|
|
68
66
|
startDate: "2022-04-08",
|
|
@@ -129,7 +127,6 @@ const apideck = new Apideck({
|
|
|
129
127
|
async function run() {
|
|
130
128
|
const result = await apideck.hris.payrolls.get({
|
|
131
129
|
payrollId: "<id>",
|
|
132
|
-
raw: false,
|
|
133
130
|
serviceId: "salesforce",
|
|
134
131
|
fields: "id,updated_at",
|
|
135
132
|
});
|
|
@@ -160,7 +157,6 @@ const apideck = new ApideckCore({
|
|
|
160
157
|
async function run() {
|
|
161
158
|
const res = await hrisPayrollsGet(apideck, {
|
|
162
159
|
payrollId: "<id>",
|
|
163
|
-
raw: false,
|
|
164
160
|
serviceId: "salesforce",
|
|
165
161
|
fields: "id,updated_at",
|
|
166
162
|
});
|
|
@@ -24,9 +24,7 @@ const apideck = new Apideck({
|
|
|
24
24
|
|
|
25
25
|
async function run() {
|
|
26
26
|
const result = await apideck.crm.pipelines.list({
|
|
27
|
-
raw: false,
|
|
28
27
|
serviceId: "salesforce",
|
|
29
|
-
limit: 20,
|
|
30
28
|
passThrough: {
|
|
31
29
|
"search": "San Francisco",
|
|
32
30
|
},
|
|
@@ -60,9 +58,7 @@ const apideck = new ApideckCore({
|
|
|
60
58
|
|
|
61
59
|
async function run() {
|
|
62
60
|
const res = await crmPipelinesList(apideck, {
|
|
63
|
-
raw: false,
|
|
64
61
|
serviceId: "salesforce",
|
|
65
|
-
limit: 20,
|
|
66
62
|
passThrough: {
|
|
67
63
|
"search": "San Francisco",
|
|
68
64
|
},
|
|
@@ -25,9 +25,7 @@ const apideck = new Apideck({
|
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
27
|
const result = await apideck.ecommerce.products.list({
|
|
28
|
-
raw: false,
|
|
29
28
|
serviceId: "salesforce",
|
|
30
|
-
limit: 20,
|
|
31
29
|
passThrough: {
|
|
32
30
|
"search": "San Francisco",
|
|
33
31
|
},
|
|
@@ -61,9 +59,7 @@ const apideck = new ApideckCore({
|
|
|
61
59
|
|
|
62
60
|
async function run() {
|
|
63
61
|
const res = await ecommerceProductsList(apideck, {
|
|
64
|
-
raw: false,
|
|
65
62
|
serviceId: "salesforce",
|
|
66
|
-
limit: 20,
|
|
67
63
|
passThrough: {
|
|
68
64
|
"search": "San Francisco",
|
|
69
65
|
},
|
|
@@ -128,7 +124,6 @@ async function run() {
|
|
|
128
124
|
const result = await apideck.ecommerce.products.get({
|
|
129
125
|
id: "<id>",
|
|
130
126
|
serviceId: "salesforce",
|
|
131
|
-
raw: false,
|
|
132
127
|
fields: "id,updated_at",
|
|
133
128
|
});
|
|
134
129
|
|
|
@@ -159,7 +154,6 @@ async function run() {
|
|
|
159
154
|
const res = await ecommerceProductsGet(apideck, {
|
|
160
155
|
id: "<id>",
|
|
161
156
|
serviceId: "salesforce",
|
|
162
|
-
raw: false,
|
|
163
157
|
fields: "id,updated_at",
|
|
164
158
|
});
|
|
165
159
|
|
|
@@ -24,7 +24,6 @@ const apideck = new Apideck({
|
|
|
24
24
|
|
|
25
25
|
async function run() {
|
|
26
26
|
const result = await apideck.accounting.profitAndLoss.get({
|
|
27
|
-
raw: false,
|
|
28
27
|
serviceId: "salesforce",
|
|
29
28
|
filter: {
|
|
30
29
|
customerId: "123abc",
|
|
@@ -62,7 +61,6 @@ const apideck = new ApideckCore({
|
|
|
62
61
|
|
|
63
62
|
async function run() {
|
|
64
63
|
const res = await accountingProfitAndLossGet(apideck, {
|
|
65
|
-
raw: false,
|
|
66
64
|
serviceId: "salesforce",
|
|
67
65
|
filter: {
|
|
68
66
|
customerId: "123abc",
|